mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 21:02:06 -04:00
Connected frames & defaults
This commit is contained in:
@@ -7,7 +7,7 @@ import qs.Common
|
||||
Variants {
|
||||
id: root
|
||||
|
||||
model: SettingsData.frameEnabled ? SettingsData.getFrameFilteredScreens() : []
|
||||
model: SettingsData.getFrameScreensAlways()
|
||||
|
||||
FrameInstance {
|
||||
required property ShellScreen modelData
|
||||
|
||||
@@ -7,10 +7,10 @@ import qs.Common
|
||||
Item {
|
||||
id: root
|
||||
|
||||
required property var barEdges // array of "top" | "bottom" | "left" | "right"
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
required property var barEdges
|
||||
|
||||
readonly property real _thickness: SettingsData.frameThickness
|
||||
readonly property real _barThickness: SettingsData.frameBarThickness
|
||||
readonly property real _rounding: SettingsData.frameRounding
|
||||
|
||||
@@ -19,7 +19,7 @@ Scope {
|
||||
// Skips any edge where a bar already provides its own exclusiveZone.
|
||||
|
||||
Loader {
|
||||
active: !root.barEdges.includes("top")
|
||||
active: SettingsData.frameEnabled && !root.barEdges.includes("top")
|
||||
sourceComponent: EdgeExclusion {
|
||||
screen: root.screen
|
||||
anchorTop: true
|
||||
@@ -29,7 +29,7 @@ Scope {
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: !root.barEdges.includes("bottom")
|
||||
active: SettingsData.frameEnabled && !root.barEdges.includes("bottom")
|
||||
sourceComponent: EdgeExclusion {
|
||||
screen: root.screen
|
||||
anchorBottom: true
|
||||
@@ -39,7 +39,7 @@ Scope {
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: !root.barEdges.includes("left")
|
||||
active: SettingsData.frameEnabled && !root.barEdges.includes("left")
|
||||
sourceComponent: EdgeExclusion {
|
||||
screen: root.screen
|
||||
anchorLeft: true
|
||||
@@ -49,7 +49,7 @@ Scope {
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: !root.barEdges.includes("right")
|
||||
active: SettingsData.frameEnabled && !root.barEdges.includes("right")
|
||||
sourceComponent: EdgeExclusion {
|
||||
screen: root.screen
|
||||
anchorRight: true
|
||||
|
||||
@@ -28,9 +28,7 @@ PanelWindow {
|
||||
|
||||
FrameBorder {
|
||||
anchors.fill: parent
|
||||
barEdges: {
|
||||
SettingsData.barConfigs; // force re-eval when bar configs change
|
||||
return SettingsData.getActiveBarEdgesForScreen(win.screen);
|
||||
}
|
||||
visible: SettingsData.frameEnabled
|
||||
barEdges: { SettingsData.barConfigs; return SettingsData.getActiveBarEdgesForScreen(win.screen); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user