Audio plugin host https://kx.studio/carla
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.

582 lines
20KB

  1. /*
  2. * PatchBay Canvas Themes
  3. * Copyright (C) 2010-2019 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or 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 doc/GPL.txt file.
  16. */
  17. #include "theme.hpp"
  18. //---------------------------------------------------------------------------------------------------------------------
  19. // Imports (Global)
  20. #include <QtGui/QColor>
  21. #include <QtGui/QFont>
  22. #include <QtGui/QPen>
  23. //---------------------------------------------------------------------------------------------------------------------
  24. struct Theme::PrivateData {
  25. const Theme::List idx;
  26. // Canvas
  27. QColor canvas_bg;
  28. // Boxes
  29. QPen box_pen;
  30. QPen box_pen_sel;
  31. QColor box_bg_1;
  32. QColor box_bg_2;
  33. QColor box_shadow;
  34. // box_header_pixmap
  35. int box_header_height;
  36. int box_header_spacing;
  37. QPen box_text;
  38. QPen box_text_sel;
  39. int box_text_ypos;
  40. QString box_font_name;
  41. int box_font_size;
  42. QFont::Weight box_font_state;
  43. BackgroundType box_bg_type;
  44. bool box_use_icon;
  45. // Ports
  46. QPen port_text;
  47. int port_text_ypos = 12;
  48. // port_bg_pixmap = None;
  49. QString port_font_name;
  50. int port_font_size;
  51. QFont::Weight port_font_state;
  52. PortType port_mode;
  53. QPen port_audio_jack_pen;
  54. QPen port_audio_jack_pen_sel;
  55. QPen port_midi_jack_pen;
  56. QPen port_midi_jack_pen_sel;
  57. QPen port_midi_alsa_pen;
  58. QPen port_midi_alsa_pen_sel;
  59. QPen port_parameter_pen;
  60. QPen port_parameter_pen_sel;
  61. QColor port_audio_jack_bg;
  62. QColor port_audio_jack_bg_sel;
  63. QColor port_midi_jack_bg;
  64. QColor port_midi_jack_bg_sel;
  65. QColor port_midi_alsa_bg;
  66. QColor port_midi_alsa_bg_sel;
  67. QColor port_parameter_bg;
  68. QColor port_parameter_bg_sel;
  69. QColor port_audio_jack_text;
  70. QColor port_audio_jack_text_sel;
  71. QColor port_midi_jack_text;
  72. QColor port_midi_jack_text_sel;
  73. QColor port_midi_alsa_text;
  74. QColor port_midi_alsa_text_sel;
  75. QColor port_parameter_text;
  76. QColor port_parameter_text_sel;
  77. int port_height;
  78. int port_offset;
  79. int port_spacing;
  80. int port_spacingT;
  81. // Lines
  82. QColor line_audio_jack;
  83. QColor line_audio_jack_sel;
  84. QColor line_audio_jack_glow;
  85. QColor line_midi_jack;
  86. QColor line_midi_jack_sel;
  87. QColor line_midi_jack_glow;
  88. QColor line_midi_alsa;
  89. QColor line_midi_alsa_sel;
  90. QColor line_midi_alsa_glow;
  91. QColor line_parameter;
  92. QColor line_parameter_sel;
  93. QColor line_parameter_glow;
  94. QPen rubberband_pen;
  95. QColor rubberband_brush;
  96. //-----------------------------------------------------------------------------------------------------------------
  97. PrivateData(const Theme::List id)
  98. : idx(id)
  99. {
  100. switch (idx)
  101. {
  102. case THEME_MODERN_DARK:
  103. // Canvas
  104. canvas_bg = QColor(0, 0, 0);
  105. // Boxes
  106. box_pen = QPen(QColor(76, 77, 78), 1, Qt::SolidLine);
  107. box_pen_sel = QPen(QColor(206, 207, 208), 1, Qt::DashLine);
  108. box_bg_1 = QColor(32, 34, 35);
  109. box_bg_2 = QColor(43, 47, 48);
  110. box_shadow = QColor(89, 89, 89, 180);
  111. // box_header_pixmap = None;
  112. box_header_height = 24;
  113. box_header_spacing = 0;
  114. box_text = QPen(QColor(240, 240, 240), 0);
  115. box_text_sel = box_text;
  116. box_text_ypos = 16;
  117. box_font_name = "Deja Vu Sans";
  118. box_font_size = 11;
  119. box_font_state = QFont::Bold;
  120. box_bg_type = THEME_BG_GRADIENT;
  121. box_use_icon = true;
  122. // Ports
  123. port_text = QPen(QColor(250, 250, 250), 0);
  124. port_text_ypos = 12;
  125. // port_bg_pixmap = None;
  126. port_font_name = "Deja Vu Sans";
  127. port_font_size = 11;
  128. port_font_state = QFont::Normal;
  129. port_mode = THEME_PORT_POLYGON;
  130. port_audio_jack_pen = QPen(QColor(63, 90, 126), 1);
  131. port_audio_jack_pen_sel = QPen(QColor(63 + 30, 90 + 30, 126 + 30), 1);
  132. port_midi_jack_pen = QPen(QColor(159, 44, 42), 1);
  133. port_midi_jack_pen_sel = QPen(QColor(159 + 30, 44 + 30, 42 + 30), 1);
  134. port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1);
  135. port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1);
  136. port_parameter_pen = QPen(QColor(137, 76, 43), 1);
  137. port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1);
  138. port_audio_jack_bg = QColor(35, 61, 99);
  139. port_audio_jack_bg_sel = QColor(35 + 50, 61 + 50, 99 + 50);
  140. port_midi_jack_bg = QColor(120, 15, 16);
  141. port_midi_jack_bg_sel = QColor(120 + 50, 15 + 50, 16 + 50);
  142. port_midi_alsa_bg = QColor(64, 112, 18);
  143. port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50);
  144. port_parameter_bg = QColor(101, 47, 16);
  145. port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50);
  146. /*
  147. port_audio_jack_text = port_text;
  148. port_audio_jack_text_sel = port_text;
  149. port_midi_jack_text = port_text;
  150. port_midi_jack_text_sel = port_text;
  151. port_midi_alsa_text = port_text;
  152. port_midi_alsa_text_sel = port_text;
  153. port_parameter_text = port_text;
  154. port_parameter_text_sel = port_text;
  155. */
  156. port_height = 16;
  157. port_offset = 0;
  158. port_spacing = 2;
  159. port_spacingT = 2;
  160. // Lines
  161. line_audio_jack = QColor(63, 90, 126);
  162. line_audio_jack_sel = QColor(63 + 90, 90 + 90, 126 + 90);
  163. line_audio_jack_glow = QColor(100, 100, 200);
  164. line_midi_jack = QColor(159, 44, 42);
  165. line_midi_jack_sel = QColor(159 + 90, 44 + 90, 42 + 90);
  166. line_midi_jack_glow = QColor(200, 100, 100);
  167. line_midi_alsa = QColor(93, 141, 46);
  168. line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90);
  169. line_midi_alsa_glow = QColor(100, 200, 100);
  170. line_parameter = QColor(137, 76, 43);
  171. line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90);
  172. line_parameter_glow = QColor(166, 133, 133);
  173. rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt::SolidLine);
  174. rubberband_brush = QColor(76, 77, 78, 100);
  175. break;
  176. #if 0
  177. elif idx == THEME_MODERN_DARK_TINY:
  178. # Canvas
  179. canvas_bg = QColor(0, 0, 0)
  180. # Boxes
  181. box_pen = QPen(QColor(76, 77, 78), 1, Qt::SolidLine)
  182. box_pen_sel = QPen(QColor(206, 207, 208), 1, Qt::DashLine)
  183. box_bg_1 = QColor(32, 34, 35)
  184. box_bg_2 = QColor(43, 47, 48)
  185. box_shadow = QColor(89, 89, 89, 180)
  186. box_header_pixmap = None
  187. box_header_height = 14
  188. box_header_spacing = 0
  189. box_text = QPen(QColor(240, 240, 240), 0)
  190. box_text_sel = ox_text
  191. box_text_ypos = 10
  192. box_font_name = "Deja Vu Sans"
  193. box_font_size = 10
  194. box_font_state = QFont::Bold
  195. box_bg_type = THEME_BG_GRADIENT
  196. box_use_icon = false
  197. # Ports
  198. port_text = QPen(QColor(250, 250, 250), 0)
  199. port_text_ypos = 9
  200. port_bg_pixmap = None
  201. port_font_name = "Deja Vu Sans"
  202. port_font_size = 9
  203. port_font_state = QFont::Normal
  204. port_mode = THEME_PORT_POLYGON
  205. port_audio_jack_pen = QPen(QColor(63, 90, 126), 1)
  206. port_audio_jack_pen_sel = QPen(QColor(63 + 30, 90 + 30, 126 + 30), 1)
  207. port_midi_jack_pen = QPen(QColor(159, 44, 42), 1)
  208. port_midi_jack_pen_sel = QPen(QColor(159 + 30, 44 + 30, 42 + 30), 1)
  209. port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1)
  210. port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1)
  211. port_parameter_pen = QPen(QColor(137, 76, 43), 1)
  212. port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1)
  213. port_audio_jack_bg = QColor(35, 61, 99)
  214. port_audio_jack_bg_sel = QColor(35 + 50, 61 + 50, 99 + 50)
  215. port_midi_jack_bg = QColor(120, 15, 16)
  216. port_midi_jack_bg_sel = QColor(120 + 50, 15 + 50, 16 + 50)
  217. port_midi_alsa_bg = QColor(64, 112, 18)
  218. port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50)
  219. port_parameter_bg = QColor(101, 47, 16)
  220. port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50)
  221. port_audio_jack_text = port_text
  222. port_audio_jack_text_sel = port_text
  223. port_midi_jack_text = port_text
  224. port_midi_jack_text_sel = port_text
  225. port_midi_alsa_text = port_text
  226. port_midi_alsa_text_sel = port_text
  227. port_parameter_text = port_text
  228. port_parameter_text_sel = port_text
  229. port_height = 12
  230. port_offset = 0
  231. port_spacing = 1
  232. port_spacingT = 1
  233. # Lines
  234. line_audio_jack = QColor(63, 90, 126)
  235. line_audio_jack_sel = QColor(63 + 90, 90 + 90, 126 + 90)
  236. line_audio_jack_glow = QColor(100, 100, 200)
  237. line_midi_jack = QColor(159, 44, 42)
  238. line_midi_jack_sel = QColor(159 + 90, 44 + 90, 42 + 90)
  239. line_midi_jack_glow = QColor(200, 100, 100)
  240. line_midi_alsa = QColor(93, 141, 46)
  241. line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90)
  242. line_midi_alsa_glow = QColor(100, 200, 100)
  243. line_parameter = QColor(137, 76, 43)
  244. line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90)
  245. line_parameter_glow = QColor(166, 133, 133)
  246. rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt::SolidLine)
  247. rubberband_brush = QColor(76, 77, 78, 100)
  248. elif idx == THEME_MODERN_LIGHT:
  249. # Canvas
  250. canvas_bg = QColor(248, 249, 250)
  251. # Boxes
  252. box_pen = QPen(QColor(176, 177, 178), 1, Qt::SolidLine)
  253. box_pen_sel = QPen(QColor(1, 2, 3), 2, Qt::DashLine)
  254. box_bg_1 = QColor(250, 250, 250)
  255. box_bg_2 = QColor(200, 200, 200)
  256. box_shadow = QColor(1, 1, 1, 100)
  257. box_header_pixmap = None
  258. box_header_height = 24
  259. box_header_spacing = 0
  260. box_text = QPen(QColor(1, 1, 1), 0)
  261. box_text_sel = ox_text
  262. box_text_ypos = 16
  263. box_font_name = "Ubuntu"
  264. box_font_size = 11
  265. box_font_state = QFont::Bold
  266. box_bg_type = THEME_BG_GRADIENT
  267. box_use_icon = True
  268. # Ports
  269. port_text = QPen(QColor(255, 255, 255), 1)
  270. port_text_ypos = 12
  271. port_bg_pixmap = None
  272. port_font_name = "Ubuntu"
  273. port_font_size = 11
  274. port_font_state = QFont::Bold
  275. port_mode = THEME_PORT_POLYGON
  276. port_audio_jack_pen = QPen(QColor(103, 130, 166), 2)
  277. port_audio_jack_pen_sel = QPen(QColor(103 + 136, 190 + 130, 226 + 130), 1)
  278. port_midi_jack_pen = QPen(QColor(159, 44, 42), 1)
  279. port_midi_jack_pen_sel = QPen(QColor(90 + 30, 44 + 30, 42 + 30), 1)
  280. port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1)
  281. port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1)
  282. port_parameter_pen = QPen(QColor(137, 76, 43), 1)
  283. port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1)
  284. port_audio_jack_bg = QColor(0, 0, 180)
  285. port_audio_jack_bg_sel = QColor(135 + 150, 161 + 150, 199 + 150)
  286. port_midi_jack_bg = QColor(130, 15, 16)
  287. port_midi_jack_bg_sel = QColor(90 + 30, 15 + 50, 16 + 50)
  288. port_midi_alsa_bg = QColor(64, 112, 18)
  289. port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50)
  290. port_parameter_bg = QColor(101, 47, 16)
  291. port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50)
  292. port_audio_jack_text = port_text
  293. port_audio_jack_text_sel = port_text
  294. port_midi_jack_text = port_text
  295. port_midi_jack_text_sel = port_text
  296. port_midi_alsa_text = port_text
  297. port_midi_alsa_text_sel = port_text
  298. port_parameter_text = port_text
  299. port_parameter_text_sel = port_text
  300. port_height = 16
  301. port_offset = 0
  302. port_spacing = 2
  303. port_spacingT = 2
  304. # Lines
  305. line_audio_jack = QColor(63, 90, 126)
  306. line_audio_jack_sel = QColor(63 + 63, 90 + 90, 126 + 90)
  307. line_audio_jack_glow = QColor(100, 100, 200)
  308. line_midi_jack = QColor(159, 44, 42)
  309. line_midi_jack_sel = QColor(159 + 44, 44 + 90, 42 + 90)
  310. line_midi_jack_glow = QColor(200, 100, 100)
  311. line_midi_alsa = QColor(93, 141, 46)
  312. line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90)
  313. line_midi_alsa_glow = QColor(100, 200, 100)
  314. line_parameter = QColor(137, 43, 43)
  315. line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90)
  316. line_parameter_glow = QColor(166, 133, 133)
  317. rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt::SolidLine)
  318. rubberband_brush = QColor(76, 77, 78, 100)
  319. elif idx == THEME_CLASSIC_DARK:
  320. # Canvas
  321. canvas_bg = QColor(0, 0, 0)
  322. # Boxes
  323. box_pen = QPen(QColor(147 - 70, 151 - 70, 143 - 70), 2, Qt::SolidLine)
  324. box_pen_sel = QPen(QColor(147, 151, 143), 2, Qt::DashLine)
  325. box_bg_1 = QColor(30, 34, 36)
  326. box_bg_2 = QColor(30, 34, 36)
  327. box_shadow = QColor(89, 89, 89, 180)
  328. box_header_pixmap = None
  329. box_header_height = 19
  330. box_header_spacing = 0
  331. box_text = QPen(QColor(255, 255, 255), 0)
  332. box_text_sel = ox_text
  333. box_text_ypos = 12
  334. box_font_name = "Sans"
  335. box_font_size = 12
  336. box_font_state = QFont::Normal
  337. box_bg_type = THEME_BG_GRADIENT
  338. box_use_icon = false
  339. # Ports
  340. port_text = QPen(QColor(250, 250, 250), 0)
  341. port_text_ypos = 11
  342. port_bg_pixmap = None
  343. port_font_name = "Sans"
  344. port_font_size = 11
  345. port_font_state = QFont::Normal
  346. port_mode = THEME_PORT_SQUARE
  347. port_audio_jack_pen = QPen(QColor(35, 61, 99), Qt::NoPen, 0)
  348. port_audio_jack_pen_sel = QPen(QColor(255, 0, 0), Qt::NoPen, 0)
  349. port_midi_jack_pen = QPen(QColor(120, 15, 16), Qt::NoPen, 0)
  350. port_midi_jack_pen_sel = QPen(QColor(255, 0, 0), Qt::NoPen, 0)
  351. port_midi_alsa_pen = QPen(QColor(63, 112, 19), Qt::NoPen, 0)
  352. port_midi_alsa_pen_sel = QPen(QColor(255, 0, 0), Qt::NoPen, 0)
  353. port_parameter_pen = QPen(QColor(101, 47, 17), Qt::NoPen, 0)
  354. port_parameter_pen_sel = QPen(QColor(255, 0, 0), Qt::NoPen, 0)
  355. port_audio_jack_bg = QColor(35, 61, 99)
  356. port_audio_jack_bg_sel = QColor(255, 0, 0)
  357. port_midi_jack_bg = QColor(120, 15, 16)
  358. port_midi_jack_bg_sel = QColor(255, 0, 0)
  359. port_midi_alsa_bg = QColor(63, 112, 19)
  360. port_midi_alsa_bg_sel = QColor(255, 0, 0)
  361. port_parameter_bg = QColor(101, 47, 17)
  362. port_parameter_bg_sel = QColor(255, 0, 0)
  363. port_audio_jack_text = port_text
  364. port_audio_jack_text_sel = port_text
  365. port_midi_jack_text = port_text
  366. port_midi_jack_text_sel = port_text
  367. port_midi_alsa_text = port_text
  368. port_midi_alsa_text_sel = port_text
  369. port_parameter_text = port_text
  370. port_parameter_text_sel = port_text
  371. port_height = 14
  372. port_offset = 0
  373. port_spacing = 1
  374. port_spacingT = 0
  375. # Lines
  376. line_audio_jack = QColor(53, 78, 116)
  377. line_audio_jack_sel = QColor(255, 0, 0)
  378. line_audio_jack_glow = QColor(255, 0, 0)
  379. line_midi_jack = QColor(139, 32, 32)
  380. line_midi_jack_sel = QColor(255, 0, 0)
  381. line_midi_jack_glow = QColor(255, 0, 0)
  382. line_midi_alsa = QColor(81, 130, 36)
  383. line_midi_alsa_sel = QColor(255, 0, 0)
  384. line_midi_alsa_glow = QColor(255, 0, 0)
  385. line_parameter = QColor(120, 65, 33)
  386. line_parameter_sel = QColor(255, 0, 0)
  387. line_parameter_glow = QColor(255, 0, 0)
  388. rubberband_pen = QPen(QColor(147, 151, 143), 2, Qt::SolidLine)
  389. rubberband_brush = QColor(35, 61, 99, 100)
  390. elif idx == THEME_OOSTUDIO:
  391. # Canvas
  392. canvas_bg = QColor(11, 11, 11)
  393. # Boxes
  394. box_pen = QPen(QColor(76, 77, 78), 1, Qt::SolidLine)
  395. box_pen_sel = QPen(QColor(189, 122, 214), 1, Qt::DashLine)
  396. box_bg_1 = QColor(46, 46, 46)
  397. box_bg_2 = QColor(23, 23, 23)
  398. box_shadow = QColor(89, 89, 89, 180)
  399. box_header_pixmap = QPixmap(":/bitmaps/canvas/frame_node_header.png")
  400. box_header_height = 22
  401. box_header_spacing = 6
  402. box_text = QPen(QColor(144, 144, 144), 0)
  403. box_text_sel = QPen(QColor(189, 122, 214), 0)
  404. box_text_ypos = 16
  405. box_font_name = "Deja Vu Sans"
  406. box_font_size = 11
  407. box_font_state = QFont::Bold
  408. box_bg_type = THEME_BG_SOLID
  409. box_use_icon = false
  410. # Ports
  411. normalPortBG = QColor(46, 46, 46)
  412. selPortBG = QColor(23, 23, 23)
  413. port_text = QPen(QColor(155, 155, 155), 0)
  414. port_text_ypos = 14
  415. port_bg_pixmap = QPixmap(":/bitmaps/canvas/frame_port_bg.png")
  416. port_font_name = "Deja Vu Sans"
  417. port_font_size = 11
  418. port_font_state = QFont::Normal
  419. port_mode = THEME_PORT_SQUARE
  420. port_audio_jack_pen = QPen(selPortBG, 2)
  421. port_audio_jack_pen_sel = QPen(QColor(1, 230, 238), 1)
  422. port_midi_jack_pen = QPen(selPortBG, 2)
  423. port_midi_jack_pen_sel = QPen(QColor(252, 118, 118), 1)
  424. port_midi_alsa_pen = QPen(selPortBG, 2)
  425. port_midi_alsa_pen_sel = QPen(QColor(129, 244, 118), 0)
  426. port_parameter_pen = QPen(selPortBG, 2)
  427. port_parameter_pen_sel = QPen(QColor(137, 76, 43), 1)
  428. port_audio_jack_bg = normalPortBG
  429. port_audio_jack_bg_sel = selPortBG
  430. port_midi_jack_bg = normalPortBG
  431. port_midi_jack_bg_sel = selPortBG
  432. port_midi_alsa_bg = normalPortBG
  433. port_midi_alsa_bg_sel = selPortBG
  434. port_parameter_bg = normalPortBG
  435. port_parameter_bg_sel = selPortBG
  436. port_audio_jack_text = port_text
  437. port_audio_jack_text_sel = port_audio_jack_pen_sel
  438. port_midi_jack_text = port_text
  439. port_midi_jack_text_sel = port_midi_jack_pen_sel
  440. port_midi_alsa_text = port_text
  441. port_midi_alsa_text_sel = port_midi_alsa_pen_sel
  442. port_parameter_text = port_text
  443. port_parameter_text_sel = port_parameter_pen_sel
  444. # missing, ports 2
  445. port_height = 21
  446. port_offset = 1
  447. port_spacing = 3
  448. port_spacingT = 0
  449. # Lines
  450. line_audio_jack = QColor(64, 64, 64)
  451. line_audio_jack_sel = QColor(1, 230, 238)
  452. line_audio_jack_glow = QColor(100, 200, 100)
  453. line_midi_jack = QColor(64, 64, 64)
  454. line_midi_jack_sel = QColor(252, 118, 118)
  455. line_midi_jack_glow = QColor(200, 100, 100)
  456. line_midi_alsa = QColor(64, 64, 64)
  457. line_midi_alsa_sel = QColor(129, 244, 118)
  458. line_midi_alsa_glow = QColor(100, 200, 100)
  459. line_parameter = QColor(64, 64, 64)
  460. line_parameter_sel = QColor(137+90, 76+90, 43+90)
  461. line_parameter_glow = QColor(166, 133, 133)
  462. rubberband_pen = QPen(QColor(1, 230, 238), 2, Qt::SolidLine)
  463. rubberband_brush = QColor(90, 90, 90, 100)
  464. #endif
  465. default:
  466. break;
  467. }
  468. }
  469. };
  470. //---------------------------------------------------------------------------------------------------------------------
  471. Theme::Theme(const Theme::List idx)
  472. : self(new PrivateData(idx)) {}
  473. //---------------------------------------------------------------------------------------------------------------------
  474. Theme::List getDefaultTheme()
  475. {
  476. return Theme::THEME_MODERN_DARK;
  477. }
  478. const char* getThemeName(const Theme::List idx)
  479. {
  480. switch (idx)
  481. {
  482. case Theme::THEME_MODERN_DARK:
  483. return "Modern Dark";
  484. case Theme::THEME_MODERN_DARK_TINY:
  485. return "Modern Dark (Tiny)";
  486. case Theme::THEME_MODERN_LIGHT:
  487. return "Modern Light";
  488. case Theme::THEME_CLASSIC_DARK:
  489. return "Classic Dark";
  490. case Theme::THEME_OOSTUDIO:
  491. return "OpenOctave Studio";
  492. default:
  493. return "";
  494. }
  495. }
  496. const char* getDefaultThemeName()
  497. {
  498. return "Modern Dark";
  499. }
  500. //---------------------------------------------------------------------------------------------------------------------