diff --git a/src/libs/utils/stylehelper.cpp b/src/libs/utils/stylehelper.cpp index 61a6b4931db..c354e9ea174 100644 --- a/src/libs/utils/stylehelper.cpp +++ b/src/libs/utils/stylehelper.cpp @@ -961,6 +961,8 @@ static const UiFontMetrics& uiFontMetrics(StyleHelper::UiElement element) {StyleHelper::UiElementH6Capital, {12, 14, QFont::DemiBold}}, {StyleHelper::UiElementCaptionStrong, {10, 12, QFont::DemiBold}}, {StyleHelper::UiElementCaption, {10, 12, QFont::Normal}}, + {StyleHelper::UIElementIconStandard, {12, 16, QFont::Normal}}, + {StyleHelper::UIElementIconActive, {12, 16, QFont::DemiBold}}, }; QTC_ASSERT(metrics.count(element) > 0, return metrics.at(StyleHelper::UiElementCaptionStrong)); return metrics.at(element); diff --git a/src/libs/utils/stylehelper.h b/src/libs/utils/stylehelper.h index 30920bf0ba6..c05e50cf01a 100644 --- a/src/libs/utils/stylehelper.h +++ b/src/libs/utils/stylehelper.h @@ -84,6 +84,8 @@ enum UiElement { UiElementH6Capital, UiElementCaptionStrong, UiElementCaption, + UIElementIconStandard, + UIElementIconActive, }; // Height of the project explorer navigation bar diff --git a/tests/manual/widgets/uifonts/tst_manual_widgets_uifonts.cpp b/tests/manual/widgets/uifonts/tst_manual_widgets_uifonts.cpp index 53459da379d..df088b08bf8 100644 --- a/tests/manual/widgets/uifonts/tst_manual_widgets_uifonts.cpp +++ b/tests/manual/widgets/uifonts/tst_manual_widgets_uifonts.cpp @@ -27,6 +27,8 @@ int main(int argc, char *argv[]) { StyleHelper::UiElementH6Capital, "H6 CAPITAL" }, { StyleHelper::UiElementCaptionStrong, "Caption strong" }, { StyleHelper::UiElementCaption, "Caption" }, + { StyleHelper::UIElementIconStandard, "Icon Standard" }, + { StyleHelper::UIElementIconActive, "Icon Active" }, }; static const QString textSample("AaBbCcXxYyZz123");