Use lighter colors for compliance appearance filter

The lighter colors make the text more readable and
the negative color has the advantage that expired
keys can still be read even if their text color is red.
parent 4ad68c54
......@@ -200,7 +200,10 @@ public:
KeyValidAppearanceFilter()
: DefaultKeyFilter()
{
setBgColor(QColor("lightgreen"));
// Ideally this would come from KColorScheme but we want to
// avoid a dependency against kconfigwidgets. So we take
// the color for positive background from breeze.
setBgColor(QColor(0xD5, 0xFA, 0xE2));
}
bool matches (const Key &key, MatchContexts contexts) const override
{
......@@ -217,7 +220,10 @@ public:
KeyNotValidAppearanceFilter()
: DefaultKeyFilter()
{
setBgColor(QColor("lightpink"));
// Ideally this would come from KColorScheme but we want to
// avoid a dependency against kconfigwidgets. So we take
// the color for negative background from breeze.
setBgColor(QColor(0xFA, 0xE9, 0xEB));
}
bool matches (const Key &key, MatchContexts contexts) const override
{
......
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