feat: start tinkering with adding a footer for the playerbar on the ApplicationWindow

This commit is contained in:
Joshua Strobl 2024-10-06 13:05:43 +03:00
parent 4e78c664e6
commit e3a00ab8ac
4 changed files with 49 additions and 1 deletions

View file

@ -27,9 +27,11 @@ ecm_add_qml_module(com.github.joshstrobl.koto URI "com.github.joshstrobl.koto" G
ecm_target_qml_sources(com.github.joshstrobl.koto
SOURCES
qml/PlayerBar/PlayerBar.qml
qml/PrimaryNavigation.qml
qml/HomePage.qml
qml/Main.qml
qml/Root.qml
)
target_link_libraries(com.github.joshstrobl.koto

View file

@ -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 {
}
}

View 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
View 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 {
}
}
}
}