aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-06-17 21:14:22 +0000
committerN.N. <matju@users.sourceforge.net>2009-06-17 21:14:22 +0000
commitdb2ddfe0b9f2bdefa2a67a54164c826d525a51bc (patch)
tree25a9ee1fc98fb2e5a627607c481050a577fa653d /desiredata/src
parent11c27e0b81c76d40a95bd819e7125b1ec1085ea3 (diff)
another attempt at making colour presets better on osx
svn path=/trunk/; revision=11797
Diffstat (limited to 'desiredata/src')
-rw-r--r--desiredata/src/desire.tk5
1 files changed, 2 insertions, 3 deletions
diff --git a/desiredata/src/desire.tk b/desiredata/src/desire.tk
index 38297a2d..c0277f4c 100644
--- a/desiredata/src/desire.tk
+++ b/desiredata/src/desire.tk
@@ -7674,9 +7674,8 @@ def Dialogue color_popup {frame var i} {
pack [frame $w.$i -bd 0 -bg "#000000"]
for {set j 0} {$j<10} {incr j} {
set c [lindex $::preset_colors [expr {$i*10+$j}]]
- pack [button $w.$i.$j -image icon_empty -width 24 -height 24 \
- -background "#$c" -highlightbackground "#$c" -activebackground "#$c" \
- -command [list $self color_popup_select $frame $var [expr 0x$c]] -padx 0 -pady 0] -side left
+ pack [frame $w.$i.$j -width 24 -height 24 -background "#$c" -relief raised] -side left
+ bind $w.$i.$j <ButtonRelease> [list $self color_popup_select $frame $var [expr 0x$c]]
}
}
}