[Home] Keep actions bounded and reachable at every window height (#7747)

This commit is contained in:
Bryce! 2026-11-04 11:06:58 -05:00 • committed by GitHub
parent 5ea16c805f
commit d944273335
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 30 additions and 30 deletions

View file

@ -21,8 +21,8 @@ class QWidget;
HomeStyledButton::HomeStyledButton(const QString &text, QPair<QColor, QColor> _gradientColors, QWidget *parent)
: QPushButton(text, parent), gradientColors(_gradientColors)
{
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setMinimumHeight(25);
// Keep the font/style-derived height even when the home page has ample space.
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
setStyleSheet(generateButtonStylesheet(gradientColors));
applyInterfaceDefaultFont();
connect(themeManager, &ThemeManager::fontsChanged, this, &HomeStyledButton::applyInterfaceDefaultFont);