Changeset View
Changeset View
Standalone View
Standalone View
kstyle/breezehelper.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | 38 | { | |||
---|---|---|---|---|---|
55 | 55 | | |||
56 | //____________________________________________________________________ | 56 | //____________________________________________________________________ | ||
57 | KSharedConfig::Ptr Helper::config() const | 57 | KSharedConfig::Ptr Helper::config() const | ||
58 | { return _config; } | 58 | { return _config; } | ||
59 | 59 | | |||
60 | //____________________________________________________________________ | 60 | //____________________________________________________________________ | ||
61 | void Helper::loadConfig() | 61 | void Helper::loadConfig() | ||
62 | { | 62 | { | ||
63 | _viewFocusBrush = KStatefulBrush( KColorScheme::View, KColorScheme::FocusColor, _config ); | 63 | _viewFocusBrush = KStatefulBrush( KColorScheme::View, KColorScheme::FocusColor ); | ||
64 | _viewHoverBrush = KStatefulBrush( KColorScheme::View, KColorScheme::HoverColor, _config ); | 64 | _viewHoverBrush = KStatefulBrush( KColorScheme::View, KColorScheme::HoverColor ); | ||
65 | _viewNegativeTextBrush = KStatefulBrush( KColorScheme::View, KColorScheme::NegativeText, _config ); | 65 | _viewNegativeTextBrush = KStatefulBrush( KColorScheme::View, KColorScheme::NegativeText ); | ||
66 | 66 | | |||
67 | const QPalette palette( QApplication::palette() ); | 67 | const QPalette palette( QApplication::palette() ); | ||
68 | const KConfigGroup group( _config->group( "WM" ) ); | 68 | const KConfigGroup group( _config->group( "WM" ) ); | ||
69 | _activeTitleBarColor = group.readEntry( "activeBackground", palette.color( QPalette::Active, QPalette::Highlight ) ); | 69 | _activeTitleBarColor = group.readEntry( "activeBackground", palette.color( QPalette::Active, QPalette::Highlight ) ); | ||
70 | _activeTitleBarTextColor = group.readEntry( "activeForeground", palette.color( QPalette::Active, QPalette::HighlightedText ) ); | 70 | _activeTitleBarTextColor = group.readEntry( "activeForeground", palette.color( QPalette::Active, QPalette::HighlightedText ) ); | ||
71 | _inactiveTitleBarColor = group.readEntry( "inactiveBackground", palette.color( QPalette::Disabled, QPalette::Highlight ) ); | 71 | _inactiveTitleBarColor = group.readEntry( "inactiveBackground", palette.color( QPalette::Disabled, QPalette::Highlight ) ); | ||
72 | _inactiveTitleBarTextColor = group.readEntry( "inactiveForeground", palette.color( QPalette::Disabled, QPalette::HighlightedText ) ); | 72 | _inactiveTitleBarTextColor = group.readEntry( "inactiveForeground", palette.color( QPalette::Disabled, QPalette::HighlightedText ) ); | ||
73 | } | 73 | } | ||
▲ Show 20 Lines • Show All 1525 Lines • Show Last 20 Lines |