From 00f6f70e93d06a5563dd4d29e8294cf75dd134fb Mon Sep 17 00:00:00 2001 From: Juhani Numminen Date: Sun, 9 Feb 2020 17:36:26 +0200 Subject: [PATCH] Fix menu colors on macOS with dark menu bar Widget colors and all scrollbars look just fine without these lines despite the comments. --- pysollib/winsystems/aqua.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/pysollib/winsystems/aqua.py b/pysollib/winsystems/aqua.py index 98583417..b9f47ee5 100644 --- a/pysollib/winsystems/aqua.py +++ b/pysollib/winsystems/aqua.py @@ -25,11 +25,6 @@ from pysollib.macosx.appSupport import hideTkConsole from pysollib.settings import TOOLKIT, USE_TILE from pysollib.winsystems.common import BaseTkSettings, base_init_root_window -from six.moves import tkinter - -if USE_TILE: - from pysollib.tile import ttk - def init_root_window(root, app): base_init_root_window(root, app) @@ -38,15 +33,7 @@ def init_root_window(root, app): if TOOLKIT == 'gtk': pass elif USE_TILE: - style = ttk.Style(root) - color = style.lookup('.', 'background') - if color: - root.tk_setPalette(color) # for non-ttk widgets - - if app.opt.tile_theme == 'aqua': - # standard Tk scrollbars work on OS X, but ttk ones look weird - ttk.Scrollbar = tkinter.Scrollbar - + pass else: # pure Tk # root.option_add(...) pass