fixed issue with changing themes and abg colors not being present
This commit is contained in:
parent
a6cdd63570
commit
72e9ae75eb
2 changed files with 4 additions and 4 deletions
|
@ -444,9 +444,7 @@ class Menubar(tk.Menu):
|
||||||
menu.add_command(label="Comments...", state=tk.DISABLED)
|
menu.add_command(label="Comments...", state=tk.DISABLED)
|
||||||
menu.add_command(label="Hooks...", command=self.menuaction.session_hooks)
|
menu.add_command(label="Hooks...", command=self.menuaction.session_hooks)
|
||||||
menu.add_command(label="Reset node positions", state=tk.DISABLED)
|
menu.add_command(label="Reset node positions", state=tk.DISABLED)
|
||||||
menu.add_command(
|
menu.add_command(label="Servers...", command=self.menuaction.session_servers)
|
||||||
label="Emulation servers...", command=self.menuaction.session_servers
|
|
||||||
)
|
|
||||||
menu.add_command(label="Options...", command=self.menuaction.session_options)
|
menu.add_command(label="Options...", command=self.menuaction.session_options)
|
||||||
self.add_cascade(label="Session", menu=menu)
|
self.add_cascade(label="Session", menu=menu)
|
||||||
|
|
||||||
|
@ -458,7 +456,7 @@ class Menubar(tk.Menu):
|
||||||
"""
|
"""
|
||||||
menu = tk.Menu(self)
|
menu = tk.Menu(self)
|
||||||
menu.add_command(
|
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(
|
menu.add_command(
|
||||||
label="Core Documentation (www)",
|
label="Core Documentation (www)",
|
||||||
|
|
|
@ -137,6 +137,8 @@ def update_menu(style, event):
|
||||||
bg = style.lookup(".", "background")
|
bg = style.lookup(".", "background")
|
||||||
fg = style.lookup(".", "foreground")
|
fg = style.lookup(".", "foreground")
|
||||||
abg = style.lookup(".", "lightcolor")
|
abg = style.lookup(".", "lightcolor")
|
||||||
|
if not abg:
|
||||||
|
abg = bg
|
||||||
event.widget.config(
|
event.widget.config(
|
||||||
background=bg, foreground=fg, activebackground=abg, activeforeground=fg
|
background=bg, foreground=fg, activebackground=abg, activeforeground=fg
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue