formatter
This commit is contained in:
+23
-31
@@ -11,80 +11,72 @@ import qs.Modules.Launcher as Launcher
|
||||
import qs.Modules.Settings as Settings
|
||||
|
||||
Shape {
|
||||
id: root
|
||||
id: root
|
||||
|
||||
required property Panels panels
|
||||
required property Item bar
|
||||
required property Item bar
|
||||
required property Panels panels
|
||||
required property PersistentProperties visibilities
|
||||
|
||||
anchors.fill: parent
|
||||
// anchors.margins: 8
|
||||
anchors.topMargin: bar.implicitHeight
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
anchors.fill: parent
|
||||
// anchors.margins: 8
|
||||
anchors.topMargin: bar.implicitHeight
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
|
||||
Component.onCompleted: console.log(root.bar.implicitHeight, root.bar.anchors.topMargin)
|
||||
|
||||
Osd.Background {
|
||||
wrapper: root.panels.osd
|
||||
|
||||
startX: root.width - root.panels.sidebar.width
|
||||
startY: ( root.height - wrapper.height ) / 2 - rounding
|
||||
startY: (root.height - wrapper.height) / 2 - rounding
|
||||
wrapper: root.panels.osd
|
||||
}
|
||||
|
||||
Modules.Background {
|
||||
wrapper: root.panels.popouts
|
||||
invertBottomRounding: wrapper.x <= 0
|
||||
|
||||
startX: wrapper.x - 8
|
||||
startY: wrapper.y
|
||||
}
|
||||
Modules.Background {
|
||||
invertBottomRounding: wrapper.x <= 0
|
||||
startX: wrapper.x - 8
|
||||
startY: wrapper.y
|
||||
wrapper: root.panels.popouts
|
||||
}
|
||||
|
||||
Notifications.Background {
|
||||
wrapper: root.panels.notifications
|
||||
sidebar: sidebar
|
||||
|
||||
startX: root.width
|
||||
startY: 0
|
||||
wrapper: root.panels.notifications
|
||||
}
|
||||
|
||||
Launcher.Background {
|
||||
wrapper: root.panels.launcher
|
||||
|
||||
startX: ( root.width - wrapper.width ) / 2 - rounding
|
||||
startX: (root.width - wrapper.width) / 2 - rounding
|
||||
startY: root.height
|
||||
wrapper: root.panels.launcher
|
||||
}
|
||||
|
||||
Dashboard.Background {
|
||||
wrapper: root.panels.dashboard
|
||||
|
||||
startX: root.width - root.panels.dashboard.width - rounding
|
||||
startY: 0
|
||||
wrapper: root.panels.dashboard
|
||||
}
|
||||
|
||||
Utils.Background {
|
||||
wrapper: root.panels.utilities
|
||||
sidebar: sidebar
|
||||
|
||||
startX: root.width
|
||||
startY: root.height
|
||||
wrapper: root.panels.utilities
|
||||
}
|
||||
|
||||
Sidebar.Background {
|
||||
id: sidebar
|
||||
|
||||
wrapper: root.panels.sidebar
|
||||
panels: root.panels
|
||||
|
||||
startX: root.width
|
||||
startY: root.panels.notifications.height
|
||||
wrapper: root.panels.sidebar
|
||||
}
|
||||
|
||||
Settings.Background {
|
||||
id: settings
|
||||
|
||||
wrapper: root.panels.settings
|
||||
|
||||
startX: ( root.width - wrapper.width ) / 2 - rounding
|
||||
startX: (root.width - wrapper.width) / 2 - rounding
|
||||
startY: 0
|
||||
wrapper: root.panels.settings
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user