From b48975f11697e77c02d6f9ccb44ee658781d2dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=A5IGA?= <164882787+Xphalnos@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:36:23 +0100 Subject: [PATCH] Qt: Resizing Font Size and Icon Grid Size (#2429) --- src/qt_gui/game_grid_frame.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/qt_gui/game_grid_frame.cpp b/src/qt_gui/game_grid_frame.cpp index 2db4b7e4e..6a42fb1d6 100644 --- a/src/qt_gui/game_grid_frame.cpp +++ b/src/qt_gui/game_grid_frame.cpp @@ -117,7 +117,12 @@ void GameGridFrame::PopulateGameGrid(QVector m_games_search, bool from layout->addWidget(image_label); layout->addWidget(name_label); - name_label->setStyleSheet("color: white; font-size: 12px; font-weight: bold;"); + // Resizing of font-size. + float fontSize = (Config::getIconSizeGrid() / 5.5f); + QString styleSheet = + QString("color: white; font-weight: bold; font-size: %1px;").arg(fontSize); + name_label->setStyleSheet(styleSheet); + QGraphicsDropShadowEffect* shadowEffect = new QGraphicsDropShadowEffect(); shadowEffect->setBlurRadius(5); // Set the blur radius of the shadow shadowEffect->setColor(QColor(0, 0, 0, 160)); // Set the color and opacity of the shadow