mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-17 00:34:01 -04:00
them towards theme controlCenter: make a real grid, add numerous more tile varieties, add icon size option surfaces: fix elevation levels in general, and shift them down settings: restyles and re-org sliders: scale down universally
43 lines
862 B
QML
43 lines
862 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Widgets
|
|
|
|
SettingsRow {
|
|
id: root
|
|
|
|
property bool checked: false
|
|
|
|
signal navigated
|
|
signal toggled(bool checked)
|
|
|
|
clickable: true
|
|
onClicked: navigated()
|
|
|
|
DankIcon {
|
|
name: "chevron_right"
|
|
size: Theme.iconSize
|
|
color: Theme.surfaceVariantText
|
|
rotation: I18n.isRtl ? 180 : 0
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
Rectangle {
|
|
width: Theme.dividerWidth
|
|
height: SettingsMetrics.splitDividerHeight
|
|
color: Theme.outlineVariant
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
Item {
|
|
width: Theme.spacingS
|
|
height: parent.height
|
|
}
|
|
|
|
DankToggle {
|
|
hideText: true
|
|
checked: root.checked
|
|
enabled: root.enabled
|
|
onToggled: value => root.toggled(value)
|
|
}
|
|
}
|