Update colors when displaying dot-files

This commit is contained in:
Michael Mintz 2022-11-29 01:03:51 -05:00
parent b1a48a7b17
commit 77e05e3d04
1 changed files with 3 additions and 1 deletions

View File

@ -574,7 +574,9 @@ def main():
the_code = rich_helper.fix_emoji_spacing(the_code)
the_theme = "monokai"
platform = sys.platform
if "win32" in platform or "win64" in platform or "x64" in platform:
if file_to_print.split(os.sep)[-1].startswith("."):
the_theme = "tango"
elif "win32" in platform or "win64" in platform or "x64" in platform:
the_theme = "abap"
magic_syntax = rich_helper.process_syntax(