Alacritty theming + possible bug
@V0lcaneR
·
2026-04-28
·
via CachyOS Forum - Latest posts
I investigated this a bit, noctalia itself sets the .bright and .dim colors as constants in their alacritty template file when generating colors schemes from wallpapers: github.com/noctalia-dev/noctalia-shell Assets/Templates/terminal/alacritty.toml main [colors.primary] background = '{{colors.background.default.hex}}' foreground = '{{colors.on_surface.default.hex}}' [colors.cursor] text = '{{colors.on_surface.default.hex}}' cursor = '{{colors.on_surface_variant.default.hex}}' [colors.vi_mode_cursor] text = '{{colors.background.default.hex}}' cursor = '{{colors.primary.default.hex}}' [colors.search.matches] foreground = '{{colors.surface_variant.default.hex}}' background = '{{colors.tertiary.default.hex}}' [colors.search.focused_match] foreground = '{{colors.surface_variant.default.hex}}' background = '{{colors.primary.default.hex}}' This file has been truncated. show original This combined with the default config file from cachyOS using the draw_bold_text_with_bright_colors property to make the theming look like it doesn’t work properly even when the colors were properly removed. I played around with the config and found that if I move the alacritty.toml colors to a separate file and import it alongside noctalia.toml then the file imported last applies. Which is the expected behavior: # This order loads the 'cachyos_colors' file import = ["~/.config/alacritty/themes/noctalia.toml", "~/.config/alacritty/themes/cachyos_colors.toml"] # This order loads the 'noctalia' file import = ["~/.config/alacritty/themes/cachyos_colors.toml", "~/.config/alacritty/themes/noctalia.toml"] So I’m gonna assume that the “import” is applied first then the rest of the config file follows which would explain this behavior. Anyway, given that this is a minor issue I fixed it by creating a noctalia user template for alacritty to use instead of the default and modified the bright colors from constants to this: [colors.bright] black = '#585B70' red = '{{colors.error.default.hex | saturate 20 | lighten 10}}' green = '{{colors.primary.default.hex | saturate 20 | lighten 10}}' yellow = '{{colors.inverse_primary.default.hex | saturate 20 | lighten 10}}' blue = '{{colors.primary.default.hex | saturate 20 | lighten 10}}' magenta = '{{colors.tertiary.default.hex | saturate 20 | lighten 10}}' cyan = '{{colors.secondary.default.hex | saturate 20 | lighten 10}}' white = '#A6ADC8' I just copied the normal colors variables and added some saturation and brightened it a touch. This does the job well enough for me. I did notice that blue and green are the same color in the template and i just find that a little amusing lul.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。