mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 07:03:08 +00:00
homescreens/folio: Add arrow if there is one page
Show arrow to open app drawer if there is only one page. Open the app drawer if it is tapped.
This commit is contained in:
parent
474886cb44
commit
2f3bca4a1e
1 changed files with 25 additions and 0 deletions
|
|
@ -324,6 +324,7 @@ Item {
|
|||
anchors.rightMargin: root.rightMargin
|
||||
anchors.bottomMargin: favouritesBarAtBottom ? 0 : (root.bottomMargin + Kirigami.Units.largeSpacing)
|
||||
|
||||
// show page indicator if there are multiple pages
|
||||
QQC2.PageIndicator {
|
||||
visible: count > 1
|
||||
Kirigami.Theme.inherit: false
|
||||
|
|
@ -334,6 +335,30 @@ Item {
|
|||
|
||||
currentIndex: Folio.HomeScreenState.currentPage
|
||||
count: Folio.PageListModel.length
|
||||
|
||||
TapHandler {
|
||||
onTapped: Folio.HomeScreenState.openAppDrawer()
|
||||
}
|
||||
}
|
||||
|
||||
// show arrow to open app drawer when there is 1 page
|
||||
Kirigami.Icon {
|
||||
source: 'arrow-up'
|
||||
Kirigami.Theme.inherit: false
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
|
||||
|
||||
implicitHeight: Kirigami.Units.iconSizes.small
|
||||
implicitWidth: Kirigami.Units.iconSizes.small
|
||||
|
||||
visible: Folio.PageListModel.length <= 1
|
||||
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: Kirigami.Units.smallSpacing
|
||||
|
||||
TapHandler {
|
||||
onTapped: Folio.HomeScreenState.openAppDrawer()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue