Skip to content

Commit c239987

Browse files
committed
Fix foregroundStyle ternary type mismatch: explicit Color.primary and Color.red
1 parent 4c297b5 commit c239987

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/swift/Views/Settings/PadLayoutEditView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ struct PadLayoutEditView: View {
203203
Text(id.uppercased())
204204
.font(.caption2.weight(.semibold))
205205
}
206-
.foregroundStyle(visible ? .primary : .red)
206+
.foregroundStyle(visible ? Color.primary : Color.red)
207207
.padding(.horizontal, 8)
208208
.padding(.vertical, 4)
209209
.background(visible ? Color.white.opacity(0.08) : Color.red.opacity(0.12), in: Capsule())

0 commit comments

Comments
 (0)