Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(macos): add support for titlebar background matching theme background on macos #6558

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jay-Madden
Copy link

@Jay-Madden Jay-Madden commented Jan 6, 2025

This PR adds support for changing the background color of the titlebar on macos.
Adding a new macos window decoration option MACOS_RESPECT_THEME_BACKGROUND

With the following wezterm config

config.window_decorations = "TITLE|RESIZE|MACOS_RESPECT_THEME_BACKGROUND"

the titlebar is rendered like this

image

It also works for the default theme, being rendered like this
image

Important

The CGColorCreateSrgb() binding was introduced in catalina meaning this functionality will fail on older operating systems. I couldnt find a "support OS" matrix but I did find this comment from wez discussing a similar issue. #1819 (comment) in big sur, which is one year newer then catalina so this break in legacy support shouldnt break anything existing as it was already unsupported.

Tasks

  • Active titlebar background color

Ref: #6557

@Jay-Madden Jay-Madden changed the title feat(macos): add support for changing titlebar background color on macos feat(macos): add support for titlebar background matching theme background color on macos Jan 18, 2025
@Jay-Madden Jay-Madden changed the title feat(macos): add support for titlebar background matching theme background color on macos feat(macos): add support for titlebar background matching theme background on macos Jan 18, 2025
@Jay-Madden Jay-Madden marked this pull request as ready for review January 18, 2025 19:32
Jay-Madden added a commit to Jay-Madden/wezterm-fork that referenced this pull request Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant