Struct · ui

ui::Prefs

On this page
aurore/cadran/ui/prefs.hpp
#include <aurore/cadran/ui/prefs.hpp>

struct ui::Prefs

Description

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

Attributes 8

std::string language = "system"

"system" or one of LANGUAGES

prefs.hpp:18
std::string theme = "dark"

one of THEMES: the light or dark variant

prefs.hpp:19
std::string 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.

prefs.hpp:24
std::string text_size = "auto"

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

prefs.hpp:25
std::string effects = "auto"

one of EFFECTS: "auto", lighter on battery

prefs.hpp:26
std::string density = "auto"

One of DENSITIES: how close the screens' pieces stand (the text keeps its size). "auto": dense on a compact screen, the app's own elsewhere.

prefs.hpp:29
bool glow = true

the Cadran screens' background glow

prefs.hpp:30
std::string 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.

prefs.hpp:34

Read from Aurore's headers by Doxygen at each build · library/include