diff options
author | Mavridis Philippe <[email protected]> | 2021-12-12 16:24:28 +0200 |
---|---|---|
committer | TDE Gitea <[email protected]> | 2024-03-28 16:46:51 +0000 |
commit | 3168c39ef1e445db1a6e22a7ba63e8cb4714e6e8 (patch) | |
tree | 7c7c50394d82ed36fb482b9eec8bf9a5cf4ebb99 /kmix/kmixdockwidget.h | |
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/kmixdockwidget.h')
-rw-r--r-- | kmix/kmixdockwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kmix/kmixdockwidget.h b/kmix/kmixdockwidget.h index a7b420a0..8f119ace 100644 --- a/kmix/kmixdockwidget.h +++ b/kmix/kmixdockwidget.h @@ -70,6 +70,8 @@ class KMixDockWidget : public KSystemTray { void toggleMinimizeRestore(); void resizeEvent(TQResizeEvent *); void showEvent(TQShowEvent *); + long getAvgVolume(); + TQString getIconPath(TQStringList fallback); private: bool _playBeepOnVolumeChange; |