Core: Correct font sizes to be smaller in search box in preferences

This commit is contained in:
tetektoza
2025-06-22 15:13:43 +02:00
committed by Kacper Donat
parent 68464393b9
commit bd231ddb00

View File

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