diff --git a/DynamicIsland/components/Live activities/InlineHUD.swift b/DynamicIsland/components/Live activities/InlineHUD.swift index cbe5660..5e075c4 100644 --- a/DynamicIsland/components/Live activities/InlineHUD.swift +++ b/DynamicIsland/components/Live activities/InlineHUD.swift @@ -109,7 +109,7 @@ struct InlineHUD: View { .contentTransition(.interpolate) .frame(width: 20, height: 15, alignment: .center) case .backlight: - Image(systemName: "keyboard") + Image(systemName: BacklightSymbol(value)) .contentTransition(.interpolate) .frame(width: 20, height: 15, alignment: .center) case .mic: @@ -353,6 +353,13 @@ struct InlineHUD: View { return "sun.min" } } + + func BacklightSymbol(_ value: CGFloat) -> String { + if value >= 0.5 { + return "light.max" + } + return "light.min" + } func Type2Name(_ type: SneakContentType) -> String { switch(type) { diff --git a/DynamicIsland/components/Live activities/SystemEventIndicatorModifier.swift b/DynamicIsland/components/Live activities/SystemEventIndicatorModifier.swift index 97cceab..a7b93a5 100644 --- a/DynamicIsland/components/Live activities/SystemEventIndicatorModifier.swift +++ b/DynamicIsland/components/Live activities/SystemEventIndicatorModifier.swift @@ -46,7 +46,7 @@ struct SystemEventIndicatorModifier: View { .frame(width: 20, height: 15) .foregroundStyle(.white) case .backlight: - Image(systemName: "keyboard") + Image(systemName: BacklightSymbol(value)) .contentTransition(.symbolEffect) .frame(width: 20, height: 15) .foregroundStyle(.white) @@ -95,6 +95,10 @@ struct SystemEventIndicatorModifier: View { return "speaker.wave.2" } } + + func BacklightSymbol(_ value: CGFloat) -> String { + value >= 0.5 ? "light.max" : "light.min" + } } struct ProgressSection: View {