From bd231ddb00a6e11e76f91389b899c4fb8195c454 Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 22 Jun 2025 15:13:43 +0200 Subject: [PATCH] Core: Correct font sizes to be smaller in search box in preferences --- src/Gui/Dialogs/DlgPreferencesImp.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Gui/Dialogs/DlgPreferencesImp.cpp b/src/Gui/Dialogs/DlgPreferencesImp.cpp index 3214c1aa6a..7e1b6fb84b 100644 --- a/src/Gui/Dialogs/DlgPreferencesImp.cpp +++ b/src/Gui/Dialogs/DlgPreferencesImp.cpp @@ -176,9 +176,9 @@ private: { boldFont = baseFont; boldFont.setBold(true); + boldFont.setPointSize(boldFont.pointSize() - 1); // make header smaller like a subtitle - normalFont = baseFont; - normalFont.setPointSize(normalFont.pointSize() + 2); // make lower text 2 pixels bigger + normalFont = baseFont; // keep widget text at normal size } LayoutInfo calculateLayout(const QString& pathText, const QString& widgetText, @@ -1812,7 +1812,9 @@ QString PreferencesSearchController::getHighlightStyleForWidget(QWidget* widget) void PreferencesSearchController::applyHighlightToWidget(QWidget* widget) { - if (!widget) return; + if (!widget) { + return; + } m_originalStyles[widget] = widget->styleSheet(); widget->setStyleSheet(getHighlightStyleForWidget(widget));