mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-17 00:34:01 -04:00
deprecation notice to plugin compatibility shims - When qml-common became a thing, we left qs.Widgets shims in place for plugin compatibility - It's annoying to need to maintain them when qml-common has any change, add a warning so we can safely deprecate them in the future - One shot rename the common stuff to D to make it shorter and nicer to write
45 lines
913 B
QML
45 lines
913 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.DCommon.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)
|
|
|
|
DIcon {
|
|
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
|
|
}
|
|
|
|
DToggle {
|
|
hideText: true
|
|
text: root.title
|
|
checked: root.checked
|
|
enabled: root.enabled
|
|
onToggled: value => root.toggled(value)
|
|
}
|
|
}
|