|
SILICON
|
#include <filesystem>#include <functional>#include <optional>#include <QSettings>#include <QString>#include <QStyleHints>#include <QVariant>#include <ui/shell/theme.hpp>Go to the source code of this file.
Classes | |
| struct | Definition |
| Describes a persisted setting entry. More... | |
| struct | CommonSettingsValues |
| Snapshot of the common application settings used at runtime. More... | |
| class | SiliconSettings |
| QSettings wrapper configured to read and write SILICON TOML settings files. More... | |
Namespaces | |
| namespace | SILICON |
| namespace | SILICON::ui |
| namespace | SILICON::ui::settings |
Typedefs | |
| using | DefaultProvider = std::function<std::optional<QVariant>()> |
Functions | |
| std::optional< QVariant > | systemThemeDefault () |
| QVariant | value (const QSettings &settings, const Definition &setting) |
| Reads a setting value, falling back to its declared default when unset. | |
| CommonSettingsValues | readCommonSettings (const QSettings &settings) |
| Reads the common UI and simulation settings into a typed snapshot. | |
| SILICON::ui::theme::Mode | themeModeFromText (const QString &value) |
| Converts a persisted theme string into a theme engine mode. | |
Variables | |
| constexpr auto | LIGHT_THEME = "light" |
| constexpr auto | DARK_THEME = "dark" |
| const Definition | Theme |
| const Definition | MaxSimulationSteps |
| const Definition | MaxTransitionsPerDeltaCycle |