Commit graph

50 commits

Author SHA1 Message Date
Michael Aaron Murphy
6850e53855 fix: when using wgpu, default to low power GPU
Ensures that the integrated GPU is used by default on hybrid graphics
systems; and resolves NVIDIA-related driver issues.
2024-01-10 16:28:55 +01: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
eff22fdb34 chore(cosmic-config): update to include state and remove ping/pong 2024-01-02 15:12:14 +01:00
Ashley Wulber
06c33dcf06 refactor: optional config subscriptions using dbus 2024-01-02 15:12:14 +01:00
Ashley Wulber
a731ebc1b2 fix: set platform specific app id 2023-12-27 19:12:53 -05:00
Jeremy Soller
b8f1a366dd Add content_container flag to enable/disable wrapping content 2023-12-21 12:10:00 -07: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
77b8718706 fix: headerbar and multi-window example improvements 2023-12-08 10:06: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
wiiznokes
cda781cb96 Update mod.rs 2023-12-04 17:53:24 -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
Jeremy Soller
bb3bfdd835 Allow application to customize nav bar 2023-11-28 11:49:43 -07:00
Ashley Wulber
57f4abb8a0 refactor: make the single-instance feature additive 2023-11-21 21:25:10 +01:00
Ashley Wulber
c3ea6286f5 fix: warning abount missing assume_defaults key and use name key for dbus_interface macro 2023-11-20 12:27:51 -05: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
Michael Aaron Murphy
395a90891d refactor!(app): rename set_title to set_window_title 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
a04c74f240 feat(app): set_context_title and set_header_title methods for ApplicationExt and Core 2023-10-12 16:37:38 +02:00
Michael Aaron Murphy
d620531e7e feat(app): integrate ContextDrawer with context_drawer method 2023-10-12 16:37:38 +02:00
Ashley Wulber
aa76a1c820 chore: add exit_on_close to settings 2023-10-11 22:00:22 +02:00
Michael Aaron Murphy
8f7b400143
refactor(applet): move applet module to crate root 2023-09-18 07:45:11 +02:00
Eduardo Flores
69cd9a3bfa
fix(applet): button & icon API refactor w/ applet example 2023-09-18 02:35:50 +02:00
Michael Aaron Murphy
023d8ad3a0 fix(app): restore distinction between app theme changes, and system theme changes 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
7f0943924a feat(theme): improvements and refactoring of theme module
fix: theme rebase
2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9552916a59 feat(app): set header title seperately from window title
This change will enable applications to set different titles for each
2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
02413e5fa6 chore(app): remove redundant system theme property
The system theme is now set globally, so this is no longer used.
2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
16eec65765 feat(app): add set_theme and set_scaling_factor to app::command 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
4e4eeaac12 feat!(widget): rewrite button & icon widget APIs 2023-09-14 01:38:56 +02:00
Ashley Wulber
4903d7792e refactor: default the icon theme to Cosmic 2023-08-29 15:26:58 -04:00
Ashley Wulber
55416c8b9d feat: allow creating apps with no main window on wayland 2023-08-23 15:15:50 -04:00
Ian Douglas Scott
fcdefcd8fb
fix(app): set size_limits to None for autosize
With the default size limit, autosize applets don't work as expected.
Setting this to `None` seems to work fairly well, though maybe we'll
need to tune some of these settings more later.
2023-08-23 00:20:45 +02:00
Eduardo Flores
78c1facd5b
chore: allow &str as input for the icon theme 2023-08-21 22:09:36 +02:00
Ashley Wulber
4d63d06a7e fix: make buttons text buttons again 2023-08-18 16:47:10 -04:00
Ashley Wulber
be49bb2a25 refactor: switch applet back to secondary button 2023-08-18 16:47:10 -04:00
Ian Douglas Scott
9f36d33e34 Fix compilation errors with applet feature 2023-08-18 16:47:10 -04:00
Ashley Wulber
c1495d07e5 cleanup (applet): settings already has the system theme by default 2023-08-18 16:47:10 -04:00
Ashley Wulber
c474b3e955 wip: add applet module 2023-08-18 16:47:10 -04:00
Michael Aaron Murphy
a387adcb1b chore: improve documentation 2023-08-16 16:59:15 +02:00
Ashley Wulber
6c57e04e36 refactor: introduce thread local THEME variable and distinguish between custom and system theme settings 2023-08-14 12:31:16 -04:00
Ian Douglas Scott
54d47a1b38
app/settings: Don't use strip_option (#137)
Since these don't default to `None`, and the fields aren't public, using
`strip_option` makes it impossible to change them to `None`.
2023-08-03 13:12:32 -07:00
Michael Murphy
a223b60a0c
feat!: implement Application API 2023-08-02 11:54:07 +02:00