@@ -44,10 +44,12 @@ class GridLayout(displayio.Group):
4444 lines above. Row indexes are 0 based.
4545 :param Union[tuple, list] v_divider_line_cols: Column indexes to draw divider
4646 lines before. Column indexes are 0 based.
47+ :param divider_line_color: The color of the divider lines (in hexadecimal)
4748
4849 """
4950
5051 # pylint: disable=too-many-arguments
52+ # pylint: disable=too-many-instance-attributes
5153 def __init__ (
5254 self ,
5355 x ,
@@ -59,6 +61,7 @@ def __init__(
5961 divider_lines = False ,
6062 h_divider_line_rows = None ,
6163 v_divider_line_cols = None ,
64+ divider_line_color = 0xFFFFFF ,
6265 ):
6366 super ().__init__ (x = x , y = y )
6467 self .x = x
@@ -70,6 +73,7 @@ def __init__(
7073 self ._cell_content_list = []
7174
7275 self ._divider_lines = []
76+ self ._divider_color = divider_line_color
7377 self .h_divider_line_rows = h_divider_line_rows
7478 self .v_divider_line_cols = v_divider_line_cols
7579
@@ -164,8 +168,8 @@ def _layout_cells(self):
164168
165169 if self ._divider_lines_enabled :
166170 palette = displayio .Palette (2 )
167- palette [0 ] = 0xFFFFFF
168- palette [1 ] = 0xFFFFFF
171+ palette [0 ] = self . _divider_color
172+ palette [1 ] = self . _divider_color
169173
170174 if not hasattr (cell ["content" ], "anchor_point" ):
171175 _bottom_line_loc_y = (
0 commit comments