summary refs log tree commit diff
path: root/src/ui/ThemeManager.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:28:08 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 04:52:52 +0100
commitd8ead9573b6fd45e386d54b9aaec4e1c335b10ec (patch)
tree514d00ee26e67fc8bfeff403858e7d4ef276e6e3 /src/ui/ThemeManager.cpp
parentuse more literals (diff)
downloadnheko-d8ead9573b6fd45e386d54b9aaec4e1c335b10ec.tar.xz
Reduce allocations using QStringLiteral
Diffstat (limited to 'src/ui/ThemeManager.cpp')
-rw-r--r--src/ui/ThemeManager.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/ThemeManager.cpp b/src/ui/ThemeManager.cpp

index 58525e4c..7c0a3bdb 100644 --- a/src/ui/ThemeManager.cpp +++ b/src/ui/ThemeManager.cpp
@@ -9,31 +9,31 @@ QColor ThemeManager::themeColor(const QString &key) const { - if (key == "Black") + if (key == QLatin1String("Black")) return QColor(0x17, 0x19, 0x19); - else if (key == "BrightWhite") + else if (key == QLatin1String("BrightWhite")) return QColor(0xEB, 0xEB, 0xEB); - else if (key == "FadedWhite") + else if (key == QLatin1String("FadedWhite")) return QColor(0xC9, 0xC9, 0xC9); - else if (key == "MediumWhite") + else if (key == QLatin1String("MediumWhite")) return QColor(0x92, 0x92, 0x92); - else if (key == "BrightGreen") + else if (key == QLatin1String("BrightGreen")) return QColor(0x1C, 0x31, 0x33); - else if (key == "DarkGreen") + else if (key == QLatin1String("DarkGreen")) return QColor(0x57, 0x72, 0x75); - else if (key == "LightGreen") + else if (key == QLatin1String("LightGreen")) return QColor(0x46, 0xA4, 0x51); - else if (key == "Gray") + else if (key == QLatin1String("Gray")) return QColor(0x5D, 0x65, 0x65); - else if (key == "Red") + else if (key == QLatin1String("Red")) return QColor(0xE2, 0x28, 0x26); - else if (key == "Blue") + else if (key == QLatin1String("Blue")) return QColor(0x81, 0xB3, 0xA9); - else if (key == "Transparent") + else if (key == QLatin1String("Transparent")) return QColor(0, 0, 0, 0); return (QColor(0, 0, 0, 0));