Changeset View
Changeset View
Standalone View
Standalone View
src/appearencegtk.h
Show All 35 Lines | |||||
36 | class AppearenceGTK | 36 | class AppearenceGTK | ||
37 | { | 37 | { | ||
38 | public: | 38 | public: | ||
39 | AppearenceGTK(); | 39 | AppearenceGTK(); | ||
40 | ~AppearenceGTK(); | 40 | ~AppearenceGTK(); | ||
41 | 41 | | |||
42 | void setTheme(const QString &); | 42 | void setTheme(const QString &); | ||
43 | void setThemeGtk3(const QString &theme); | 43 | void setThemeGtk3(const QString &theme); | ||
44 | void setApplicationPreferDarkTheme(bool enable); | | |||
45 | 44 | | |||
46 | QString getTheme() const; | 45 | QString getTheme() const; | ||
47 | QString getThemeGtk3() const; | 46 | QString getThemeGtk3() const; | ||
48 | bool getApplicationPreferDarkTheme() const; | | |||
49 | 47 | | |||
50 | bool loadFileConfig(); | 48 | bool loadFileConfig(); | ||
51 | bool saveFileConfig(); | 49 | bool saveFileConfig(); | ||
52 | 50 | | |||
53 | AbstractAppearance* gtk2Appearance() const { return m_app.first(); } | 51 | AbstractAppearance* gtk2Appearance() const { return m_app.first(); } | ||
54 | AbstractAppearance* gtk3Appearance() const { return m_app.last(); } | 52 | AbstractAppearance* gtk3Appearance() const { return m_app.last(); } | ||
55 | private: | 53 | private: | ||
56 | QVector<AbstractAppearance*> m_app; | 54 | QVector<AbstractAppearance*> m_app; | ||
57 | }; | 55 | }; | ||
58 | 56 | | |||
59 | #endif // APARIENCIAGTK_H | 57 | #endif // APARIENCIAGTK_H |