ghostty
ghostty copied to clipboard
Add `toggle_background_opacity` action for macOS
Changes
-
Added
ghosttyBackgroundOpacityDidTogglenotification for handling opacity toggle events -
Implemented opacity toggle logic in
SurfaceView_AppKit.swift -
If
background-opacityis 1 or greater, do nothing
Testing
-
Set
background-opacity< 1 in config -
Bind a key to
toggle_background_opacityaction -
Press the key to toggle between transparent and opaque states
-
Verify that:
-
Window properly toggles between transparent and opaque states
-
Background color is correct in both states
-
Action does nothing when
background-opacityis 1 or more -
Action does nothing in fullscreen mode
-
https://github.com/user-attachments/assets/04f114e0-4035-4b8c-860f-71ef696f2258
Resolves #5047