summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a0ebbf)
raw | patch | inline | side by side (parent: 7a0ebbf)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Fri, 6 Nov 2009 23:28:01 +0000 (23:28 +0000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sat, 14 Nov 2009 10:28:26 +0000 (21:28 +1100) |
Also convert a button to use the themed widget set.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index ff6b680c7bca141bad805bc0b5a36e4bac5c3028..4e2be7ff4bc28b177f0eb9790dfac7a591cf135b 100755 (executable)
--- a/gitk
+++ b/gitk
${NS}::label $top.cdisp -text [mc "Colors: press to choose"]
grid $top.cdisp - -sticky w -pady 10
label $top.ui -padx 40 -relief sunk -background $uicolor
- button $top.uibut -text [mc "Interface"] -font optionfont \
+ ${NS}::button $top.uibut -text [mc "Interface"] \
-command [list choosecolor uicolor {} $top.ui [mc "interface"] setui]
grid x $top.uibut $top.ui -sticky w
label $top.bg -padx 40 -relief sunk -background $bgcolor
}
set colors {green red blue magenta darkgrey brown orange}
-set uicolor grey85
-set bgcolor white
-set fgcolor black
+if {[tk windowingsystem] eq "win32"} {
+ set uicolor SystemButtonFace
+ set bgcolor SystemWindow
+ set fgcolor SystemButtonText
+ set selectbgcolor SystemHighlight
+} else {
+ set uicolor grey85
+ set bgcolor white
+ set fgcolor black
+ set selectbgcolor gray85
+}
set diffcolors {red "#00a000" blue}
set diffcontext 3
set ignorespace 0
-set selectbgcolor gray85
set markbgcolor "#e0e0ff"
set circlecolors {white blue gray blue blue}