ported back some cosmetics (volume % and clock size) (Closes: #880150)

ubuntu/bionic debian/0.12.0-4
Alf Gaida 7 years ago
parent d0d7ab7076
commit 0a250fee96

7
debian/changelog vendored

@ -1,3 +1,10 @@
lxqt-panel (0.12.0-4) experimental; urgency=medium
* ported back some cosmetics (volume % and clock size)
(Closes: #880150)
-- Alf Gaida <agaida@siduction.org> Sun, 05 Nov 2017 01:49:39 +0100
lxqt-panel (0.12.0-3) experimental; urgency=medium
* Fixed host OS query in rules - we really want to know the system

@ -0,0 +1,31 @@
Description: some cosmetics backported
- display volume percent
- fix worldclock size
Author: Alf Gaida <agaida@siduction.org>
Last-Update: 2017-11-05
--- lxqt-panel-0.12.0.orig/plugin-volume/lxqtvolume.cpp
+++ lxqt-panel-0.12.0/plugin-volume/lxqtvolume.cpp
@@ -286,7 +286,7 @@ void LXQtVolume::showNotification(bool f
if (m_defaultSink->mute())
m_notification->setSummary(tr("Volume: muted"));
else
- m_notification->setSummary(tr("Volume: %1").arg(QString::number(m_defaultSink->volume())));
+ m_notification->setSummary(tr("Volume: %1%").arg(QString::number(m_defaultSink->volume())));
m_notification->update();
}
}
--- lxqt-panel-0.12.0.orig/plugin-worldclock/lxqtworldclock.cpp
+++ lxqt-panel-0.12.0/plugin-worldclock/lxqtworldclock.cpp
@@ -132,7 +132,10 @@ void LXQtWorldClock::updateTimeText()
if (!isUpToDate)
{
+ const QSize old_size = mContent->sizeHint();
mContent->setText(tzNow.toString(preformat(mFormat, timeZone, tzNow)));
+ if (old_size != mContent->sizeHint())
+ mRotatedWidget->adjustContentSize();
mRotatedWidget->update();
updatePopupContent();
}

@ -0,0 +1 @@
clock-and-volume.patch
Loading…
Cancel
Save