refactor: gui::styles use QStringLiteral

This commit is contained in:
sithlord48
2025-02-21 07:42:14 -05:00
committed by Nick Bolton
parent 6de1920d88
commit 72d27c70e0

View File

@ -17,18 +17,18 @@ const auto kColorError = "#ec4c47";
const auto kColorLightGrey = "#666666";
const auto kStyleLink = //
QString("color: %1").arg(kColorSecondary);
QStringLiteral("color: %1").arg(kColorSecondary);
const auto kStyleLineEditErrorBorder =
QString("border: 1px solid %1; border-radius: 2px; padding: 2px;").arg(kColorError);
QStringLiteral("border: 1px solid %1; border-radius: 2px; padding: 2px;").arg(kColorError);
const auto kStyleErrorActiveLabel = //
QString("padding: 3px 5px; border-radius: 3px; "
"background-color: %1; color: %2")
QStringLiteral("padding: 3px 5px; border-radius: 3px; "
"background-color: %1; color: %2")
.arg(kColorError, kColorWhite);
const auto kStyleErrorInactiveLabel = //
QString("padding: 3px 5px; border-radius: 3px;"
"background-color: none");
QStringLiteral("padding: 3px 5px; border-radius: 3px;"
"background-color: none");
} // namespace deskflow::gui