Skip to content

Commit

Permalink
Fix registration of color spaces in custom color objects
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Aug 12, 2022
1 parent 7740030 commit b71692e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion custom/ahex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion custom/ass_abgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion custom/hex_0x.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion custom/tmtheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion support.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import webbrowser
import re

__version__ = "6.0.2"
__version__ = "6.0.3"
__pc_name__ = 'ColorHelper'

CSS = '''
Expand Down

0 comments on commit b71692e

Please sign in to comment.