1#ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_THEME_HPP
2#define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_THEME_HPP
4#include "internal/common.hpp"
9#include <cutehmi/Singleton.hpp>
27#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
28 QML_NAMED_ELEMENT(
Theme)
29 QML_UNCREATABLE(
"Theme is a singleton")
37 Q_PROPERTY(
cutehmi::gui::Palette * palette READ palette WRITE setPalette NOTIFY paletteChanged RESET resetPalette)
39 Q_PROPERTY(
cutehmi::gui::Units * units READ units WRITE setUnits NOTIFY unitsChanged RESET resetUnits)
41 Q_PROPERTY(
cutehmi::gui::Fonts * fonts READ fonts WRITE setFonts NOTIFY fontsChanged RESET resetFonts)
55 void setPalette(
Palette * palette);
59 Units * units()
const;
61 void setUnits(
Units * units);
65 Fonts * fonts()
const;
67 void setFonts(
Fonts * fonts);
81 static Palette & DefaultPalette();
83 static Units & DefaultUnits();
85 static Fonts & DefaultFonts();
88 void establishFontBindings();
97 palette(& DefaultPalette()),
98 units(& DefaultUnits()),
99 fonts(& DefaultFonts())
Palette.
Definition: Palette.hpp:22
Theme.
Definition: Theme.hpp:24
Unit.
Definition: Units.hpp:17