forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user