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