Skip to content

Commit 8f8cba5

Browse files
stonebigclaude
andcommitted
make the selected tab easy to spot: black label, others dimmed grey
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 477211a commit 8f8cba5

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Changelog
1212

1313
* shortcuts : Ctrl+Enter runs the script ; Ctrl+mousewheel changes the font size one point at a time
1414

15+
* tabs : the selected tab is easier to spot : plain black label, the other tabs dimmed grey
16+
1517
* fix : Treeview rows no longer clip the text when enlarging the font (AA button or Ctrl+mousewheel)
1618

1719
* packaging : PyPI page links refreshed : Documentation link fixed, Changelog / Homepage / Issue Tracker links added

sqlite_bro/sqlite_bro.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,16 @@ def create_style(self):
11081108
],
11091109
)
11101110

1111+
# make the selected tab easy to spot: dimmed labels for the others,
1112+
# a strong color for the current one (tab backgrounds are drawn by
1113+
# the native Windows theme and can't be recolored reliably)
1114+
style.configure("ButtonNotebook.Tab", foreground="#707070")
1115+
style.map(
1116+
"ButtonNotebook.Tab",
1117+
foreground=[("selected", "#000000")],
1118+
background=[("selected", "#ffffff")], # honored on non-native themes
1119+
)
1120+
11111121
self.tk_win.bind_class("TNotebook", "<ButtonPress-1>", self.btn_press, True)
11121122
self.tk_win.bind_class("TNotebook", "<ButtonRelease-1>", self.btn_release)
11131123
self.tk_win.bind_class("TNotebook", "<B1-Motion>", self.btn_Movex)

0 commit comments

Comments
 (0)