Skip to content

Commit

Permalink
Defer to default value for color-scheme instead of hard-coded value o…
Browse files Browse the repository at this point in the history
…n init.
  • Loading branch information
dlyongemallo committed Dec 21, 2023
1 parent d53fcc5 commit 35372cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zxlive/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Colors(object):
w_output_pressed: QColor = QColor("#444444")
outline: QColor = QColor("#000000")

def __init__(self, color_scheme:str='modern-red-green'):
def __init__(self, color_scheme:str):
self.set_color_scheme(color_scheme)

def set_color_scheme(self, color_scheme: str) -> None:
Expand Down Expand Up @@ -193,7 +193,7 @@ def set_color_scheme(self, color_scheme: str) -> None:

settings = QSettings("zxlive", "zxlive")
color_scheme = settings.value("color-scheme")
if color_scheme is None: color_scheme = 'modern-red-green'
if color_scheme is None: color_scheme = str(defaults["color-scheme"])
else: color_scheme = str(color_scheme)
colors = Colors(color_scheme)

Expand Down

0 comments on commit 35372cb

Please sign in to comment.