Commit graph

849 commits

Author SHA1 Message Date
Ashley Wulber
7bf8d7cd53
fix: better surface view cleanup 2025-11-20 13:32:52 -05:00
Jeremy Soller
28c241bc1b
Merge pull request #1377 from FreddyFunk/bugfix/large-image-preview
improve support and performance with very large images for thumbnail generation, preview tab and gallery view
2025-11-20 08:40:01 -07:00
Jeremy Soller
0957f937db
Do not track modifiers in tab, fixes #1312 2025-11-20 08:39:04 -07:00
Jeremy Soller
15b748bf3a
Fix compilation without wayland feature and add feature testing to CI 2025-11-19 08:02:03 -07:00
Jeremy Soller
29a1f7f518
Merge pull request #1379 from FreddyFunk/bugfix/external-drives-metadata
Show metadata, thumbnails and gallery view on mounted drives
2025-11-18 16:52:35 -07:00
Ashley Wulber
b571f11b92
fix: surface cleanup
Clean up surfaces before processing the dialog result message
2025-11-17 20:17:30 -05:00
Ashley Wulber
2c7d06c980
chore: add method for checking if a dialog tracks a surface
needed to call viewor update on the dialog popups
2025-11-17 17:58:08 -05:00
Frederic Laing
4df14044aa
make sure to not create more thumbnail workers than available CPU cores 2025-11-17 17:07:35 +01:00
Frederic Laing
c8f25472a7
extend remote location filesystem detection filter 2025-11-17 09:27:26 +01:00
Frederic Laing
0fc6596681
directly navigate to the mounted drive after mounting them with a click on the sidebar 2025-11-17 09:06:02 +01:00
Frederic Laing
26e223c4f0
fix metadata, thumbnails and gallery view for locally mounted drives 2025-11-17 08:58:28 +01:00
Frederic Laing
bf7b9c192c
implement adaptive sampling for optimal image quality of large images in gallery view while keeping the memory foodprint minimal and UI blocks from GPU buffer uploads minimal and as short as possible 2025-11-16 21:31:27 +01:00
Frederic Laing
76c56d5d3b
improve and simplify heuristics 2025-11-16 19:49:31 +01:00
Frederic Laing
006b69d98b
refactor try_decode_image 2025-11-16 18:40:55 +01:00
Frederic Laing
0353009321
move large image handling out of tab and into new module large_image 2025-11-16 18:12:51 +01:00
Frederic Laing
e2f70a1215 fix for hidden files being visible on external drives 2025-11-13 16:22:09 -05:00
Frederic Laing
9339a74abb
improve support and performance with very large images for thumbnail generation, preview tab and gallery view 2025-11-13 22:02:48 +01:00
Jeremy Soller
de20738735
Split out empty trash title, fixes #1373 2025-11-13 08:59:59 -07:00
Jeremy Soller
94b15703f2
Fix compilation without gvfs feature 2025-11-12 07:46:16 -07:00
Jeremy Soller
bb7f0c5748
Merge pull request #1367 from Cheong-Lau/fix-next-tab
fix(tab): next tab not wrapping around to 0
2025-11-11 20:04:46 -07:00
Jeremy Soller
26ab0ee52b Do not close context drawer when context menu opens, fixes #1107 2025-11-11 19:39:31 -07:00
Cheong Lau
81a4fa206e fix(tab): next tab not wrapping around to 0
fixes: bd1fa1f0a9
2025-11-12 12:24:33 +10:00
Cheong Lau
cfc7ee69b7
Merge branch 'pop-os:master' into item-display-name 2025-11-12 01:57:18 +00:00
Cheong Lau
cd6187433d fixup! chore: more pedantic clippy suggestions
This fixes an accidental change that converted images to `rgb8` instead
of `rgba8`, which silently broke thumbnail rendering.

