Skip to content

Commit 1e58826

Browse files
committed
Improve dashboard header and groups
1 parent 90b2de4 commit 1e58826

8 files changed

Lines changed: 392 additions & 31 deletions

File tree

.hack/hack.config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"dev_host": "hack-cli.hack",
55
"controlPlane": {
66
"extensions": {
7-
"dance.hack.tickets": { "enabled": true }
7+
"dance.hack.tickets": {
8+
"enabled": true
9+
}
810
}
911
}
1012
}

apps/macos/Packages/Features/DashboardFeature/Sources/DashboardFeature/DashboardView.swift

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -312,21 +312,11 @@ public struct DashboardView: View {
312312
}
313313

314314
private var titlebarNeutralIconTint: NSColor {
315-
titlebarIconTint(lightOpacity: 0.72, darkOpacity: 0.90)
315+
NSColor.labelColor.withAlphaComponent(0.84)
316316
}
317317

318318
private var titlebarNeutralIconHoverTint: NSColor {
319-
titlebarIconTint(lightOpacity: 0.86, darkOpacity: 1.0)
320-
}
321-
322-
private func titlebarIconTint(lightOpacity: CGFloat, darkOpacity: CGFloat) -> NSColor {
323-
NSColor(name: nil) { appearance in
324-
let isDark = appearance.bestMatch(from: [.darkAqua, .aqua]) == .darkAqua
325-
if isDark {
326-
return NSColor.white.withAlphaComponent(darkOpacity)
327-
}
328-
return NSColor.black.withAlphaComponent(lightOpacity)
329-
}
319+
NSColor.labelColor
330320
}
331321

332322
private var shouldShowGlobalRecoveryOverlay: Bool {

0 commit comments

Comments
 (0)