OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [libgui/] [library/] [mono.tcl] - Blame information for rev 1782

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# mono.tcl - Dealing with monochrome.
2
# Copyright (C) 1997 Cygnus Solutions.
3
# Written by Tom Tromey <tromey@cygnus.com>.
4
 
5
# It is safe to run this any number of times, so it is ok to have it
6
# here.  Defined as true if the user wants monochrome display.
7
pref define global/monochrome 0
8
 
9
# Return 1 if monochrome, 0 otherwise.  This should be used to make
10
# the application experience more friendly for colorblind users as
11
# well as those stuck on mono displays.
12
proc monochrome_p {} {
13
  return [expr {[pref get global/monochrome] || [winfo depth .] == 1}]
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.