Tint the complication glyph with the watch face color

Mark the dumbbell .widgetAccentable() so the watch face paints it with
its main accent color instead of leaving it white.
This commit is contained in:
2026-06-21 09:16:55 -04:00
parent f29e35e667
commit ce69aec988
@@ -32,9 +32,12 @@ private struct LauncherView: View {
// The app icon's dumbbell runs lower-left to upper-right; tilt the glyph // The app icon's dumbbell runs lower-left to upper-right; tilt the glyph
// counter-clockwise to match (SwiftUI rotates clockwise for positive angles). // counter-clockwise to match (SwiftUI rotates clockwise for positive angles).
// `.widgetAccentable()` puts it in the accent group so the watch face tints
// it with its main color instead of leaving it white.
private var dumbbell: some View { private var dumbbell: some View {
Image(systemName: glyph) Image(systemName: glyph)
.rotationEffect(.degrees(-35)) .rotationEffect(.degrees(-35))
.widgetAccentable()
} }
var body: some View { var body: some View {