diff --git a/shell/osd.h b/shell/osd.h --- a/shell/osd.h +++ b/shell/osd.h @@ -42,6 +42,7 @@ void brightnessChanged(int percent); void keyboardBrightnessChanged(int percent); void volumeChanged(int percent); + void microphoneVolumeChanged(int percent); void mediaPlayerVolumeChanged(int percent, const QString &playerName, const QString &playerIconName); void kbdLayoutChanged(const QString &layoutName); void virtualDesktopChanged(const QString ¤tVirtualDesktopName); diff --git a/shell/osd.cpp b/shell/osd.cpp --- a/shell/osd.cpp +++ b/shell/osd.cpp @@ -86,6 +86,15 @@ showProgress(icon, percent); } +void Osd::microphoneVolumeChanged(int percent) +{ + if (percent == 0) { + showText(QStringLiteral("mic-off"), i18nc("OSD informing that the microphone is muted, keep short", "Microphone Muted")); + } else { + showProgress(QStringLiteral("mic-on"), percent); + } +} + void Osd::mediaPlayerVolumeChanged(int percent, const QString &playerName, const QString &playerIconName) { if (percent == 0) {