Skip to content

Commit 5e6482c

Browse files
Connect4: fix contrast issue
1 parent e68ad89 commit 5e6482c

File tree

1 file changed

+2
-1
lines changed
  • internal_filesystem/apps/com.micropythonos.connect4/assets

1 file changed

+2
-1
lines changed

internal_filesystem/apps/com.micropythonos.connect4/assets/connect4.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def onResume(self, screen):
157157

158158
def focus_column(self, column_btn):
159159
"""Highlight column when focused"""
160-
column_btn.set_style_border_color(lv.theme_get_color_primary(None), lv.PART.MAIN)
160+
# Use white for focus border to contrast with blue board
161+
column_btn.set_style_border_color(lv.color_hex(0xFFFFFF), lv.PART.MAIN)
161162
column_btn.set_style_border_width(3, lv.PART.MAIN)
162163

163164
def defocus_column(self, column_btn):

0 commit comments

Comments
 (0)