Adjust OpenWithDialog margins
This commit is contained in:
parent
9cc0c4b752
commit
c9e03b9b4a
1 changed files with 12 additions and 4 deletions
|
@ -61,18 +61,20 @@ Item {
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: _mainLayout
|
id: _mainLayout
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.margins: FishUI.Units.largeSpacing
|
spacing: 0
|
||||||
spacing: FishUI.Units.largeSpacing * 2
|
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: listView
|
id: listView
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: 200
|
Layout.preferredHeight: 250
|
||||||
model: ListModel {}
|
model: ListModel {}
|
||||||
spacing: FishUI.Units.smallSpacing * 1.5
|
spacing: FishUI.Units.smallSpacing * 1.5
|
||||||
ScrollBar.vertical: ScrollBar {}
|
ScrollBar.vertical: ScrollBar {}
|
||||||
clip: true
|
clip: true
|
||||||
|
|
||||||
|
leftMargin: FishUI.Units.largeSpacing
|
||||||
|
rightMargin: FishUI.Units.largeSpacing
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: qsTr("No applications")
|
text: qsTr("No applications")
|
||||||
|
@ -81,7 +83,7 @@ Item {
|
||||||
|
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
id: item
|
id: item
|
||||||
width: ListView.view.width
|
width: ListView.view.width - listView.leftMargin - listView.rightMargin
|
||||||
height: 30 + FishUI.Units.largeSpacing
|
height: 30 + FishUI.Units.largeSpacing
|
||||||
scale: mouseArea.pressed ? 0.95 : 1.0
|
scale: mouseArea.pressed ? 0.95 : 1.0
|
||||||
|
|
||||||
|
@ -142,10 +144,16 @@ Item {
|
||||||
text: qsTr("Set as default")
|
text: qsTr("Set as default")
|
||||||
enabled: listView.count >= 1
|
enabled: listView.count >= 1
|
||||||
padding: 0
|
padding: 0
|
||||||
|
|
||||||
|
Layout.leftMargin: FishUI.Units.largeSpacing
|
||||||
|
Layout.bottomMargin: FishUI.Units.largeSpacing
|
||||||
}
|
}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
spacing: FishUI.Units.largeSpacing
|
spacing: FishUI.Units.largeSpacing
|
||||||
|
Layout.leftMargin: FishUI.Units.largeSpacing
|
||||||
|
Layout.rightMargin: FishUI.Units.largeSpacing
|
||||||
|
Layout.bottomMargin: FishUI.Units.largeSpacing
|
||||||
|
|
||||||
Button {
|
Button {
|
||||||
text: qsTr("Cancel")
|
text: qsTr("Cancel")
|
||||||
|
|
Loading…
Reference in a new issue