Skip to content

Commit c1b54b0

Browse files
committed
Theme: getColor/alphaColor access updated
1 parent a977c93 commit c1b54b0

File tree

22 files changed

+29
-29
lines changed

22 files changed

+29
-29
lines changed

storybook/pages/StatusBlockProgressBarPage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SplitView {
6161
id: darkMode
6262
text: "Dark Mode"
6363
checked: false
64-
onCheckedChanged: rect.color = Theme.palette.getColor('graphite3')
64+
onCheckedChanged: rect.color = StatusColors.getColor('graphite3')
6565
}
6666
}
6767
}

ui/StatusQ/src/StatusQ/Components/StatusDraggableListItem.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ AbstractButton {
288288

289289
background: Rectangle {
290290
implicitHeight: 76 // ProfileUtils.defaultDelegateHeight
291-
color: root.changeColorOnDragActive && root.drawBackgroundBorder ? Theme.palette.alphaColor(Theme.palette.baseColor2, 0.7) : root.bgColor
291+
color: root.changeColorOnDragActive && root.drawBackgroundBorder ? StatusColors.alphaColor(Theme.palette.baseColor2, 0.7) : root.bgColor
292292
border.width: root.drawBackgroundBorder ? 1 : 0
293293
border.color: Theme.palette.baseColor2
294294
radius: root.drawBackgroundBorder ? Theme.radius : 0

ui/StatusQ/src/StatusQ/Components/StatusToastMessage.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Control {
201201
readonly property string iconBgColor: {
202202
// If specified:
203203
if(root.iconColor != "")
204-
return Theme.palette.getColor(root.iconColor, 0.1)
204+
return StatusColors.getColor(root.iconColor, 0.1)
205205

206206
// If not specified
207207
switch(root.type) {

ui/StatusQ/src/StatusQ/Controls/StatusColorAnimation.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SequentialAnimation {
3838
required property var target
3939
property string targetProperty: "color"
4040
property color fromColor: Theme.palette.directColor1
41-
property color toColor: Theme.palette.getColor(fromColor, 0.1)
41+
property color toColor: StatusColors.getColor(fromColor, 0.1)
4242
property int duration: 500 // in milliseconds
4343

4444
loops: 3

ui/StatusQ/src/StatusQ/Controls/StatusFeeOption.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Control {
105105
}
106106

107107
if (root.selected) {
108-
return Theme.palette.alphaColor(Theme.palette.baseColor2, 0.1)
108+
return StatusColors.alphaColor(Theme.palette.baseColor2, 0.1)
109109
}
110110

111111
return Theme.palette.statusAppLayout.backgroundColor

ui/app/AppLayouts/ActivityCenter/views/ActivityNotificationTransferOwnership.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ActivityNotificationBase {
114114
info: qsTr("To finalise your ownership of the %1 Community, make your device the control node").arg(root.communityName)
115115
ctaText: qsTr("Finalise ownership")
116116
assetColor: root.communityColor
117-
assetBgColor: Theme.palette.getColor(d.assetColor, 0.1)
117+
assetBgColor: StatusColors.getColor(d.assetColor, 0.1)
118118
assetName: d.crownAssetName
119119
actionSourceComponent: ctaLinkBtnComponent
120120
}
@@ -127,7 +127,7 @@ ActivityNotificationBase {
127127
info: qsTr("To finalise your ownership of the %1 Community, make your device the control node").arg(root.communityName)
128128
ctaText: qsTr("Ownership Declined")
129129
assetColor: root.communityColor
130-
assetBgColor: Theme.palette.getColor(d.assetColor, 0.1)
130+
assetBgColor: StatusColors.getColor(d.assetColor, 0.1)
131131
assetName: d.crownAssetName
132132
actionSourceComponent: ctaTextComponent
133133
}
@@ -140,7 +140,7 @@ ActivityNotificationBase {
140140
info: qsTr("Congratulations, you are now the official owner of the %1 Community with full admin rights").arg(root.communityName)
141141
ctaText: qsTr("Community admin")
142142
assetColor: root.communityColor
143-
assetBgColor: Theme.palette.getColor(d.assetColor, 0.1)
143+
assetBgColor: StatusColors.getColor(d.assetColor, 0.1)
144144
assetName: d.crownAssetName
145145
actionSourceComponent: ctaLinkBtnComponent
146146
}

ui/app/AppLayouts/Chat/panels/ChatAnchorButtonsPanel.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Item {
4747
layer.effect: DropShadow {
4848
samples: 16
4949
cached: true
50-
color: Theme.palette.alphaColor(Theme.palette.directColor1, 0.16)
50+
color: StatusColors.alphaColor(Theme.palette.directColor1, 0.16)
5151
}
5252
}
5353

ui/app/AppLayouts/Communities/controls/AddressesInputList.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Control {
9191
PropertyChanges {
9292
target: delegate
9393

94-
color: Theme.palette.alphaColor(
94+
color: StatusColors.alphaColor(
9595
Theme.palette.dangerColor1, 0.05)
9696
}
9797

ui/app/AppLayouts/Communities/controls/IssuePill.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Control {
6161
background: Rectangle {
6262
id: background
6363
radius: 100
64-
color: Theme.palette.alphaColor(root.baseColor, 0.03)
64+
color: StatusColors.alphaColor(root.baseColor, 0.03)
6565
border.width: 1
66-
border.color: Theme.palette.alphaColor(root.baseColor, 0.3)
66+
border.color: StatusColors.alphaColor(root.baseColor, 0.3)
6767
}
6868

6969
contentItem: RowLayout {

ui/app/AppLayouts/Communities/panels/OverviewSettingsChart.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ StatusChartPanel {
3838

3939
//visual properties
4040
readonly property string baseColor1: Theme.palette.baseColor1
41-
readonly property string twentyPercentBaseColor1: Theme.palette.alphaColor(baseColor1, 0.2)
41+
readonly property string twentyPercentBaseColor1: StatusColors.alphaColor(baseColor1, 0.2)
4242
readonly property string barColor: Theme.palette.primaryColor2
4343
readonly property string barBorderColor: Theme.palette.primaryColor1
4444

0 commit comments

Comments
 (0)