Compare commits

..

2 commits

Author SHA1 Message Date
Benjamin Palko
d9bb01c6e8 reduce default padding 2025-09-11 17:08:21 -04:00
Benjamin Palko
8104e3c099 wrap all items in pane 2025-09-11 17:05:14 -04:00
3 changed files with 75 additions and 61 deletions

View file

@ -5,7 +5,7 @@ import QtQuick.Controls
Pane { Pane {
id: pane id: pane
padding: 24 padding: 8
background: Rectangle { background: Rectangle {
color: "transparent" color: "transparent"
border.width: Styling.theme.border border.width: Styling.theme.border

View file

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

View file

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