Skip to content

Commit

Permalink
Add more space in settings and forms in QML
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Nov 1, 2020
1 parent 624e0bf commit bffbda9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/gui-qml/src/components/AddSourceScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Page {
signal accepted()
signal rejected()

padding: 8
padding: 16

header: ToolBar {
RowLayout {
Expand Down
6 changes: 3 additions & 3 deletions src/gui-qml/src/components/settings/SettingItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ Rectangle {
property string name
property string subtitle

implicitHeight: Math.max(placeholder.implicitHeight, colLayout.implicitHeight) + rowLayout.anchors.topMargin + rowLayout.anchors.bottomMargin
implicitHeight: Math.max(42, Math.max(placeholder.implicitHeight, colLayout.implicitHeight) + rowLayout.anchors.topMargin + rowLayout.anchors.bottomMargin)
color: mouseArea.pressed ? Qt.rgba(0, 0, 0, 0.1) : "transparent"

RowLayout {
id: rowLayout
anchors.fill: parent
anchors.topMargin: 6
anchors.bottomMargin: 6
anchors.leftMargin: 8
anchors.rightMargin: 8
anchors.leftMargin: 16
anchors.rightMargin: 16

Item {
Layout.fillWidth: true
Expand Down
4 changes: 2 additions & 2 deletions src/gui-qml/src/components/settings/SettingTitle.qml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import QtQuick.Controls 2.12

Label {
font.bold: true
padding: 8
bottomPadding: 4
padding: 16
bottomPadding: 8
}
3 changes: 3 additions & 0 deletions src/gui-qml/src/components/settings/SettingsScreen.qml
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,19 @@ Page {
}
LinkSettingItem {
name: qsTr("Patreon")
subtitle: "@bionus"
url: "https://www.patreon.com/bionus"
Layout.fillWidth: true
}
LinkSettingItem {
name: qsTr("Paypal")
subtitle: "@jvasti"
url: "https://www.paypal.me/jvasti"
Layout.fillWidth: true
}
LinkSettingItem {
name: qsTr("Github")
subtitle: "@Bionus"
url: "https://github.com/sponsors/Bionus"
Layout.fillWidth: true
}
Expand Down

0 comments on commit bffbda9

Please sign in to comment.