Commit f00399c5 authored by Nate Graham's avatar Nate Graham
Browse files

Hide top-level view icon for main view toolbar

It's unneded since that same icon is visible in the sidebar.
parent db12a391
Pipeline #159431 passed with stage
in 4 minutes and 23 seconds
......@@ -71,16 +71,9 @@ Kirigami.Page {
onClicked: mainWindow.globalDrawer.open()
}
Kirigami.Icon {
id: mainIcon
source: elisaTheme.nowPlayingIcon
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
Layout.preferredWidth: Kirigami.Units.iconSizes.medium
Layout.preferredHeight: Kirigami.Units.iconSizes.medium
visible: !Kirigami.Settings.isMobile
}
Kirigami.Heading {
Layout.fillWidth: true
Layout.leftMargin: Kirigami.Units.largeSpacing
Layout.alignment: Qt.AlignVCenter
text: topItem.title
......
......@@ -213,7 +213,9 @@ Item {
},
Kirigami.Icon {
id: mainIcon
visible: image.toString().length > 0 && !Kirigami.Settings.isMobile // on mobile, we want more header space
visible: image.toString().length > 0
&& !Kirigami.Settings.isMobile // On mobile, we want more header space
&& navigationBar.enableGoBack // For top-level pages, the icon is redundant
source: image
Layout.alignment: Qt.AlignVCenter | Qt.AlignLeft
......@@ -224,6 +226,7 @@ Item {
id: authorAndAlbumLayout
Layout.fillWidth: true
Layout.fillHeight: true
Layout.leftMargin: mainIcon.visible ? Kirigami.Units.smallSpacing : Kirigami.Units.largeSpacing
spacing: 0
......
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