mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 05:20:00 -08:00
[Home] Keep actions bounded and reachable at every window height (#7747)
This commit is contained in:
parent
5ea16c805f
commit
d944273335
6 changed files with 30 additions and 30 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue