mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Replace Backlight Icons
This commit is contained in:
parent
a62de8fbe8
commit
5be3b9a80e
2 changed files with 13 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue