28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
diff -ur kdelibs-3.93.0/kdeui/colors/kcolorscheme.cpp kdelibs-3.93.0-colorscheme-hack/kdeui/colors/kcolorscheme.cpp
|
|
--- kdelibs-3.93.0/kdeui/colors/kcolorscheme.cpp 2007-08-29 23:53:42.000000000 +0200
|
|
+++ kdelibs-3.93.0-colorscheme-hack/kdeui/colors/kcolorscheme.cpp 2007-09-12 10:22:34.000000000 +0200
|
|
@@ -114,8 +114,8 @@
|
|
_colors.deco[1] = cfg.readEntry( "DecorationFocus", QColor(239,132,65) );
|
|
|
|
// apply state adjustments
|
|
- if (state != QPalette::Active) {
|
|
- // TODO - now tweak all the colors based on the state!
|
|
+ if (state == QPalette::Disabled) {
|
|
+ _colors.fg[0] = _colors.fg[1];
|
|
}
|
|
|
|
// calculated backgrounds
|
|
@@ -238,11 +238,7 @@
|
|
d = new KColorSchemePrivate(config, state, "Colors:Button", defaultButtonColors);
|
|
break;
|
|
case Selection:
|
|
- // inactiver/disabled uses Window colors instead, ala gtk
|
|
- if (state == QPalette::Active)
|
|
- d = new KColorSchemePrivate(config, state, "Colors:Selection", defaultSelectionColors);
|
|
- else
|
|
- d = new KColorSchemePrivate(config, state, "Colors:Window", defaultSelectionColors);
|
|
+ d = new KColorSchemePrivate(config, QPalette::Active, "Colors:Selection", defaultSelectionColors);
|
|
break;
|
|
case Tooltip:
|
|
d = new KColorSchemePrivate(config, state, "Colors:Tooltip", defaultTooltipColors);
|