diff --git a/sidebar/package/contents/ui/CategoriesPage.qml b/sidebar/package/contents/ui/CategoriesPage.qml --- a/sidebar/package/contents/ui/CategoriesPage.qml +++ b/sidebar/package/contents/ui/CategoriesPage.qml @@ -84,7 +84,6 @@ } } Kirigami.Separator { - visible: !categoryView.atYBeginning anchors { left: parent.left right: parent.right diff --git a/sidebar/package/contents/ui/SubCategoryPage.qml b/sidebar/package/contents/ui/SubCategoryPage.qml --- a/sidebar/package/contents/ui/SubCategoryPage.qml +++ b/sidebar/package/contents/ui/SubCategoryPage.qml @@ -33,19 +33,22 @@ Accessible.role: Accessible.Button Accessible.name: i18n("Back") - Item { + Rectangle { id: headerControls + color: applicationWindow().wideScreen ? Kirigami.Theme.backgroundColor : Kirigami.Theme.viewBackgroundColor anchors.fill: parent - QtControls.ToolButton { + QtControls.Button { id: backButton anchors.fill: parent + anchors.margins: 5 visible: !applicationWindow().wideScreen onClicked: root.pageStack.currentIndex = 0; RowLayout { anchors.fill: parent + anchors.leftMargin: 5 Kirigami.Icon { id: toolButtonIcon @@ -76,13 +79,12 @@ text: subCategoryColumn.title elide: Text.ElideRight visible: !backButton.visible - opacity: 0.3 //FIXME: QtControls bug, why? Component.onCompleted: font.bold = true } } Kirigami.Separator { - visible: !subCategoryView.atYBeginning + visible: applicationWindow().wideScreen anchors { left: parent.left right: parent.right