Remove useless else

This commit is contained in:
Jonas Kvinge
2024-06-12 17:38:58 +02:00
parent 93df859aa4
commit b233600b8c
32 changed files with 178 additions and 211 deletions

View File

@@ -109,23 +109,13 @@ QPalette StyleHelper::sidebarFontPalette(const QPalette &original) {
QColor StyleHelper::panelTextColor(bool lightColored) {
if (lightColored) {
return Qt::black;
}
else {
return Qt::white;
}
return lightColored ? Qt::black : Qt::white;
}
QColor StyleHelper::baseColor(bool lightColored) {
if (lightColored) {
return m_baseColor.lighter(230);
}
else {
return m_baseColor;
}
return lightColored ? m_baseColor.lighter(230) : m_baseColor;
}