|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/cadran/ui/prefs.hpp>
Public Attributes | |
| std::string | language = "system" |
| "system" or one of LANGUAGES | |
| std::string | theme = "dark" |
| std::string | theme_file |
| std::string | text_size = "auto" |
| one of TEXT_SIZES: "auto", larger on a TV | |
| std::string | effects = "auto" |
| one of EFFECTS: "auto", lighter on battery | |
| bool | glow = true |
| std::string | rail = "auto" |
What the user chose for Cadran's look. The app keeps it in its settings and hands it over with use_prefs().
| std::string ui::Prefs::effects = "auto" |
one of EFFECTS: "auto", lighter on battery
| bool ui::Prefs::glow = true |
the Cadran screens' background glow
| std::string ui::Prefs::language = "system" |
"system" or one of LANGUAGES
| std::string ui::Prefs::rail = "auto" |
The main screen's sidebar: "auto" (on its icons while a tab has the focus, open over the tab while the focus is on it), "open" (always) or "icons" (always on its icons). cadran::apply_rail() after a change.
| std::string ui::Prefs::text_size = "auto" |
one of TEXT_SIZES: "auto", larger on a TV
| std::string ui::Prefs::theme = "dark" |
one of THEMES: the light or dark variant
| std::string ui::Prefs::theme_file |
A theme file over the boards' palettes (aurore::Theme::loadFile: a preset "builtin:<id>" or a file of the app's themes folder, ui::hooks' themes_dir); "" for the boards' own. A file that styles one variant only takes it, whatever theme says.