Gui: Use QStringLiteral
This commit is contained in:
@@ -2457,22 +2457,22 @@ QString Application::replaceVariablesInQss(QString qssText)
|
||||
|
||||
// convert them to hex.
|
||||
// Note: the ulong contains alpha channels so 8 hex characters when we need 6 here.
|
||||
QString accentColor1 = QString::fromLatin1("#%1")
|
||||
QString accentColor1 = QStringLiteral("#%1")
|
||||
.arg(longAccentColor1, 8, 16, QLatin1Char('0'))
|
||||
.toUpper()
|
||||
.mid(0, 7);
|
||||
QString accentColor2 = QString::fromLatin1("#%1")
|
||||
QString accentColor2 = QStringLiteral("#%1")
|
||||
.arg(longAccentColor2, 8, 16, QLatin1Char('0'))
|
||||
.toUpper()
|
||||
.mid(0, 7);
|
||||
QString accentColor3 = QString::fromLatin1("#%1")
|
||||
QString accentColor3 = QStringLiteral("#%1")
|
||||
.arg(longAccentColor3, 8, 16, QLatin1Char('0'))
|
||||
.toUpper()
|
||||
.mid(0, 7);
|
||||
|
||||
qssText = qssText.replace(QString::fromLatin1("@ThemeAccentColor1"), accentColor1);
|
||||
qssText = qssText.replace(QString::fromLatin1("@ThemeAccentColor2"), accentColor2);
|
||||
qssText = qssText.replace(QString::fromLatin1("@ThemeAccentColor3"), accentColor3);
|
||||
qssText = qssText.replace(QStringLiteral("@ThemeAccentColor1"), accentColor1);
|
||||
qssText = qssText.replace(QStringLiteral("@ThemeAccentColor2"), accentColor2);
|
||||
qssText = qssText.replace(QStringLiteral("@ThemeAccentColor3"), accentColor3);
|
||||
|
||||
// Base::Console().Warning("%s\n", qssText.toStdString());
|
||||
return qssText;
|
||||
|
||||
Reference in New Issue
Block a user