Skip to content

Commit 4d65e55

Browse files
committed
fix constructor for visible black background color
1 parent 0fe25b5 commit 4d65e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, font, *, x=0, y=0, text=None, max_glyphs=None, color=0xffffff
7272

7373
self.palette = displayio.Palette(2)
7474
if background_color or background_color == 0x000000:
75-
self.palette[0] = new_color
75+
self.palette[0] = background_color
7676
self.palette.make_opaque(0)
7777
self._transparent_background = False
7878
else:

0 commit comments

Comments
 (0)