diff options
Diffstat (limited to 'src/libs/utils/stylehelper.cpp')
-rw-r--r-- | src/libs/utils/stylehelper.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp index b70ea7b07c..468bccc348 100644 --- a/src/libs/utils/stylehelper.cpp +++ b/src/libs/utils/stylehelper.cpp @@ -114,16 +114,10 @@ QColor StyleHelper::m_requestedBaseColor; QColor StyleHelper::baseColor(bool lightColored) { + static const QColor windowColor = QApplication::palette().color(QPalette::Window); static const bool windowColorAsBase = creatorTheme()->flag(Theme::WindowColorAsBase); - if (windowColorAsBase) { - static const QColor windowColor = QApplication::palette().color(QPalette::Window); - return windowColor; - } - if (!lightColored) - return m_baseColor; - else - return m_baseColor.lighter(230); + return (lightColored || windowColorAsBase) ? windowColor : m_baseColor; } QColor StyleHelper::highlightColor(bool lightColored) |