diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-12-12 16:24:28 +0200 |
---|---|---|
committer | TDE Gitea <gitea@mirror.git.trinitydesktop.org> | 2024-03-28 16:46:51 +0000 |
commit | 3168c39ef1e445db1a6e22a7ba63e8cb4714e6e8 (patch) | |
tree | 7c7c50394d82ed36fb482b9eec8bf9a5cf4ebb99 /kmix/pics/oldcrystal | |
parent | 62f0e274561bb928a50a9fcb7ee427e9d1dacfd5 (diff) | |
download | tdemultimedia-3168c39ef1e445db1a6e22a7ba63e8cb4714e6e8.tar.gz tdemultimedia-3168c39ef1e445db1a6e22a7ba63e8cb4714e6e8.zip |
KMix: system tray icon enhancements
* XDG-compliant icon names with volume level specification (low, medium, high)
Low-Medium threshold: 33%
Medium-High threshold: 67%
* Improved built-in icon theme with distinct volume levels (according to above)
* Choice between classic KMix icon theme, imrpoved KMix icon theme and system theme.
* New KMixDockWidget::getAvgVolume() method
Gets average volume in %. Code actually comes from KMixDockWidget::setVolumeTip(),
but was put into a separate method to be reused for determination of icon according
to the volume level
Diffstat (limited to 'kmix/pics/oldcrystal')
-rw-r--r-- | kmix/pics/oldcrystal/CMakeLists.txt | 13 | ||||
-rw-r--r-- | kmix/pics/oldcrystal/audio-volume-error.png | bin | 0 -> 1176 bytes | |||
l--------- | kmix/pics/oldcrystal/audio-volume-high.png | 1 | ||||
-rw-r--r-- | kmix/pics/oldcrystal/audio-volume-low.png | bin | 0 -> 1215 bytes | |||
l--------- | kmix/pics/oldcrystal/audio-volume-medium.png | 1 | ||||
-rw-r--r-- | kmix/pics/oldcrystal/audio-volume-muted.png | bin | 0 -> 607 bytes |
6 files changed, 15 insertions, 0 deletions
diff --git a/kmix/pics/oldcrystal/CMakeLists.txt b/kmix/pics/oldcrystal/CMakeLists.txt new file mode 100644 index 00000000..47b37e11 --- /dev/null +++ b/kmix/pics/oldcrystal/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################################################ +# Copyright © 2024 Mavridis Philippe <mavridisf@gmail.com> # +# # +# This file is released under the GNU GPL version 3 or later. # +# Improvements and feedback are welcome! # +################################################################################ + +set(theme "oldcrystal") + +install(FILES audio-volume-error.png audio-volume-muted.png + audio-volume-low.png audio-volume-medium.png + audio-volume-high.png + DESTINATION ${DATA_INSTALL_DIR}/kmix/pics/${theme})
\ No newline at end of file diff --git a/kmix/pics/oldcrystal/audio-volume-error.png b/kmix/pics/oldcrystal/audio-volume-error.png Binary files differnew file mode 100644 index 00000000..b0497662 --- /dev/null +++ b/kmix/pics/oldcrystal/audio-volume-error.png diff --git a/kmix/pics/oldcrystal/audio-volume-high.png b/kmix/pics/oldcrystal/audio-volume-high.png new file mode 120000 index 00000000..dd3d1eea --- /dev/null +++ b/kmix/pics/oldcrystal/audio-volume-high.png @@ -0,0 +1 @@ +audio-volume-low.png
\ No newline at end of file diff --git a/kmix/pics/oldcrystal/audio-volume-low.png b/kmix/pics/oldcrystal/audio-volume-low.png Binary files differnew file mode 100644 index 00000000..9e8997e5 --- /dev/null +++ b/kmix/pics/oldcrystal/audio-volume-low.png diff --git a/kmix/pics/oldcrystal/audio-volume-medium.png b/kmix/pics/oldcrystal/audio-volume-medium.png new file mode 120000 index 00000000..dd3d1eea --- /dev/null +++ b/kmix/pics/oldcrystal/audio-volume-medium.png @@ -0,0 +1 @@ +audio-volume-low.png
\ No newline at end of file diff --git a/kmix/pics/oldcrystal/audio-volume-muted.png b/kmix/pics/oldcrystal/audio-volume-muted.png Binary files differnew file mode 100644 index 00000000..70764025 --- /dev/null +++ b/kmix/pics/oldcrystal/audio-volume-muted.png |