Commit graph

9 commits

Author SHA1 Message Date
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
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