Change to inline header for EntryPage
This includes a minor update to GenericListHeader
This commit is contained in:
parent
7a3cd64c6b
commit
f681ef0f4f
@ -21,14 +21,19 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
title: entry.title
|
title: entry.title
|
||||||
|
|
||||||
header: GenericListHeader {
|
padding: 0 // needed to get the inline header to fill the page
|
||||||
|
|
||||||
|
ColumnLayout {
|
||||||
|
GenericListHeader {
|
||||||
|
id: infoHeader
|
||||||
|
Layout.fillWidth: true
|
||||||
image: entry.image
|
image: entry.image
|
||||||
title: entry.title
|
title: entry.title
|
||||||
subtitle: entry.feed.name
|
subtitle: entry.feed.name
|
||||||
}
|
}
|
||||||
|
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
width: page.width - 30
|
Layout.margins: Kirigami.Units.gridUnit
|
||||||
id: text
|
id: text
|
||||||
text: page.entry.content
|
text: page.entry.content
|
||||||
baseUrl: page.entry.baseUrl
|
baseUrl: page.entry.baseUrl
|
||||||
@ -39,6 +44,8 @@ Kirigami.ScrollablePage {
|
|||||||
onLinkActivated: Qt.openUrlExternally(link)
|
onLinkActivated: Qt.openUrlExternally(link)
|
||||||
//onWidthChanged: { text = entry.adjustedContent(width, font.pixelSize) }
|
//onWidthChanged: { text = entry.adjustedContent(width, font.pixelSize) }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
actions.main: Kirigami.Action {
|
actions.main: Kirigami.Action {
|
||||||
text: !entry.enclosure ? i18n("Open in Browser") :
|
text: !entry.enclosure ? i18n("Open in Browser") :
|
||||||
entry.enclosure.status === Enclosure.Downloadable ? i18n("Download") :
|
entry.enclosure.status === Enclosure.Downloadable ? i18n("Download") :
|
||||||
@ -62,3 +69,4 @@ Kirigami.ScrollablePage {
|
|||||||
onTriggered: { DataManager.addToQueue(entry) }
|
onTriggered: { DataManager.addToQueue(entry) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,10 +19,8 @@ Item {
|
|||||||
property string subtitle: ""
|
property string subtitle: ""
|
||||||
property var headerHeight: Kirigami.Units.gridUnit * 8
|
property var headerHeight: Kirigami.Units.gridUnit * 8
|
||||||
|
|
||||||
//anchors.top: parent.top // this seems to cause an anchor loop
|
implicitHeight: headerHeight
|
||||||
anchors.right: parent.right
|
implicitWidth: parent.width
|
||||||
anchors.left: parent.left
|
|
||||||
height: headerHeight
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: backgroundimage
|
id: backgroundimage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user