Changeset View
Changeset View
Standalone View
Standalone View
src/libkirigami/platformtheme.h
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Line(s) | 156 | public: | |||
---|---|---|---|---|---|
209 | QFont defaultFont() const; | 209 | QFont defaultFont() const; | ||
210 | 210 | | |||
211 | //this may is used by the desktop QQC2 to set the styleoption palettes | 211 | //this may is used by the desktop QQC2 to set the styleoption palettes | ||
212 | QPalette palette() const; | 212 | QPalette palette() const; | ||
213 | 213 | | |||
214 | //this will be used by desktopicon to fetch icons with KIconLoader | 214 | //this will be used by desktopicon to fetch icons with KIconLoader | ||
215 | virtual Q_INVOKABLE QIcon iconFromTheme(const QString &name, const QColor &customColor = Qt::transparent); | 215 | virtual Q_INVOKABLE QIcon iconFromTheme(const QString &name, const QColor &customColor = Qt::transparent); | ||
216 | 216 | | |||
217 | bool supportsIconColoring() const; | ||||
218 | | ||||
217 | //foreground colors | 219 | //foreground colors | ||
218 | void setCustomTextColor(const QColor &color = QColor()); | 220 | void setCustomTextColor(const QColor &color = QColor()); | ||
219 | void setCustomDisabledTextColor(const QColor &color = QColor()); | 221 | void setCustomDisabledTextColor(const QColor &color = QColor()); | ||
220 | void setCustomHighlightedTextColor(const QColor &color = QColor()); | 222 | void setCustomHighlightedTextColor(const QColor &color = QColor()); | ||
221 | void setCustomActiveTextColor(const QColor &color = QColor()); | 223 | void setCustomActiveTextColor(const QColor &color = QColor()); | ||
222 | void setCustomLinkColor(const QColor &color = QColor()); | 224 | void setCustomLinkColor(const QColor &color = QColor()); | ||
223 | void setCustomVisitedLinkColor(const QColor &color = QColor()); | 225 | void setCustomVisitedLinkColor(const QColor &color = QColor()); | ||
224 | void setCustomNegativeTextColor(const QColor &color = QColor()); | 226 | void setCustomNegativeTextColor(const QColor &color = QColor()); | ||
Show All 16 Lines | 240 | Q_SIGNALS: | |||
241 | void defaultFontChanged(const QFont &font); | 243 | void defaultFontChanged(const QFont &font); | ||
242 | void colorSetChanged(Kirigami::PlatformTheme::ColorSet colorSet); | 244 | void colorSetChanged(Kirigami::PlatformTheme::ColorSet colorSet); | ||
243 | void colorGroupChanged(Kirigami::PlatformTheme::ColorGroup colorGroup); | 245 | void colorGroupChanged(Kirigami::PlatformTheme::ColorGroup colorGroup); | ||
244 | void paletteChanged(const QPalette &pal); | 246 | void paletteChanged(const QPalette &pal); | ||
245 | void inheritChanged(bool inherit); | 247 | void inheritChanged(bool inherit); | ||
246 | 248 | | |||
247 | protected: | 249 | protected: | ||
248 | //Setters, not accessible from QML but from implementations | 250 | //Setters, not accessible from QML but from implementations | ||
251 | void setSupportsIconColoring(bool support); | ||||
249 | 252 | | |||
250 | //foreground colors | 253 | //foreground colors | ||
251 | void setTextColor(const QColor &color); | 254 | void setTextColor(const QColor &color); | ||
252 | void setDisabledTextColor(const QColor &color); | 255 | void setDisabledTextColor(const QColor &color); | ||
253 | void setHighlightedTextColor(const QColor &color); | 256 | void setHighlightedTextColor(const QColor &color); | ||
254 | void setActiveTextColor(const QColor &color); | 257 | void setActiveTextColor(const QColor &color); | ||
255 | void setLinkColor(const QColor &color); | 258 | void setLinkColor(const QColor &color); | ||
256 | void setVisitedLinkColor(const QColor &color); | 259 | void setVisitedLinkColor(const QColor &color); | ||
Show All 25 Lines |