feat(settings): add weather section

This commit is contained in:
Hasan A. Tekeoğlu
2025-06-28 08:35:22 +03:00
parent 660af6e018
commit bb456687a6
2 changed files with 15 additions and 2 deletions
@@ -73,7 +73,7 @@ Singleton {
property int showNumberDelay: 300 // milliseconds
}
property QtObject weather: QtObject {
property bool show: true
property bool show: false
// for specific location checkout gps setting
property string city: "Istanbul"
// use uscs units
@@ -136,4 +136,17 @@ ContentPage {
}
}
}
ContentSubsection {
title: "Weather"
ConfigRow {
uniform: false
ConfigSwitch {
text: "Show"
checked: ConfigOptions.bar.weather.show
onCheckedChanged: {
ConfigLoader.setConfigValueAndSave("bar.weather.show", checked);
}
}
}
}
}