palette.py (httpie-3.0.0) | : | palette.py (httpie-3.0.1) | ||
---|---|---|---|---|
# Copy the brand palette | ||||
from typing import Optional | from typing import Optional | |||
STYLE_PIE = 'pie' | ||||
STYLE_PIE_DARK = 'pie-dark' | ||||
STYLE_PIE_LIGHT = 'pie-light' | ||||
COLOR_PALETTE = { | COLOR_PALETTE = { | |||
# Copy the brand palette | ||||
'transparent': 'transparent', | 'transparent': 'transparent', | |||
'current': 'currentColor', | 'current': 'currentColor', | |||
'white': '#F5F5F0', | 'white': '#F5F5F0', | |||
'black': '#1C1818', | 'black': '#1C1818', | |||
'grey': { | 'grey': { | |||
'50': '#F5F5F0', | '50': '#F5F5F0', | |||
'100': '#EDEDEB', | '100': '#EDEDEB', | |||
'200': '#D1D1CF', | '200': '#D1D1CF', | |||
'300': '#B5B5B2', | '300': '#B5B5B2', | |||
'400': '#999999', | '400': '#999999', | |||
skipping to change at line 142 | skipping to change at line 146 | |||
COLOR_PALETTE['primary'] = { | COLOR_PALETTE['primary'] = { | |||
'700': COLOR_PALETTE['black'], | '700': COLOR_PALETTE['black'], | |||
'600': 'ansibrightblack', | '600': 'ansibrightblack', | |||
'500': COLOR_PALETTE['white'], | '500': COLOR_PALETTE['white'], | |||
} | } | |||
COLOR_PALETTE['secondary'] = {'700': '#37523C', '600': '#6c6969', '500': '#6c696 9'} | COLOR_PALETTE['secondary'] = {'700': '#37523C', '600': '#6c6969', '500': '#6c696 9'} | |||
SHADE_NAMES = { | SHADE_NAMES = { | |||
'500': 'pie-dark', | '500': STYLE_PIE_DARK, | |||
'600': 'pie', | '600': STYLE_PIE, | |||
'700': 'pie-light' | '700': STYLE_PIE_LIGHT | |||
} | } | |||
SHADES = [ | SHADES = [ | |||
'50', | '50', | |||
*map(str, range(100, 1000, 100)) | *map(str, range(100, 1000, 100)) | |||
] | ] | |||
def get_color(color: str, shade: str) -> Optional[str]: | def get_color(color: str, shade: str) -> Optional[str]: | |||
if color not in COLOR_PALETTE: | if color not in COLOR_PALETTE: | |||
return None | return None | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 8 lines changed or added |