Skip to content

Commit b15391c

Browse files
committed
chore: improve text contrast on light mode
1 parent 2e762ea commit b15391c

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Coder Desktop/Coder Desktop/VPNMenuState.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ enum AgentStatus: Int, Equatable, Comparable {
3333
case .okay: .green
3434
case .warn: .yellow
3535
case .error: .red
36-
case .off: .gray
36+
case .off: .secondary
3737
}
3838
}
3939

Coder Desktop/Coder Desktop/Views/Agents.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct Agents<VPN: VPNService>: View {
2121
if items.count == 0 {
2222
Text("No workspaces!")
2323
.font(.body)
24-
.foregroundColor(.gray)
24+
.foregroundColor(.secondary)
2525
.padding(.horizontal, Theme.Size.trayInset)
2626
.padding(.top, 2)
2727
}
@@ -30,7 +30,7 @@ struct Agents<VPN: VPNService>: View {
3030
Toggle(isOn: $viewAll) {
3131
Text(viewAll ? "Show less" : "Show all")
3232
.font(.headline)
33-
.foregroundColor(.gray)
33+
.foregroundColor(.secondary)
3434
.padding(.horizontal, Theme.Size.trayInset)
3535
.padding(.top, 2)
3636
}.toggleStyle(.button).buttonStyle(.plain)

Coder Desktop/Coder Desktop/Views/VPNMenu.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct VPNMenu<VPN: VPNService>: View {
3030
Divider()
3131
Text("Workspaces")
3232
.font(.headline)
33-
.foregroundColor(.gray)
33+
.foregroundColor(.secondary)
3434
VPNState<VPN>()
3535
}.padding([.horizontal, .top], Theme.Size.trayInset)
3636
Agents<VPN>()

Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct MenuItemView: View {
5656
var formattedName = AttributedString(name)
5757
formattedName.foregroundColor = .primary
5858
if let range = formattedName.range(of: ".coder") {
59-
formattedName[range].foregroundColor = .gray
59+
formattedName[range].foregroundColor = .secondary
6060
}
6161
return formattedName
6262
}

Coder Desktop/Coder Desktop/Views/VPNState.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ struct VPNState<VPN: VPNService>: View {
1212
case (.failed(.systemExtensionError(.needsUserApproval)), _):
1313
Text("Awaiting System Extension approval")
1414
.font(.body)
15-
.foregroundStyle(.gray)
15+
.foregroundStyle(.secondary)
1616
case (_, false):
1717
Text("Sign in to use CoderVPN")
1818
.font(.body)
19-
.foregroundColor(.gray)
19+
.foregroundColor(.secondary)
2020
case (.disabled, _):
2121
Text("Enable CoderVPN to see workspaces")
2222
.font(.body)
23-
.foregroundStyle(.gray)
23+
.foregroundStyle(.secondary)
2424
case (.connecting, _), (.disconnecting, _):
2525
HStack {
2626
Spacer()

0 commit comments

Comments
 (0)