Compare commits

..

2 commits

Author SHA1 Message Date
Damocles
3e78384433 configurable groupSpacing for gap between groups and gradient border 2026-04-13 16:22:48 +02:00
Damocles
e29853cbb6 workspace numbers use accent color when inactive 2026-04-13 16:19:32 +02:00
3 changed files with 10 additions and 7 deletions

View file

@ -96,16 +96,16 @@ PanelWindow {
Item { Item {
anchors.fill: parent anchors.fill: parent
anchors.topMargin: 3 anchors.topMargin: M.Theme.groupSpacing
anchors.leftMargin: 6 anchors.leftMargin: M.Theme.groupSpacing
anchors.rightMargin: 6 anchors.rightMargin: M.Theme.groupSpacing
// ---- center (declared first so left/right can anchor to it) ---- // ---- center (declared first so left/right can anchor to it) ----
RowLayout { RowLayout {
id: centerSection id: centerSection
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: M.Theme.barSpacing spacing: M.Theme.groupSpacing
M.Privacy {} M.Privacy {}
M.BarGroup { M.BarGroup {
@ -124,7 +124,7 @@ PanelWindow {
anchors.left: parent.left anchors.left: parent.left
anchors.right: centerSection.left anchors.right: centerSection.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: M.Theme.barSpacing spacing: M.Theme.groupSpacing
M.BarGroup { M.BarGroup {
leftEdge: true leftEdge: true
@ -156,7 +156,7 @@ PanelWindow {
anchors.left: centerSection.right anchors.left: centerSection.right
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
spacing: M.Theme.barSpacing spacing: M.Theme.groupSpacing
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true

View file

@ -33,6 +33,7 @@ QtObject {
property int barPadding: 8 property int barPadding: 8
property int barSpacing: 12 property int barSpacing: 12
property int moduleSpacing: 4 property int moduleSpacing: 4
property int groupSpacing: 6
property int radius: 4 property int radius: 4
property int screenRadius: 15 property int screenRadius: 15
@ -71,6 +72,8 @@ QtObject {
root.barSpacing = data.barSpacing; root.barSpacing = data.barSpacing;
if (data.moduleSpacing !== undefined) if (data.moduleSpacing !== undefined)
root.moduleSpacing = data.moduleSpacing; root.moduleSpacing = data.moduleSpacing;
if (data.groupSpacing !== undefined)
root.groupSpacing = data.groupSpacing;
if (data.radius !== undefined) if (data.radius !== undefined)
root.radius = data.radius; root.radius = data.radius;
if (data.screenRadius !== undefined) if (data.screenRadius !== undefined)

View file

@ -100,7 +100,7 @@ Row {
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
text: pill.modelData.idx text: pill.modelData.idx
color: pill.active ? M.Theme.base00 : M.Theme.base04 color: pill.active ? M.Theme.base00 : (root.parent?.accentColor ?? M.Theme.base05)
font.pixelSize: M.Theme.fontSize - 2 font.pixelSize: M.Theme.fontSize - 2
font.family: M.Theme.fontFamily font.family: M.Theme.fontFamily
font.bold: pill.active font.bold: pill.active