-
Notifications
You must be signed in to change notification settings - Fork 690
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
macos-icon-screen-color and macos-icon-ghost-color do not work in themes #3215
Comments
Duplicate of #3076 |
@qwerasd205 I've seen that but it's about the wrong color.
|
Going to reopen to investigate. It should work! |
The icon will only ever be generated on startup. Works as expected for me. I just tested putting this at the bottom of my theme config:
then saving and restarting Ghostty (completely) and it worked just fine. The green is much darker than would possibly be desirable, but that's that same issue. |
The appearance of the icon in your screenshot is what you get for your light configuration (due to #3076). Changing the system theme will not do anything because the colorized icon settings cannot be hot reloaded right now. I do think we really had ought to support hot reloading of the colorized icon stuff since changing with the system theme would be fun, but as far as I can tell there is absolutely no problem loading these from config files specified by |
I did another test:
It seems like when I start Ghostty it always applies light theme first thus setting the icon and after that it applies dark theme (after checking actual system theme?) but at this point it doesn't change icon colors. Here is another test where toggling a system theme while keeping Ghostty running changes the icon:
|
Yes, it will go from colorized -> official when hot reloaded but not the other way around. If Ghostty is applying light mode first that is a problem though. |
In that case the real problem of this issue is that the light theme config is applied when it shouldn't be, which could theoretically be a problem with other things too- anything that is queried once after launch and then never again. |
This shouldn't be a problem, just slightly wasteful (and you may see a shimmer I suppose of the wrong theme). We load the config on app init but we don't have an API to tell Ghostty what the system theme is until after initialized. This shouldn't be a root cause for this bug and I think we chalk this up to being unrelated. |
Is it possible to change the color scheme of the icon even when the terminal is closed? Have a different scheme for when open and closed? |
I have dark and light themes that provide
macos-icon-ghost-color
andmacos-icon-screen-color
but they do not change icon style on first load or when changing system theme.Icon always appears like this which is a completely wrong color:

dark theme
and light theme
I've tried to set color to red and green and still it won't apply.
It only applies when I put
macos-icon-screen-color
andmacos-icon-ghost-color
intoconfig
file whilemacos-icon = custom-style
works when provided by theme file.The text was updated successfully, but these errors were encountered: