aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-19 10:02:47 -0400
committerKen Moore <ken@ixsystems.com>2016-10-19 10:02:47 -0400
commit38732bb2411991b6cc9fc9369370119a32213820 (patch)
tree1a7ba6ebeabd2a943af303b7b700c09214fe6fb9 /src-qt5
parentAdd a new audio file for a low-battery notification. (diff)
downloadlumina-38732bb2411991b6cc9fc9369370119a32213820.tar.gz
lumina-38732bb2411991b6cc9fc9369370119a32213820.tar.bz2
lumina-38732bb2411991b6cc9fc9369370119a32213820.zip
Fix up the stylesheet for the battery monitor. Don't change any properties other than the background color based on battery level.
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
index 7b7f5deb..af081191 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp
@@ -80,8 +80,8 @@ void LBattery::updateBattery(bool force){
//Play some audio warning chime when
LSession::handle()->playAudioFile(LOS::LuminaShare()+"low-battery.ogg");
}
- if(icon==0){ label->setStyleSheet("background: red;"); }
- else{ label->setStyleSheet("background: transparent;"); }
+ if(icon==0){ label->setStyleSheet("QLabel{ background: red;}"); }
+ else{ label->setStyleSheet("QLabel{ background: transparent;}"); }
iconOld = icon;
}
bgstack15