You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
33 lines
1.4 KiB
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 <luis.artur.pereira@gmail.com>
|
|
Origin: backport
|
|
Bug: https://github.com/lxde/lxqt-panel/pull/441
|
|
Applied-Upstream: commit:eaa65e5
|
|
Reviewed-by: <name and email of a reviewer, optional>
|
|
Last-Update: 2018-02-05 <YYYY-MM-DD, last update of the meta-information, optional>
|
|
---
|
|
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);
|
|
}
|