* 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
(cherry picked from commit 3168c39ef1
)
r14.1.x
@ -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 "crystal")
|
||||
|
||||
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})
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 809 B |
@ -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})
|
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1 @@
|
||||
audio-volume-low.png
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@ -0,0 +1 @@
|
||||
audio-volume-low.png
|
Before Width: | Height: | Size: 607 B After Width: | Height: | Size: 607 B |