A theme file as listThemes() or inspect() read it, without applying it.
More...
#include <aurore/core/theme.hpp>
|
| struct | Preview |
| | A few colours to show it in a picker, per variant it styles. More...
|
| |
A theme file as listThemes() or inspect() read it, without applying it.
◆ background()
◆ decor()
◆ ok()
| bool aurore::ThemeInfo::ok |
( |
| ) |
const |
|
inline |
Whether it was read without errors.
◆ pictures()
◆ styles()
| bool aurore::ThemeInfo::styles |
( |
ThemeVariant |
variant | ) |
const |
|
inline |
Whether it styles variant.
◆ variant()
The variant to show it in when it styles one only.
◆ author
| std::string aurore::ThemeInfo::author |
◆ backgroundImage
| std::string aurore::ThemeInfo::backgroundImage |
Its background_image: the dark variant's, else the light one's; "" without one (each variant's below)
◆ counterpart
| std::string aurore::ThemeInfo::counterpart |
For a file that styles one variant, the theme file of the other one (counterpart, as given to loadFile; "" without one): what a picker switches to when the other variant is asked for.
◆ dark
| bool aurore::ThemeInfo::dark = false |
◆ darkBackground
◆ darkDecor
◆ darkPictures
◆ darkPreview
| Preview aurore::ThemeInfo::darkPreview {} |
◆ description
| std::string aurore::ThemeInfo::description |
◆ errors
| std::vector<std::string> aurore::ThemeInfo::errors |
"line 4: #12 is not a colour"…: lines skipped, files not found.
◆ icon
| std::string aurore::ThemeInfo::icon |
Its icon, the Cadran icon a picker shows it with ("snowflake"...), "" without one
◆ id
| std::string aurore::ThemeInfo::id |
the file's name without its extension
◆ light
| bool aurore::ThemeInfo::light = false |
The variants it styles: one when it inherits light or dark, both when it has [light] and [dark] (it then follows the system's mode).
◆ lightBackground
Each variant's background (image, fit, dim, surface opacity)
◆ lightDecor
Each variant's decorations (backdrops, strips, particles)
◆ lightPictures
Each variant's logo, icons, preview and image slots' pictures.
◆ lightPreview
| Preview aurore::ThemeInfo::lightPreview {} |
◆ name
| std::string aurore::ThemeInfo::name |
◆ path
| std::string aurore::ThemeInfo::path |
as given to loadFile(); "builtin:<id>" for a preset
◆ version
| std::string aurore::ThemeInfo::version |
◆ warnings
| std::vector<std::string> aurore::ThemeInfo::warnings |
Unknown keys and text that reads badly on its background. Text on a background picture is checked only when the picture's colour is known: from an explicit check (inspect or listThemes with decodePictures), or once the picture was loaded in this run; a plain listing never decodes.
The documentation for this struct was generated from the following file: