Use QStringLiteral
This commit is contained in:
@@ -90,29 +90,29 @@ void StyleSheetLoader::UpdateStyleSheet(QWidget *widget, SharedPtr<StyleSheetDat
|
||||
#else
|
||||
alt.setAlpha(130);
|
||||
#endif
|
||||
stylesheet.replace("%palette-alternate-base", QString("rgba(%1,%2,%3,%4)").arg(alt.red()).arg(alt.green()).arg(alt.blue()).arg(alt.alpha()));
|
||||
stylesheet.replace(QLatin1String("%palette-alternate-base"), QStringLiteral("rgba(%1,%2,%3,%4)").arg(alt.red()).arg(alt.green()).arg(alt.blue()).arg(alt.alpha()));
|
||||
}
|
||||
|
||||
ReplaceColor(&stylesheet, "Window", p, QPalette::Window);
|
||||
ReplaceColor(&stylesheet, "Background", p, QPalette::Window);
|
||||
ReplaceColor(&stylesheet, "WindowText", p, QPalette::WindowText);
|
||||
ReplaceColor(&stylesheet, "Base", p, QPalette::Base);
|
||||
ReplaceColor(&stylesheet, "AlternateBase", p, QPalette::AlternateBase);
|
||||
ReplaceColor(&stylesheet, "ToolTipBase", p, QPalette::ToolTipBase);
|
||||
ReplaceColor(&stylesheet, "ToolTipText", p, QPalette::ToolTipText);
|
||||
ReplaceColor(&stylesheet, "Text", p, QPalette::Text);
|
||||
ReplaceColor(&stylesheet, "Button", p, QPalette::Button);
|
||||
ReplaceColor(&stylesheet, "ButtonText", p, QPalette::ButtonText);
|
||||
ReplaceColor(&stylesheet, "BrightText", p, QPalette::BrightText);
|
||||
ReplaceColor(&stylesheet, "Light", p, QPalette::Light);
|
||||
ReplaceColor(&stylesheet, "Midlight", p, QPalette::Midlight);
|
||||
ReplaceColor(&stylesheet, "Dark", p, QPalette::Dark);
|
||||
ReplaceColor(&stylesheet, "Mid", p, QPalette::Mid);
|
||||
ReplaceColor(&stylesheet, "Shadow", p, QPalette::Shadow);
|
||||
ReplaceColor(&stylesheet, "Highlight", p, QPalette::Highlight);
|
||||
ReplaceColor(&stylesheet, "HighlightedText", p, QPalette::HighlightedText);
|
||||
ReplaceColor(&stylesheet, "Link", p, QPalette::Link);
|
||||
ReplaceColor(&stylesheet, "LinkVisited", p, QPalette::LinkVisited);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Window"), p, QPalette::Window);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Background"), p, QPalette::Window);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("WindowText"), p, QPalette::WindowText);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Base"), p, QPalette::Base);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("AlternateBase"), p, QPalette::AlternateBase);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("ToolTipBase"), p, QPalette::ToolTipBase);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("ToolTipText"), p, QPalette::ToolTipText);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Text"), p, QPalette::Text);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Button"), p, QPalette::Button);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("ButtonText"), p, QPalette::ButtonText);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("BrightText"), p, QPalette::BrightText);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Light"), p, QPalette::Light);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Midlight"), p, QPalette::Midlight);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Dark"), p, QPalette::Dark);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Mid"), p, QPalette::Mid);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Shadow"), p, QPalette::Shadow);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Highlight"), p, QPalette::Highlight);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("HighlightedText"), p, QPalette::HighlightedText);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("Link"), p, QPalette::Link);
|
||||
ReplaceColor(&stylesheet, QStringLiteral("LinkVisited"), p, QPalette::LinkVisited);
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
stylesheet.replace("macos", "*");
|
||||
|
||||
Reference in New Issue
Block a user