Skip to content

Commit 956605f

Browse files
committed
qml: make the TextButton control default values more usable
1 parent 18dfb2c commit 956605f

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

src/qml/controls/TextButton.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import QtQuick.Controls 2.15
88
Button {
99
id: root
1010
property int textSize: 18
11-
property string textColor: Theme.color.neutral9
11+
property string textColor: Theme.color.orange
1212
property bool bold: true
1313
property bool rightalign: false
1414
font.family: "Inter"

src/qml/pages/onboarding/OnboardingConnection.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ Page {
3838
detailActive: true
3939
detailItem: TextButton {
4040
text: qsTr("Connection settings")
41-
textSize: 18
42-
textColor: Theme.color.orange
43-
onClicked: {
44-
connections.incrementCurrentIndex()
45-
}
41+
onClicked: connections.incrementCurrentIndex()
4642
}
4743
lastPage: true
4844
buttonText: qsTr("Next")

src/qml/pages/onboarding/OnboardingStorageAmount.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ Page {
4040
Layout.topMargin: 30
4141
Layout.fillWidth: true
4242
text: qsTr("Detailed settings")
43-
textSize: 18
44-
textColor: "#F7931A"
45-
onClicked: {
46-
storages.incrementCurrentIndex()
47-
}
43+
onClicked: storages.incrementCurrentIndex()
4844
}
4945
}
5046
buttonText: qsTr("Next")

0 commit comments

Comments
 (0)