Collection of tools useful for audio production
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.

103 lines
2.5KB

  1. /*
  2. * Patchbay Canvas engine using QGraphicsView/Scene
  3. * Copyright (C) 2010-2012 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * any later version.
  9. *
  10. * This program 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. * For a full copy of the GNU General Public License see the COPYING file
  16. */
  17. #ifndef PATCHCANVAS_THEME_H
  18. #define PATCHCANVAS_THEME_H
  19. #include <QtGui/QColor>
  20. #include <QtGui/QFont>
  21. #include <QtGui/QPen>
  22. #include "../patchcanvas.h"
  23. START_NAMESPACE_PATCHCANVAS
  24. class Theme
  25. {
  26. public:
  27. enum PortType {
  28. THEME_PORT_SQUARE = 0,
  29. THEME_PORT_POLYGON = 1
  30. };
  31. enum List {
  32. THEME_MODERN_DARK = 0,
  33. THEME_CLASSIC_DARK = 1,
  34. THEME_MAX = 2
  35. };
  36. Theme(List id);
  37. // Canvas
  38. QString name;
  39. // Boxes
  40. QColor canvas_bg;
  41. QPen box_pen;
  42. QPen box_pen_sel;
  43. QColor box_bg_1;
  44. QColor box_bg_2;
  45. QColor box_shadow;
  46. QPen box_text;
  47. QString box_font_name;
  48. int box_font_size;
  49. QFont::Weight box_font_state;
  50. // Ports
  51. QPen port_audio_jack_pen;
  52. QPen port_audio_jack_pen_sel;
  53. QPen port_midi_jack_pen;
  54. QPen port_midi_jack_pen_sel;
  55. QPen port_midi_a2j_pen;
  56. QPen port_midi_a2j_pen_sel;
  57. QPen port_midi_alsa_pen;
  58. QPen port_midi_alsa_pen_sel;
  59. QColor port_audio_jack_bg;
  60. QColor port_audio_jack_bg_sel;
  61. QColor port_midi_jack_bg;
  62. QColor port_midi_jack_bg_sel;
  63. QColor port_midi_a2j_bg;
  64. QColor port_midi_a2j_bg_sel;
  65. QColor port_midi_alsa_bg;
  66. QColor port_midi_alsa_bg_sel;
  67. QPen port_text;
  68. QString port_font_name;
  69. int port_font_size;
  70. QFont::Weight port_font_state;
  71. PortType port_mode;
  72. // Lines
  73. QColor line_audio_jack;
  74. QColor line_audio_jack_sel;
  75. QColor line_audio_jack_glow;
  76. QColor line_midi_jack;
  77. QColor line_midi_jack_sel;
  78. QColor line_midi_jack_glow;
  79. QColor line_midi_a2j;
  80. QColor line_midi_a2j_sel;
  81. QColor line_midi_a2j_glow;
  82. QColor line_midi_alsa;
  83. QColor line_midi_alsa_sel;
  84. QColor line_midi_alsa_glow;
  85. QPen rubberband_pen;
  86. QColor rubberband_brush;
  87. };
  88. END_NAMESPACE_PATCHCANVAS
  89. #endif // PATCHCANVAS_THEME_H