mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-17 17:19:02 +00:00
fix(StatusWarningBox): expose textSize
This commit is contained in:
parent
9366820d1f
commit
b0e24b0396
@ -45,25 +45,27 @@ Control {
|
||||
*/
|
||||
property string icon
|
||||
/*!
|
||||
\qmlproperty string StatusWarningBox::iconColor
|
||||
\qmlproperty color StatusWarningBox::iconColor
|
||||
This property sets the StatusWarningBox icon color.
|
||||
*/
|
||||
property string iconColor: "transparent"
|
||||
property color iconColor: "transparent"
|
||||
/*!
|
||||
\qmlproperty string StatusWarningBox::bgColor
|
||||
\qmlproperty color StatusWarningBox::bgColor
|
||||
This property sets the StatusWarningBox background color.
|
||||
*/
|
||||
property string bgColor: "transparent"
|
||||
property color bgColor: "transparent"
|
||||
/*!
|
||||
\qmlproperty string StatusWarningBox::borderColor
|
||||
\qmlproperty color StatusWarningBox::borderColor
|
||||
This property sets the StatusWarningBox border color.
|
||||
*/
|
||||
property string borderColor: Theme.palette.warningColor1
|
||||
property color borderColor: Theme.palette.warningColor1
|
||||
/*!
|
||||
\qmlproperty string StatusWarningBox::textColor
|
||||
\qmlproperty color StatusWarningBox::textColor
|
||||
This property sets the StatusWarningBox text color.
|
||||
*/
|
||||
property string textColor: Theme.palette.warningColor1
|
||||
property color textColor: Theme.palette.warningColor1
|
||||
|
||||
property int textSize: Theme.primaryTextFontSize
|
||||
|
||||
background: Rectangle {
|
||||
radius: 8
|
||||
@ -102,7 +104,7 @@ Control {
|
||||
Layout.preferredHeight: contentHeight
|
||||
wrapMode: Text.WordWrap
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
font.pixelSize: Theme.primaryTextFontSize
|
||||
font.pixelSize: root.textSize
|
||||
color: root.textColor
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user