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:
22
shell.qml
22
shell.qml
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user