Commit graph

59 commits

Author SHA1 Message Date
Ashley Wulber
104a608cf1 fix(battery): fix brightness slider lag 2024-12-04 16:52:49 +01:00
Vukašin Vojinović
6b740c59be fix(app-list): use context menu radius from theme 2024-11-04 08:47:36 -05:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
Vukašin Vojinović
941cbf546b
fix: padding, spacing, context menu style, and settings buttons 2024-09-24 15:52:17 +02:00
Piotr
cf06e14545
feat(battery): support charging limits with system76-power 2024-09-06 17:56:11 +02:00
Vukašin Vojinović
02b3fbdb11 fix: use cosmic::widget::text instead of cosmic::iced::widget::text 2024-09-03 16:52:59 +02:00
patrulhasirius
f9c01f54d2
fix(battery): too many decimals in battery percent
Co-authored-by: Lucas Ribeiro <estg-lnr@tce.rs.gov.br>
2024-08-29 20:59:54 +02:00
lazytanuki
e51ca81f7d
feat: toggle popups on press down 2024-08-13 19:03:34 +02:00
Ian Douglas Scott
293a91e8b1 Update for spawn_desktop_exec that calls SpawnTransientUnit
Allows `xdg-desktop-portal` to get app id from PID.

Also updates calls to `cosmic::process::spawn` to spawn in future.
2024-07-28 20:25:23 -07:00
Ashley Wulber
6661598839 feat: misc overflow 2024-07-24 08:51:46 -04:00
Vukašin Vojinović
d9d864f14f fix(battery): settings button 2024-07-09 16:26:27 +02:00
Vukašin Vojinović
f206a55194 cargo fmt 2024-07-09 16:26:27 +02:00
Vukašin Vojinović
46e1fdd9f0 feat(battery): add settings button 2024-07-09 16:26:27 +02:00
Vukašin Vojinović
0640e88412 chore: merge imports 2024-07-09 16:26:27 +02:00
Ian Douglas Scott
a0145bf106 battery: Fix display brightness slider 2024-07-01 20:07:39 -07:00
Ian Douglas Scott
3beda52c1c battery: Make screen brightness Option; hide if none 2024-07-01 20:07:39 -07:00
Ian Douglas Scott
61a9102fce battery: Exit on NoBattery instead of letting subscription handle it 2024-07-01 20:07:39 -07:00
Ian Douglas Scott
0ef2393288 battery: Use max_kbd_brightness as slider range
This makes sure we can listen to brightness subscription and set the
brightness without conflicts or weird workarounds.
2024-07-01 20:07:39 -07:00
Ian Douglas Scott
00e34f4eba battery: Use max_screen_brightness as range of slider
Being able to define sliders this way seems like an advantage of using a
seperate `brightness`/`max_brightness` instead of a float.

