Skip to content

Commit

Permalink
windows font change
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schimansky committed Feb 11, 2021
1 parent f3a91fd commit 2935815
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def __init__(self, *args, **kwargs):

self.protocol("WM_DELETE_WINDOW", self.on_closing)

if sys.platform == "darwin": # MacOS X and MacOS 11
if sys.platform == "darwin": # macOS
self.bind("<Command-q>", self.on_closing)
self.bind("<Command-w>", self.on_closing)
self.createcommand('tk::mac::Quit', self.on_closing)
Expand Down Expand Up @@ -99,7 +99,7 @@ def on_closing(self, event=0):
if sys.platform == "darwin": # macOS
if Version(tkinter.Tcl().call("info", "patchlevel")) >= Version("8.6.9"): # Tcl/Tk >= 8.6.9
os.system("defaults delete -g NSRequiresAquaSystemAppearance") # Only for dark-mode testing!
# This command reverts the darkmode setting for all programs.
# This command reverts the dark-mode setting for all programs.

self.audio_analyzer.running = False
self.play_sound_thread.running = False
Expand Down
16 changes: 8 additions & 8 deletions tuner_appearance_manager/font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def __init__(self):
self.settings_text_font = ("Avenir", 28)

elif "win" in sys.platform: # Windows
self.button_font = ("Avenir", 14)
self.note_display_font = ("Avenir", 65)
self.info_text_font = ("Avenir", 12)
self.settings_text_font = ("Avenir", 20)
self.button_font = ("Century Gothic", 14)
self.note_display_font = ("Century Gothic", 65)
self.info_text_font = ("Century Gothic", 12)
self.settings_text_font = ("Century Gothic", 20)

else: # Linux or other
self.button_font = ("Avenir", 14)
self.note_display_font = ("Avenir", 65)
self.info_text_font = ("Avenir", 12)
self.settings_text_font = ("Avenir", 20)
self.button_font = ("Century Gothic", 14)
self.note_display_font = ("Century Gothic", 65)
self.info_text_font = ("Century Gothic", 12)
self.settings_text_font = ("Century Gothic", 20)

0 comments on commit 2935815

Please sign in to comment.