Victoria Brekenfeld
b40839638a
fix: Use globals instead of thread-locals
...
Better support for multi-threaded applications,
especially cosmic-comp rendering in parallel on
multiple threads, each potentially accessing
global configurations such as the active theme,
icon_theme and more...
2024-08-02 20:27:08 +02:00
leb-kuchen
8e67f3ce1c
feat(headerbar): double click to maximize
2024-07-23 11:58:55 +02:00
Michael Aaron Murphy
5474232796
fix: widget unfocus on mouse click
2024-07-22 07:05:47 +02:00
Ashley Wulber
d35cc71b90
feat(applets): add overflow support
2024-07-16 17:15:22 +02:00
Michael Aaron Murphy
e04c9eaf6d
fix: window menus now supported by windows using wayland feature
2024-07-10 16:55:28 +02:00
wiiznokes
ebf5c2738b
chore: remove Clone bound on Flags
2024-06-16 20:13:56 +02:00
Ashley Wulber
552f3aefd6
feat: wrap core interface elements in id container
2024-05-30 16:57:51 -04:00
Michael Aaron Murphy
1ef1400d8b
fix: condense app to content first
2024-05-30 21:41:15 +02:00
Ashley Wulber
80879213af
fix: use the user provided theme even when setting system theme
...
the user may have set a preferred value which should be used.
2024-05-30 13:48:16 -04:00
Michael Aaron Murphy
6720b8277c
feat: CosmicTk::header_size density config
2024-05-29 06:25:15 -06:00
Ashley Wulber
56ff501d36
fix: wayland exit_on_close
2024-05-28 19:22:19 -06:00
Jeremy Soller
8ecf1a8edd
fix(app) set iced.window.exit_on_close_request
2024-05-28 13:58:29 -06:00
Ashley Wulber
428dafe37c
fix: retry portal when it fails, and only apply theme changes when there is a relevant change
2024-05-22 15:41:56 -04:00
Victoria Brekenfeld
b8266b6100
improv(app): drop setting WGPU_POWER_PREF
2024-05-21 16:19:57 +02:00
Michael Aaron Murphy
aa3f5d3401
improv: impl From<M> for Message<M>
2024-05-21 01:29:50 +02:00
Michael Aaron Murphy
709ab268a0
refactor(app): iced::Command -> Command
2024-05-20 00:45:19 +02:00
Michael Aaron Murphy
69bf95765d
fix(core): set default window focus to window::Id::MAIN
2024-05-17 20:58:38 +02:00
Ashley Wulber
78a137214d
chore: update zbus
2024-05-17 00:00:24 +02:00
Ashley Wulber
1b63c9e38b
chore: update libcosmic
2024-05-15 16:19:32 -04:00
Jeremy Soller
a2e2711061
fix(settings): set iced window exit_on_close_request
2024-05-14 08:04:09 -06:00
Ashley Wulber
9292004642
feat: allow preference for dark or light system theme
...
also converts applet to use preferred system theme
2024-05-14 07:36:08 -04:00
Jeremy Soller
ac95b571ec
feat: allow on_app_exit to override closing the application
2024-05-13 17:39:21 +02:00
Ashley Wulber
05a9e7639f
feat: update the headerbar to match figma
...
i don't think the alpha is actually working for the icon, but the color should match
2024-05-13 11:22:59 -04:00
Michael Aaron Murphy
3cfc5c16a3
fix: avoid setting WGPU_POWER_PREF=low if system is desktop
2024-05-07 05:00:27 +02:00
Jeremy Soller
42cfdbf585
fix(app): restore on_context_drawer functionality that was removed in 59a913c
2024-04-26 10:22:51 -06:00
Michael Aaron Murphy
9ffb87d21f
feat(context_menu): add a context menu widget as menu tree alternative to the popover widget
2024-04-22 17:25:05 +02:00
Michael Aaron Murphy
59a913c15d
feat!(segmented_button): Add context menu support and integrations
2024-04-18 17:18:53 +02:00
Michael Aaron Murphy
2bfdc09a43
fix(popover): add modal property for dialogs
...
Fixes quirks with the context drawer and dialogs
2024-04-11 23:03:59 +02:00
Ashley Wulber
b240e3fef2
refactor: no Sync bound for Message
2024-04-02 00:12:21 +02:00
Ashley Wulber
b9cc88c492
fix: add Sync bound to Message
2024-04-01 13:40:03 -06:00
Michael Aaron Murphy
59e5f2ff38
fix(app): set window title properly with winit
2024-03-19 19:27:00 +01:00
Michael Aaron Murphy
4154428a63
feat(config): add icon theme property to CosmicTk config
2024-03-18 09:51:37 -06:00
Jeremy Soller
3694304ee5
feat(core): add nav_bar_set_toggled
2024-03-18 09:23:07 -06:00
Ashley Wulber
e47684ffdb
refactor: icon styling and headerbar icon styling
...
Headerbar icons are transparent when their window is not focused, but otherwise share the same style as icons with selection. This updates the icon styles to match figma when selected.
2024-03-11 16:26:48 -04:00
Michael Aaron Murphy
4f07d05ee8
feat(config): add CosmicTk config for configuring window controls
2024-03-05 08:36:43 -07:00
Ashley Wulber
d9228d78c6
refactor: single instance subscription
2024-03-01 21:30:24 -05:00
Ashley Wulber
06b46f455b
wip: support desktop portal color-scheme, and accent variables
2024-03-01 21:30:24 -05:00
Ashley Wulber
c390b2614d
wip: support desktop portal color-scheme, and accent variables
2024-03-01 21:30:24 -05:00
Ashley Wulber
3e68e39366
refactor: allow opting out of automatic keyboard navigation
2024-03-01 15:22:28 -05:00
Jeremy Soller
4c738572f5
fix(app): adjust default nav bar width
2024-03-01 09:09:58 -07:00
Jeremy Soller
a593f866ef
Set resize border for winit apps
2024-02-27 10:52:33 -07:00
Jeremy Soller
16aaf10b56
Add support for themed application dialog
2024-02-27 09:38:33 -07:00
Ashley Wulber
08b2e1ca38
cleanup
2024-02-14 11:05:24 -05:00
Jeremy Soller
b430656966
Format
2024-02-13 10:38:35 -07:00
Jeremy Soller
3c5dcecf2b
Changes for multiple Application support
...
- Add Application::main_window_id to allow ids other than MAIN
- Make Cosmic and Cosmic::app public to allow custom use
2024-02-13 10:38:35 -07:00
Ian Douglas Scott
cc8033d74b
feat(header_bar): Show window menu on right click
...
With this, apps like cosmic-term require no changes to show the
compositor window menu when the header is right clicked.
2024-02-13 17:10:04 +01:00
Jeremy Soller
02cee1d805
fix: maximize instead of fullscreen
...
This fixes interactions with the window manager including dodging
exclusive zones, correctly sharpening corners when the window manager
sets the maximized mode, and correctly toggling the maximized state when
either F11 or the maximize button are clicked.
2024-02-12 17:53:59 +01:00
Ashley Wulber
045dca649a
chore: add doc comment to SurfaceClosed
2024-02-06 11:28:27 -05:00
Ashley Wulber
054b93990b
refactor: call the close requested method
2024-02-06 11:28:27 -05:00
Ashley Wulber
e778782328
fix: layout fixes for nav bar
2024-02-06 11:28:27 -05:00