MaterialButton: set default text padding

Non-primary buttons should have a default text padding unless manually
overridden.

Change-Id: Ib2f2d1ce4787906788b55daf2346bf144c8ab5fd
This commit is contained in:
Ilyas Erdogan
2025-11-24 09:46:56 -05:00
committed by Adrien Béraud
parent 45019d6ec8
commit 4839dadcf4
2 changed files with 2 additions and 3 deletions

View File

@@ -41,8 +41,8 @@ AbstractButton {
property color checkedColor: JamiTheme.secAndTertiHoveredBackgroundColor
property bool hasIcon: animatedIconSource.length !== 0 || iconSource.length !== 0
property var preferredWidth
property real textLeftPadding
property real textRightPadding
property real textLeftPadding: JamiTheme.buttontextWizzardPadding
property real textRightPadding: JamiTheme.buttontextWizzardPadding
property real fontSize: JamiTheme.buttontextFontPixelSize
property real textAlignment: Text.AlignHCenter
property real textOpacity: 1

View File

@@ -333,7 +333,6 @@ Rectangle {
Layout.alignment: Qt.AlignCenter
Layout.topMargin: 2 * JamiTheme.wizardViewBlocMarginSize
text: JamiStrings.setPassword
toolTipText: JamiStrings.encryptWithPassword