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>
30 Q_PROPERTY(
cutehmi::gui::Palette * palette READ palette WRITE setPalette NOTIFY paletteChanged RESET resetPalette)
32 Q_PROPERTY(
cutehmi::gui::
Units * units READ units WRITE setUnits NOTIFY unitsChanged RESET resetUnits)
34 Q_PROPERTY(
cutehmi::gui::
Fonts * fonts READ fonts WRITE setFonts NOTIFY fontsChanged RESET resetFonts)
38 void setPalette(
Palette * palette);
42 Units * units() const;
44 void setUnits(
Units * units);
48 Fonts * fonts() const;
50 void setFonts(
Fonts * fonts);
55 void paletteChanged();
64 static
Palette & DefaultPalette();
66 static
Units & DefaultUnits();
68 static
Fonts & DefaultFonts();
71 void establishFontBindings();
80 palette(& DefaultPalette()),
81 units(& DefaultUnits()),
82 fonts(& DefaultFonts())