mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Fix menu colors on macOS with dark menu bar
Widget colors and all scrollbars look just fine without these lines despite the comments.
This commit is contained in:
parent
57b9c9d41e
commit
00f6f70e93
1 changed files with 1 additions and 14 deletions
|
@ -25,11 +25,6 @@ from pysollib.macosx.appSupport import hideTkConsole
|
||||||
from pysollib.settings import TOOLKIT, USE_TILE
|
from pysollib.settings import TOOLKIT, USE_TILE
|
||||||
from pysollib.winsystems.common import BaseTkSettings, base_init_root_window
|
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):
|
def init_root_window(root, app):
|
||||||
base_init_root_window(root, app)
|
base_init_root_window(root, app)
|
||||||
|
@ -38,15 +33,7 @@ def init_root_window(root, app):
|
||||||
if TOOLKIT == 'gtk':
|
if TOOLKIT == 'gtk':
|
||||||
pass
|
pass
|
||||||
elif USE_TILE:
|
elif USE_TILE:
|
||||||
style = ttk.Style(root)
|
pass
|
||||||
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
|
|
||||||
|
|
||||||
else: # pure Tk
|
else: # pure Tk
|
||||||
# root.option_add(...)
|
# root.option_add(...)
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue