Skip to content

Commit

Permalink
Qt: Resizing Font Size and Icon Grid Size (shadps4-emu#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xphalnos authored Feb 14, 2025
1 parent 1cc9e0d commit b48975f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/qt_gui/game_grid_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ void GameGridFrame::PopulateGameGrid(QVector<GameInfo> 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
Expand Down

0 comments on commit b48975f

Please sign in to comment.