Use trailing components in form
This commit is contained in:
parent
6c8d0fa404
commit
4db4664db3
@ -181,16 +181,13 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
RowLayout {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
MobileForm.FormRadioDelegate {
|
MobileForm.FormRadioDelegate {
|
||||||
id: markCustomUnreadNumberButton
|
id: markCustomUnreadNumberButton
|
||||||
checked: SettingsManager.markUnreadOnNewFeed === 1
|
checked: SettingsManager.markUnreadOnNewFeed === 1
|
||||||
text: i18n("Mark most recent episodes as unplayed")
|
text: i18n("Mark most recent episodes as unplayed")
|
||||||
onToggled: SettingsManager.markUnreadOnNewFeed = 1
|
onToggled: SettingsManager.markUnreadOnNewFeed = 1
|
||||||
}
|
|
||||||
|
|
||||||
Controls.SpinBox {
|
trailing: Controls.SpinBox {
|
||||||
Layout.rightMargin: Kirigami.Units.gridUnit
|
Layout.rightMargin: Kirigami.Units.gridUnit
|
||||||
id: markCustomUnreadNumberSpinBox
|
id: markCustomUnreadNumberSpinBox
|
||||||
enabled: markCustomUnreadNumberButton.checked
|
enabled: markCustomUnreadNumberButton.checked
|
||||||
@ -221,17 +218,11 @@ Kirigami.ScrollablePage {
|
|||||||
title: i18n("Article")
|
title: i18n("Article")
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileForm.AbstractFormDelegate {
|
MobileForm.FormTextDelegate {
|
||||||
id: fontSize
|
id: fontSize
|
||||||
background: Item {}
|
|
||||||
|
|
||||||
contentItem: RowLayout {
|
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
text: i18n("Font size")
|
text: i18n("Font size")
|
||||||
}
|
|
||||||
|
|
||||||
Controls.SpinBox {
|
trailing: Controls.SpinBox {
|
||||||
id: articleFontSizeSpinBox
|
id: articleFontSizeSpinBox
|
||||||
|
|
||||||
enabled: !useSystemFontCheckBox.checked
|
enabled: !useSystemFontCheckBox.checked
|
||||||
@ -243,7 +234,6 @@ Kirigami.ScrollablePage {
|
|||||||
onValueModified: SettingsManager.articleFontSize = value
|
onValueModified: SettingsManager.articleFontSize = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MobileForm.FormDelegateSeparator { above: fontSize; below: useSystemFontCheckBox }
|
MobileForm.FormDelegateSeparator { above: fontSize; below: useSystemFontCheckBox }
|
||||||
|
|
||||||
@ -268,21 +258,14 @@ Kirigami.ScrollablePage {
|
|||||||
title: i18n("Errors")
|
title: i18n("Errors")
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileForm.AbstractFormDelegate {
|
MobileForm.FormTextDelegate {
|
||||||
background: Item {}
|
|
||||||
contentItem: RowLayout {
|
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
text: i18n("Error log")
|
text: i18n("Error log")
|
||||||
}
|
trailing: Controls.Button {
|
||||||
|
|
||||||
Controls.Button {
|
|
||||||
icon.name: "error"
|
icon.name: "error"
|
||||||
text: i18n("Open Log")
|
text: i18n("Open Log")
|
||||||
onClicked: settingsErrorOverlay.open()
|
onClicked: settingsErrorOverlay.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ErrorListOverlay {
|
ErrorListOverlay {
|
||||||
id: settingsErrorOverlay
|
id: settingsErrorOverlay
|
||||||
|
@ -41,35 +41,20 @@ Kirigami.ScrollablePage {
|
|||||||
title: i18n("Storage path")
|
title: i18n("Storage path")
|
||||||
}
|
}
|
||||||
|
|
||||||
MobileForm.AbstractFormDelegate {
|
MobileForm.FormTextDelegate {
|
||||||
id: storagePath
|
id: storagePath
|
||||||
visible: Qt.platform.os !== "android" // not functional on android
|
visible: Qt.platform.os !== "android" // not functional on android
|
||||||
background: Item {}
|
|
||||||
|
|
||||||
contentItem: RowLayout {
|
|
||||||
spacing: 0
|
|
||||||
ColumnLayout {
|
|
||||||
spacing: Kirigami.Units.smallSpacing
|
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
elide: Text.ElideRight
|
|
||||||
text: i18n("Storage path")
|
text: i18n("Storage path")
|
||||||
}
|
description: StorageManager.storagePath
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
elide: Text.ElideRight
|
|
||||||
color: Kirigami.Theme.disabledTextColor
|
|
||||||
text: StorageManager.storagePath
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Controls.Button {
|
trailing: Controls.Button {
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
icon.name: "document-open-folder"
|
icon.name: "document-open-folder"
|
||||||
text: i18n("Select folder...")
|
text: i18n("Select folder...")
|
||||||
enabled: !defaultStoragePath.checked
|
enabled: !defaultStoragePath.checked
|
||||||
onClicked: storagePathDialog.open()
|
onClicked: storagePathDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
FileDialog {
|
FileDialog {
|
||||||
id: storagePathDialog
|
id: storagePathDialog
|
||||||
title: i18n("Select Storage Path")
|
title: i18n("Select Storage Path")
|
||||||
@ -80,7 +65,6 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MobileForm.FormDelegateSeparator { above: storagePath; below: defaultStoragePath }
|
MobileForm.FormDelegateSeparator { above: storagePath; below: defaultStoragePath }
|
||||||
|
|
||||||
@ -116,26 +100,11 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
MobileForm.FormDelegateSeparator {}
|
MobileForm.FormDelegateSeparator {}
|
||||||
|
|
||||||
MobileForm.AbstractFormDelegate {
|
MobileForm.FormTextDelegate {
|
||||||
background: Item {}
|
|
||||||
contentItem: RowLayout {
|
|
||||||
spacing: Kirigami.Units.largeSpacing
|
|
||||||
ColumnLayout {
|
|
||||||
spacing: Kirigami.Units.smallSpacing
|
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
elide: Text.ElideRight
|
|
||||||
text: i18n("Image cache")
|
text: i18n("Image cache")
|
||||||
}
|
description: i18nc("Using <amount of bytes> of disk space", "Using %1 of disk space", StorageManager.formattedImageDirSize)
|
||||||
Controls.Label {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
elide: Text.ElideRight
|
|
||||||
color: Kirigami.Theme.disabledTextColor
|
|
||||||
text: i18nc("Using <amount of bytes> of disk space", "Using %1 of disk space", StorageManager.formattedImageDirSize)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Controls.Button {
|
trailing: Controls.Button {
|
||||||
icon.name: "edit-clear-all"
|
icon.name: "edit-clear-all"
|
||||||
text: i18n("Clear Cache")
|
text: i18n("Clear Cache")
|
||||||
onClicked: StorageManager.clearImageCache();
|
onClicked: StorageManager.clearImageCache();
|
||||||
@ -144,5 +113,4 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user