Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expanded file deletion/trashing #409

Merged
merged 82 commits into from
Sep 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
34f347b
Fix text and RAW image handling
CyanVoxel Jun 1, 2024
3c27b37
Use chardet for character encoding detection
CyanVoxel Jun 1, 2024
7ce3519
Add support for waveform + album cover thumbnails
CyanVoxel Jun 4, 2024
6b892ce
Rename "cover" variables for MyPy
CyanVoxel Jun 4, 2024
ff17b93
Rename "audio_tags" variables for MyPy + typing
CyanVoxel Jun 4, 2024
c1cd96f
Add # type: ignore to fromstring method
CyanVoxel Jun 4, 2024
3144440
Add GIF preview support
CyanVoxel Jun 4, 2024
d339f86
Add rough check for invalid video codecs
CyanVoxel Jun 8, 2024
dc135f7
Add ".plist" to PLAINTEXT_TYPES
CyanVoxel Jun 8, 2024
10d81b3
Add readable video tester
CyanVoxel Jun 9, 2024
087176e
Add ".psd" to IMAGE_TYPES; Handle ID3NoHeaderError
CyanVoxel Jun 13, 2024
cee4254
Improve and style waveform previews
CyanVoxel Jun 15, 2024
127fed7
Add final return statement to _album_artwork()
CyanVoxel Jun 15, 2024
32257f6
Add final return statement to _audio_waveform()
CyanVoxel Jun 15, 2024
3e00a77
Tweak waveform color and size
CyanVoxel Jun 15, 2024
1529714
Fix ItemThumb label text color in light mode
CyanVoxel Jun 15, 2024
d2b5e31
Fix most theme UI legibility issues
CyanVoxel Jun 15, 2024
05a4860
Match additional UI to color scheme
CyanVoxel Jun 16, 2024
c582f3d
ruff format
CyanVoxel Jul 19, 2024
c0e56dc
feat(ui): add UI color palette dict
CyanVoxel Jul 19, 2024
598aa4f
feat(ui) center and color small font previews
CyanVoxel Jul 19, 2024
ffdfd6c
fix(ui): large font previews follow app theme
CyanVoxel Jul 20, 2024
3bfeb3c
fix(ui): blender previews follow app theme
CyanVoxel Jul 20, 2024
086fc1e
feat(ui): add resizable thumbnail options
CyanVoxel Jul 20, 2024
ef8cc6c
fix: mkv files with "[0][0][0][0]" codec load properly
CyanVoxel Jul 20, 2024
ad53f10
fix: missing audio files properly handled
CyanVoxel Jul 20, 2024
91ee242
feat(ui): use system accent color for thumb selections
CyanVoxel Jul 20, 2024
196c1ba
fix(ui): hide gif preview in multi-selections
CyanVoxel Jul 20, 2024
3932414
feat(ui): add dynamic file thumb icons
CyanVoxel Jul 21, 2024
c6a5202
fix(ui): hide previous thumbnail before resizing
CyanVoxel Jul 22, 2024
ad12d64
(fix): catch ffmpeg errors in file tester
CyanVoxel Jul 25, 2024
8d2e67d
Squashed commit of the following:
CyanVoxel Jul 25, 2024
6883f9e
feat(ui): add media types and icon resources
CyanVoxel Jul 25, 2024
447b5e6
feat(ui): add more default media types and icons
CyanVoxel Aug 21, 2024
c070f84
fix: remove leading dot in preview panel ext
CyanVoxel Aug 21, 2024
a244098
refactor: remove edge from `four_corner_gradient()`
CyanVoxel Aug 21, 2024
f91861d
fix: handle missing files in `resource_manager`
CyanVoxel Aug 21, 2024
e4f7055
fix(ui): thumb edges fading on refresh
CyanVoxel Aug 21, 2024
387baae
Merge branch 'Alpha-v9.4' into thumbnails
CyanVoxel Aug 21, 2024
81dfb50
feat(ui): add default icons for audio+vector thumbs
CyanVoxel Aug 21, 2024
a658fc4
feat(ui): apply edge to default icon thumbs
CyanVoxel Aug 21, 2024
ccf3d78
chore: remove unused code
CyanVoxel Aug 21, 2024
148f792
refactor(ui): move loading icon to `ResourceManager`
CyanVoxel Aug 21, 2024
9f688cd
fix(ui) color for default icons follow theme
CyanVoxel Aug 23, 2024
c377b9d
fix: remove `theme_color` redef
CyanVoxel Aug 23, 2024
12d69ba
refactor: make some consts and args clearer
CyanVoxel Aug 24, 2024
5c4a3c5
refactor: organize arguments, update docstrings
CyanVoxel Aug 25, 2024
a037a3b
chore: format docstrings with ruff
CyanVoxel Aug 25, 2024
2796db6
refactor: replace magic numbers with named values
CyanVoxel Aug 30, 2024
dd90add
refactor: remove unused code, comments, & imports
CyanVoxel Aug 30, 2024
ad0f472
refactor: rename args to not shadow builtins
CyanVoxel Aug 30, 2024
2faed27
refactor: remove unused vars from `thumb_renderer`
CyanVoxel Aug 30, 2024
69e1b20
fix: handle ValueError in `render()`
CyanVoxel Aug 30, 2024
992aa82
docs: add FFmpeg requirement to README
CyanVoxel Aug 31, 2024
31ced00
Added the option to delete files in the right click context menu
PeterBouSaada Jun 12, 2024
bbd12b5
Updated to use pathlib instead of os
PeterBouSaada Jun 13, 2024
c196171
- removed unused imports
PeterBouSaada Jun 13, 2024
c44cbbb
Swapped stacktrace to logging.exception in `file_deleter.py`
PeterBouSaada Jun 13, 2024
1e23ec8
refactor: combine `open` launch args (#364)
UnusualEgg Aug 23, 2024
959de9b
Setup and activate virtual environment via flake
seakrueger Jun 3, 2024
d0ad47f
Add xcb as fallback when wayland fails to load
seakrueger Jun 7, 2024
06a230f
Install ruff via nixpkgs
seakrueger Jun 7, 2024
8b9a0e9
Update Contributing documentation for dev on Nix
seakrueger Jun 11, 2024
26f28b5
fix(flake): resolve mypy access to libraries
xarvex Jun 16, 2024
43a0b93
Bump Qt6 version to 6.7.1
seakrueger Jun 17, 2024
9d03493
chore: bump version to v9.4.0
CyanVoxel Aug 26, 2024
662b6f5
feat: send deleted files to system trash
CyanVoxel Aug 27, 2024
ff0f09c
feat(ui): add file deletion confirmation boxes
CyanVoxel Aug 27, 2024
26777f0
feat(ui): add delete file menu option + shortcut
CyanVoxel Aug 27, 2024
0851571
ui: update file deletion message boxes
CyanVoxel Aug 28, 2024
ff2153a
fix(ui): same default confirm button on win/mac
CyanVoxel Aug 31, 2024
6f23478
fix(flake): resolve mypy access to libraries
xarvex Jun 16, 2024
b01d22a
Bump Qt6 version to 6.7.1
seakrueger Jun 17, 2024
16bcccb
feat(flake): complete revamp with devenv/direnv
xarvex Aug 25, 2024
3986725
fix(flake): add missing media dependencies
xarvex Aug 30, 2024
94851d2
fix(flake): GPU hardware acceleration
zierf Aug 30, 2024
589fefa
feat(flake): remove impurity, update nix-direnv
xarvex Aug 30, 2024
8945d11
chore(direnv): update .envrc
xarvex Aug 31, 2024
632e793
Revert "Merge branch 'main' into file-deletion"
CyanVoxel Aug 31, 2024
0e566e0
Merge branch 'Alpha-v9.4' into file-deletion
CyanVoxel Aug 31, 2024
800a405
ui: show perm deletion warning on all platforms
CyanVoxel Aug 31, 2024
d89e120
Merge branch 'Alpha-v9.4' into file-deletion
CyanVoxel Sep 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(ui): hide previous thumbnail before resizing
  • Loading branch information
CyanVoxel committed Jul 22, 2024
commit c6a5202c91abc9f8c4ac97a5a205b63b5a611296
3 changes: 3 additions & 0 deletions tagstudio/src/qt/ts_qt.py
Original file line number Diff line number Diff line change
@@ -1132,8 +1132,11 @@ def thumb_size_callback(self, index: int):
f"ERROR: Invalid thumbnail size index ({index}). Defaulting to 128px."
)
self.thumb_size = 128

self.update_thumbs()
blank_icon: QIcon = QIcon()
for it in self.item_thumbs:
it.thumb_button.setIcon(blank_icon)
it.resize(self.thumb_size, self.thumb_size)
it.thumb_size = (self.thumb_size, self.thumb_size)
it.setMinimumSize(self.thumb_size, self.thumb_size)