wrap all items in pane

This commit is contained in:
Benjamin Palko 2025-09-11 17:05:14 -04:00
parent 2b6b9aee28
commit 8104e3c099
2 changed files with 74 additions and 60 deletions

View file

@ -1,5 +1,6 @@
import qs.components
import qs.config
import qs.services
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
@ -14,6 +15,7 @@ GridLayout {
text: "ToolTip"
font.pixelSize: 18
}
StyledPane {
Button {
id: toolTipButton
text: "Hello world!"
@ -23,12 +25,14 @@ GridLayout {
}
}
}
}
ColumnLayout {
StyledText {
text: "ProgressBar"
font.pixelSize: 18
}
StyledPane {
StyledProgressBar {
id: progressBar
indeterminate: true
@ -38,12 +42,14 @@ GridLayout {
value: 50
}
}
}
ColumnLayout {
StyledText {
text: "ListView"
font.pixelSize: 18
}
StyledPane {
StyledWrapperRectangle {
border.color: Styling.theme.base100
border.width: 2
@ -57,30 +63,36 @@ GridLayout {
}
}
}
}
ColumnLayout {
StyledText {
text: "Mpris Player Selector"
font.pixelSize: 18
}
StyledPane {
MprisPlayerSelector {}
}
}
ColumnLayout {
StyledText {
text: "Mpris Controller"
font.pixelSize: 18
}
StyledPane {
MprisController {
player: Mpris.active ?? null
}
}
}
ColumnLayout {
StyledText {
text: "Drawer"
font.pixelSize: 18
}
StyledPane {
RowLayout {
Button {
text: "Top"
@ -120,6 +132,7 @@ GridLayout {
}
}
}
}
StyledDrawer {
id: drawer

View file

@ -1,5 +1,4 @@
import qs.components
import qs.config
import QtQuick
import QtQuick.Layouts
@ -14,8 +13,10 @@ GridLayout {
font.pixelSize: 18
}
StyledPane {
StyledSwitch {
text: "Enable"
}
}
}
}