mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 05:57:47 -04:00
45 lines
911 B
QML
45 lines
911 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
SettingsRow {
|
|
id: root
|
|
|
|
property bool checked: false
|
|
property bool navigable: true
|
|
|
|
signal navigated(bool keyboard)
|
|
signal toggled(bool checked)
|
|
|
|
clickable: navigable
|
|
onClicked: keyboard => navigated(keyboard)
|
|
|
|
DankIcon {
|
|
name: "chevron_right"
|
|
size: Theme.iconSize
|
|
color: Theme.surfaceVariantText
|
|
rotation: I18n.isRtl ? 180 : 0
|
|
visible: root.navigable
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
SettingsDivider {
|
|
vertical: true
|
|
visible: root.navigable
|
|
}
|
|
|
|
Item {
|
|
width: Theme.spacingS
|
|
height: parent.height
|
|
visible: root.navigable
|
|
}
|
|
|
|
DankToggle {
|
|
hideText: true
|
|
text: root.title
|
|
checked: root.checked
|
|
enabled: root.enabled
|
|
onToggled: value => root.toggled(value)
|
|
}
|
|
}
|