From 72e9ae75eb1f0a4579f6324bf72da5347faa2fb3 Mon Sep 17 00:00:00 2001 From: bharnden <32446120+bharnden@users.noreply.github.com> Date: Thu, 21 Nov 2019 22:39:39 -0800 Subject: [PATCH] fixed issue with changing themes and abg colors not being present --- coretk/coretk/menubar.py | 6 ++---- coretk/coretk/themes.py | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/coretk/coretk/menubar.py b/coretk/coretk/menubar.py index 621510e2..d9508681 100644 --- a/coretk/coretk/menubar.py +++ b/coretk/coretk/menubar.py @@ -444,9 +444,7 @@ class Menubar(tk.Menu): menu.add_command(label="Comments...", state=tk.DISABLED) menu.add_command(label="Hooks...", command=self.menuaction.session_hooks) menu.add_command(label="Reset node positions", state=tk.DISABLED) - menu.add_command( - label="Emulation servers...", command=self.menuaction.session_servers - ) + menu.add_command(label="Servers...", command=self.menuaction.session_servers) menu.add_command(label="Options...", command=self.menuaction.session_options) self.add_cascade(label="Session", menu=menu) @@ -458,7 +456,7 @@ class Menubar(tk.Menu): """ menu = tk.Menu(self) menu.add_command( - label="Core Github (www)", command=self.menuaction.help_core_github + label="Core GitHub (www)", command=self.menuaction.help_core_github ) menu.add_command( label="Core Documentation (www)", diff --git a/coretk/coretk/themes.py b/coretk/coretk/themes.py index 267c3a3c..ad91276a 100644 --- a/coretk/coretk/themes.py +++ b/coretk/coretk/themes.py @@ -137,6 +137,8 @@ def update_menu(style, event): bg = style.lookup(".", "background") fg = style.lookup(".", "foreground") abg = style.lookup(".", "lightcolor") + if not abg: + abg = bg event.widget.config( background=bg, foreground=fg, activebackground=abg, activeforeground=fg )