You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Connect4: fix contrast issue
This commit is contained in:
@@ -157,7 +157,8 @@ class Connect4(Activity):
|
||||
|
||||
def focus_column(self, column_btn):
|
||||
"""Highlight column when focused"""
|
||||
column_btn.set_style_border_color(lv.theme_get_color_primary(None), lv.PART.MAIN)
|
||||
# Use white for focus border to contrast with blue board
|
||||
column_btn.set_style_border_color(lv.color_hex(0xFFFFFF), lv.PART.MAIN)
|
||||
column_btn.set_style_border_width(3, lv.PART.MAIN)
|
||||
|
||||
def defocus_column(self, column_btn):
|
||||
|
||||
Reference in New Issue
Block a user