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:
Alessandro Portale
2023-11-15 16:25:09 +01:00
parent aa83b0ce65
commit 7f60ce0666
8 changed files with 15 additions and 15 deletions

View File

@@ -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;
}
}