Skip to content

Commit

Permalink
fix: show shadows around thumbnails (closes #4068)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Jan 12, 2025
1 parent 0ea9252 commit 597b443
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui/main-window/ThumbnailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,17 @@ class ThumbnailView: FlippedView {

private func setupSharedSubiews() {
let shadow = ThumbnailView.makeShadow(Appearance.imageShadowColor)
thumbnail.imageScaling = .scaleProportionallyUpOrDown
thumbnailContainer.wantsLayer = true
thumbnailContainer.layer!.masksToBounds = false // let thumbnail shadows show
thumbnail.shadow = shadow
windowlessIcon.shadow = shadow
appIcon.shadow = shadow
thumbnail.imageScaling = .scaleProportionallyUpOrDown
windowlessIcon.translatesAutoresizingMaskIntoConstraints = false
windowlessIcon.imageScaling = .scaleProportionallyUpOrDown
windowlessIcon.toolTip = ThumbnailView.noOpenWindowToolTip
windowlessIcon.shadow = shadow
appIcon.translatesAutoresizingMaskIntoConstraints = false
appIcon.imageScaling = .scaleProportionallyUpOrDown
appIcon.shadow = shadow
appIcon.setSubviewAbove(dockLabelIcon)
label.fixHeight()
vStackView.wantsLayer = true
Expand Down

0 comments on commit 597b443

Please sign in to comment.