fixed bugs and made a better version of the circular hud

This commit is contained in:
delli 2025-12-20 12:43:21 +01:00
commit 4be4c36bb4
2 changed files with 37 additions and 25 deletions

View file

@ -56,6 +56,13 @@ struct SystemEventIndicatorModifier: View {
.contentTransition(.interpolate)
.frame(width: 20, height: 15)
.foregroundStyle(.white)
case .bluetoothAudio:
if !icon.isEmpty {
Image(systemName: icon)
.contentTransition(.interpolate)
.frame(width: 20, height: 15)
.foregroundStyle(.white)
}
default:
EmptyView()
}
@ -72,6 +79,8 @@ struct SystemEventIndicatorModifier: View {
ProgressSection(value: $value, showPercentages: showProgressPercentages)
case .backlight:
ProgressSection(value: $value, showPercentages: showProgressPercentages)
case .bluetoothAudio:
ProgressSection(value: $value, showPercentages: showProgressPercentages, colorMode: .battery)
default:
ProgressSection(value: $value, showPercentages: showProgressPercentages)
}