Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwindecoration/kcm.cpp
Show First 20 Lines • Show All 420 Lines • ▼ Show 20 Line(s) | 420 | if (e->type() == QEvent::PaletteChange) { | |||
---|---|---|---|---|---|
421 | updateColors(); | 421 | updateColors(); | ||
422 | } | 422 | } | ||
423 | return false; | 423 | return false; | ||
424 | } | 424 | } | ||
425 | 425 | | |||
426 | void ConfigurationModule::updateColors() | 426 | void ConfigurationModule::updateColors() | ||
427 | { | 427 | { | ||
428 | m_quickView->rootContext()->setContextProperty("backgroundColor", m_ui->palette().color(QPalette::Active, QPalette::Window)); | 428 | m_quickView->rootContext()->setContextProperty("backgroundColor", m_ui->palette().color(QPalette::Active, QPalette::Window)); | ||
429 | m_quickView->rootContext()->setContextProperty("highlightColor", m_ui->palette().color(QPalette::Active, QPalette::Highlight)); | 429 | m_quickView->rootContext()->setContextProperty("highlightColor", m_ui->palette().color(QPalette::Active, QPalette::Shadow)); | ||
430 | m_quickView->rootContext()->setContextProperty("baseColor", m_ui->palette().color(QPalette::Active, QPalette::Base)); | 430 | m_quickView->rootContext()->setContextProperty("baseColor", m_ui->palette().color(QPalette::Active, QPalette::Base)); | ||
431 | } | 431 | } | ||
432 | 432 | | |||
433 | } | 433 | } | ||
434 | } | 434 | } | ||
435 | 435 | | |||
436 | #include "kcm.moc" | 436 | #include "kcm.moc" |