Skip to content

Commit 71224bb

Browse files
authored
Change Color.lightgrey to have a background
To allow a better experience for dark-background users, adding a background of WHITE seems to be a good experience. Tested on about 10 themes in MacOS' Terminal.app and alacritty for both dark and light backgrounds.
1 parent cd725c6 commit 71224bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sqlfluff/core/enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Enums used by sqlfluff."""
22
from enum import Enum
33

4-
from colorama import Fore, Style
4+
from colorama import Back, Fore, Style
55

66

77
class FormatType(Enum):
@@ -21,4 +21,4 @@ class Color(Enum):
2121
red = Fore.RED
2222
green = Fore.GREEN
2323
blue = Fore.BLUE
24-
lightgrey = Fore.BLACK + Style.BRIGHT
24+
lightgrey = Fore.BLACK + Back.WHITE + Style.BRIGHT

0 commit comments

Comments
 (0)