Skip to content

Commit

Permalink
[LCD4linux] v5.0-r25 improvement: progress bar without frame
Browse files Browse the repository at this point in the history
HINT: **LCD4linux** is still working under Python2 and Python3
  • Loading branch information
MrServo authored and Hains committed Feb 8, 2025
1 parent 33f6732 commit 764918a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lcd4linux/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12502,6 +12502,8 @@ 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"):
self.draw[draw].rectangle((POSX + 9, ConfigPos, POSX + ProgressBar + 11, 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)
self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + event_run + 10, ConfigPos + ConfigSize), fill=ConfigColor)
Expand Down

0 comments on commit 764918a

Please sign in to comment.