From d1b9bae155425c2d500b136111cc4f2f28fc0c16 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 12 Dec 2021 16:24:28 +0200 Subject: 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 (cherry picked from commit 3168c39ef1e445db1a6e22a7ba63e8cb4714e6e8) --- kmix/appearanceconfig.ui | 130 ++++++++++++++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 47 deletions(-) (limited to 'kmix/appearanceconfig.ui') diff --git a/kmix/appearanceconfig.ui b/kmix/appearanceconfig.ui index a55f5a11..294b00fb 100644 --- a/kmix/appearanceconfig.ui +++ b/kmix/appearanceconfig.ui @@ -8,8 +8,8 @@ 0 0 - 464 - 280 + 487 + 278 @@ -19,30 +19,18 @@ unnamed - - - - Horizontal - - - - - Vertical - - + - kcfg_Orientation + kcfg_Menubar - - - 3 - 0 - 0 - 0 - + + Show &menu bar + + + true - + lblValueStyle @@ -50,20 +38,12 @@ Volume values: - + - lblOrientation - - - Sliders orientation: - - - - - kcfg_Tickmarks + kcfg_Labels - Show &tickmarks + Show &labels true @@ -71,27 +51,44 @@ - kcfg_Labels + kcfg_Tickmarks - Show &labels + Show &tickmarks true - + + + + None + + + + + Absolute + + + + + Relative + + - kcfg_Menubar - - - Show &menu bar + kcfg_ValueStyle - - true + + + 3 + 0 + 0 + 0 + - + spacer5 @@ -108,24 +105,63 @@ + + + lblOrientation + + + Sliders orientation: + + - None + Horizontal - Absolute + Vertical + + kcfg_Orientation + + + + 3 + 0 + 0 + 0 + + + + + + lblOrientation_2 + + + Icon theme: + + + - Relative + Crystal + + + + + Classic (Old Crystal) + + + + + System - kcfg_ValueStyle + kcfg_IconTheme -- cgit v1.2.1