diff --git a/kcmkwin/kwinoptions/mouse.cpp b/kcmkwin/kwinoptions/mouse.cpp index b43cdbdfec..6518d765a1 100644 --- a/kcmkwin/kwinoptions/mouse.cpp +++ b/kcmkwin/kwinoptions/mouse.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -108,8 +109,8 @@ void createMaxButtonPixmaps() "..............."}, }; - QByteArray baseColor(". c " + KGlobalSettings::baseColor().name().toAscii()); - QByteArray textColor("# c " + KGlobalSettings::textColor().name().toAscii()); + QByteArray baseColor(". c " + KColorScheme(QPalette::Active, KColorScheme::View).background().color().name().toAscii()); + QByteArray textColor("# c " + KColorScheme(QPalette::Active, KColorScheme::View).foreground().color().name().toAscii()); for (int t = 0; t < 3; ++t) { maxButtonXpms[t][0] = "15 13 2 1";