Round corners a little more aggressively.

Took 6 minutes
This commit is contained in:
Lukas Brübach 2025-09-11 13:57:27 +02:00
parent 0007afc064
commit 49dea9bcd2

View file

@ -8,7 +8,7 @@ HomeStyledButton::HomeStyledButton(const QString &text, QPair<QColor, QColor> _g
: QPushButton(text, parent), gradientColors(_gradientColors) : QPushButton(text, parent), gradientColors(_gradientColors)
{ {
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
setMinimumHeight(100); // or higher if needed setMinimumHeight(50);
setStyleSheet(generateButtonStylesheet(gradientColors)); setStyleSheet(generateButtonStylesheet(gradientColors));
} }
@ -38,7 +38,7 @@ QString HomeStyledButton::generateButtonStylesheet(const QPair<QColor, QColor> &
padding: 30px; padding: 30px;
color: white; color: white;
border: 2px solid %1; border: 2px solid %1;
border-radius: 6px; border-radius: 20px;
background: qlineargradient(x1:0, y1:1, x2:0, y2:0, background: qlineargradient(x1:0, y1:1, x2:0, y2:0,
stop:0 %2, stop:1 %3); stop:0 %2, stop:1 %3);
} }