Ashley Wulber
07763aca8e
refactor: allow resetting main window id to None
2024-10-21 17:33:10 -06:00
Ashley Wulber
cf3ba4ca07
refactor: allow resetting the main window id
2024-10-21 17:37:51 -04:00
Ashley Wulber
0491c4baaa
libcosmic updates
2024-10-18 14:04:39 -04:00
Michael Aaron Murphy
9e064e7fa0
feat: configurable fonts
2024-10-05 01:47:37 +02:00
Jeremy Soller
e56a94b783
feat(app): allow context drawer to be laid out next to content
2024-09-20 11:31:29 -06:00
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
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
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
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
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
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
59a913c15d
feat!(segmented_button): Add context menu support and integrations
2024-04-18 17:18:53 +02:00
Michael Aaron Murphy
4154428a63
feat(config): add icon theme property to CosmicTk config
2024-03-18 09:51:37 -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
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
f4ad098647
wip: update to use latest iced
2024-02-06 11:28:27 -05:00
Ashley Wulber
efe4ce2f5b
refactor: config improvements
2024-01-18 20:19:32 -07:00
Ashley Wulber
994e93d6d2
fix: better handling of secure inputs
2024-01-17 14:57:06 -07:00
Jeremy Soller
68c760e652
Allow apps to return a command when context drawer is toggled
2024-01-09 12:07:38 -07:00
Ashley Wulber
06c33dcf06
refactor: optional config subscriptions using dbus
2024-01-02 15:12:14 +01:00
Michael Aaron Murphy
56965ac2e5
fix(app): closing of window in wayland
2023-12-12 15:08:24 +01:00
Ashley Wulber
493bf6c47a
fix: avoid accidentally triggering vendoring of iced_winit when not used ( #238 )
2023-12-11 12:59:13 -05:00
Ashley Wulber
685a0543cd
chore: multi-window example
2023-12-08 10:06:13 -05:00
Ashley Wulber
c66e4aafd0
update to support winit multi-window
2023-12-08 10:06:13 -05:00
Ashley Wulber
9202383596
chore: update to 0.12
2023-12-04 17:53:24 -05:00
danieleades
8e99406a8b
chore: fixing linter warnings
2023-11-28 20:02:08 +01:00
Ashley Wulber
57f4abb8a0
refactor: make the single-instance feature additive
2023-11-21 21:25:10 +01:00
Ashley Wulber
c38dc6da94
refactor: rename single-instance feature
2023-11-17 19:29:11 -05:00
Ashley Wulber
ef5b6fb44a
feat: add helpers for getting and using activation tokens in applets
...
refactor(applet): connect to privileged socket if available
cleanup
2023-11-17 19:29:11 -05:00
Ashley Wulber
c9554a8740
wip: dbus activation & single instance support
...
refactor: activation action with new trait for subcommand and args
refactor: libcosmic can handle sending the activation request
cleanup
2023-11-17 19:29:11 -05:00
Ian Douglas Scott
1887d8ef6a
Add a should_exit method to Application trait
...
A Cosmic application has no way to call `Cosmic<T>::close` to set the
`should_exit` flag there, as far as I'm aware.
So it makes sense to add a `should_exit` method here.
2023-11-15 16:41:51 -07:00
Ashley Wulber
42f24b7ee2
fix: draw sharp corners when the window is tiled, maximized, or fullscreen
2023-11-06 11:24:50 -05:00
Ashley Wulber
6b517ddb0e
fix: increment a counter when there is a system theme mode change, or the theme is set to system
...
this forces a new subscription for the system theme, which seemed to fall behind previously unless the mode was changed back and forth
2023-10-26 14:27:32 -04:00
Ashley Wulber
047a8376ee
fix: apply the system theme change when updating the mode
2023-10-26 14:27:32 -04:00
Ashley Wulber
7cc791a3f5
feat: add support for dark / light mode switching ( #178 )
...
* feat: add support for dark / light mode switching and simultaneouscustom light / dark mode themes
* refactor(color-picker): optional initial color and fallback color
* refactor: used FixedPortion for layout of the settings item
This makes sure that the control always has at least the specified portion of the available space
* refactor: make all members of the ThemeBuilder public
* refactor: add and update palette colors
* fix(theme): typo and derive PartialEq for ThemeBuilder
* fix: update color picker usage
* feat: add more variables to the theme
* fix: radius on headerbar
* fix: Theme CosmicConfigEntry impl
* chore: specify rev of taffy
* fix: theme CosmicConfigEntry missing variables
* fix: apply theme type when theme mode changes
* wip: add plus icon to empty color picker button
* chore: fix rev and imports
* refactor(color-picker): allow custom size for the icon
* refactor(color_picker): make color_button public
* update iced
2023-10-16 16:19:04 -04:00