Description: plugin-volume: Use a specific icon for the panel Some "modern" icon themes have a specific panel icon for volumes. Arc, deepin, Faenza, Faience, Flattr, matefaenza, Menda-Circle, Numix, Numix-Light, Numix-uTouch, Paper, Papirus and it's derivatives are examples of that. Author: Luís Pereira Origin: backport Bug: https://github.com/lxde/lxqt-panel/pull/441 Applied-Upstream: commit:eaa65e5 Reviewed-by: Last-Update: 2018-02-05 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/plugin-volume/volumepopup.cpp +++ b/plugin-volume/volumepopup.cpp @@ -64,7 +64,7 @@ VolumePopup::VolumePopup(QWidget* parent m_volumeSlider->installEventFilter(this); m_muteToggleButton = new QPushButton(this); - m_muteToggleButton->setIcon(XdgIcon::fromTheme(QStringList() << "audio-volume-muted")); + m_muteToggleButton->setIcon(XdgIcon::fromTheme(QLatin1String("audio-volume-muted-panel"))); m_muteToggleButton->setCheckable(true); m_muteToggleButton->setAutoDefault(false); @@ -171,6 +171,7 @@ void VolumePopup::updateStockIcon() else iconName = "audio-volume-high"; + iconName.append(QLatin1String("-panel")); m_muteToggleButton->setIcon(XdgIcon::fromTheme(iconName)); emit stockIconChanged(iconName); }