Files
DankMaterialShell/quickshell/Modules/Settings/BarWidgetOptions/NetworkMonitorOptions.qml
T
Spyros Psarras 66e37ff843 network monitor: add hide when idle and compact mode options (#3569)
* network monitor: add hide when idle and compact mode options

* network monitor: keep the idle widget out of center layout spacing
2026-10-07 13:59:21 -04:00

35 lines
1.2 KiB
QML

import QtQuick
import qs.Common
import qs.Modules.Settings.Widgets
Column {
id: root
property var page: null
width: parent?.width ?? 0
spacing: Theme.spacingL
SettingsCard {
settingKey: "barWidgetNetworkMonitor"
SettingsToggleRow {
resetStore: root.page
resetKeys: ["hideWhenIdle"]
text: I18n.tr("Hide when idle", "network speed widget option, hides the widget while traffic is low")
description: I18n.tr("While download and upload are both under 1 KB/s", "network speed widget option description for hide when idle")
checked: root.page.value("hideWhenIdle") === true
onToggled: checked => root.page.set("hideWhenIdle", checked)
}
SettingsToggleRow {
resetStore: root.page
resetKeys: ["compactMode"]
text: I18n.tr("Compact mode")
description: I18n.tr("Whole numbers, at most three digits", "network speed widget option, shows 1 MB/s instead of 1023.4 KB/s")
checked: root.page.value("compactMode") === true
onToggled: checked => root.page.set("compactMode", checked)
}
}
}