From b71692e0a972af207c464f0b3a05000d82537e3a Mon Sep 17 00:00:00 2001 From: facelessuser Date: Thu, 11 Aug 2022 19:55:45 -0600 Subject: [PATCH] Fix registration of color spaces in custom color objects --- CHANGES.md | 4 ++++ custom/ahex.py | 2 +- custom/ass_abgr.py | 2 +- custom/hex_0x.py | 2 +- custom/tmtheme.py | 2 +- support.py | 2 +- 6 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index b8c7c52..a889255 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # ColorHelper +## 6.0.3 + +- **FIX**: Fix registration of color spaces in custom color objects. + ## 6.0.2 - **FIX**: Fix issue where default, dynamic color class wasn't always diff --git a/custom/ahex.py b/custom/ahex.py index ed885d9..23e7ceb 100644 --- a/custom/ahex.py +++ b/custom/ahex.py @@ -82,4 +82,4 @@ class ColorAlphaHex(get_base_color()): """Color object whose sRGB color space looks for colors of format `#RRGGBBAA` as `#AARRGGBB`.""" -ColorAlphaHex.register(ASRGB, overwrite=True) +ColorAlphaHex.register(ASRGB(), overwrite=True) diff --git a/custom/ass_abgr.py b/custom/ass_abgr.py index d7e057d..40ff86d 100644 --- a/custom/ass_abgr.py +++ b/custom/ass_abgr.py @@ -76,4 +76,4 @@ class ColorAssABGR(get_base_color()): """Color class for ASS `ABGR` colors.""" -ColorAssABGR.register(AssABGR, overwrite=True) +ColorAssABGR.register(AssABGR(), overwrite=True) diff --git a/custom/hex_0x.py b/custom/hex_0x.py index cde9fa6..7afd4a9 100644 --- a/custom/hex_0x.py +++ b/custom/hex_0x.py @@ -41,4 +41,4 @@ class ColorHex(get_base_color()): """Color object whose sRGB color space looks for colors of format `#RRGGBBAA` as `#AARRGGBB`.""" -ColorHex.register(HexSRGB, overwrite=True) +ColorHex.register(HexSRGB(), overwrite=True) diff --git a/custom/tmtheme.py b/custom/tmtheme.py index 394ea87..e075e51 100644 --- a/custom/tmtheme.py +++ b/custom/tmtheme.py @@ -743,4 +743,4 @@ class ColorSRGBX11(get_base_color()): """Hex SRGB with X11 color names.""" -ColorSRGBX11.register(SRGBX11, overwrite=True) +ColorSRGBX11.register(SRGBX11(), overwrite=True) diff --git a/support.py b/support.py index 1ed97ab..31467cb 100644 --- a/support.py +++ b/support.py @@ -5,7 +5,7 @@ import webbrowser import re -__version__ = "6.0.2" +__version__ = "6.0.3" __pc_name__ = 'ColorHelper' CSS = '''