You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was very confused for some time when everything in my customized theme looked slightly bluer than expected. After some digging I ran into this workaround for a kitty bug in catppuccin/palettes/init.lua
ifO.kittythen-- https://github.com/kovidgoyal/kitty/issues/2917foraccent, hexinpairs(ans) dolocalred_green_string=hex:sub(1, 5)
localblue_value=tonumber(hex:sub(6, 7), 16)
-- Slightly increase or decrease brightness of the blue channelblue_value=blue_value==255andblue_value-1orblue_value+1ans[accent] =string.format("%s%.2x", red_green_string, blue_value)
endend
As I understand it, this workaround is meant only for when the background has transparency. If this is the case, then I think the check should be for if O.kitty and O.transparent_background then ...
I can work around it just by having #FAFAF9 instead of #FAFAFA but a little annoying regardless 😅
We've had to revert the PR that fixes this (#794) as it breaks the existing workaround for Kitty terminals. Unfortunately, the blue offset that you're encountering is currently expected behaviour and not a bug. I'll raise a PR in the future documenting this more clearly outside of the source code.
Description
Hello!
I was very confused for some time when everything in my customized theme looked slightly bluer than expected. After some digging I ran into this workaround for a kitty bug in
catppuccin/palettes/init.lua
As I understand it, this workaround is meant only for when the background has transparency. If this is the case, then I think the check should be for
if O.kitty and O.transparent_background then ...
I can work around it just by having #FAFAF9 instead of #FAFAFA but a little annoying regardless 😅
Neovim version
Terminal and multiplexer
kitty 0.36.1
Catppuccin version / branch / rev
catppuccin v1.9.0
Steps to reproduce
color_overrides
options), the issue is apparentnvim
in kittyExpected behavior
Overriden colors should be as defined, not slightly offset
Actual behavior
All colors, including overriden ones, are slightly offset.
Repro
-- Any init.lua setup with catppuccin
The text was updated successfully, but these errors were encountered: