diff options
Diffstat (limited to 'utils/Icons.qml')
| -rw-r--r-- | utils/Icons.qml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/Icons.qml b/utils/Icons.qml index 5e95575..cd635a0 100644 --- a/utils/Icons.qml +++ b/utils/Icons.qml @@ -223,6 +223,16 @@ Singleton { return "chat"; } + function getVolumeIcon(volume: real, isMuted: bool): string { + if (isMuted) + return "no_sound"; + if (volume >= 0.5) + return "volume_up"; + if (volume > 0) + return "volume_down"; + return "volume_mute"; + } + FileView { path: "/etc/os-release" onLoaded: { |