You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
4.2KB

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