forked from qt-creator/qt-creator
Theming: Update of color tokens
Token_Background_Hover is gone. Token_Foreground_Default, Token_Foreground_Muted and Token_Foreground_Subtle were added. Existing token colors were changed. Change-Id: I9505ee54dd02f78bd722c0dcfe42ee6ae4e48d13 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -345,7 +345,7 @@ public:
|
||||
constexpr qreal rounding = 4.5;
|
||||
QPainterPath itemOutlinePath;
|
||||
itemOutlinePath.addRoundedRect(itemRectAdjusted, rounding, rounding);
|
||||
const QColor fillColor = creatorTheme()->color(hovered ? Theme::Token_Background_Hover
|
||||
const QColor fillColor = creatorTheme()->color(hovered ? Theme::Token_Foreground_Muted
|
||||
: Theme::Token_Background_Muted);
|
||||
const QColor strokeColor = creatorTheme()->color(selected ? Theme::Token_Stroke_Strong
|
||||
: Theme::Token_Stroke_Subtle);
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
constexpr QRectF smallCircleAdjusted = smallCircle.adjusted(shrink, shrink,
|
||||
-shrink, -shrink);
|
||||
const QRectF smallCircleLocal = smallCircleAdjusted.translated(itemRect.topLeft());
|
||||
const QColor fillColor = creatorTheme()->color(Theme::Token_Background_Hover);
|
||||
const QColor fillColor = creatorTheme()->color(Theme::Token_Foreground_Muted);
|
||||
const QColor strokeColor = creatorTheme()->color(Theme::Token_Stroke_Subtle);
|
||||
painter->setBrush(fillColor);
|
||||
painter->setPen(strokeColor);
|
||||
|
||||
Reference in New Issue
Block a user