Skip to content

Commit 9bcb158

Browse files
committed
Constants: dependency on Theme removed, TitleLabel component added
This commit finally removes dependency on Theme from Constants along with workaround in main.qml which is no longer needed. Closes: #19485
1 parent 1574248 commit 9bcb158

File tree

15 files changed

+22
-75
lines changed

15 files changed

+22
-75
lines changed

ui/app/AppLayouts/Profile/views/keycard/MainView.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ ColumnLayout {
236236

237237
StatusBaseText {
238238
anchors.fill: parent
239-
font.pixelSize: Constants.keycard.general.fontSize2
240239
color: Theme.palette.directColor1
241240
text: dialog.accountsWarning? Constants.walletConstants.maxNumberOfAccountsContent : Constants.walletConstants.maxNumberOfKeypairsContent
242241
}

ui/imports/shared/popups/keycard/states/EnterName.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@ Item {
6060
anchors.rightMargin: Theme.xlPadding
6161
spacing: Theme.padding
6262

63-
StatusBaseText {
63+
TitleText {
6464
id: title
6565
Layout.alignment: Qt.AlignCenter
66-
font.weight: Font.Bold
67-
68-
font.pixelSize: Constants.keycard.general.fontSize1
69-
color: Theme.palette.directColor1
7066
}
7167

7268
StatusInput {

ui/imports/shared/popups/keycard/states/EnterPairingCode.qml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,11 @@ Item {
6161
spacing: Theme.padding
6262
clip: true
6363

64-
StatusBaseText {
64+
TitleText {
6565
id: title
6666
Layout.preferredHeight: Constants.keycard.general.titleHeight
6767
Layout.alignment: Qt.AlignHCenter
6868
text: qsTr("Enter a new pairing code")
69-
font.pixelSize: Constants.keycard.general.fontSize1
70-
font.weight: Font.Bold
71-
color: Theme.palette.directColor1
7269
}
7370

7471
StatusBaseText {

ui/imports/shared/popups/keycard/states/EnterPassword.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ Item {
6565
Layout.preferredWidth: Constants.keycard.shared.imageWidth
6666
}
6767

68-
StatusBaseText {
68+
TitleText {
6969
id: title
7070
Layout.alignment: Qt.AlignCenter
7171
Layout.maximumWidth: parent.width
72-
73-
font.weight: Font.Bold
74-
font.pixelSize: Constants.keycard.general.fontSize1
75-
color: Theme.palette.directColor1
7672
}
7773

7874
StatusBaseText {

ui/imports/shared/popups/keycard/states/EnterSeedPhrase.qml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ Item {
4141
spacing: Theme.xlPadding
4242
width: scrollView.availableWidth
4343

44-
StatusBaseText {
44+
TitleText {
4545
id: title
4646

4747
Layout.fillWidth: true
4848

4949
visible: text !== ""
50-
font.pixelSize: Constants.keycard.general.fontSize1
51-
font.weight: Font.Bold
5250
horizontalAlignment: Text.AlignHCenter
5351
wrapMode: Text.WordWrap
5452
}

ui/imports/shared/popups/keycard/states/EnterSeedPhraseWords.qml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@ Item {
5858
spacing: Theme.padding
5959
clip: true
6060

61-
StatusBaseText {
61+
TitleText {
6262
id: title
6363
Layout.preferredHeight: Constants.keycard.general.titleHeight
6464
Layout.alignment: Qt.AlignHCenter
6565
text: qsTr("Confirm recovery phrase words")
66-
font.pixelSize: Constants.keycard.general.fontSize1
67-
font.weight: Font.Bold
68-
color: Theme.palette.directColor1
6966
}
7067

7168
StatusInput {

ui/imports/shared/popups/keycard/states/KeycardInit.qml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,10 @@ Item {
159159
root.sharedKeycardModule.currentState.stateType === Constants.keycardSharedState.changingKeycardPairingCode ||
160160
root.sharedKeycardModule.currentState.stateType === Constants.keycardSharedState.copyingKeycard
161161
}
162-
StatusBaseText {
162+
TitleText {
163163
id: title
164164

165165
wrapMode: Text.WordWrap
166-
font.pixelSize: Constants.keycard.general.fontSize1
167-
font.weight: Font.Bold
168166
}
169167
}
170168

ui/imports/shared/popups/keycard/states/KeycardPin.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,9 @@ Item {
9696
Layout.preferredWidth: Constants.keycard.shared.imageWidth
9797
}
9898

99-
StatusBaseText {
99+
TitleText {
100100
id: title
101101
Layout.alignment: Qt.AlignCenter
102-
font.weight: Font.Bold
103-
104-
font.pixelSize: Constants.keycard.general.fontSize1
105-
color: Theme.palette.directColor1
106102
}
107103

108104
StatusBaseText {

ui/imports/shared/popups/keycard/states/KeycardPuk.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,9 @@ Item {
4848
Layout.preferredWidth: Constants.keycard.shared.imageWidth
4949
}
5050

51-
StatusBaseText {
51+
TitleText {
5252
id: title
5353
Layout.alignment: Qt.AlignCenter
54-
55-
font.weight: Font.Bold
56-
font.pixelSize: Constants.keycard.general.fontSize1
57-
color: Theme.palette.directColor1
5854
}
5955

6056
StatusPinInput {

ui/imports/shared/popups/keycard/states/ManageAccounts.qml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,9 @@ Item {
115115
Layout.alignment: Qt.AlignCenter
116116
}
117117

118-
StatusBaseText {
118+
TitleText {
119119
id: title
120120
Layout.alignment: Qt.AlignCenter
121-
122-
font.weight: Font.Bold
123-
font.pixelSize: Constants.keycard.general.fontSize1
124-
color: Theme.palette.directColor1
125121
}
126122

127123
Rectangle {

0 commit comments

Comments
 (0)