Changeset View
Changeset View
Standalone View
Standalone View
gemini/Theme.h
Show All 16 Lines | |||||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef THEME_H | 20 | #ifndef THEME_H | ||
21 | #define THEME_H | 21 | #define THEME_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | #include <QVariantMap> | 24 | #include <QVariantMap> | ||
25 | #include <QIcon> | ||||
25 | 26 | | |||
26 | class Theme : public QObject | 27 | class Theme : public QObject | ||
27 | { | 28 | { | ||
28 | Q_OBJECT | 29 | Q_OBJECT | ||
29 | /** | 30 | /** | ||
30 | * \property id | 31 | * \property id | ||
31 | * \brief | 32 | * \brief | ||
32 | * | 33 | * | ||
▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Line(s) | 125 | public: | |||
217 | * Get a single size value from the theme. | 218 | * Get a single size value from the theme. | ||
218 | */ | 219 | */ | ||
219 | Q_INVOKABLE float size(const QString& name); | 220 | Q_INVOKABLE float size(const QString& name); | ||
220 | /** | 221 | /** | ||
221 | * Get an icon from the theme. | 222 | * Get an icon from the theme. | ||
222 | */ | 223 | */ | ||
223 | Q_INVOKABLE QUrl icon(const QString& name, bool useSystemFallback = false); | 224 | Q_INVOKABLE QUrl icon(const QString& name, bool useSystemFallback = false); | ||
224 | /** | 225 | /** | ||
226 | * Get an icon from the theme. | ||||
227 | */ | ||||
228 | Q_INVOKABLE QIcon iconActual(const QString& name); | ||||
229 | /** | ||||
225 | * Get a font from the theme. | 230 | * Get a font from the theme. | ||
226 | */ | 231 | */ | ||
227 | Q_INVOKABLE QFont font(const QString& name); | 232 | Q_INVOKABLE QFont font(const QString& name); | ||
228 | /** | 233 | /** | ||
229 | * Get an image from the theme. | 234 | * Get an image from the theme. | ||
230 | */ | 235 | */ | ||
231 | Q_INVOKABLE QUrl image(const QString& name); | 236 | Q_INVOKABLE QUrl image(const QString& name); | ||
232 | /** | 237 | /** | ||
Show All 28 Lines |