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
|
@ -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
|
ecm_target_qml_sources(com.github.joshstrobl.koto
|
||||||
SOURCES
|
SOURCES
|
||||||
|
qml/PlayerBar/PlayerBar.qml
|
||||||
qml/PrimaryNavigation.qml
|
qml/PrimaryNavigation.qml
|
||||||
qml/HomePage.qml
|
qml/HomePage.qml
|
||||||
qml/Main.qml
|
qml/Main.qml
|
||||||
|
qml/Root.qml
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(com.github.joshstrobl.koto
|
target_link_libraries(com.github.joshstrobl.koto
|
||||||
|
|
|
@ -8,11 +8,13 @@ Kirigami.ApplicationWindow {
|
||||||
visible: true
|
visible: true
|
||||||
width: 1000
|
width: 1000
|
||||||
|
|
||||||
|
footer: PlayerBar {
|
||||||
|
}
|
||||||
globalDrawer: PrimaryNavigation {
|
globalDrawer: PrimaryNavigation {
|
||||||
windowRef: root
|
windowRef: root
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement an onboarding page
|
// 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