mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-05 06:59:50 -05:00
progress maybe, maybe not
This commit is contained in:
parent
ce6c1f410c
commit
83a0ac8899
21 changed files with 1412 additions and 49 deletions
|
|
@ -2,10 +2,8 @@ pragma ComponentBehavior: Bound
|
|||
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Qt5Compat.GraphicalEffects
|
||||
import Quickshell.Widgets
|
||||
import "../../widgets/" as Widgets
|
||||
import "../.."
|
||||
|
||||
WrapperItem {
|
||||
id: root
|
||||
|
|
@ -14,55 +12,16 @@ WrapperItem {
|
|||
ColumnLayout {
|
||||
spacing: 10
|
||||
|
||||
// Toolbar
|
||||
Rectangle {
|
||||
id: toolbar
|
||||
color: ShellSettings.colors["surface_container_highest"]
|
||||
radius: 10
|
||||
layer.enabled: true
|
||||
layer.effect: OpacityMask {
|
||||
maskSource: Rectangle {
|
||||
width: toolbar.width
|
||||
height: toolbar.height
|
||||
radius: toolbar.radius
|
||||
color: "black"
|
||||
}
|
||||
}
|
||||
|
||||
Widgets.TabBar {
|
||||
id: tabBar
|
||||
model: ["headphones", "tune"]
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: 30
|
||||
|
||||
RowLayout {
|
||||
spacing: 0
|
||||
anchors.fill: parent
|
||||
|
||||
Widgets.FontIconButton {
|
||||
hoverEnabled: false
|
||||
iconName: "headphones"
|
||||
radius: 0
|
||||
checked: page.currentIndex === 0
|
||||
onClicked: page.currentIndex = 0
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
|
||||
Widgets.FontIconButton {
|
||||
hoverEnabled: false
|
||||
iconName: "tune"
|
||||
radius: 0
|
||||
checked: page.currentIndex === 1
|
||||
onClicked: page.currentIndex = 1
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
Layout.preferredHeight: 35
|
||||
}
|
||||
|
||||
StackLayout {
|
||||
id: page
|
||||
currentIndex: 0
|
||||
currentIndex: tabBar.currentIndex
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: currentItem ? currentItem.implicitHeight : 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue