mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-26 13:07:49 -04:00
32 lines
876 B
QML
32 lines
876 B
QML
import QtQuick
|
|
import qs.Common
|
|
import qs.Modules.Settings.Widgets
|
|
import qs.Modules.Settings.DesktopWidgetSettings
|
|
|
|
DesktopWidgetInstanceSettings {
|
|
id: root
|
|
|
|
property var parentModal: null
|
|
|
|
showAppearance: false
|
|
|
|
SettingsToggleRow {
|
|
text: I18n.tr("Background")
|
|
checked: root.cfg.background ?? false
|
|
onToggled: checked => root.updateConfig("background", checked)
|
|
}
|
|
|
|
SettingsToggleRow {
|
|
text: I18n.tr("Show media player")
|
|
checked: root.cfg.showMediaPlayer ?? true
|
|
onToggled: checked => root.updateConfig("showMediaPlayer", checked)
|
|
}
|
|
|
|
SettingsSplitRow {
|
|
title: I18n.tr("Weather")
|
|
checked: root.cfg.showWeather ?? true
|
|
onToggled: checked => root.updateConfig("showWeather", checked)
|
|
onNavigated: keyboard => root.parentModal?.navigateTo("weather", keyboard)
|
|
}
|
|
}
|