Skip to content

Commit

Permalink
Merge pull request #843 from MrServo/master
Browse files Browse the repository at this point in the history
[LCD4linux] v5.0-r25 tiny code improvement
  • Loading branch information
mike-99 authored Feb 9, 2025
2 parents 2958465 + c774786 commit 45b4cd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions LCD4linux/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12521,8 +12521,7 @@ def putProgress(workaround, draw, im):
self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor)
else:
self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor, fill=ConfigColorBG)
elif ConfigBorder.startswith("false"):
if ConfigColorBG != "0":
elif ConfigBorder.startswith("false") and ConfigColorBG != "0": # no border, but show background (if not transparent)
self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + ProgressBar + 10, ConfigPos + ConfigSize), fill=ConfigColorBG)
elif ConfigBorder == "line":
self.draw[draw].rectangle((POSX + 10, ConfigPos + int(ConfigSize / 2) - 1, POSX + ProgressBar + 10, ConfigPos + int(ConfigSize / 2) + 1), outline=ConfigColor, fill=ConfigColor)
Expand Down

0 comments on commit 45b4cd1

Please sign in to comment.