Skip to content

Commit

Permalink
colours
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Aug 6, 2020
1 parent edd920a commit fd3672a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions rplugin/python3/chadtree/ls_colours.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ class Ground(Enum):

class AnsiColour(IntEnum):
Black = auto()
Red = auto()
Green = auto()
Yellow = auto()
Blue = auto()
Magenta = auto()
Cyan = auto()
DarkRed = auto()
DarkGreen = auto()
DarkYellow = auto()
DarkBlue = auto()
DarkMagenta = auto()
DarkCyan = auto()
LightGrey = auto()

Grey = auto()
Expand Down Expand Up @@ -226,8 +226,8 @@ def parseHLGroup(styling: Styling) -> HLgroup:
}
ctermfg = cast(AnsiColour, fg).name if type(fg) is AnsiColour else None
ctermbg = cast(AnsiColour, bg).name if type(bg) is AnsiColour else None
guifg = to_hex(cast(Colour, fg)) if type(fg) is Colour else None
guibg = to_hex(cast(Colour, bg)) if type(bg) is Colour else None
guifg = to_hex(cast(Colour, fg)) if type(fg) is Colour else ctermfg
guibg = to_hex(cast(Colour, bg)) if type(bg) is Colour else ctermbg
group = HLgroup(
name=name,
cterm=cterm,
Expand Down

0 comments on commit fd3672a

Please sign in to comment.