Skip to content

Commit

Permalink
fix(Color): Color.from_hsv() is used for HSL
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillr committed Jul 17, 2024
1 parent 492f43e commit cbe229b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- fix(compiler): always write hash to filesystem when compilation occurs incl. when `require('github-theme').compile()` is called directly (#350)
- Fixed #340 and #341 (broken/outdated `overrides` example in docs)
- Fixed floats not transparent when `transparent = true` (#337 fixed-by #351)
- fix(Color): `Color.from_hsv()` is used for HSL

## [v1.0.2] - 03 May 2023

Expand Down
2 changes: 1 addition & 1 deletion lua/github-theme/lib/color.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Color.new(opts)
return Color.from_hsv(opts.hue, opts.saturation, opts.value)
end
if opts.lightness then
return Color.from_hsv(opts.hue, opts.saturation, opts.lightness)
return Color.from_hsl(opts.hue, opts.saturation, opts.lightness)
end
end

Expand Down

0 comments on commit cbe229b

Please sign in to comment.