Tweak themes for more color consistency.
[ntk.git] / src / themes.cxx
blob105cef0468d48d6d62110076aa1a0f08e5ce0a51
2 /*******************************************************************************/
3 /* Copyright (C) 2012 Jonathan Moore Liles */
4 /* */
5 /* This program is free software; you can redistribute it and/or modify it */
6 /* under the terms of the GNU General Public License as published by the */
7 /* Free Software Foundation; either version 2 of the License, or (at your */
8 /* option) any later version. */
9 /* */
10 /* This program is distributed in the hope that it will be useful, but WITHOUT */
11 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or */
12 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for */
13 /* more details. */
14 /* */
15 /* You should have received a copy of the GNU General Public License along */
16 /* with This program; see the file COPYING. If not,write to the Free Software */
17 /* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
18 /*******************************************************************************/
20 #include "FL/Fl_Theme.H"
22 #include "FL/Cairo_Theme.H"
23 #include "FL/Crystal_Theme.H"
24 #include "FL/Gleam_Theme.H"
25 #include "FL/Clean_Theme.H"
26 #include "FL/Vector_Theme.H"
28 static bool themes_registered = 0;
30 void fl_register_themes ( void )
32 if ( themes_registered )
33 return;
35 themes_registered = 1;
37 init_cairo_theme();
38 init_clean_theme();
39 init_crystal_theme();
40 init_gleam_theme();
41 init_vector_theme();
44 Fl_Color_Scheme *o = new Fl_Color_Scheme( "Dark",
45 fl_rgb_color( 50, 50, 50 ),
46 fl_rgb_color( 100, 100, 100 ),
47 fl_rgb_color( 255, 255, 255 ),
48 FL_YELLOW );
49 Fl_Color_Scheme::add( o );
52 Fl_Color_Scheme *o = new Fl_Color_Scheme( "Darker",
53 fl_rgb_color( 20, 20, 20 ),
54 fl_rgb_color( 100, 100, 100 ),
55 fl_rgb_color( 240, 240, 240 ),
56 FL_YELLOW );
57 Fl_Color_Scheme::add( o );
60 Fl_Color_Scheme *o = new Fl_Color_Scheme( "Gray",
61 fl_rgb_color( 100, 100, 100 ),
62 fl_rgb_color( 127, 127, 127 ),
63 fl_rgb_color( 255, 255, 255 ),
64 FL_YELLOW );
65 Fl_Color_Scheme::add( o );
68 Fl_Color_Scheme *o = new Fl_Color_Scheme( "Black",
69 fl_rgb_color( 0, 0, 0 ),
70 fl_rgb_color( 20, 20, 20 ),
71 fl_rgb_color( 240, 240, 240 ),
72 FL_YELLOW );
73 Fl_Color_Scheme::add( o );
76 Fl_Color_Scheme *o = new Fl_Color_Scheme( "Light",
77 fl_rgb_color( 220, 220, 220 ),
78 fl_rgb_color( 192, 192, 192 ),
79 fl_rgb_color( 0, 0, 0 ),
80 FL_BLUE );
81 Fl_Color_Scheme::add( o );
84 Fl::get_system_colors();
86 Fl_Color_Scheme *o = new Fl_Color_Scheme( "System",
87 (Fl_Color)Fl::get_color( FL_BACKGROUND_COLOR ),
88 (Fl_Color)Fl::get_color( FL_BACKGROUND2_COLOR ),
89 (Fl_Color)Fl::get_color( FL_FOREGROUND_COLOR ),
90 FL_BLUE );
91 Fl_Color_Scheme::add( o );