Replace Backlight Icons

This commit is contained in:
Hariharan Mudaliar 2025-11-30 16:00:20 +05:30
commit 5be3b9a80e
2 changed files with 13 additions and 2 deletions

View file

@ -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) {