Update ConsoleColor.py

This commit is contained in:
lilly
2023-03-27 23:28:38 +09:00
parent 61c0536251
commit f4d889bc74
+9 -1
View File
@@ -12,7 +12,15 @@ if missing:
subprocess.check_call([python, '-m', 'pip', 'install', *missing], stdout=subprocess.DEVNULL)
from rich.console import Console
console=Console()
from rich.theme import Theme
#console=Console(style="reset")
custom_theme = Theme({
"repr.path": "bright_blue",
"progress.percentage": "bright_blue",
"markdown.block_quote": "bright_blue",
"iso8601.time": "bright_blue"
})
console = Console(theme=custom_theme)
print=console.log
"""
print("test", style="bold white on blue")