Changeset View
Changeset View
Standalone View
Standalone View
plugins/kdecorations/aurorae/src/decorationoptions.cpp
Show All 37 Lines | |||||
38 | void ColorSettings::init(const QPalette &pal) | 38 | void ColorSettings::init(const QPalette &pal) | ||
39 | { | 39 | { | ||
40 | m_palette = pal; | 40 | m_palette = pal; | ||
41 | KConfigGroup wmConfig(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), QStringLiteral("WM")); | 41 | KConfigGroup wmConfig(KSharedConfig::openConfig(QStringLiteral("kdeglobals")), QStringLiteral("WM")); | ||
42 | m_activeFrameColor = wmConfig.readEntry("frame", pal.color(QPalette::Active, QPalette::Window)); | 42 | m_activeFrameColor = wmConfig.readEntry("frame", pal.color(QPalette::Active, QPalette::Window)); | ||
43 | m_inactiveFrameColor = wmConfig.readEntry("inactiveFrame", m_activeFrameColor); | 43 | m_inactiveFrameColor = wmConfig.readEntry("inactiveFrame", m_activeFrameColor); | ||
44 | m_activeTitleBarColor = wmConfig.readEntry("activeBackground", pal.color(QPalette::Active, QPalette::Highlight)); | 44 | m_activeTitleBarColor = wmConfig.readEntry("activeBackground", pal.color(QPalette::Active, QPalette::Highlight)); | ||
45 | m_inactiveTitleBarColor = wmConfig.readEntry("inactiveBackground", m_inactiveFrameColor); | 45 | m_inactiveTitleBarColor = wmConfig.readEntry("inactiveBackground", m_inactiveFrameColor); | ||
46 | m_activeTitleBarBlendColor = wmConfig.readEntry("activeBlend", m_activeTitleBarColor.dark(110)); | 46 | m_activeTitleBarBlendColor = wmConfig.readEntry("activeBlend", m_activeTitleBarColor.darker(110)); | ||
47 | m_inactiveTitleBarBlendColor = wmConfig.readEntry("inactiveBlend", m_inactiveTitleBarColor.dark(110)); | 47 | m_inactiveTitleBarBlendColor = wmConfig.readEntry("inactiveBlend", m_inactiveTitleBarColor.darker(110)); | ||
48 | m_activeFontColor = wmConfig.readEntry("activeForeground", pal.color(QPalette::Active, QPalette::HighlightedText)); | 48 | m_activeFontColor = wmConfig.readEntry("activeForeground", pal.color(QPalette::Active, QPalette::HighlightedText)); | ||
49 | m_inactiveFontColor = wmConfig.readEntry("inactiveForeground", m_activeFontColor.dark()); | 49 | m_inactiveFontColor = wmConfig.readEntry("inactiveForeground", m_activeFontColor.darker()); | ||
50 | m_activeButtonColor = wmConfig.readEntry("activeTitleBtnBg", m_activeFrameColor.light(130)); | 50 | m_activeButtonColor = wmConfig.readEntry("activeTitleBtnBg", m_activeFrameColor.lighter(130)); | ||
51 | m_inactiveButtonColor = wmConfig.readEntry("inactiveTitleBtnBg", m_inactiveFrameColor.light(130)); | 51 | m_inactiveButtonColor = wmConfig.readEntry("inactiveTitleBtnBg", m_inactiveFrameColor.lighter(130)); | ||
52 | m_activeHandle = wmConfig.readEntry("handle", m_activeFrameColor); | 52 | m_activeHandle = wmConfig.readEntry("handle", m_activeFrameColor); | ||
53 | m_inactiveHandle = wmConfig.readEntry("inactiveHandle", m_activeHandle); | 53 | m_inactiveHandle = wmConfig.readEntry("inactiveHandle", m_activeHandle); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | 56 | | |||
57 | DecorationOptions::DecorationOptions(QObject *parent) | 57 | DecorationOptions::DecorationOptions(QObject *parent) | ||
58 | : QObject(parent) | 58 | : QObject(parent) | ||
59 | , m_active(true) | 59 | , m_active(true) | ||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |