From b15391c2c5bfed1dfb32ada5e59f5b34d5d9493b Mon Sep 17 00:00:00 2001 From: Ethan Dickson Date: Wed, 26 Feb 2025 19:00:40 +1100 Subject: [PATCH] chore: improve text contrast on light mode --- Coder Desktop/Coder Desktop/VPNMenuState.swift | 2 +- Coder Desktop/Coder Desktop/Views/Agents.swift | 4 ++-- Coder Desktop/Coder Desktop/Views/VPNMenu.swift | 2 +- Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift | 2 +- Coder Desktop/Coder Desktop/Views/VPNState.swift | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Coder Desktop/Coder Desktop/VPNMenuState.swift b/Coder Desktop/Coder Desktop/VPNMenuState.swift index e3afa9aa..69817e89 100644 --- a/Coder Desktop/Coder Desktop/VPNMenuState.swift +++ b/Coder Desktop/Coder Desktop/VPNMenuState.swift @@ -33,7 +33,7 @@ enum AgentStatus: Int, Equatable, Comparable { case .okay: .green case .warn: .yellow case .error: .red - case .off: .gray + case .off: .secondary } } diff --git a/Coder Desktop/Coder Desktop/Views/Agents.swift b/Coder Desktop/Coder Desktop/Views/Agents.swift index d44d95a2..0ca65759 100644 --- a/Coder Desktop/Coder Desktop/Views/Agents.swift +++ b/Coder Desktop/Coder Desktop/Views/Agents.swift @@ -21,7 +21,7 @@ struct Agents: View { if items.count == 0 { Text("No workspaces!") .font(.body) - .foregroundColor(.gray) + .foregroundColor(.secondary) .padding(.horizontal, Theme.Size.trayInset) .padding(.top, 2) } @@ -30,7 +30,7 @@ struct Agents: View { Toggle(isOn: $viewAll) { Text(viewAll ? "Show less" : "Show all") .font(.headline) - .foregroundColor(.gray) + .foregroundColor(.secondary) .padding(.horizontal, Theme.Size.trayInset) .padding(.top, 2) }.toggleStyle(.button).buttonStyle(.plain) diff --git a/Coder Desktop/Coder Desktop/Views/VPNMenu.swift b/Coder Desktop/Coder Desktop/Views/VPNMenu.swift index e2f6771c..5b3810d2 100644 --- a/Coder Desktop/Coder Desktop/Views/VPNMenu.swift +++ b/Coder Desktop/Coder Desktop/Views/VPNMenu.swift @@ -30,7 +30,7 @@ struct VPNMenu: View { Divider() Text("Workspaces") .font(.headline) - .foregroundColor(.gray) + .foregroundColor(.secondary) VPNState() }.padding([.horizontal, .top], Theme.Size.trayInset) Agents() diff --git a/Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift b/Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift index 43aac471..b43e7c56 100644 --- a/Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift +++ b/Coder Desktop/Coder Desktop/Views/VPNMenuItem.swift @@ -56,7 +56,7 @@ struct MenuItemView: View { var formattedName = AttributedString(name) formattedName.foregroundColor = .primary if let range = formattedName.range(of: ".coder") { - formattedName[range].foregroundColor = .gray + formattedName[range].foregroundColor = .secondary } return formattedName } diff --git a/Coder Desktop/Coder Desktop/Views/VPNState.swift b/Coder Desktop/Coder Desktop/Views/VPNState.swift index 1424d433..8ef4e2b2 100644 --- a/Coder Desktop/Coder Desktop/Views/VPNState.swift +++ b/Coder Desktop/Coder Desktop/Views/VPNState.swift @@ -12,15 +12,15 @@ struct VPNState: View { case (.failed(.systemExtensionError(.needsUserApproval)), _): Text("Awaiting System Extension approval") .font(.body) - .foregroundStyle(.gray) + .foregroundStyle(.secondary) case (_, false): Text("Sign in to use CoderVPN") .font(.body) - .foregroundColor(.gray) + .foregroundColor(.secondary) case (.disabled, _): Text("Enable CoderVPN to see workspaces") .font(.body) - .foregroundStyle(.gray) + .foregroundStyle(.secondary) case (.connecting, _), (.disconnecting, _): HStack { Spacer() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy