Commit 7e0d64df authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Fix overlaysheet widths

parent 81bbe637
......@@ -67,6 +67,7 @@ Kirigami.Page {
id: saveDialog
header: Kirigami.Heading {
level: 2
text: i18n("Save recording")
}
......@@ -78,6 +79,7 @@ Kirigami.Page {
Controls.Button {
flat: false
text: i18nc("@action:button", "Delete")
icon.name: "delete"
Layout.alignment: Qt.AlignRight
onClicked: {
AudioRecorder.reset()
......@@ -88,6 +90,7 @@ Kirigami.Page {
Controls.Button {
flat: false
text: i18nc("@action:button", "Save")
icon.name: "dialog-ok-apply"
Layout.alignment: Qt.AlignRight
onClicked: {
AudioRecorder.setRecordingName(recordingName.text);
......@@ -99,13 +102,17 @@ Kirigami.Page {
}
}
}
RowLayout {
implicitWidth: Kirigami.Units.gridUnit * 12
Controls.Label {
id: nameLabel
Layout.alignment: Qt.AlignVCenter
text: i18n("Name")
text: i18n("Name:")
}
Controls.TextField {
id: recordingName
Layout.fillWidth: true
placeholderText: i18n("Name (optional)")
}
}
......
......@@ -32,6 +32,9 @@ Kirigami.ScrollablePage {
ListView {
anchors.fill: parent
model: RecordingModel
// prevent default highlight
currentIndex: -1
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
......@@ -106,6 +109,7 @@ Kirigami.ScrollablePage {
Controls.Button {
flat: false
text: i18nc("@action:button", "Cancel")
icon.name: "dialog-cancel"
Layout.alignment: Qt.AlignRight
onClicked: editNameDialog.close();
}
......@@ -113,6 +117,7 @@ Kirigami.ScrollablePage {
Controls.Button {
flat: false
text: i18nc("@action:button", "Done")
icon.name: "dialog-ok"
Layout.alignment: Qt.AlignRight
onClicked: {
......@@ -124,22 +129,25 @@ Kirigami.ScrollablePage {
GridLayout {
columns: 2
rowSpacing: Kirigami.Units.largeSpacing
rowSpacing: Kirigami.Units.largeSpacing * 2
Kirigami.Heading {
text: i18n("Name")
text: i18n("Name:")
level: 4
}
Controls.TextField {
id: editDialogName
Layout.fillWidth: true
}
Kirigami.Heading {
text: i18n("Location")
text: i18n("Location:")
level: 4
}
Controls.Label {
id: editDialogLocation
Layout.fillWidth: true
wrapMode: Text.Wrap
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment