forked from qt-creator/qt-creator
Utils: Align enum StyleHelper::UiElement with upcoming design system #1
This change demotes the existing H1 and H2 to H3 and H4. It is supposed to not change the visual appearance. Change-Id: Idc3056307f0286a2d4d276ba79125ba93d5ac428 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -570,7 +570,7 @@ public:
|
||||
selectorView->setAutoFillBackground(true);
|
||||
|
||||
auto activeLabel = new QLabel(Tr::tr("Active Project"));
|
||||
activeLabel->setFont(StyleHelper::UiFont(StyleHelper::UiElementH2));
|
||||
activeLabel->setFont(StyleHelper::UiFont(StyleHelper::UiElementH4));
|
||||
|
||||
auto innerLayout = new QVBoxLayout;
|
||||
innerLayout->setSpacing(10);
|
||||
@@ -903,7 +903,7 @@ void SelectorDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
|
||||
case 2: {
|
||||
QColor col = creatorTheme()->color(Theme::TextColorNormal);
|
||||
opt.palette.setColor(QPalette::Text, col);
|
||||
opt.font = StyleHelper::UiFont(StyleHelper::UiElementH2);
|
||||
opt.font = StyleHelper::UiFont(StyleHelper::UiElementH4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user