diff options
Diffstat (limited to 'components/WarningBox.qml')
| -rw-r--r-- | components/WarningBox.qml | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/components/WarningBox.qml b/components/WarningBox.qml index db0673da..bc85975c 100644 --- a/components/WarningBox.qml +++ b/components/WarningBox.qml @@ -28,12 +28,12 @@ Rectangle { Image { Layout.alignment: Qt.AlignVCenter - Layout.preferredHeight: 33 - Layout.preferredWidth: 33 - Layout.rightMargin: 14 - Layout.leftMargin: 14 - Layout.topMargin: 12 - Layout.bottomMargin: 12 + Layout.preferredHeight: 33 * scaleRatio + Layout.preferredWidth: 33 * scaleRatio + Layout.rightMargin: 12 * scaleRatio + Layout.leftMargin: 18 * scaleRatio + Layout.topMargin: 12 * scaleRatio + Layout.bottomMargin: 12 * scaleRatio source: "../images/warning.png" } @@ -44,22 +44,19 @@ Rectangle { font.family: MoneroComponents.Style.fontRegular.name font.pixelSize: root.fontSize horizontalAlignment: TextInput.AlignLeft - selectionColor: MoneroComponents.Style.dimmedFontColor selectByMouse: true textFormat: Text.RichText wrapMode: Text.WordWrap textMargin: 0 - leftPadding: 0 - topPadding: 6 + leftPadding: 4 * scaleRatio + rightPadding: 18 * scaleRatio + topPadding: 10 * scaleRatio + bottomPadding: 10 * scaleRatio readOnly: true onLinkActivated: root.linkActivated(); - // @TODO: Legacy. Remove after Qt 5.8. - // https://stackoverflow.com/questions/41990013 - MouseArea { - anchors.fill: parent - enabled: false - } + selectionColor: MoneroComponents.Style.dimmedFontColor + selectedTextColor: MoneroComponents.Style.defaultFontColor } } } |
