mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Remove vibrant layer before re-adding it
This commit is contained in:
@ -242,6 +242,7 @@ class TerminalWindow: NSWindow {
|
|||||||
newTabButtonImageLayer = imageLayer
|
newTabButtonImageLayer = imageLayer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newTabButtonImageView.layer?.sublayers?.first(where: { $0.className == "VibrantLayer" })?.removeFromSuperlayer()
|
||||||
newTabButtonImageView.layer?.addSublayer(newTabButtonImageLayer!)
|
newTabButtonImageView.layer?.addSublayer(newTabButtonImageLayer!)
|
||||||
newTabButtonImageView.image = nil
|
newTabButtonImageView.image = nil
|
||||||
// When we nil out the original image, the image view's frame resizes and repositions
|
// When we nil out the original image, the image view's frame resizes and repositions
|
||||||
|
Reference in New Issue
Block a user