Skip to content

Commit 42676b6

Browse files
committed
Fix startup crash when starting speed test
1 parent 989e776 commit 42676b6

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

App/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
<key>CFBundlePackageType</key>
2323
<string>APPL</string>
2424
<key>CFBundleShortVersionString</key>
25-
<string>1.2.2</string>
25+
<string>1.2.3</string>
2626
<key>CFBundleVersion</key>
27-
<string>1.2.2</string>
27+
<string>1.2.3</string>
2828
<key>LSMinimumSystemVersion</key>
2929
<string>14.0</string>
3030
<key>LSUIElement</key>

Sources/SpeedMenuBar/Views/MetricCardView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ enum SpeedChrome {
8989
static let panelWidth: CGFloat = 372
9090
static let panelCornerRadius: CGFloat = 20
9191
static let sectionCornerRadius: CGFloat = 18
92+
static let brand = Color(red: 0.20, green: 0.55, blue: 0.98)
9293
static let stroke = Color.white.opacity(0.16)
9394
static let divider = Color.white.opacity(0.11)
9495
static let iconFill = Color.white.opacity(0.09)

Sources/SpeedMenuBar/Views/SettingsWindowView.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,21 +131,21 @@ struct SettingsWindowView: View {
131131
.fill(
132132
LinearGradient(
133133
colors: [
134-
Color.accentColor.opacity(0.22),
135-
Color.accentColor.opacity(0.08)
134+
SpeedChrome.brand.opacity(0.22),
135+
SpeedChrome.brand.opacity(0.08)
136136
],
137137
startPoint: .topLeading,
138138
endPoint: .bottomTrailing
139139
)
140140
)
141141
.overlay(
142142
RoundedRectangle(cornerRadius: 18, style: .continuous)
143-
.stroke(Color.accentColor.opacity(0.12), lineWidth: 1)
143+
.stroke(SpeedChrome.brand.opacity(0.12), lineWidth: 1)
144144
)
145145

146146
Image(systemName: "speedometer")
147147
.font(.system(size: 26, weight: .semibold))
148-
.foregroundStyle(Color.accentColor)
148+
.foregroundStyle(SpeedChrome.brand)
149149
}
150150
.frame(width: 64, height: 64)
151151

@@ -246,7 +246,7 @@ struct SettingsWindowView: View {
246246
HStack(spacing: 6) {
247247
Image(systemName: appController.automaticTestInterval == .off ? "pause.circle.fill" : "clock.fill")
248248
.foregroundStyle(
249-
appController.automaticTestInterval == .off ? Color.secondary : Color.accentColor
249+
appController.automaticTestInterval == .off ? Color.secondary : SpeedChrome.brand
250250
)
251251

252252
Text(appController.automaticTestInterval.shortTitle(using: appController.localization.strings))
@@ -268,7 +268,7 @@ struct SettingsWindowView: View {
268268
private var updateToneColor: Color {
269269
switch appController.updateStatusTone {
270270
case .neutral:
271-
.accentColor
271+
SpeedChrome.brand
272272
case .muted:
273273
.secondary
274274
case .informative:

Sources/SpeedMenuBar/Views/SpeedMenuPanel.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct SpeedMenuPanel: View {
8989

9090
if let progress = viewModel.estimatedProgress {
9191
ProgressView(value: progress)
92-
.tint(Color.accentColor.opacity(0.8))
92+
.tint(SpeedChrome.brand.opacity(0.85))
9393
.controlSize(.small)
9494
}
9595

@@ -271,7 +271,7 @@ struct SpeedMenuPanel: View {
271271

272272
private var summaryBadgeColor: Color {
273273
if viewModel.isRunning {
274-
return .accentColor
274+
return SpeedChrome.brand
275275
}
276276

277277
if viewModel.errorMessage != nil {
@@ -341,7 +341,7 @@ struct SpeedMenuPanel: View {
341341
}
342342

343343
private var primaryActionColor: Color {
344-
viewModel.isRunning ? .red : .accentColor
344+
viewModel.isRunning ? .red : SpeedChrome.brand
345345
}
346346

347347
private func summaryMetric(

0 commit comments

Comments
 (0)