add min brightness

This commit is contained in:
joBr99
2022-03-25 15:46:03 +01:00
parent 9002fa3ee7
commit 82418043d2
2 changed files with 2 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ class LuiPagesGen(object):
color = rgb_brightness(color, attr.brightness) color = rgb_brightness(color, attr.brightness)
icon_color = rgb_dec565(color) icon_color = rgb_dec565(color)
elif "brightness" in attr: elif "brightness" in attr:
color = rgb_brightness([253, 216, 53], attr.brightness) color = rgb_brightness([253, 216, 53], max(70, attr.brightness))
icon_color = rgb_dec565(color) icon_color = rgb_dec565(color)
return icon_color return icon_color