native macOS codings agent orchestrator
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #36 from onevcat/feature/canvas-notification-highlight-titlebar

feat(canvas): highlight entire title bar for unseen notifications

authored by

Wei Wang and committed by
GitHub
906a7a1f 51dc7373

+5 -5
+5 -5
supacode/Features/Canvas/Views/CanvasCardView.swift
··· 65 65 66 66 private var titleBar: some View { 67 67 HStack(spacing: 6) { 68 - if hasUnseenNotification { 69 - Circle() 70 - .fill(Color.orange) 71 - .frame(width: 6, height: 6) 72 - } 73 68 Text(repositoryName) 74 69 .font(.caption.bold()) 75 70 .lineLimit(1) ··· 82 77 .padding(.horizontal, 8) 83 78 .frame(height: titleBarHeight) 84 79 .frame(maxWidth: .infinity) 80 + .background { 81 + if hasUnseenNotification { 82 + Color.orange.opacity(0.3) 83 + } 84 + } 85 85 .background(.bar) 86 86 .gesture( 87 87 DragGesture(coordinateSpace: .global)