Skip to content

Commit 058ea73

Browse files
fix(main_menu): improve accessibility of main menu buttons
1 parent 7907ec7 commit 058ea73

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

game/main_menu.rpy

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,21 @@ screen main_menu():
7070
xalign 0.5
7171
yalign 0.75
7272

73-
textbutton "PLAY":
74-
action Start()
75-
style "menu_button"
76-
activate_sound "ui/click.ogg"
77-
hover_sound "ui/mouserelease1.ogg"
78-
79-
textbutton "LOAD":
80-
action ShowMenu("load")
81-
style "menu_button"
82-
activate_sound "ui/click.ogg"
83-
hover_sound "ui/mouserelease1.ogg"
73+
frame:
74+
background Solid((0, 0, 0, 100))
75+
textbutton "PLAY":
76+
action Start()
77+
activate_sound "ui/click.ogg"
78+
hover_sound "ui/mouserelease1.ogg"
79+
text_hover_color "#aac3b8"
80+
81+
frame:
82+
background Solid((0, 0, 0, 100))
83+
textbutton "LOAD":
84+
action ShowMenu("load")
85+
activate_sound "ui/click.ogg"
86+
hover_sound "ui/mouserelease1.ogg"
87+
text_hover_color "#aac3b8"
8488

8589
# TODO: Settings button in corner
8690
# imagebutton:
@@ -91,11 +95,3 @@ screen main_menu():
9195
# yalign 0.95
9296
# xsize 80
9397
# ysize 80
94-
95-
style menu_button is default:
96-
size 30
97-
color "#FFFFFF"
98-
hover_color "#000000"
99-
xpadding 20
100-
ypadding 10
101-
background None

0 commit comments

Comments
 (0)