From 4abdee1dc1891ad212a48040d89ebc5b9dcc6088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Oliva?= Date: Sun, 7 May 2023 17:56:57 -0600 Subject: Balance now has colors! Moved color functions to its own file. Now the colored output can be easily edited in general. --- utils/register.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'utils/register.py') diff --git a/utils/register.py b/utils/register.py index b067e56..5fdbf06 100644 --- a/utils/register.py +++ b/utils/register.py @@ -1,24 +1,9 @@ from utils.read_file import entry +from utils.colored_output import * from typing import List, Iterator import re import shutil -import colorama - -def date_f(text: str): - return text - -def comment_f(text: str): - return colorama.Style.BRIGHT + text + colorama.Style.RESET_ALL - -def account_f(text: str): - return colorama.Fore.BLUE + text + colorama.Style.RESET_ALL - -def price_f(text: str): - if '-' in text: - return colorama.Fore.RED + text + colorama.Style.RESET_ALL - else: - return text class currencies: -- cgit v1.2.3