another distcheck fix
[debian/gnuradio] / grc / src / grc / gui / elements / 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 ##@package grc.gui.elements.Colors
20 #Global Colors for the gui
21
22 import pygtk
23 pygtk.require('2.0')
24 import gtk
25
26 COLORMAP = gtk.gdk.colormap_get_system() #create all of the colors
27 def get_color(color_code): return COLORMAP.alloc_color(color_code, True, True)
28
29 BACKGROUND_COLOR = get_color('#FFF9FF') #main window background
30 FG_COLOR = get_color('black') #normal border color
31 BG_COLOR = get_color('#F1ECFF') #default background
32 DISABLED_BG_COLOR = get_color('#CCCCCC') #disabled background
33 DISABLED_FG_COLOR = get_color('#999999') #disabled foreground
34 H_COLOR = get_color('#00FFFF') #Highlight border color
35 TXT_COLOR = get_color('black') #text color
36 ERROR_COLOR = get_color('red') #error color