mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Sysmon: panel
This commit is contained in:
@@ -183,6 +183,13 @@ Item {
|
||||
shapeContainer: backgroundsShape
|
||||
backgroundColor: panelBackgroundColor
|
||||
}
|
||||
|
||||
// System Stats
|
||||
PanelBackground {
|
||||
panel: root.windowRoot.systemStatsPanelPlaceholder
|
||||
shapeContainer: backgroundsShape
|
||||
backgroundColor: panelBackgroundColor
|
||||
}
|
||||
}
|
||||
|
||||
// Apply shadow to the cached layer
|
||||
|
||||
@@ -23,6 +23,7 @@ import qs.Modules.Panels.Plugins
|
||||
import qs.Modules.Panels.SessionMenu
|
||||
import qs.Modules.Panels.Settings
|
||||
import qs.Modules.Panels.SetupWizard
|
||||
import qs.Modules.Panels.SystemStats
|
||||
import qs.Modules.Panels.Tray
|
||||
import qs.Modules.Panels.Wallpaper
|
||||
import qs.Modules.Panels.WiFi
|
||||
@@ -53,6 +54,7 @@ PanelWindow {
|
||||
readonly property alias wifiPanel: wifiPanel
|
||||
readonly property alias pluginPanel1: pluginPanel1
|
||||
readonly property alias pluginPanel2: pluginPanel2
|
||||
readonly property alias systemStatsPanel: systemStatsPanel
|
||||
|
||||
// Expose panel backgrounds for AllBackgrounds
|
||||
readonly property var audioPanelPlaceholder: audioPanel.panelRegion
|
||||
@@ -72,6 +74,7 @@ PanelWindow {
|
||||
readonly property var wifiPanelPlaceholder: wifiPanel.panelRegion
|
||||
readonly property var pluginPanel1Placeholder: pluginPanel1.panelRegion
|
||||
readonly property var pluginPanel2Placeholder: pluginPanel2.panelRegion
|
||||
readonly property var systemStatsPanelPlaceholder: systemStatsPanel.panelRegion
|
||||
|
||||
Component.onCompleted: {
|
||||
Logger.d("MainScreen", "Initialized for screen:", screen?.name, "- Dimensions:", screen?.width, "x", screen?.height, "- Position:", screen?.x, ",", screen?.y);
|
||||
@@ -293,6 +296,12 @@ PanelWindow {
|
||||
screen: root.screen
|
||||
}
|
||||
|
||||
SystemStatsPanel {
|
||||
id: systemStatsPanel
|
||||
objectName: "systemStatsPanel-" + (root.screen?.name || "unknown")
|
||||
screen: root.screen
|
||||
}
|
||||
|
||||
// ----------------------------------------------
|
||||
// Plugin panel slots
|
||||
// ----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user