Skip to content

Commit cbe229b

Browse files
committed
fix(Color): Color.from_hsv() is used for HSL
1 parent 492f43e commit cbe229b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3030
- fix(compiler): always write hash to filesystem when compilation occurs incl. when `require('github-theme').compile()` is called directly (#350)
3131
- Fixed #340 and #341 (broken/outdated `overrides` example in docs)
3232
- Fixed floats not transparent when `transparent = true` (#337 fixed-by #351)
33+
- fix(Color): `Color.from_hsv()` is used for HSL
3334

3435
## [v1.0.2] - 03 May 2023
3536

lua/github-theme/lib/color.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function Color.new(opts)
8585
return Color.from_hsv(opts.hue, opts.saturation, opts.value)
8686
end
8787
if opts.lightness then
88-
return Color.from_hsv(opts.hue, opts.saturation, opts.lightness)
88+
return Color.from_hsl(opts.hue, opts.saturation, opts.lightness)
8989
end
9090
end
9191

0 commit comments

Comments
 (0)