Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
ui::Prefs Struct Reference

#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"
 

Detailed Description

What the user chose for Cadran's look. The app keeps it in its settings and hands it over with use_prefs().

Member Data Documentation

◆ effects

std::string ui::Prefs::effects = "auto"

one of EFFECTS: "auto", lighter on battery

◆ glow

bool ui::Prefs::glow = true

the Cadran screens' background glow

◆ language

std::string ui::Prefs::language = "system"

"system" or one of LANGUAGES

◆ rail

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.

◆ text_size

std::string ui::Prefs::text_size = "auto"

one of TEXT_SIZES: "auto", larger on a TV

◆ theme

std::string ui::Prefs::theme = "dark"

one of THEMES: the light or dark variant

◆ theme_file

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.


The documentation for this struct was generated from the following file: