forked from Shinonome/dots-hyprland
feat(settings): add weather section
This commit is contained in:
@@ -73,7 +73,7 @@ Singleton {
|
|||||||
property int showNumberDelay: 300 // milliseconds
|
property int showNumberDelay: 300 // milliseconds
|
||||||
}
|
}
|
||||||
property QtObject weather: QtObject {
|
property QtObject weather: QtObject {
|
||||||
property bool show: true
|
property bool show: false
|
||||||
// for specific location checkout gps setting
|
// for specific location checkout gps setting
|
||||||
property string city: "Istanbul"
|
property string city: "Istanbul"
|
||||||
// use uscs units
|
// 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user