1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/arduino-0018-windows/hardware/tools/avr/share/redhat/gui/mono.tcl

15 lines
559 B
Tcl
Raw Normal View History

2010-03-30 21:53:44 +02:00
# mono.tcl - Dealing with monochrome.
# Copyright (C) 1997 Cygnus Solutions.
# Written by Tom Tromey <tromey@cygnus.com>.
# It is safe to run this any number of times, so it is ok to have it
# here. Defined as true if the user wants monochrome display.
pref define global/monochrome 0
# Return 1 if monochrome, 0 otherwise. This should be used to make
# the application experience more friendly for colorblind users as
# well as those stuck on mono displays.
proc monochrome_p {} {
return [expr {[pref get global/monochrome] || [winfo depth .] == 1}]
}