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.
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.
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.
* 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