tabbbss are still kinda fucked

This commit is contained in:
Benjamin Palko 2025-09-16 08:48:23 -04:00
parent 9d6a88aa43
commit c76f29345e
4 changed files with 122 additions and 58 deletions

View file

@ -1,10 +1,10 @@
pragma ComponentBehavior: Bound
import qs.components
import qs.config
import qs.services
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell.Hyprland
import Quickshell.Wayland
@ -16,6 +16,8 @@ StyledPanelWindow {
implicitWidth: 500
implicitHeight: 600
background.color: Styling.theme.base200
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.keyboardFocus: root.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
@ -27,50 +29,51 @@ StyledPanelWindow {
}
}
Item {
id: layout
anchors.fill: parent
StyledTabBar {
id: tabs
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: view.top
implicitHeight: 40
StyledTabBar {
id: tabs
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: view.top
StyledTabButton {
text: "Fields"
}
StyledTabButton {
text: "Selectors"
}
StyledTabButton {
text: "Components"
}
}
StyledTabButton {
text: "Fields"
}
StyledTabButton {
text: "Selectors"
}
StyledTabButton {
text: "Components"
}
SwipeView {
id: view
anchors.top: tabs.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
currentIndex: tabs.currentIndex
background: Rectangle {
color: Styling.theme.base100
radius: Styling.theme.radiusBox
}
SwipeView {
id: view
anchors.top: tabs.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
currentIndex: tabs.currentIndex
ScrollView {
padding: 36
Fields {}
}
ScrollView {
padding: 36
Selectors {}
}
ScrollView {
padding: 36
Components {}
}
ScrollView {
padding: 36
Fields {}
}
ScrollView {
padding: 36
Selectors {}
}
ScrollView {
padding: 36
Components {}
}
}
}