[+] Add global config option for overlay
This commit is contained in:
parent
0ac2ffbba5
commit
a37ee211f2
2 changed files with 5 additions and 1 deletions
|
|
@ -119,6 +119,9 @@ class ColorProfile:
|
|||
:param term: Terminal color (can be "dark" or "light")
|
||||
:return: New color profile (original isn't modified)
|
||||
"""
|
||||
if GLOBAL_CFG.use_overlay:
|
||||
return self.overlay_dl(light, term)
|
||||
|
||||
term = term or GLOBAL_CFG.light_dark()
|
||||
assert term.lower() in ['light', 'dark']
|
||||
at_least, at_most = (True, None) if term.lower() == 'dark' else (None, True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue