Skip to content

Commit bf7ac93

Browse files
MrServoHains
authored andcommitted
[LCD4linux] v5.0-r25 tiny code improvement
1 parent 12e33ff commit bf7ac93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lcd4linux/src/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12502,8 +12502,7 @@ 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-
if ConfigColorBG != "0":
12505+
elif ConfigBorder.startswith("false") and ConfigColorBG != "0": # no border, but show background (if not transparent)
1250712506
self.draw[draw].rectangle((POSX + 10, ConfigPos, POSX + ProgressBar + 10, ConfigPos + ConfigSize), fill=ConfigColorBG)
1250812507
elif ConfigBorder == "line":
1250912508
self.draw[draw].rectangle((POSX + 10, ConfigPos + int(ConfigSize / 2) - 1, POSX + ProgressBar + 10, ConfigPos + int(ConfigSize / 2) + 1), outline=ConfigColor, fill=ConfigColor)

0 commit comments

Comments
 (0)