Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
live_prefs Namespace Reference

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 ()
 

Function Documentation

◆ apply_theme()

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.

◆ language_changed()

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).

◆ locale()

std::string live_prefs::locale ( )

The language the strings are in now: the preferences', or the console's.

◆ start()

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.