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
c0736400e4
Merge branch 'pop-os:master' into rustc-hash
2025-10-28 03:12:10 +00: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
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
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
Jeremy Soller
2e103dd4eb
Update dependencies and format
2025-10-14 11:18:23 -06:00
Jeremy Soller
4312179a4d
Allow type to enter path to select files in dialog
2025-10-14 11:16:37 -06:00
Jeremy Soller
9e8fb60b70
Implement type to search in dialog, fixes #965
2025-10-14 10:57:36 -06:00
Vukašin Vojinović
909577b364
chore: clippy
2025-10-03 14:36:00 -04:00
Vukašin Vojinović
131cf7e8cd
chore: make dbus-config optional
...
Also fixes some lints.
2025-09-13 10:51:14 -06:00
Vukašin Vojinović
3ee1a07f09
chore: update dependencies
...
Updates all dependencies other than ICU.
Enables the `dbus-config` libcosmic feature to fix theming responsiveness.
Also prevents the trash and network drive layer container from touching the edge of the window.
2025-09-11 08:15:26 -06:00
Vukašin Vojinović
f95869a631
chore: migrate to Rust 2024 edition
2025-09-11 08:15:26 -06:00
Jeremy Soller
116774d5fa
Use Location::path_opt for checking for location path
2025-08-15 11:38:26 -06:00
Jeremy Soller
fb74be9a70
Restore tab scroll position, fixes #1115
2025-08-15 11:01:08 -06:00
Mitchel Stewart
293350092c
thumbnail: Support jxl and plumbing for future formats. ( #1058 )
...
* add plumbing for additional thumbnailers
* remove bad logging and fmt
* fix bad logging message
* add decoding ram limits
* add configuration for thumbs
* cleanups
* fix rebase fails
2025-07-30 15:45:53 -06:00
Ashley Wulber
6d9e6c1d20
fix(desktop): use the window id for context menus
2025-07-25 15:47:37 -04:00
Jeremy Soller
a6e369df0f
Enable context menu popups in dialog, close context menu when location changes
2025-07-24 11:34:41 -06:00
Jeremy Soller
605f44763b
On wayland, place context menus into popups, fixes #1090
2025-07-24 10:51:46 -06:00
Jeremy Soller
795f90ba95
Persist more dialog options
2025-07-22 09:13:14 -06:00
Jeremy Soller
4f0c5c1ec1
dialog: preserve show details setting
2025-07-21 19:51:30 -06:00
Jeremy Soller
5fd643b166
dialog: break options into two rows when condensed
2025-07-21 19:51:30 -06:00
Jeremy Soller
e5defb971c
dialog: disable show details by default
2025-07-21 19:51:30 -06:00
Jeremy Soller
7524487ba7
Significantly optimize drag select performance
2025-07-10 13:57:41 -06:00
Jeremy Soller
b7c9ed8dff
Implement auto scroll in mouse area, improves performance
2025-07-10 11:52:42 -06:00
Ashley Wulber
01bf55865c
feat: persist sort options for each location
2025-07-03 15:13:11 +00:00
Ashley Wulber
6a2bd1faf1
fix: add eject button for context menus on mount point
2025-07-01 00:25:58 +00:00
ellieplayswow
aba90279e6
add ability to pass appid through to file dialogs ( #1042 )
...
* dialog: add new Dialog::create() method with new DialogSettings struct to allow passing app_id from portal; deprecating Dialog::new()
* dialog: remove deprecation, move to builder pattern, add path_opt and kind options to DialogSettings
* dialog: instances of -> DialogSettings to -> Self
2025-06-27 16:26:24 -06:00
Jeremy Soller
037190babd
Remove unused icon sizes argument from preview
2025-04-30 08:27:55 -06:00
Gwen Lg
e220268954
Add ModifiersChanged message on Tab and keep value
...
The message is forwarded from app/dialog Message, and used to
keep the value of the status of modifiers in Tab.
2025-04-29 20:18:30 +02:00
Gwen Lg
d8a198e836
clean: rename Modifiers message to ModifiersChanged
...
to be more explicit/accurate.
2025-04-29 20:18:30 +02:00
Jason Hansen
5e21c7cf99
Use icu for date and time localization ( #934 )
...
* Use icu for date and time localization
* Handle military time config in dialog
2025-04-14 08:59:32 -06:00
Jeremy Soller
5732a8d6fe
Remove unnecessary debug output
2025-03-31 09:17:39 -06:00
Jason Rodney Hansen
5cd9729d00
Add auto-scroll to dialog
2025-03-22 19:28:36 -06:00
Jeremy Soller
2dbcd76d3b
Allow dialog open button when opening directory and nothing is selected
2025-03-19 16:11:10 -06:00
Jeremy Soller
28f324fc11
Add support for accelerator keys in dialog, fixes #390
2025-03-19 14:44:13 -06:00
Ashley Wulber
4828bae81d
chore: update libcosmic
2025-03-15 11:59:03 -04:00
Jeremy Soller
1880d0a270
Format
2025-03-03 13:04:50 -07:00
Josh Megnauth
e34dcf1372
Respect military time config from time applet
...
Closes : #775
2025-02-24 01:02:30 -05:00
Jeremy Soller
ceab7835ad
Clean up mime app handling and make it possible to set default application, part of #325
2025-01-24 11:55:56 -07:00
Jeremy Soller
691719ade7
Remove use of expect to fix minimum rust version
2025-01-23 14:45:03 -07:00
Josh Megnauth
dddfc8a673
chore(clippy): config, dialog, menu
...
Fixes Clippy lints for:
* src/config.rs
* src/dialog.rs
* src/menu.rs
2025-01-22 08:10:19 -07:00
Jason Rodney Hansen
76a3dd6279
Fix crash for dialog in debug mode
...
`Subscription::map` must be provided a non-capturing closure. A couple places
were passing capturing closures, which caused a debug assert failure. These
have been fixed.
2025-01-05 13:50:08 -07:00
Jason Rodney Hansen
7a49c40050
Fix 'New folder...' context menu item in save dialog
2025-01-05 12:08:00 -07:00
Vukašin Vojinović
06150f7d44
fix(context menu): increase vertical item padding ( #665 )
...
This matches the context menu to the designs.
2024-11-24 19:24:24 -07:00
Vukašin Vojinović
1f19fe7015
Fix applet window styling ( #652 )
...
* fix(applet windows): fix styling
* update libcosmic
Updates context drawers to use the new API.
2024-11-22 08:47:16 -07:00
Jeremy Soller
24a7f2bc31
Select result of operation, fixes #500
2024-11-19 20:17:58 -07:00