mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Set alpha component for fullscreen background colour
This commit is contained in:

committed by
Jonathan Lopez

parent
8129ce4244
commit
0d01dc366d
@ -247,7 +247,7 @@ class TerminalController: BaseTerminalController {
|
|||||||
let backgroundColor: OSColor
|
let backgroundColor: OSColor
|
||||||
if let surfaceTree {
|
if let surfaceTree {
|
||||||
if let focusedSurface, surfaceTree.doesBorderTop(view: focusedSurface) {
|
if let focusedSurface, surfaceTree.doesBorderTop(view: focusedSurface) {
|
||||||
backgroundColor = OSColor(focusedSurface.backgroundColor ?? surfaceConfig.backgroundColor)
|
backgroundColor = OSColor(focusedSurface.backgroundColor ?? surfaceConfig.backgroundColor).withAlphaComponent(0.0)
|
||||||
} else {
|
} else {
|
||||||
// We don't have a focused surface or our surface doesn't border the
|
// We don't have a focused surface or our surface doesn't border the
|
||||||
// top. We choose to match the color of the top-left most surface.
|
// top. We choose to match the color of the top-left most surface.
|
||||||
|
Reference in New Issue
Block a user