Skip to content

Commit

Permalink
✨ Add small border to preview window like radial menu
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Mar 29, 2024
1 parent 46a9373 commit 7d3e954
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion Loop/Preview Window/PreviewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class PreviewController {
defer: true,
screen: NSApp.keyWindow?.screen
)
panel.hasShadow = false
panel.alphaValue = 0
panel.backgroundColor = NSColor.white.withAlphaComponent(0.00001)
panel.setFrame(NSRect(origin: screen.stageStripFreeFrame.center, size: .zero), display: true)
Expand Down
3 changes: 3 additions & 0 deletions Loop/Preview Window/PreviewView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ struct PreviewView: View {
.foregroundColor(.white)
}

RoundedRectangle(cornerRadius: previewCornerRadius, style: .continuous)
.strokeBorder(.quinary, lineWidth: 1)

RoundedRectangle(cornerRadius: previewCornerRadius, style: .continuous)
.stroke(
LinearGradient(
Expand Down

0 comments on commit 7d3e954

Please sign in to comment.