2 /*******************************************************************************/
3 /* Copyright (C) 2012 Jonathan Moore Liles */
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. */
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 */
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
)
35 themes_registered
= 1;
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 ),
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 ),
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 ),
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 ),
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 ),
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
),
91 Fl_Color_Scheme::add( o
);