Skip to content

Commit 764918a

Browse files
MrServoHains
authored andcommitted
[LCD4linux] v5.0-r25 improvement: progress bar without frame
HINT: **LCD4linux** is still working under Python2 and Python3
1 parent 33f6732 commit 764918a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lcd4linux/src/plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12502,6 +12502,8 @@ def putProgress(workaround, draw, im):
1250212502
self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor)
1250312503
else:
1250412504
self.draw[draw].rectangle((POSX + 10, ConfigPos + 1, POSX + ProgressBar + 10, ConfigPos + ConfigSize - 1), outline=ConfigColor, fill=ConfigColorBG)
12505+
elif ConfigBorder.startswith("false"):
12506+
self.draw[draw].rectangle((POSX + 9, ConfigPos, POSX + ProgressBar + 11, ConfigPos + ConfigSize), fill=ConfigColorBG)
1250512507
elif ConfigBorder == "line":
1250612508
self.draw[draw].rectangle((POSX + 10, ConfigPos + int(ConfigSize / 2) - 1, POSX + ProgressBar + 10, ConfigPos + int(ConfigSize / 2) + 1), outline=ConfigColor, fill=ConfigColor)
1250712509
self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + event_run + 10, ConfigPos + ConfigSize), fill=ConfigColor)

0 commit comments

Comments
 (0)