summaryrefslogtreecommitdiffstats
path: root/ds9
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2020-04-29 21:13:33 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2020-04-29 21:13:33 (GMT)
commit6c884624561927ae481567bc6bdb8f3708d9f6a6 (patch)
treee547409aaa44c8d38bbdd56cdd369a60af46b89a /ds9
parent167b5903a88064a81b1353333c5dc886c5cf228b (diff)
downloadblt-6c884624561927ae481567bc6bdb8f3708d9f6a6.zip
blt-6c884624561927ae481567bc6bdb8f3708d9f6a6.tar.gz
blt-6c884624561927ae481567bc6bdb8f3708d9f6a6.tar.bz2
active vs select theme
Diffstat (limited to 'ds9')
-rw-r--r--ds9/library/menu.tcl7
1 files changed, 6 insertions, 1 deletions
diff --git a/ds9/library/menu.tcl b/ds9/library/menu.tcl
index 568dca8..1e24cb2 100644
--- a/ds9/library/menu.tcl
+++ b/ds9/library/menu.tcl
@@ -44,7 +44,7 @@ proc CreateMenuBar {} {
switch $ds9(wm) {
x11 {
bind Menu <<ThemeChanged>> {ThemeConfigMenu %W}
- bind Table <<ThemeChanged>> {ThemeConfig %W}
+ bind Table <<ThemeChanged>> {ThemeConfigTable %W}
bind Text <<ThemeChanged>> {ThemeConfig %W}
}
aqua -
@@ -117,6 +117,11 @@ proc ThemeConfigMenu {w} {
}
}
+proc ThemeConfigTable {w} {
+ $w configure -fg [ThemeForeground]
+ $w configure -bg [ThemeBackground]
+}
+
proc ThemeConfig {w} {
$w configure -fg [ThemeForeground]
$w configure -bg [ThemeBackground]