Fix mobile quick buttons not having alternate actions, incidentally fixing the gallery on mobile.

Fix mobile gallery quick buttons not having translatable text
This commit is contained in:
Map 2024-10-13 09:26:58 -05:00
parent 213adc1d8d
commit c52200e989
2 changed files with 4 additions and 3 deletions

View file

@ -1773,12 +1773,13 @@ style pref_vbox:
## that uses fewer and bigger buttons that are easier to touch. ## that uses fewer and bigger buttons that are easier to touch.
#redefine function #redefine function
screen quick_button(filename, label, function): screen quick_button(filename, label, function=NullAction(), function2=NullAction()):
variant "mobile" variant "mobile"
button: button:
xmaximum 124 xmaximum 124
ymaximum 124 ymaximum 124
action function action function
alternate function2
fixed: fixed:
add filename xalign 0.5 yalign 0.5 zoom 1.75 add filename xalign 0.5 yalign 0.5 zoom 1.75
text label xalign 0.5 yalign 0.5 size 42 style "quick_button_text" text label xalign 0.5 yalign 0.5 size 42 style "quick_button_text"

View file

@ -197,7 +197,7 @@ screen view_movie(item, _origin):
yalign 0.975 yalign 0.975
use quick_buttons("gui/button/uioptionbuttons/template_idle.png", use quick_buttons("gui/button/uioptionbuttons/template_idle.png",
[ [
[ "Return", _origin ] [ _("Return"), _origin, NullAction() ]
] ) ] )
@ -229,6 +229,6 @@ screen view_image(item, _origin):
yalign 0.975 yalign 0.975
use quick_buttons("gui/button/uioptionbuttons/template_idle.png", use quick_buttons("gui/button/uioptionbuttons/template_idle.png",
[ [
[ "Return", _origin ] [ _("Return"), _origin, NullAction() ]
] ) ] )