feat: start tinkering with adding a footer for the playerbar on the ApplicationWindow
This commit is contained in:
parent
4e78c664e6
commit
e3a00ab8ac
4 changed files with 49 additions and 1 deletions
|
@ -8,11 +8,13 @@ Kirigami.ApplicationWindow {
|
|||
visible: true
|
||||
width: 1000
|
||||
|
||||
footer: PlayerBar {
|
||||
}
|
||||
globalDrawer: PrimaryNavigation {
|
||||
windowRef: root
|
||||
}
|
||||
|
||||
// TODO: Implement an onboarding page
|
||||
pageStack.initialPage: HomePage {
|
||||
pageStack.initialPage: Root {
|
||||
}
|
||||
}
|
||||
|
|
23
desktop/qml/PlayerBar/PlayerBar.qml
Normal file
23
desktop/qml/PlayerBar/PlayerBar.qml
Normal file
|
@ -0,0 +1,23 @@
|
|||
import QtQuick.Controls as Controls
|
||||
import QtQuick.Layouts
|
||||
import org.kde.kirigami as Kirigami
|
||||
|
||||
ColumnLayout {
|
||||
id: playerBar
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
Controls.Slider {
|
||||
id: seekSlider
|
||||
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
RowLayout {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Controls.Button {
|
||||
icon.height: Kirigami.Units.iconSizes.small
|
||||
icon.name: "media-seek-backward"
|
||||
}
|
||||
}
|
||||
}
|
21
desktop/qml/Root.qml
Normal file
21
desktop/qml/Root.qml
Normal file
|
@ -0,0 +1,21 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls as Controls
|
||||
import QtQuick.Layouts
|
||||
import org.kde.kirigami as Kirigami
|
||||
|
||||
Kirigami.Page {
|
||||
id: rootPage
|
||||
|
||||
ColumnLayout {
|
||||
id: rootLayout
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
||||
Controls.StackView {
|
||||
id: rootStack
|
||||
|
||||
initialItem: HomePage {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue