Made the Macbook icon available in inline mode too

This commit is contained in:
Hariharan Mudaliar 2025-12-09 13:21:01 +05:30
commit 0416115da5
No known key found for this signature in database
GPG key ID: D04F1C2B9194DDFC
3 changed files with 1 additions and 12 deletions

View file

@ -18644,10 +18644,6 @@
},
"Temperature unit" : {
},
"The MacBook icon is available only in the circular layout." : {
"comment" : "A message displayed below a toggle that lets the user choose whether to show a MacBook icon in the battery gauge of the weather widget. The message explains that the MacBook icon is only available when the weather widget is in a",
"isCommentAutoGenerated" : true
},
"TheDynamicIsland" : {

View file

@ -2696,14 +2696,7 @@ struct LockScreenSettings: View {
if lockScreenWeatherShowsBatteryGauge {
Defaults.Toggle("Use MacBook icon when on battery", key: .lockScreenWeatherBatteryUsesLaptopSymbol)
.disabled(lockScreenWeatherWidgetStyle != .circular)
.settingsHighlight(id: highlightID("Use MacBook icon when on battery"))
if lockScreenWeatherWidgetStyle != .circular {
Text("The MacBook icon is available only in the circular layout.")
.font(.caption)
.foregroundStyle(.secondary)
}
}
Defaults.Toggle("Show Bluetooth battery", key: .lockScreenWeatherShowsBluetooth)

View file

@ -346,7 +346,7 @@ final class LockScreenWeatherManager: ObservableObject {
guard clampedLevel >= 0 else { return nil }
let usesLaptopSymbol = widgetStyle == .circular && Defaults[.lockScreenWeatherBatteryUsesLaptopSymbol]
let usesLaptopSymbol = Defaults[.lockScreenWeatherBatteryUsesLaptopSymbol]
return LockScreenWeatherSnapshot.BatteryInfo(
batteryLevel: clampedLevel,