diff --git a/src/qml/ImageWithFallback.qml b/src/qml/ImageWithFallback.qml index 89c13c13..e4d0bdf9 100644 --- a/src/qml/ImageWithFallback.qml +++ b/src/qml/ImageWithFallback.qml @@ -68,39 +68,40 @@ Item { anchors.fill: parent source: "rss" } + } + } - Component { - id: imageText - Item { - Rectangle { - anchors.fill: header - opacity: 0.5 - color: "black" - } - - Kirigami.Heading { - id: header - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: parent.right - padding: 10 - text: root.imageTitle - level: 3 - color: "white" - wrapMode: Text.Wrap - elide: Text.ElideRight - } - } + Component { + id: imageText + Item { + Rectangle { + anchors.fill: header + opacity: 0.5 + color: "black" } - Loader { - anchors.fill: parent - active: root.imageTitle !== "" - sourceComponent: imageText + Kirigami.Heading { + id: header + anchors.bottom: parent.bottom + anchors.left: parent.left + anchors.right: parent.right + padding: 10 + text: root.imageTitle + level: 3 + font.bold: true + color: "white" + wrapMode: Text.Wrap + elide: Text.ElideRight } } } + Loader { + anchors.fill: parent + active: root.imageTitle !== "" && (SettingsManager.alwaysShowFeedTitles ? true : (imageSource === "no-image" || imageSource === "fetching")) + sourceComponent: imageText + } + Component { id: loaderSymbol Item { diff --git a/src/qml/SettingsPage.qml b/src/qml/SettingsPage.qml index 439c1900..ac50f7bd 100644 --- a/src/qml/SettingsPage.qml +++ b/src/qml/SettingsPage.qml @@ -54,6 +54,18 @@ Kirigami.ScrollablePage { onToggled: SettingsManager.autoDownload = checked } + Kirigami.Heading { + Kirigami.FormData.isSection: true + text: i18n("Appearance") + } + + Controls.CheckBox { + id: alwaysShowFeedTitles + checked: SettingsManager.alwaysShowFeedTitles + text: i18n("Always show feed titles in subscription view") + onToggled: SettingsManager.alwaysShowFeedTitles = checked + } + Kirigami.Heading { Kirigami.FormData.isSection: true text: i18n("Article") diff --git a/src/settingsmanager.kcfg b/src/settingsmanager.kcfg index be711128..83390996 100644 --- a/src/settingsmanager.kcfg +++ b/src/settingsmanager.kcfg @@ -17,6 +17,10 @@ false + + + false + false