Add shortcuts
This commit is contained in:
3 files changed
+35
-2
No files matched your search
@@ -4,11 +4,17 @@ import Asteria
|
||||
|
||||
Rectangle {
|
||||
id: header
|
||||
height: Theme.headerHeight
|
||||
height: barsVisible ? Theme.headerHeight : 0
|
||||
clip: true
|
||||
color: Theme.surface
|
||||
|
||||
property bool sidebarOpen: false
|
||||
property string currentPage: "starter"
|
||||
property bool barsVisible: true
|
||||
|
||||
Behavior on height {
|
||||
NumberAnimation { duration: 200; easing.type: Easing.InOutQuad }
|
||||
}
|
||||
|
||||
signal menuClicked()
|
||||
|
||||
|
||||
@@ -63,6 +63,22 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
z: 1
|
||||
onClicked: clickDebounce.restart()
|
||||
onDoubleClicked: {
|
||||
clickDebounce.stop()
|
||||
window.visibility = (window.visibility === Window.FullScreen) ? Window.Windowed : Window.FullScreen
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: clickDebounce
|
||||
interval: 150
|
||||
onTriggered: window.barsVisible = !window.barsVisible
|
||||
}
|
||||
|
||||
// Placeholder when no book is open
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
|
||||
Reference in new issue
Block a user