Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 committed Jul 19, 2024
1 parent 9872cf4 commit 82d6d3d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lua/configs/rebelot/heirline-nvim/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -713,26 +713,6 @@ local function shade_rgb(rgb, value)
end
end

-- Derives a RGB color code into several other colors by shades/tints.
--
--- @param rgb string The RGB color code.
--- @param count integer The count of derives from the RGB color.
--- @return string[]
local function derive_rgb(rgb, count)
local hsl_color = rgb_to_hsl(rgb)
local derives
if vim.o.background == "light" then
derives = hsl_color:tints(count)
else
derives = hsl_color:shades(count)
end
local results = {}
for _, d in ipairs(derives) do
table.insert(results, d:to_rgb())
end
return results
end

---@param colorname string?
---@return table<string, string>
local function setup_colors(colorname)
Expand Down

0 comments on commit 82d6d3d

Please sign in to comment.