forked from qt-creator/qt-creator
Utils: Align enum StyleHelper::UiElement with upcoming design system #2
This change "PanelTitle" to "Caption". It is supposed to not change the visual appearance. Change-Id: I3342e6c80d8ce11b7ab1ac40b4395c265e1e07ec Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -68,7 +68,7 @@ QSize FancyTabBar::tabSizeHint(bool minimum) const
|
||||
Core::Constants::MODEBAR_ICONSONLY_BUTTON_SIZE / (minimum ? 3 : 1)};
|
||||
}
|
||||
|
||||
const QFont boldFont = StyleHelper::UiFont(StyleHelper::UiElementPanelTitle);
|
||||
const QFont boldFont = StyleHelper::UiFont(StyleHelper::UiElementCaptionStrong);
|
||||
const QFontMetrics fm(boldFont);
|
||||
const int spacing = 8;
|
||||
const int width = 60 + spacing + 2;
|
||||
@@ -283,7 +283,7 @@ static void paintIconAndText(QPainter *painter, const QRect &rect,
|
||||
const QIcon &icon, const QString &text,
|
||||
bool enabled, bool selected)
|
||||
{
|
||||
const QFont boldFont = StyleHelper::UiFont(StyleHelper::UiElementPanelTitle);
|
||||
const QFont boldFont = StyleHelper::UiFont(StyleHelper::UiElementCaptionStrong);
|
||||
painter->setFont(boldFont);
|
||||
|
||||
const bool drawIcon = rect.height() > 36;
|
||||
|
||||
Reference in New Issue
Block a user