Skip to content

Commit

Permalink
chore: enlarge stroke on full size preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ejbills committed Jan 3, 2025
1 parent 8104517 commit 04911d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion DockDoor/Views/Hover Window/FullSizePreviewView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ struct FullSizePreviewView: View {
Image(decorative: image, scale: 1.0)
.resizable()
.aspectRatio(windowSize, contentMode: .fit)
.modifier(FluidGradientBorder(cornerRadius: uniformCardRadius ? 12 : 0, lineWidth: 1))
.modifier(FluidGradientBorder(cornerRadius: uniformCardRadius ? 12 : 0, lineWidth: 2))
}
}
.clipShape(uniformCardRadius ? AnyShape(RoundedRectangle(cornerRadius: 12, style: .continuous)) : AnyShape(Rectangle()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,6 @@ final class SharedPreviewWindowCoordinator: NSWindow {
let adjustedPosition = CGPoint(x: convertedPosition.x, y: convertedPosition.y - windowSize.height)

let flippedIconRect = CGRect(origin: adjustedPosition, size: windowSize)
// Convert the coordinate space from the accessibility API (origin is bottom-left)
// let flippedPosition = DockObserver.cgPointFromNSPoint(axPosition, forScreen: screen)

print("Screen frame:", screen.frame)
print("AX position:", axPosition)
print("Flipped position:", flippedIconRect)

let previewView = FullSizePreviewView(windowInfo: windowInfo, windowSize: windowSize)
let hostingView = NSHostingView(rootView: previewView)
Expand Down

0 comments on commit 04911d7

Please sign in to comment.