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:
parent
2cbe2226f8
commit
26ff05b4bd
2 changed files with 2 additions and 1 deletions
|
@ -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"));
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ BorderImage {
|
|||
highlight: Rectangle {
|
||||
width: listView.width
|
||||
height: 150
|
||||
color: "lightsteelblue"
|
||||
color: highlightColor
|
||||
opacity: 0.5
|
||||
}
|
||||
delegate: Item {
|
||||
|
|
Loading…
Reference in a new issue