File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
adafruit_displayio_layout/layouts Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ def __init__(
59
59
divider_lines = False ,
60
60
h_divider_line_rows = None ,
61
61
v_divider_line_cols = None ,
62
+ divider_line_color = 0xFFFFFF ,
62
63
):
63
64
super ().__init__ (x = x , y = y )
64
65
self .x = x
@@ -70,6 +71,7 @@ def __init__(
70
71
self ._cell_content_list = []
71
72
72
73
self ._divider_lines = []
74
+ self ._divider_color = divider_line_color
73
75
self .h_divider_line_rows = h_divider_line_rows
74
76
self .v_divider_line_cols = v_divider_line_cols
75
77
@@ -164,8 +166,8 @@ def _layout_cells(self):
164
166
165
167
if self ._divider_lines_enabled :
166
168
palette = displayio .Palette (2 )
167
- palette [0 ] = 0xFFFFFF
168
- palette [1 ] = 0xFFFFFF
169
+ palette [0 ] = self . _divider_color
170
+ palette [1 ] = self . _divider_color
169
171
170
172
if not hasattr (cell ["content" ], "anchor_point" ):
171
173
_bottom_line_loc_y = (
You can’t perform that action at this time.
0 commit comments