Export highlight color as context property to decoration list

Ensures that decoration list uses the defined highlight color
instead of hardcoded value.
This commit is contained in:
Martin Gräßlin 2012-05-20 20:42:09 +02:00
parent 2cbe2226f8
commit 26ff05b4bd
2 changed files with 2 additions and 1 deletions

View file

@ -98,6 +98,7 @@ KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QVariantList &
}
m_ui->decorationList->rootContext()->setContextProperty("decorationModel", m_proxyModel);
m_ui->decorationList->rootContext()->setContextProperty("options", m_decorationButtons);
m_ui->decorationList->rootContext()->setContextProperty("highlightColor", m_ui->decorationList->palette().color(QPalette::Highlight));
m_ui->decorationList->rootContext()->setContextProperty("auroraeSource", KStandardDirs::locate("data", "kwin/aurorae/aurorae.qml"));
m_ui->decorationList->setSource(KStandardDirs::locate("data", "kwin/kcm_kwindecoration/main.qml"));

View file

@ -43,7 +43,7 @@ BorderImage {
highlight: Rectangle {
width: listView.width
height: 150
color: "lightsteelblue"
color: highlightColor
opacity: 0.5
}
delegate: Item {