Now the `step` of the slider is a single unit as supported by the
display.
2024-07-01 20:07:39 -07:00
Ian Douglas Scott
4b83609ee8 battery: Use settings_daemon for display brightness
This shares a subscription with cosmic-osd, avoiding some duplication.
It's also important that things like selection of the display brightness
device are done consistency, and handling this in cosmic-settings-daemon
is one way to ensure consistency.
2024-07-01 20:07:39 -07:00
Ian Douglas Scott
901a70d7a1 battery: Use cosmic-settings-subscriptions for upower subscriptions
These should be useful in `cosmic-osd` as well.
2024-07-01 20:07:39 -07:00
Ashley Wulber
dea51c7208 fix(battery): trim gpu name 2024-05-10 22:30:29 +02:00
Ashley Wulber
668b0825c9 fix(battery): show discrete gpu name 2024-05-10 10:50:18 -04:00
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ashley Wulber
6a448a35cb fix(battery): remove settings button 2024-05-06 06:51:45 -06:00
Ashley Wulber
9f51e12fc9 fix: reset timeline when a popup is created 2024-04-30 20:14:46 -04:00
Ryan Brue
25c24ce184 feat: add power-profiles-daemon as an additional power profile backend 2024-04-16 17:50:02 -04:00
Ian Douglas Scott
a18d64add7 battery: Show keyboard backlight only when supported 2024-03-28 15:31:44 -07:00
Michael Aaron Murphy
32229c16f0
chore(cargo): replace log dependency with tracing 2024-03-25 15:33:22 -06:00
Ashley Wulber
f00fd8bc1a chore: update fixes 2024-02-06 16:21:16 -05:00
Victoria Brekenfeld
2a47cde1b4 battery/dgpu: Add connected outputs to list 2024-02-01 18:33:40 +01:00
Victoria Brekenfeld
8472f1f358 battery: Add gpu indicator and process list 2024-02-01 18:33:40 +01:00
Ashley Wulber
e5db5ab1dd
chore: update libcosmic (#168) 2023-12-11 14:45:36 -05:00
Ashley Wulber
afff014dd2 chore: open power settings when the batter button is pressed 2023-11-22 08:03:54 -05:00
daniel.eades
b9723dd5e0 use 'Self' to refer to own type 2023-11-16 15:47:20 -05:00
Ashley Wulber
9c64906971 fix(battery): remove extra spacing from column 2023-10-25 16:27:00 -04:00
Ashley Wulber
3338cb74b6 refactor: styling improvements 2023-10-24 15:34:21 -04:00
Ashley Wulber
d80a801fe5 refactor: use menu button 2023-10-24 15:34:21 -04:00
Ashley Wulber
ff8e688121 fix: checkmark icons 2023-10-11 19:46:07 -04:00
Eduardo Flores
276ecc7d6c Switch back to libcosmic upstream 2023-10-11 19:46:07 -04:00
Eduardo Flores
c7b25daa71 Update libcosmic 2023-10-11 19:46:07 -04:00
Ashley Wulber
56d96e5282 fix: clear popup state when it is dismissed by the compositor 2023-09-12 16:27:25 -04:00
Ian Douglas Scott
a23f181b7f Use cosmic::Application/cosmic::app::applet
This saves a bit of duplicated boilerplate.

Applets seem to work fairly well with this. Though we should see if any
other changes to initial window settings are needed in certain applets
for the exact behavior we want.
2023-08-23 10:24:56 -07:00
Ashley Wulber
3ad64df5f3
Refactor icons jammy (#108)
* chore: add icons and installation

* refactor: use the new battery icons

* refactor: use audio applet icons

* chore dependency cleanup

* chore: remove icons included in cosmic-icons package

* refactor: use icons for signal strength and fix handling of new connections

* fix: improve some logic for the networking applet

* chore: add cosmic-icons to Depends

* feat: use notifications icons

* chore: set bluetooth icon depending on state

* fix: set default font and text size

* feat (network): add airplane-mode message

* feat (battery): add display icons to the battery applet

* fix (battery): logic for selecting the battery icon & use new battery icons
2023-08-08 16:18:12 -04:00
Ashley Wulber
8d9bb40b1b refactor(battery): use channel subscription 2023-08-02 12:35:26 -06:00
Ashley Wulber
5a15ef8d7f update libcosmic 2023-06-21 20:49:35 -04:00
Ashley Wulber
76bf6a4519 feat: theme management 2023-06-21 20:49:35 -04:00
Brock
3ec06bef80
Init Animations: animate toggler widgets (#96) 2023-06-07 13:43:49 -06:00
Ashley Wulber
9ebd9b511a
wip: update libcosmic (#93)
* wip: update libcosmic

* fix: damge issue resolved by updating iced

* fix: high cpu usage by time applet and app-list

* refactor subscriptions to produce fewer events

* refactor network applet to use less cpu

* fix: text size

* refactor: i18n for audio applet

* refactor: power applet i18n setup

* fix (battery): always send profile update

* fix (battery): set toggler width to layout correctly

* fix (app-list): backoff for restarts of toplevel subscription

* fix (network): alignment

* feat: ask for comfirmation before applying power applet actions

* wip: integrate cosmic-config

* update zbus

* feat: update to use latest libcosmic

* update iced

* udpate deps

* update deps

* refactor: move applet helpers to this repo, outside of libcosmic.

this should help alleviate some dependency hell

* chore update deps

* update deps

* cleanup
2023-06-01 12:23:12 -04:00
Ashley Wulber
903a5589a3 update libcosmic 2023-04-06 15:12:49 -04:00