Skip to content

Commit

Permalink
Removed odd battery icons for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 20, 2024
1 parent ec6a9d5 commit ebee6cf
Show file tree
Hide file tree
Showing 16 changed files with 5 additions and 20 deletions.
Binary file removed src/Resources/icons/battery-010-dark.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-010-light.png
Binary file not shown.
Binary file modified src/Resources/icons/battery-020-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/Resources/icons/battery-020-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Resources/icons/battery-030-dark.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-030-light.png
Binary file not shown.
Binary file modified src/Resources/icons/battery-040-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/Resources/icons/battery-040-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Resources/icons/battery-050-dark.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-050-light.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-070-dark.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-070-light.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-090-dark.png
Binary file not shown.
Binary file removed src/Resources/icons/battery-090-light.png
Binary file not shown.
10 changes: 0 additions & 10 deletions src/Resources/resources.qrc
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
<RCC>
<qresource prefix="/">
<file>icons/battery-010-dark.png</file>
<file>icons/battery-020-dark.png</file>
<file>icons/battery-030-dark.png</file>
<file>icons/battery-040-dark.png</file>
<file>icons/battery-050-dark.png</file>
<file>icons/battery-060-dark.png</file>
<file>icons/battery-070-dark.png</file>
<file>icons/battery-080-dark.png</file>
<file>icons/battery-090-dark.png</file>
<file>icons/battery-100-dark.png</file>
<file>icons/battery-100-charging-dark.png</file>
<file>icons/battery-missing-dark.png</file>
<file>icons/battery-010-light.png</file>
<file>icons/battery-020-light.png</file>
<file>icons/battery-030-light.png</file>
<file>icons/battery-040-light.png</file>
<file>icons/battery-050-light.png</file>
<file>icons/battery-060-light.png</file>
<file>icons/battery-070-light.png</file>
<file>icons/battery-080-light.png</file>
<file>icons/battery-090-light.png</file>
<file>icons/battery-100-light.png</file>
<file>icons/battery-100-charging-light.png</file>
<file>icons/battery-missing-light.png</file>
Expand Down
15 changes: 5 additions & 10 deletions src/Utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,11 @@ QString getBatteryIcon(int batteryLevel, bool charging, bool missing, int themeI
} else if (charging) {
iconName = "battery-100-charging-" + theme;
} else {
if (batteryLevel >= 90) iconName = "battery-100-" + theme;
else if (batteryLevel >= 80) iconName = "battery-090-" + theme;
else if (batteryLevel >= 70) iconName = "battery-080-" + theme;
else if (batteryLevel >= 60) iconName = "battery-070-" + theme;
else if (batteryLevel >= 50) iconName = "battery-060-" + theme;
else if (batteryLevel >= 40) iconName = "battery-050-" + theme;
else if (batteryLevel >= 30) iconName = "battery-040-" + theme;
else if (batteryLevel >= 20) iconName = "battery-030-" + theme;
else if (batteryLevel >= 10) iconName = "battery-020-" + theme;
else iconName = "battery-010-" + theme;
if (batteryLevel >= 80) iconName = "battery-100-" + theme;
else if (batteryLevel >= 60) iconName = "battery-080-" + theme;
else if (batteryLevel >= 40) iconName = "battery-060-" + theme;
else if (batteryLevel >= 20) iconName = "battery-040-" + theme;
else if (batteryLevel >= 0) iconName = "battery-020-" + theme;
}

QString iconPath;
Expand Down

0 comments on commit ebee6cf

Please sign in to comment.