mirror of
https://github.com/craftzdog/solarized-osaka.nvim.git
synced 2026-09-10 07:16:21 -04:00
Point the last computed colors at real tokens so nothing is derived by blending anymore: - barbar inactive labels take the new 600 tier, which reads dimmer than the 500 accent and, unlike 700, still brightens under the vivid style - notify borders take the 900 tier, and the debug border takes base02 - black was a blend of the background toward pure black, a value that appeared nowhere in the palette; it is base04, so replace it outright - border was aliased to black, leaving it invisible against the background in the dark style; it is now base02, matching WinSeparator With no callers left, darken and blend go, and with them the mutable util.bg they relied on -- a shared global whose value depended on which style had been resolved last. Every highlight group is unchanged by the black removal. The barbar and notify groups do shift slightly, since a token can never reproduce a blend toward the background exactly; they were chosen to read correctly rather than to match the old values. Light gains from this: black resolved to a muddy #cac4b5 that measured 1.85:1 on statusline mode chips, and base04 lifts that to 3.21:1. The same change makes terminal color0 white in the light style, completing an inversion that already had color7 resolving to a dark value.
66 lines
1 KiB
Lua
66 lines
1 KiB
Lua
local util = require("solarized-osaka.util")
|
|
|
|
local M = {}
|
|
|
|
--- @param colors ColorScheme
|
|
function M.generate(colors)
|
|
local kitty = util.template(
|
|
[[
|
|
# vim:ft=kitty
|
|
|
|
## name: ${_style_name}
|
|
## license: MIT
|
|
## author: Folke Lemaitre
|
|
## upstream: ${_upstream_url}
|
|
|
|
|
|
background ${bg}
|
|
foreground ${fg}
|
|
selection_background ${base03}
|
|
selection_foreground ${fg}
|
|
url_color ${cyan}
|
|
cursor ${fg}
|
|
cursor_text_color ${bg}
|
|
|
|
# Tabs
|
|
active_tab_background ${cyan}
|
|
active_tab_foreground ${base4}
|
|
inactive_tab_background ${bg_highlight}
|
|
inactive_tab_foreground ${base00}
|
|
#tab_bar_background ${base04}
|
|
|
|
# Windows
|
|
active_border_color ${blue}
|
|
inactive_border_color ${bg_highlight}
|
|
|
|
# normal
|
|
color0 ${base04}
|
|
color1 ${red}
|
|
color2 ${green}
|
|
color3 ${yellow}
|
|
color4 ${blue}
|
|
color5 ${magenta}
|
|
color6 ${cyan}
|
|
color7 ${fg}
|
|
|
|
# bright
|
|
color8 ${base01}
|
|
color9 ${red}
|
|
color10 ${green}
|
|
color11 ${yellow}
|
|
color12 ${blue}
|
|
color13 ${magenta}
|
|
color14 ${cyan}
|
|
color15 ${fg}
|
|
|
|
# extended colors
|
|
color16 ${orange}
|
|
color17 ${red300}
|
|
]],
|
|
colors
|
|
)
|
|
return kitty
|
|
end
|
|
|
|
return M
|