From 70f584e6e1e8cecc43b11a1c32c520c34e9aa37c Mon Sep 17 00:00:00 2001 From: Ludwig Jaeck <ludwig.jaeck@outlook.de> Date: Fri, 14 Oct 2022 16:11:02 +0200 Subject: [PATCH] clang-format --- GUI/Application/ApplicationSettings.cpp | 33 ++++++++++++++----------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/GUI/Application/ApplicationSettings.cpp b/GUI/Application/ApplicationSettings.cpp index 544f928e9ce..c1822cf3784 100644 --- a/GUI/Application/ApplicationSettings.cpp +++ b/GUI/Application/ApplicationSettings.cpp @@ -167,21 +167,25 @@ void ApplicationSettings::loadStyle(ApplicationSettings::Style style) m_styleSheetPalette.text = Qt::black; m_styleSheetPalette.headlineText = QColor(48, 113, 145); m_styleSheetPalette.headlineBackground = QColor(222, 232, 237); - m_styleSheetPalette.windowBackground = QColor(255,255,255); - m_styleSheetPalette.windowBackgroundAlterantive = m_styleSheetPalette.windowBackground .darker(105); - m_styleSheetPalette.windowBackgroundDarker = m_styleSheetPalette.windowBackground.darker(120); + m_styleSheetPalette.windowBackground = QColor(255, 255, 255); + m_styleSheetPalette.windowBackgroundAlterantive = + m_styleSheetPalette.windowBackground.darker(105); + m_styleSheetPalette.windowBackgroundDarker = + m_styleSheetPalette.windowBackground.darker(120); m_styleSheetPalette.componentBorder = m_styleSheetPalette.windowBackground.darker(110); m_styleSheetPalette.componentBackground = Qt::white; m_styleSheetPalette.buttonBackground = m_styleSheetPalette.windowBackgroundAlterantive; break; } case ApplicationSettings::Style::dark: { - m_styleSheetPalette.text = QColor(213,220,223); + m_styleSheetPalette.text = QColor(213, 220, 223); m_styleSheetPalette.headlineText = QColor(213, 220, 223); m_styleSheetPalette.headlineBackground = QColor(29, 39, 44); - m_styleSheetPalette.windowBackground = QColor(43,50,54); - m_styleSheetPalette.windowBackgroundAlterantive = m_styleSheetPalette.windowBackground.lighter(150); - m_styleSheetPalette.windowBackgroundDarker = m_styleSheetPalette.windowBackground.darker(120); + m_styleSheetPalette.windowBackground = QColor(43, 50, 54); + m_styleSheetPalette.windowBackgroundAlterantive = + m_styleSheetPalette.windowBackground.lighter(150); + m_styleSheetPalette.windowBackgroundDarker = + m_styleSheetPalette.windowBackground.darker(120); m_styleSheetPalette.componentBorder = m_styleSheetPalette.windowBackground.lighter(180); m_styleSheetPalette.componentBackground = Qt::black; m_styleSheetPalette.buttonBackground = m_styleSheetPalette.windowBackground.lighter(120); @@ -193,14 +197,15 @@ void ApplicationSettings::loadStyle(ApplicationSettings::Style style) break; } } - stylesheet.replace("@text",m_styleSheetPalette.text.name()); - stylesheet.replace("@windowBackgroundAlternative",m_styleSheetPalette.windowBackgroundAlterantive.name()); - stylesheet.replace("@windowBackgroundDarker",m_styleSheetPalette.windowBackgroundDarker.name()); - stylesheet.replace("@windowBackground",m_styleSheetPalette.windowBackground.name()); - stylesheet.replace("@componentBoder",m_styleSheetPalette.componentBorder.name()); - stylesheet.replace("@componentBackground",m_styleSheetPalette.componentBackground.name()); + stylesheet.replace("@text", m_styleSheetPalette.text.name()); + stylesheet.replace("@windowBackgroundAlternative", + m_styleSheetPalette.windowBackgroundAlterantive.name()); + stylesheet.replace("@windowBackgroundDarker", + m_styleSheetPalette.windowBackgroundDarker.name()); + stylesheet.replace("@windowBackground", m_styleSheetPalette.windowBackground.name()); + stylesheet.replace("@componentBoder", m_styleSheetPalette.componentBorder.name()); + stylesheet.replace("@componentBackground", m_styleSheetPalette.componentBackground.name()); qApp->setStyleSheet(stylesheet); - } ApplicationSettings::Style ApplicationSettings::currentStyle() -- GitLab