fixes: 5f729829d7
2025-11-08 14:45:38 +10:00
Cheong Lau
5aa8a8ff76
Merge branch 'pop-os:master' into item-display-name 2025-11-05 22:49:34 +00:00
Vukašin Vojinović
2ba08c4928 chore: update dependencies
This adapts to the changed context drawer actions API.
Also simplifies the actions code.
2025-11-05 15:26:02 -07:00
Cheong Lau
9f680251ab
Merge branch 'master' into item-display-name 2025-10-29 04:46:23 +00:00
Cheong Lau
bd1fa1f0a9 perf: general minor performance optimisations
Notably there is some code cleanup with the zooming functionality, I've
created a new module to reduce code duplication.
2025-10-29 08:16:50 +10:00
Cheong Lau
5f729829d7 chore: more pedantic clippy suggestions 2025-10-29 08:10:19 +10:00
Cheong Lau
2eaad6088a perf: optimise tab::folder_name
This was done by separating out the function to get the display name
into its own function, then running just that.
2025-10-28 17:13:22 +10:00
Cheong Lau
c0736400e4
Merge branch 'pop-os:master' into rustc-hash 2025-10-28 03:12:10 +00:00
Jeremy Soller
419516863c
Merge pull request #1311 from pop-os/joshmegnauth-dialog-escape
dialog escape
2025-10-23 09:34:13 -06:00
Cheong Lau
78f2ed2bdd
Merge branch 'master' into rustc-hash 2025-10-23 11:24:01 +00:00
Ashley Wulber
a2f81cdcf0 refactor: capture Escape in subscription
If the event status of a key event is captured by a widget, the libcosmic tab subscription will ignore it, but we can manually capture it in cosmic-files for its dialogs and handle it ourselves. Alternatively, the subscription could capture events regardless of status, and include it as an argument to on_escape.
2025-10-22 15:04:49 -04:00
Josh Megnauth
1a465ffd7a Close dialog on esc if text input is focused
Closes: pop-os/cosmic-edit#350

Escape unfocusses the main text input widget instead of closing the
dialog. The user has to hit escape twice to close the window. It's not a
big deal, but it's also unexpected and unergonomic.
2025-10-22 14:51:22 -04:00
Ashley Wulber
d9b35a4612 chore: update libcosmic 2025-10-22 14:21:46 -04:00
Ashley Wulber
90d705dd52 chore: update libcosmic and use custom IDs
fixes #1087
2025-10-22 14:10:15 -04:00
Ashley Wulber
ee550266c6 chore: focus empty trash and mount error buttons 2025-10-22 14:10:15 -04:00
Ashley Wulber
e6da0a8ae5 chore: focus replace & favorite path dialog buttons 2025-10-22 14:10:15 -04:00
Ashley Wulber
ce207a54b3 chore: set executable and launch dialog confirm button 2025-10-22 14:10:15 -04:00
Ashley Wulber
7be73d584d chore: focus open with dialog confirm button 2025-10-22 14:10:15 -04:00
Ashley Wulber
6615e0a2b7 fix: focus button for permanently delete dialog 2025-10-22 14:10:15 -04:00
Gwen Lg
423d5d1054 enable ovelap variable on features 2025-10-21 01:02:28 +02:00
Jeremy Soller
0b9cf4397f
Merge pull request #1303 from pop-os/fix-applet-keypress
fix: check surface_ids for keypress
2025-10-20 14:19:16 -06:00
Ashley Wulber
24b28a3703
fix: check surface_ids for keypress 2025-10-20 16:17:19 -04:00
Jeremy Soller
704ff6ad4f
Unhighlight all items when config changes, fixes #1139 2025-10-20 14:16:03 -06:00
Jeremy Soller
e2c446b73a
Fix shift click sorting when items sorted by name, fixes #1135 2025-10-20 14:03:45 -06:00
Cheong Lau
43a9fca4ec perf: use rustc-hash for HashMap and HashSet
Since we already depend on `rustc-hash` transiently, this doesn't add
any more dependencies. As long as DOS attacks aren't a concern (which I
don't think they are?), this should be free performance.

In my (admittedly naive) testing, this really improved CPU usage in some
cases, which is pretty nice to get for free.
2025-10-19 08:46:12 +10:00
Cheong Lau
f16981020b fix: avoid background process when last tab closed
The current behaviour leaves the process running in the background.
Instead, send a `Message::WindowClose` which properly closes the window.
2025-10-16 13:03:07 +10:00
Jeremy Soller
2e103dd4eb
Update dependencies and format 2025-10-14 11:18:23 -06:00