plugin-volume: Use a specific icon for the panel.

ubuntu/bionic
Simon Quigley 6 years ago
parent f274b6d9ef
commit 078a38b147

3
debian/changelog vendored

@ -5,6 +5,9 @@ lxqt-panel (0.12.0-8ubuntu1) UNRELEASED; urgency=medium
- Fix wrongly positioned popups (LP: #1527013).
+ fix-wrongly-positioned-popups.patch
+ Upstream commit 7391172.
- plugin-volume: Use a specific icon for the panel.
+ use-specific-panel-icon.patch
+ Upstream commit eaa65e5.
-- Simon Quigley <tsimonq2@ubuntu.com> Mon, 05 Feb 2018 19:00:18 -0600

@ -4,3 +4,4 @@ plugin-volume-mixer.patch
# Ubuntu-specific patches
fix-wrongly-positioned-popups.patch
use-specific-panel-icon.patch

@ -0,0 +1,32 @@
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);
}
Loading…
Cancel
Save