Skip to content

Commit ea0c3b3

Browse files
authored
Merge pull request #3207 from FoamyGuy/bitmap_label_updates
update for BitmapLabel color_palette argument handling
2 parents 0a896d8 + 3f5619d commit ea0c3b3

File tree

1 file changed

+3
-1
lines changed
  • MagTag/MagTag_Literature_Clock

1 file changed

+3
-1
lines changed

MagTag/MagTag_Literature_Clock/code.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,14 @@ def find_lines_to_show(all_lines, important_passage):
130130

131131
# Setup accent palette for the outlined text
132132
accent_palette = displayio.Palette(5)
133+
accent_palette[1] = 0x666666
133134
accent_palette[3] = 0x666666
134135
accent_palette[4] = 0xFFFFFF
136+
accent_palette.make_transparent(0)
135137

136138
# Setup BitmapLabel to show the quote
137139
quote_lbl = Label(
138-
terminalio.FONT, text="", color=0x666666, color_palette=accent_palette
140+
terminalio.FONT, text="", color_palette=accent_palette
139141
)
140142
quote_lbl.anchor_point = (0, 0)
141143
quote_lbl.anchored_position = (2, 2)

0 commit comments

Comments
 (0)