move Theme, SystemStats, Modules to shell/services/

This commit is contained in:
Damocles 2026-04-17 22:07:00 +02:00
parent 197f6976e0
commit 989182d603
59 changed files with 432 additions and 388 deletions

View file

@ -2,6 +2,7 @@ import QtQuick
import Quickshell
import Quickshell.Wayland
import "." as M
import "../services" as S
// Unified bar panel fullscreen transparent window so content can resize
// freely without triggering Wayland surface resizes.
@ -236,7 +237,7 @@ PanelWindow {
y: panelContainer.y
width: panelContainer.width
height: panelContainer.height
opacity: panelContainer.opacity * Math.max(M.Theme.barOpacity, 0.85)
opacity: panelContainer.opacity * Math.max(S.Theme.barOpacity, 0.85)
accentColor: root.accentColor
}
@ -301,9 +302,9 @@ PanelWindow {
anchors.verticalCenter: parent.verticalCenter
text: root.panelTitle
color: root.accentColor
font.pixelSize: M.Theme.fontSize - 1
font.pixelSize: S.Theme.fontSize - 1
font.bold: true
font.family: M.Theme.fontFamily
font.family: S.Theme.fontFamily
}
// Action buttons anchored left of pin button slot
@ -337,9 +338,9 @@ PanelWindow {
Text {
anchors.centerIn: parent
text: root._pinned ? "\uDB81\uDC03" : "\uDB82\uDD31"
color: root._pinned ? root.accentColor : M.Theme.base04
font.pixelSize: M.Theme.fontSize - 1
font.family: M.Theme.iconFontFamily
color: root._pinned ? root.accentColor : S.Theme.base04
font.pixelSize: S.Theme.fontSize - 1
font.family: S.Theme.iconFontFamily
Behavior on color {
ColorAnimation {
@ -355,7 +356,7 @@ PanelWindow {
anchors.right: parent.right
anchors.bottom: parent.bottom
height: 1
color: M.Theme.base03
color: S.Theme.base03
}
}
@ -375,7 +376,7 @@ PanelWindow {
color: "transparent"
border.color: root.accentColor
border.width: 1
radius: M.Theme.radius
radius: S.Theme.radius
opacity: panelContainer.opacity
}
}