|
Aurore
A Switch-like interface for your app, on every screen
|
Functions | |
| void | start () |
| void | apply_theme () |
| std::string | locale () |
| The language the strings are in now: the preferences', or the console's. | |
| void | language_changed () |
| void live_prefs::apply_theme | ( | ) |
The theme in the preferences: its variant (ui::Prefs::theme) and its file (ui::Prefs::theme_file), the boards' palettes when it cannot be read. The screens take it at their next frame.
| void live_prefs::language_changed | ( | ) |
After the preferences' language changed: applied, and the screens built again (ui::hooks' push_main; without it, the screen shown is read again).
| std::string live_prefs::locale | ( | ) |
The language the strings are in now: the preferences', or the console's.
| void live_prefs::start | ( | ) |
Right after Aurore starts, which reads the console's own theme and language (what "system" means): those kept, and the strings loaded in the preferences' language.