UI: improve MIDI Combobox contrast in dark theme (field/list colors, selection highlight)
This commit is contained in:
@@ -385,6 +385,23 @@ class UIClient:
|
||||
style.configure(".", background=bg_color, foreground=fg_color, font=("Arial", 14))
|
||||
style.configure("TNotebook", background=bg_color, borderwidth=0)
|
||||
style.configure("TNotebook.Tab", background=bg_color, foreground=fg_color, font=("Arial", 30), padding=[10, 5])
|
||||
# Improve contrast for Combobox (dark theme)
|
||||
try:
|
||||
style.configure("TCombobox",
|
||||
foreground=fg_color,
|
||||
fieldbackground=bg_color,
|
||||
background=bg_color)
|
||||
style.map("TCombobox",
|
||||
fieldbackground=[('readonly', bg_color)],
|
||||
foreground=[('readonly', fg_color)],
|
||||
background=[('readonly', bg_color)])
|
||||
# Dropdown list colors
|
||||
self.root.option_add("*TCombobox*Listbox*background", bg_color)
|
||||
self.root.option_add("*TCombobox*Listbox*foreground", fg_color)
|
||||
self.root.option_add("*TCombobox*Listbox*selectBackground", highlight_pattern_color)
|
||||
self.root.option_add("*TCombobox*Listbox*selectForeground", fg_color)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Top bar: MIDI Controller (left) + Selected Colors (right)
|
||||
top_bar = ttk.Frame(self.root)
|
||||
|
Reference in New Issue
Block a user