mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 15:07:49 -04:00
28 lines
767 B
QML
28 lines
767 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
DankFlickable {
|
|
id: root
|
|
|
|
default property alias content: column.data
|
|
property alias spacing: column.spacing
|
|
property alias columnWidth: column.width
|
|
property int contentMaxWidth: SettingsMetrics.contentMaxWidth
|
|
property Item fabBar: null
|
|
|
|
anchors.fill: parent
|
|
clip: true
|
|
contentHeight: column.height + Theme.spacingXL
|
|
contentWidth: width
|
|
|
|
Column {
|
|
id: column
|
|
topPadding: Theme.spacingXS
|
|
width: Math.min(root.contentMaxWidth, parent.width - Theme.spacingL * 2)
|
|
bottomPadding: SettingsMetrics.pagePaddingV + (root.fabBar?.reservedHeight ?? 0)
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
spacing: Theme.spacingL
|
|
}
|
|
}
|