Merged r9481:9518 on jblum/grc_reorganize into trunk. Reorganized grc source under...
[debian/gnuradio] / grc / src / platforms / gui / Colors.py
1 """
2 Copyright 2008 Free Software Foundation, Inc.
3 This file is part of GNU Radio
4
5 GNU Radio Companion is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 GNU Radio Companion is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 """
19
20 import pygtk
21 pygtk.require('2.0')
22 import gtk
23
24 COLORMAP = gtk.gdk.colormap_get_system() #create all of the colors
25 def get_color(color_code): return COLORMAP.alloc_color(color_code, True, True)
26
27 BACKGROUND_COLOR = get_color('#FFF9FF') #main window background
28 FG_COLOR = get_color('black') #normal border color
29 BG_COLOR = get_color('#F1ECFF') #default background
30 DISABLED_BG_COLOR = get_color('#CCCCCC') #disabled background
31 DISABLED_FG_COLOR = get_color('#999999') #disabled foreground
32 H_COLOR = get_color('#00FFFF') #Highlight border color
33 TXT_COLOR = get_color('black') #text color
34 ERROR_COLOR = get_color('red') #error color