Commit 00f113ea authored by Milian Wolff's avatar Milian Wolff
Browse files

Make the badge text readable on dark color schemes

Summary:
The background color should not be used for the foreground text
color, I believe. The background color is set to theme.highlightColor,
so use theme.highlightedTextColor for the foreground. This ensures
the text is readable on a dark color scheme.

Test Plan: unreadable text before, readable now

Reviewers: broulik, hein

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10697
parent f856027b
......@@ -42,7 +42,7 @@ Rectangle {
fontSizeMode: Text.VerticalFit
font.pointSize: 1024
minimumPointSize: 5
color: theme.backgroundColor
color: theme.highlightedTextColor
text: {
if (badgeRect.number < 0) {
return i18nc("Invalid number of new messages, overlay, keep short", "");
......
Supports Markdown
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