test new systray #50
+1
-1
@@ -270,6 +270,7 @@ Singleton {
|
||||
function serializeServices(): var {
|
||||
return {
|
||||
weatherLocation: services.weatherLocation,
|
||||
updates: services.updates,
|
||||
useFahrenheit: services.useFahrenheit,
|
||||
ddcutilService: services.ddcutilService,
|
||||
useTwelveHourClock: services.useTwelveHourClock,
|
||||
@@ -322,7 +323,6 @@ Singleton {
|
||||
|
||||
ElapsedTimer {
|
||||
id: timer
|
||||
|
||||
}
|
||||
|
||||
Timer {
|
||||
|
||||
@@ -14,6 +14,7 @@ JsonObject {
|
||||
"to": "YT Music"
|
||||
}
|
||||
]
|
||||
property bool updates: true
|
||||
property bool useFahrenheit: false
|
||||
property bool useTwelveHourClock: Qt.locale().timeFormat(Locale.ShortFormat).toLowerCase().includes("a")
|
||||
property int visualizerBars: 30
|
||||
|
||||
+3
-1
@@ -5,6 +5,7 @@ import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Paths
|
||||
import qs.Config
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
@@ -44,12 +45,13 @@ Singleton {
|
||||
Timer {
|
||||
interval: 1
|
||||
repeat: true
|
||||
running: true
|
||||
running: Config.services.updates
|
||||
|
||||
onTriggered: {
|
||||
if (!root.loaded || !root.commandReady)
|
||||
return;
|
||||
|
||||
if (Config.services.updates)
|
||||
updatesProc.running = true;
|
||||
interval = 5000;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,15 @@ SettingsPage {
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSwitch {
|
||||
name: "Check for updates"
|
||||
object: Config.services
|
||||
setting: "updates"
|
||||
}
|
||||
|
||||
Separator {
|
||||
}
|
||||
|
||||
SettingSwitch {
|
||||
name: "Use Fahrenheit"
|
||||
object: Config.services
|
||||
@@ -60,9 +69,9 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Audio increment"
|
||||
max: 1
|
||||
min: 0
|
||||
name: "Audio increment"
|
||||
object: Config.services
|
||||
setting: "audioIncrement"
|
||||
step: 0.05
|
||||
@@ -72,9 +81,9 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Brightness increment"
|
||||
max: 1
|
||||
min: 0
|
||||
name: "Brightness increment"
|
||||
object: Config.services
|
||||
setting: "brightnessIncrement"
|
||||
step: 0.05
|
||||
@@ -84,9 +93,9 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Max volume"
|
||||
max: 5
|
||||
min: 0
|
||||
name: "Max volume"
|
||||
object: Config.services
|
||||
setting: "maxVolume"
|
||||
step: 0.05
|
||||
@@ -105,8 +114,8 @@ SettingsPage {
|
||||
}
|
||||
|
||||
SettingSpinBox {
|
||||
name: "Visualizer bars"
|
||||
min: 1
|
||||
name: "Visualizer bars"
|
||||
object: Config.services
|
||||
setting: "visualizerBars"
|
||||
step: 1
|
||||
|
||||
Reference in New Issue
Block a user