1
0

make Constants an Item and a child of main so it properly inherits material

style settings from main
This commit is contained in:
Sander van Grieken
2022-04-07 12:25:10 +02:00
parent 90416bd6e2
commit c4c35c7cde
6 changed files with 15 additions and 13 deletions

View File

@@ -28,8 +28,8 @@ GridLayout {
id: infotext
Layout.fillWidth: true
readOnly: true
rightPadding: 16
leftPadding: 64
rightPadding: constants.paddingLarge
leftPadding: 2*constants.iconSizeLarge
wrapMode: TextInput.WordWrap
textFormat: TextEdit.RichText
background: Rectangle {
@@ -40,10 +40,10 @@ GridLayout {
source: iconStyle == InfoTextArea.IconStyle.Info ? "../../../icons/info.png" : InfoTextArea.IconStyle.Warn ? "../../../icons/warning.png" : InfoTextArea.IconStyle.Error ? "../../../icons/expired.png" : ""
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: 16
anchors.topMargin: 16
height: 32
width: 32
anchors.leftMargin: constants.paddingLarge
anchors.topMargin: constants.paddingLarge
height: constants.iconSizeLarge
width: constants.iconSizeLarge
fillMode: Image.PreserveAspectCrop
}