Make VS-NFD colors more consistent

Using KColorScheme makes the colors more consistent with other
positive / negative meanings.
parent bfb379a2
......@@ -40,6 +40,7 @@
#include <KLocalizedString>
#include <KSharedConfig>
#include <KColorScheme>
#include <KConfigGroup>
#include <KMessageBox>
......@@ -294,9 +295,9 @@ private Q_SLOTS:
? "security-high"
: "security-medium"));
? "background-color: lime"
: "background-color: red");
btn->setStyleSheet(QStringLiteral("background-color: ") + (de_vs
? KColorScheme(QPalette::Active, KColorScheme::View).background(KColorScheme::PositiveBackground).color().name()
: KColorScheme(QPalette::Active, KColorScheme::View).background(KColorScheme::NegativeBackground).color().name()));
? i18nc("VS-conforming is a German standard for restricted documents for which special restrictions about algorithms apply. The string states that all cryptographic operations necessary for the communication are compliant with that.",
"VS-compliant communication possible.")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment