mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-14 15:24:00 -04:00
28 lines
1.2 KiB
QML
28 lines
1.2 KiB
QML
import qs.Modules.SurfaceWidgets
|
|
|
|
SurfaceWidgetHost {
|
|
required property var sectionContext
|
|
|
|
surfaceContext: sectionContext.surfaceContext
|
|
widgetId: widgetData.widgetId
|
|
spacerSize: widgetData.size || 20
|
|
components: sectionContext.components
|
|
isInColumn: sectionContext.isVertical
|
|
axis: sectionContext.axis
|
|
section: sectionContext.section
|
|
parentScreen: sectionContext.parentScreen
|
|
widgetThickness: sectionContext.widgetThickness
|
|
barThickness: sectionContext.barThickness
|
|
barSpacing: sectionContext.barSpacing
|
|
barConfig: sectionContext.barConfig
|
|
blurBarWindow: sectionContext.blurBarWindow
|
|
sectionAvailablePrimarySize: sectionContext.sectionAvailablePrimarySize
|
|
sectionSpacing: sectionContext.widgetSpacing
|
|
segmentRole: sectionContext.roleAt(occurrenceOrder)
|
|
isLeftBarEdge: !isInColumn && section === "left" && sectionContext.edgeIsScreenEdge
|
|
isRightBarEdge: !isInColumn && section === "right" && sectionContext.edgeIsScreenEdge
|
|
isTopBarEdge: isInColumn && section === "left" && sectionContext.edgeIsScreenEdge
|
|
isBottomBarEdge: isInColumn && section === "right" && sectionContext.edgeIsScreenEdge
|
|
crossEdgeExtension: !isInColumn && section !== "center" ? sectionContext.crossEdgeExtension : 0
|
|
}
|