1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

feat: Initial Privacy inidicators implementation

This commit is contained in:
purian23
2025-08-06 20:48:38 -04:00
parent 732f31d3c1
commit d036684842
4 changed files with 363 additions and 1 deletions

View File

@@ -176,6 +176,8 @@ PanelWindow {
return true;
case "systemTray":
return true;
case "privacyIndicator":
return true;
case "clipboard":
return true;
case "systemResources":
@@ -211,6 +213,8 @@ PanelWindow {
return weatherComponent;
case "systemTray":
return systemTrayComponent;
case "privacyIndicator":
return privacyIndicatorComponent;
case "clipboard":
return clipboardComponent;
case "systemResources":
@@ -552,6 +556,21 @@ PanelWindow {
}
Component {
id: privacyIndicatorComponent
PrivacyIndicator {
section: {
if (parent && parent.parent === leftSection) return "left";
if (parent && parent.parent === rightSection) return "right";
if (parent && parent.parent === centerSection) return "center";
return "right";
}
parentScreen: root.screen
}
}
Component {
id: clipboardComponent