From 38732bb2411991b6cc9fc9369370119a32213820 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Wed, 19 Oct 2016 10:02:47 -0400 Subject: Fix up the stylesheet for the battery monitor. Don't change any properties other than the background color based on battery level. --- src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src-qt5/core/lumina-desktop/panel-plugins') 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; } -- cgit