Skip to content

Commit d188123

Browse files
committed
don't use bitmap background for the info label
1 parent d15e57a commit d188123

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CLUE_Sensor_Plotter/plotter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,10 @@ def info(self, value):
782782
self._displayio_info = Label(self._font, text=value,
783783
line_spacing=line_spacing,
784784
scale=font_scale,
785-
background_color=self.INFO_FG_COLOR,
785+
background_color=None,
786786
color=self.INFO_BG_COLOR)
787+
self._displayio_info.palette[0] = self.INFO_FG_COLOR
788+
self._displayio_info.palette.make_opaque(0)
787789
# centre the (left justified) text
788790
self._displayio_info.x = (self._screen_width
789791
- font_scale * font_w * max_word_chars) // 2
@@ -868,4 +870,4 @@ def y_range_lock(self):
868870

869871
@y_range_lock.setter
870872
def y_range_lock(self, value):
871-
self._plot_range_lock = value
873+
self._plot_range_lock = value

0 commit comments

Comments
 (0)