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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user