first, I changed some stuff so the gui could be controlled by just a few variables:
gui.rpy
Code: Select all
default persistent.text_color = "#000"
default persistent.menu_color = "#6cce6f"
default persistent.background = "#fff"
## The colors used for dialogue and menu choice text.
define gui.interface_text_color = persistent.menu_color
define gui.text_color = persistent.text_color
## The images used for the main and game menus.
define gui.main_menu_background = persistent.background
define gui.game_menu_background = persistent.background
Code: Select all
style nvl_window:
background persistent.background
style main_menu_frame:
background persistent.background
Code: Select all
screen preferences():
tag menu
use game_menu(_("Preferences"), scroll="viewport"):
vbox:
hbox:
box_wrap True
...
vbox:
style_prefix "radio"
label _("Theme")
textbutton _("Light") action [ SetField(persistent, 'background', "#fff"), SetField(persistent, 'text_color', "#000") ]
textbutton _("Dark") action [ SetField(persistent, 'background', "#000"), SetField(persistent, 'text_color', "#fff") ]
(I also found something about Style Preferences, but I think it might be outdated - either that or I didn't implement it properly.)