mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
093acdbff7
add Theme.XXS
39 lines
915 B
QML
39 lines
915 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
property var widgetData: null
|
|
|
|
signal showMountPathChanged(bool show)
|
|
|
|
width: 260
|
|
height: menuColumn.implicitHeight + Theme.spacingS * 2
|
|
radius: Theme.cornerRadius
|
|
color: Theme.surfaceContainer
|
|
border.color: Theme.outlineStrong
|
|
border.width: 1
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
}
|
|
|
|
Column {
|
|
id: menuColumn
|
|
anchors.fill: parent
|
|
anchors.margins: Theme.spacingS
|
|
spacing: Theme.spacingXXS
|
|
|
|
DankToggle {
|
|
width: parent.width
|
|
text: I18n.tr("Show mount path", "toggle in control center disk usage widget to turn mount path display on or off")
|
|
checked: root.widgetData?.showMountPath !== false
|
|
onToggled: newChecked => {
|
|
root.showMountPathChanged(newChecked);
|
|
}
|
|
}
|
|
}
|
|
}
|