Theme: Add new variations notification color tokens

The color tokens

 - Notification_Alert
 - Notification_Success
 - Notification_Neutral
 - Notification_Danger

...each get variations:

 - default
 - muted
 - subtle

The existing usages of Notification_* are mapped to
Notification_*_Default

Fixes: QTCREATORBUG-31829
Change-Id: Id202e692c74ce30b32fb59c17717ecf6e174eb2a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Alessandro Portale
2024-10-15 15:16:07 +02:00
parent c8eea5506e
commit 7ea99e184d
7 changed files with 65 additions and 35 deletions

View File

@@ -117,7 +117,7 @@ public:
painter->fillRect(opt.rect, opt.palette.highlight());
painter->setPen(opt.palette.highlightedText().color());
} else if (isError) {
painter->setPen(creatorColor(Theme::Token_Notification_Danger));
painter->setPen(creatorColor(Theme::Token_Notification_Danger_Default));
} else {
painter->setPen(opt.palette.text().color());
}