Skip to content

Commit

Permalink
Add quarter battery icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aonemd committed Jan 29, 2018
1 parent 3383b05 commit 04b6c9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/battery_level.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ const (
critical_level = 10

charging_icon = ""
full_icon = " "
full_icon = ""
three_quarter_icon = ""
half_icon = ""
quarter_icon = ""
empty_icon = ""
)

Expand All @@ -39,6 +40,8 @@ func main() {
case "Discharging":
if power <= critical_level {
icon = empty_icon
} else if power <= 25 {
icon = quarter_icon
} else if power <= 50 {
icon = half_icon
} else if power <= 75 {
Expand Down

0 comments on commit 04b6c9e

Please sign in to comment.