Commit graph

67 commits

Author SHA1 Message Date
Ashley Wulber
37a60b7759
fix(input-sources): text size 2024-05-18 02:01:40 +02:00
Ashley Wulber
87250b5e50 zbus update 2024-05-18 01:38:41 +02:00
Ashley Wulber
0d27b2e02a refactor: set locations of auto popup hover 2024-05-13 21:11:23 +02:00
Ashley Wulber
60a1511d4d fix: audio-applet mpris autoclick handling 2024-05-09 16:01:01 +02:00
Michael Aaron Murphy
8527257ddd chore: add SPDX license identifiers 2024-05-06 21:56:50 +02:00
Ashley Wulber
9f51e12fc9 fix: reset timeline when a popup is created 2024-04-30 20:14:46 -04:00
jilv220
d9b8794652 fix(audio): volume icon display 2024-04-26 00:58:54 -04:00
Ian Douglas Scott
08a334fc13
audio: Don't use linear volume (#348)
Fixes https://github.com/pop-os/cosmic-applets/issues/335.

This calculates volume as a percentage of `Volume::NORMAL`, which seems
to be the correct way to display PulseAudio volumes to the user. This
matches `cosmic-osd`, and seems to match alsamixer.
2024-04-15 17:23:55 -07:00
Ian Douglas Scott
216d88e977 audio: Mpris media control fixes
The panel buttons for next/previous didn't do anything since `on_press`
wasn't set. Now they work.

Fixed `autosize` which I had accidentally committed after using it for
testing. (It would be good to figure out why the applets don't work
properly with autosize when run outside of the panel, since that's handy
for testing.)

I noticed with VLC, skipping a track makes the media controls disappear
very briefly, and sometimes the pause button didn't return. I guess
`can_play` (etc.) are temporarily set to false, probably expecting the
controls to be greyed out and not hidden from a panel. Anyway,
monitoring for changes to these properties as well will hopefully fix
the part where it could remain missing. Though I can't reproduce that
consistently.
2024-04-05 16:31:01 -06:00
Ian Douglas Scott
1475f8f32b audio: Don't recreate mpris proxies and streams
Fixes https://github.com/pop-os/cosmic-applets/issues/306 and should
overall be more correct and performant.
2024-04-04 13:25:16 +02:00
Ian Douglas Scott
fba8596759 audio: Use correct icons for volume levels
These seem to match Gnome. "Overamplified" is a volume above 100%, which
can be set in `pavucontrol`.
2024-04-04 13:25:16 +02:00
Ian Douglas Scott
fbd1489c7b audio: Set source/sink mute state
Setting the volume to a non-zero value will unmute the source or sink,
and setting it to zero will mute it. This matches the behavior on Gnome.
2024-04-04 13:25:16 +02:00
Michael Aaron Murphy
ed335b256a chore: migrate volume change sound to cosmic-osd 2024-04-02 23:29:17 +02:00
Michael Aaron Murphy
3c4acdacd7 refactor: compile applets as multicall binary 2024-03-14 23:37:37 +01:00
Ashley Wulber
30fd5c2c6e chore: update config to use version 2024-03-08 07:16:59 -07:00
Ashley Wulber
0505524eae fix: playback icons on panel should use applet icon button 2024-03-08 07:16:59 -07:00
jilv220
a6494e8ed5 fix(audio): title/artists truncate now works on non-english utf8 languages 2024-02-21 18:55:37 -05:00
jilv220
59af0f1b8b feat(audio): add fallback when title/artist not found 2024-02-21 11:01:03 -05:00
Ashley Wulber
d17894f94e chore: clippy 2024-02-20 10:55:08 -05:00
Ashley Wulber
34c4bada71 fix(audio): no media player will be chosen unless paused or playing 2024-02-15 22:42:48 -05:00
Michael Aaron Murphy
847db3a4f2 feat(audio): play audio-volume-change sound on volume change 2024-02-06 16:21:48 -05:00
Ashley Wulber
f00fd8bc1a chore: update fixes 2024-02-06 16:21:16 -05:00
Ashley Wulber
0ab6f724fb chore: update libcosmic 2024-02-06 16:21:16 -05:00
Ashley Wulber
d4e0dd8fb8 fix: make all subscriptions resistant to being restarted
many of the errors we've been seeing the last few days are because of subscriptions which are restarting
2024-01-18 23:16:17 -05:00
Ashley Wulber
ebe688c747 chore: use dbus config subscription for app list 2024-01-18 23:16:17 -05:00
Ashley Wulber
6851d9de54 fix: logging and use dbus config subscription in audio applet 2024-01-18 23:16:17 -05:00
Ashley Wulber
ea1db02280 fix: log errors when sending fails instead of panic 2024-01-17 09:46:41 -07:00
Ashley Wulber
78f8a3f722 fix: better handling of mpris changes 2023-12-11 15:25:42 -05:00
Ashley Wulber
e5db5ab1dd
chore: update libcosmic (#168) 2023-12-11 14:45:36 -05:00
Ashley Wulber
158139d466 fix: update and fixes for bluetooth 2023-12-05 15:32:18 -05:00
Ashley Wulber
2dcb76c2d4 chore: open sound settings when button pressed 2023-11-22 08:03:54 -05:00
daniel.eades
aa2d9fe374 add linting CI jobs 2023-11-21 16:59:14 -05:00
daniel.eades
b9723dd5e0 use 'Self' to refer to own type 2023-11-16 15:47:20 -05:00
daniel.eades
a88cbad37f remove needless mutable references 2023-11-16 15:47:20 -05:00
daniel.eades
b472a155fc remove redundant clones 2023-11-16 15:47:20 -05:00
daniel.eades
6cb69bc63b remove redundant pattern matching 2023-11-16 15:47:20 -05:00
Ashley Wulber
eef73793bf refactor(audio): update the connection after it has disconnected or been initialized 2023-10-31 11:40:23 -04:00
Ashley Wulber
0db1a96c42 refactor(audio): use mpris2-zbus 2023-10-27 19:46:51 -04:00
Ashley Wulber
9e866088e4 fix(audio): increment counter 2023-10-24 15:34:21 -04:00
Ashley Wulber
17cf0ee4cd fix(audio): layout of media controls 2023-10-24 15:34:21 -04:00
Ashley Wulber
1bd1ac004a chore(audio): styling and deps 2023-10-24 15:34:21 -04:00
Ashley Wulber
557a43517d feat: mpris support for audio applet 2023-10-24 15:34:21 -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
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
1074f3f49b refactor(audio) use channel subscription 2023-08-02 12:35:26 -06:00