mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Add Sunrise widget and update the icons
This commit is contained in:
parent
f7242e85e8
commit
eddca8b4dd
5 changed files with 138 additions and 9 deletions
|
|
@ -2974,6 +2974,7 @@ struct LockScreenSettings: View {
|
|||
@Default(.lockScreenWeatherShowsCharging) private var lockScreenWeatherShowsCharging
|
||||
@Default(.lockScreenWeatherShowsBatteryGauge) private var lockScreenWeatherShowsBatteryGauge
|
||||
@Default(.lockScreenWeatherShowsAQI) private var lockScreenWeatherShowsAQI
|
||||
@Default(.lockScreenWeatherShowsSunrise) private var lockScreenWeatherShowsSunrise
|
||||
@Default(.lockScreenWeatherAQIScale) private var lockScreenWeatherAQIScale
|
||||
|
||||
private func highlightID(_ title: String) -> String {
|
||||
|
|
@ -3089,6 +3090,10 @@ struct LockScreenSettings: View {
|
|||
.settingsHighlight(id: highlightID("Show charging percentage"))
|
||||
}
|
||||
|
||||
Defaults.Toggle("Show sunrise time", key: .lockScreenWeatherShowsSunrise)
|
||||
.disabled(lockScreenWeatherWidgetStyle != .inline)
|
||||
.settingsHighlight(id: highlightID("Show sunrise time"))
|
||||
|
||||
Defaults.Toggle("Show battery indicator", key: .lockScreenWeatherShowsBatteryGauge)
|
||||
.settingsHighlight(id: highlightID("Show battery indicator"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue