diff --git a/kcmkwin/kwincompositing/model.h b/kcmkwin/kwincompositing/model.h index 54b28c0ac6..7807a97e2d 100644 --- a/kcmkwin/kwincompositing/model.h +++ b/kcmkwin/kwincompositing/model.h @@ -128,6 +128,7 @@ class EffectFilterModel : public QSortFilterProxyModel Q_PROPERTY(QColor backgroundActiveColor READ backgroundActiveColor CONSTANT); Q_PROPERTY(QColor backgroundNormalColor READ backgroundNormalColor CONSTANT); Q_PROPERTY(QColor backgroundAlternateColor READ backgroundAlternateColor CONSTANT); + Q_PROPERTY(QColor sectionColor READ sectionColor CONSTANT) public: EffectFilterModel(QObject *parent = 0); const QString &filter() const; @@ -141,6 +142,12 @@ public: QColor backgroundNormalColor() { return KColorScheme(QPalette::Active, KColorScheme::View, KSharedConfigPtr(0)).background(KColorScheme::NormalBackground).color(); }; QColor backgroundAlternateColor() { return KColorScheme(QPalette::Active, KColorScheme::View, KSharedConfigPtr(0)).background(KColorScheme::AlternateBackground).color(); }; + QColor sectionColor() const { + QColor color = KColorScheme(QPalette::Active).foreground().color(); + color.setAlphaF(0.6); + return color; + } + void defaults(); public Q_SLOTS: diff --git a/kcmkwin/kwincompositing/qml/EffectView.qml b/kcmkwin/kwincompositing/qml/EffectView.qml index e935089de8..f58b41e841 100644 --- a/kcmkwin/kwincompositing/qml/EffectView.qml +++ b/kcmkwin/kwincompositing/qml/EffectView.qml @@ -31,14 +31,17 @@ Item { id: sectionHeading Rectangle { width: parent.width - height:25 - color: "white" + implicitHeight: sectionText.implicitHeight + 2 * col.spacing + color: searchModel.backgroundNormalColor Text { + id: sectionText + x: col.spacing + y: col.spacing text: section font.bold: true - font.pointSize: 16 - color: "gray" + color: searchModel.sectionColor + anchors.horizontalCenter: parent.horizontalCenter } } }