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

fix: bg_float when styles.floats is normal #259

Merged
merged 1 commit into from
Nov 7, 2022
Merged

fix: bg_float when styles.floats is normal #259

merged 1 commit into from
Nov 7, 2022

Conversation

wangl-cc
Copy link
Contributor

@wangl-cc wangl-cc commented Nov 4, 2022

When styles.floats is normal and background=light, the none can not be ignored by the util.invert_colors, and which will break hsluv.hex_to_hsluv:

function M.invert_color(color)
local hsluv = require("tokyonight.hsluv")
if color ~= "NONE" then
local hsl = hsluv.hex_to_hsluv(color)
hsl[3] = 100 - hsl[3]

@folke folke merged commit c4eaaa9 into folke:main Nov 7, 2022
@wangl-cc wangl-cc deleted the fix-bg_float branch November 7, 2022 08:44
riley-martine pushed a commit to riley-martine/tokyonight.nvim that referenced this pull request Dec 7, 2023
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.

2 participants