Skip to content

Commit b89a9d4

Browse files
committed
Improve styling of octagon icons in STAnnotationLabelView
1 parent c76d620 commit b89a9d4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Sources/STAnnotationsPluginShared/STAnnotationLabelView.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ public struct STAnnotationLabelView: View {
3232
ZStack {
3333
// the way it draws bothers me
3434
// https://twitter.com/krzyzanowskim/status/1527723492002643969
35-
Image(systemName: "octagon")
36-
.symbolVariant(.fill)
37-
.foregroundStyle(.red)
35+
Group {
36+
Image(systemName: "octagon")
37+
.symbolVariant(.fill)
38+
.foregroundStyle(color).brightness(-0.4)
3839

39-
Image(systemName: "xmark.octagon")
40-
.foregroundStyle(.white)
40+
Image(systemName: "xmark.octagon")
41+
.foregroundStyle(.background)
42+
}.compositingGroup()
4143
}
4244
.shadow(color: color, radius: 1)
4345
}

0 commit comments

Comments
 (0)