Closed maegul closed 2 years ago
In case it's relevant ... I find the conversion tool to work perfectly fine for color spaces like oklab
.
When we switched to these dynamic color objects that can contain whatever color spaces the user selects, we overlooked an area where when we read in the colors from the setting, and it doesn't specify a color object, it will give the default location of ColorHelper.lib.coloraide.Color
. We should intercept this and use the default, dynamic color base instead.
That's the one we use as our default which includes the color spaces the user defines in the default, which yes, includes okhsl and okhsv.
"add_to_default_spaces": [
// "ColorHelper.lib.coloraide.spaces.aces2065_1.ACES20651",
// "ColorHelper.lib.coloraide.spaces.acescc.ACEScc",
// "ColorHelper.lib.coloraide.spaces.acescg.ACEScg",
// "ColorHelper.lib.coloraide.spaces.acescct.ACEScct",
// "ColorHelper.lib.coloraide.spaces.cmy.CMY",
// "ColorHelper.lib.coloraide.spaces.cmyk.CMYK",
// "ColorHelper.lib.coloraide.spaces.din99o.DIN99o",
// "ColorHelper.lib.coloraide.spaces.hpluv.HPLuv",
// "ColorHelper.lib.coloraide.spaces.hsi.HSI",
// "ColorHelper.lib.coloraide.spaces.hunter_lab.HunterLab",
// "ColorHelper.lib.coloraide.spaces.ictcp.ICtCp",
// "ColorHelper.lib.coloraide.spaces.igtgpg.IgTgPg",
// "ColorHelper.lib.coloraide.spaces.itp.ITP",
// "ColorHelper.lib.coloraide.spaces.jzazbz.Jzazbz",
// "ColorHelper.lib.coloraide.spaces.jzczhz.JzCzhz",
// "ColorHelper.lib.coloraide.spaces.lch99o.LCh99o",
// "ColorHelper.lib.coloraide.spaces.orgb.oRGB",
// "ColorHelper.lib.coloraide.spaces.prismatic.Prismatic",
// "ColorHelper.lib.coloraide.spaces.rec2100pq.Rec2100PQ",
// "ColorHelper.lib.coloraide.spaces.rlab.RLAB",
// "ColorHelper.lib.coloraide.spaces.ucs.UCS",
// "ColorHelper.lib.coloraide.spaces.uvw.UVW",
// "ColorHelper.lib.coloraide.spaces.xyy.xyY",
"ColorHelper.lib.coloraide.spaces.hsluv.HSLuv",
"ColorHelper.lib.coloraide.spaces.lchuv.LChuv",
"ColorHelper.lib.coloraide.spaces.luv.Luv",
"ColorHelper.lib.coloraide.spaces.okhsl.Okhsl",
"ColorHelper.lib.coloraide.spaces.okhsv.Okhsv"
],
I simply missed testing this case after the upgrade.
The fix is tagged and released. I double-checked similar cases, and I think we should be good. Luckily it's consolidated to only two places.
Please read and fill out this template by replacing the instructions with appropriate information. If the template is not followed, the issue will be marked
Invalid
and closed.Before submitting an issue search past issues and read the area of the documentation related to your specific question, issue, or request.
Description
(Another one for you!) ...
... what is the issue / request ?
The color picker tool, when selected to work in either
okhsl
orokhsv
space, crashes when a color is "selected" with the following exception in the console:This does not occur for all the other spaces (including
hwb
)Relevant Settings
... or relevant as far as I can tell.
Support Info
Steps to Reproduce Issue
Colour Picker
(either through command palette or selecting a preview swatch) a. Ensureokhsl
and/orokhsv
are enabled as colour picker modes in the settingsokhsl
orokhsv
select
in bottom left corner of picker window.