added three new modules (Crypto.qml, Battery.qml, Network.qml), improved Stats.qml, improved Tray.qml, optimized code in general, added a polkit agent, configurations change (check configs)

This commit is contained in:
SomeElse
2026-05-14 04:56:33 +00:00
parent 046a36fbec
commit e3bfa6661f
31 changed files with 5857 additions and 353 deletions

View File

@@ -7,16 +7,33 @@ import Quickshell.Io
import "bar"
import "launcher"
import "widgets/bgDate"
import "polkit"
import "config" as Cfg
ShellRoot {
id: root
Component.onCompleted: {
Qt.application.organization = "quickshell"
Qt.application.name = "quickshell"
}
readonly property bool isTop: Cfg.Config.barPosition === "top"
property color frameBackground: Cfg.Config.theme.bgFrame
property color frameBorderColor: Cfg.Config.theme.frameBorder ?? Cfg.Config.theme.borderPopup
// ── Polkit Agent ─────────────────────────────────────────────────────────
Loader {
active: Cfg.Config.enablePolkit
source: Qt.resolvedUrl("polkit/Polkit.qml")
}
Component {
id: polkitComp
Polkit {}
}
// ── Spacing Gap: Top / Bottom ────────────────────────────────────────
Variants {
model: Quickshell.screens
@@ -117,7 +134,6 @@ ShellRoot {
id: frameCanvas
anchors.fill: parent
// Animation Properties
opacity: 0
scale: 0.98
@@ -212,9 +228,6 @@ ShellRoot {
ctx.stroke()
}
onWidthChanged: requestPaint()
onHeightChanged: requestPaint()
Connections {
target: root
function onFrameBackgroundChanged() { frameCanvas.requestPaint() }
@@ -245,4 +258,3 @@ ShellRoot {
}
}
}