Changeset View
Changeset View
Standalone View
Standalone View
libs/ui/thememanager.cpp
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Line(s) | 156 | for ( int i = 0; i < 3 ; ++i ) { | |||
---|---|---|---|---|---|
179 | palette.setColor(state, QPalette::Shadow, schemeWindow.shade(KColorScheme::ShadowShade)); | 179 | palette.setColor(state, QPalette::Shadow, schemeWindow.shade(KColorScheme::ShadowShade)); | ||
180 | 180 | | |||
181 | palette.setBrush(state, QPalette::AlternateBase, schemeView.background(KColorScheme::AlternateBackground)); | 181 | palette.setBrush(state, QPalette::AlternateBase, schemeView.background(KColorScheme::AlternateBackground)); | ||
182 | palette.setBrush(state, QPalette::Link, schemeView.foreground(KColorScheme::LinkText)); | 182 | palette.setBrush(state, QPalette::Link, schemeView.foreground(KColorScheme::LinkText)); | ||
183 | palette.setBrush(state, QPalette::LinkVisited, schemeView.foreground(KColorScheme::VisitedText)); | 183 | palette.setBrush(state, QPalette::LinkVisited, schemeView.foreground(KColorScheme::VisitedText)); | ||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | //qDebug() << ">>>>>>>>>>>>>>>>>> going to set palette on app" << theme; | 186 | //qDebug() << ">>>>>>>>>>>>>>>>>> going to set palette on app" << theme; | ||
187 | // hint for the style to synchronize the color scheme with the window manager/compositor | ||||
188 | qApp->setProperty("KDE_COLOR_SCHEME_PATH", filename); | ||||
187 | qApp->setPalette(palette); | 189 | qApp->setPalette(palette); | ||
188 | 190 | | |||
189 | #ifdef Q_OS_OSX | 191 | #ifdef Q_OS_OSX | ||
190 | if (theme == "Krita bright" || theme.isEmpty()) { | 192 | if (theme == "Krita bright" || theme.isEmpty()) { | ||
191 | qApp->setStyle("Macintosh"); | 193 | qApp->setStyle("Macintosh"); | ||
192 | qApp->style()->polish(qApp); | 194 | qApp->style()->polish(qApp); | ||
193 | } else { | 195 | } else { | ||
194 | qApp->setStyle("Fusion"); | 196 | qApp->setStyle("Fusion"); | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |