diff options
author | Ken Moore <ken@ixsystems.com> | 2017-04-21 08:33:11 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-04-21 08:33:11 -0400 |
commit | 2554f98e2d74362d0ed8da6b6a813bacf05c6af2 (patch) | |
tree | 72da8d47c5bf225af3bf4b3cc5989b2d43a368be /src-qt5/core | |
parent | Make the RSS reader a bit more relaxed about the RSS return format (make feed... (diff) | |
parent | Get more of the "local" file playback functional. Now it seems almost full-fe... (diff) | |
download | lumina-2554f98e2d74362d0ed8da6b6a813bacf05c6af2.tar.gz lumina-2554f98e2d74362d0ed8da6b6a813bacf05c6af2.tar.bz2 lumina-2554f98e2d74362d0ed8da6b6a813bacf05c6af2.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core')
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp | 22 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp | 8 |
2 files changed, 15 insertions, 15 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 ee379613..bdbdc42d 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/battery/LBattery.cpp @@ -43,37 +43,37 @@ void LBattery::updateBattery(bool force){ if (icon != iconOld || force) { switch (icon) { case 0: - label->setPixmap( LXDG::findIcon("battery-caution", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-20","battery-caution").pixmap(label->size()) ); break; case 1: - label->setPixmap( LXDG::findIcon("battery-040", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-40", "battery-040").pixmap(label->size()) ); break; case 2: - label->setPixmap( LXDG::findIcon("battery-060", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-60", "battery-060").pixmap(label->size()) ); break; case 3: - label->setPixmap( LXDG::findIcon("battery-080", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-80", "battery-080").pixmap(label->size()) ); break; case 4: - label->setPixmap( LXDG::findIcon("battery-100", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-100", "battery").pixmap(label->size()) ); break; case 10: - label->setPixmap( LXDG::findIcon("battery-charging-caution", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-charging-20", "battery-charging-caution").pixmap(label->size()) ); break; case 11: - label->setPixmap( LXDG::findIcon("battery-charging-040", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-charging-040", "battery-charging-040").pixmap(label->size()) ); break; case 12: - label->setPixmap( LXDG::findIcon("battery-charging-060", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-charging-060", "battery-charging-060").pixmap(label->size()) ); break; case 13: - label->setPixmap( LXDG::findIcon("battery-charging-080", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-charging-080", "battery-charging-080").pixmap(label->size()) ); break; case 14: - label->setPixmap( LXDG::findIcon("battery-charging", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-charging-100", "battery-charging").pixmap(label->size()) ); break; default: - label->setPixmap( LXDG::findIcon("battery-missing", "").pixmap(label->size()) ); + label->setPixmap( LXDG::findIcon("battery-unknown", "battery-missing").pixmap(label->size()) ); break; } if(icon<iconOld && icon==0){ diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp index d05ba22f..4e6055d6 100644 --- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp +++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp @@ -489,10 +489,10 @@ void StartMenu::on_stackedWidget_currentChanged(int val){ //Battery available - update the status button int charge = LOS::batteryCharge(); QString TT, ICON; - if(charge<=5){ ICON="-caution"; } - else if(charge<=20){ ICON="-040"; } - else if(charge<=70){ ICON="-060"; } - else if(charge<=90){ ICON="-080"; } + if(charge<=5){ ICON="-20"; } + else if(charge<=20){ ICON="-40"; } + else if(charge<=70){ ICON="-60"; } + else if(charge<=90){ ICON="-80"; } else{ ICON="-100"; } if(LOS::batteryIsCharging()){ if(charge>=80){ ICON.clear(); } //for charging, there is no suffix to the icon name over 80% |