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.

492 lines
21KB

  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. # PatchBay Canvas Themes
  4. # Copyright (C) 2010-2014 Filipe Coelho <falktx@falktx.com>
  5. #
  6. # This program is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU General Public License as
  8. # published by the Free Software Foundation; either version 2 of
  9. # the License, or any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # For a full copy of the GNU General Public License see the doc/GPL.txt file.
  17. # ------------------------------------------------------------------------------------------------------------
  18. # Imports (Config)
  19. from carla_config import *
  20. # ------------------------------------------------------------------------------------------------------------
  21. # Imports (Global)
  22. if config_UseQt5:
  23. from PyQt5.QtCore import Qt
  24. from PyQt5.QtGui import QColor, QFont, QPen, QPixmap
  25. else:
  26. from PyQt4.QtCore import Qt
  27. from PyQt4.QtGui import QColor, QFont, QPen, QPixmap
  28. # ------------------------------------------------------------------------------------------------------------
  29. # patchcanvas-theme.cpp
  30. class Theme(object):
  31. # enum PortType
  32. THEME_PORT_SQUARE = 0
  33. THEME_PORT_POLYGON = 1
  34. # enum List
  35. THEME_MODERN_DARK = 0
  36. THEME_MODERN_DARK_TINY = 1
  37. THEME_MODERN_LIGHT = 2
  38. THEME_CLASSIC_DARK = 3
  39. THEME_OOSTUDIO = 4
  40. THEME_MAX = 5
  41. # enum BackgroundType
  42. THEME_BG_SOLID = 0
  43. THEME_BG_GRADIENT = 1
  44. def __init__(self, idx):
  45. object.__init__(self)
  46. self.idx = idx
  47. if idx == self.THEME_MODERN_DARK:
  48. # Canvas
  49. self.canvas_bg = QColor(0, 0, 0)
  50. # Boxes
  51. self.box_pen = QPen(QColor(76, 77, 78), 1, Qt.SolidLine)
  52. self.box_pen_sel = QPen(QColor(206, 207, 208), 1, Qt.DashLine)
  53. self.box_bg_1 = QColor(32, 34, 35)
  54. self.box_bg_2 = QColor(43, 47, 48)
  55. self.box_shadow = QColor(89, 89, 89, 180)
  56. self.box_header_pixmap = None
  57. self.box_header_height = 24
  58. self.box_header_spacing = 0
  59. self.box_text = QPen(QColor(240, 240, 240), 0)
  60. self.box_text_sel = self.box_text
  61. self.box_text_ypos = 16
  62. self.box_font_name = "Deja Vu Sans"
  63. self.box_font_size = 8
  64. self.box_font_state = QFont.Bold
  65. self.box_bg_type = self.THEME_BG_GRADIENT
  66. self.box_use_icon = True
  67. # Ports
  68. self.port_text = QPen(QColor(250, 250, 250), 0)
  69. self.port_text_ypos = 12
  70. self.port_bg_pixmap = None
  71. self.port_font_name = "Deja Vu Sans"
  72. self.port_font_size = 8
  73. self.port_font_state = QFont.Normal
  74. self.port_mode = self.THEME_PORT_POLYGON
  75. self.port_audio_jack_pen = QPen(QColor(63, 90, 126), 1)
  76. self.port_audio_jack_pen_sel = QPen(QColor(63 + 30, 90 + 30, 126 + 30), 1)
  77. self.port_midi_jack_pen = QPen(QColor(159, 44, 42), 1)
  78. self.port_midi_jack_pen_sel = QPen(QColor(159 + 30, 44 + 30, 42 + 30), 1)
  79. self.port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1)
  80. self.port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1)
  81. self.port_parameter_pen = QPen(QColor(137, 76, 43), 1)
  82. self.port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1)
  83. self.port_audio_jack_bg = QColor(35, 61, 99)
  84. self.port_audio_jack_bg_sel = QColor(35 + 50, 61 + 50, 99 + 50)
  85. self.port_midi_jack_bg = QColor(120, 15, 16)
  86. self.port_midi_jack_bg_sel = QColor(120 + 50, 15 + 50, 16 + 50)
  87. self.port_midi_alsa_bg = QColor(64, 112, 18)
  88. self.port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50)
  89. self.port_parameter_bg = QColor(101, 47, 16)
  90. self.port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50)
  91. self.port_audio_jack_text = self.port_text
  92. self.port_audio_jack_text_sel = self.port_text
  93. self.port_midi_jack_text = self.port_text
  94. self.port_midi_jack_text_sel = self.port_text
  95. self.port_midi_alsa_text = self.port_text
  96. self.port_midi_alsa_text_sel = self.port_text
  97. self.port_parameter_text = self.port_text
  98. self.port_parameter_text_sel = self.port_text
  99. self.port_height = 15
  100. self.port_offset = 0
  101. self.port_spacing = 3
  102. self.port_spacingT = 2
  103. # Lines
  104. self.line_audio_jack = QColor(63, 90, 126)
  105. self.line_audio_jack_sel = QColor(63 + 90, 90 + 90, 126 + 90)
  106. self.line_audio_jack_glow = QColor(100, 100, 200)
  107. self.line_midi_jack = QColor(159, 44, 42)
  108. self.line_midi_jack_sel = QColor(159 + 90, 44 + 90, 42 + 90)
  109. self.line_midi_jack_glow = QColor(200, 100, 100)
  110. self.line_midi_alsa = QColor(93, 141, 46)
  111. self.line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90)
  112. self.line_midi_alsa_glow = QColor(100, 200, 100)
  113. self.line_parameter = QColor(137, 76, 43)
  114. self.line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90)
  115. self.line_parameter_glow = QColor(166, 133, 133)
  116. self.rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt.SolidLine)
  117. self.rubberband_brush = QColor(76, 77, 78, 100)
  118. elif idx == self.THEME_MODERN_DARK_TINY:
  119. # Canvas
  120. self.canvas_bg = QColor(0, 0, 0)
  121. # Boxes
  122. self.box_pen = QPen(QColor(76, 77, 78), 1, Qt.SolidLine)
  123. self.box_pen_sel = QPen(QColor(206, 207, 208), 1, Qt.DashLine)
  124. self.box_bg_1 = QColor(32, 34, 35)
  125. self.box_bg_2 = QColor(43, 47, 48)
  126. self.box_shadow = QColor(89, 89, 89, 180)
  127. self.box_header_pixmap = None
  128. self.box_header_height = 14
  129. self.box_header_spacing = 0
  130. self.box_text = QPen(QColor(240, 240, 240), 0)
  131. self.box_text_sel = self.box_text
  132. self.box_text_ypos = 10
  133. self.box_font_name = "Deja Vu Sans"
  134. self.box_font_size = 7
  135. self.box_font_state = QFont.Bold
  136. self.box_bg_type = self.THEME_BG_GRADIENT
  137. self.box_use_icon = False
  138. # Ports
  139. self.port_text = QPen(QColor(250, 250, 250), 0)
  140. self.port_text_ypos = 9
  141. self.port_bg_pixmap = None
  142. self.port_font_name = "Deja Vu Sans"
  143. self.port_font_size = 6
  144. self.port_font_state = QFont.Normal
  145. self.port_mode = self.THEME_PORT_POLYGON
  146. self.port_audio_jack_pen = QPen(QColor(63, 90, 126), 1)
  147. self.port_audio_jack_pen_sel = QPen(QColor(63 + 30, 90 + 30, 126 + 30), 1)
  148. self.port_midi_jack_pen = QPen(QColor(159, 44, 42), 1)
  149. self.port_midi_jack_pen_sel = QPen(QColor(159 + 30, 44 + 30, 42 + 30), 1)
  150. self.port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1)
  151. self.port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1)
  152. self.port_parameter_pen = QPen(QColor(137, 76, 43), 1)
  153. self.port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1)
  154. self.port_audio_jack_bg = QColor(35, 61, 99)
  155. self.port_audio_jack_bg_sel = QColor(35 + 50, 61 + 50, 99 + 50)
  156. self.port_midi_jack_bg = QColor(120, 15, 16)
  157. self.port_midi_jack_bg_sel = QColor(120 + 50, 15 + 50, 16 + 50)
  158. self.port_midi_alsa_bg = QColor(64, 112, 18)
  159. self.port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50)
  160. self.port_parameter_bg = QColor(101, 47, 16)
  161. self.port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50)
  162. self.port_audio_jack_text = self.port_text
  163. self.port_audio_jack_text_sel = self.port_text
  164. self.port_midi_jack_text = self.port_text
  165. self.port_midi_jack_text_sel = self.port_text
  166. self.port_midi_alsa_text = self.port_text
  167. self.port_midi_alsa_text_sel = self.port_text
  168. self.port_parameter_text = self.port_text
  169. self.port_parameter_text_sel = self.port_text
  170. self.port_height = 11
  171. self.port_offset = 0
  172. self.port_spacing = 2
  173. self.port_spacingT = 1
  174. # Lines
  175. self.line_audio_jack = QColor(63, 90, 126)
  176. self.line_audio_jack_sel = QColor(63 + 90, 90 + 90, 126 + 90)
  177. self.line_audio_jack_glow = QColor(100, 100, 200)
  178. self.line_midi_jack = QColor(159, 44, 42)
  179. self.line_midi_jack_sel = QColor(159 + 90, 44 + 90, 42 + 90)
  180. self.line_midi_jack_glow = QColor(200, 100, 100)
  181. self.line_midi_alsa = QColor(93, 141, 46)
  182. self.line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90)
  183. self.line_midi_alsa_glow = QColor(100, 200, 100)
  184. self.line_parameter = QColor(137, 76, 43)
  185. self.line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90)
  186. self.line_parameter_glow = QColor(166, 133, 133)
  187. self.rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt.SolidLine)
  188. self.rubberband_brush = QColor(76, 77, 78, 100)
  189. elif idx == self.THEME_MODERN_LIGHT:
  190. # Canvas
  191. self.canvas_bg = QColor(248, 249, 250)
  192. # Boxes
  193. self.box_pen = QPen(QColor(176, 177, 178), 1, Qt.SolidLine)
  194. self.box_pen_sel = QPen(QColor(1, 2, 3), 2, Qt.DashLine)
  195. self.box_bg_1 = QColor(250, 250, 250)
  196. self.box_bg_2 = QColor(200, 200, 200)
  197. self.box_shadow = QColor(1, 1, 1, 100)
  198. self.box_header_pixmap = None
  199. self.box_header_height = 24
  200. self.box_header_spacing = 0
  201. self.box_text = QPen(QColor(1, 1, 1), 0)
  202. self.box_text_sel = self.box_text
  203. self.box_text_ypos = 16
  204. self.box_font_name = "Ubuntu"
  205. self.box_font_size = 11
  206. self.box_font_state = QFont.Bold
  207. self.box_bg_type = self.THEME_BG_GRADIENT
  208. self.box_use_icon = True
  209. # Ports
  210. self.port_text = QPen(QColor(255, 255, 255), 1)
  211. self.port_text_ypos = 12
  212. self.port_bg_pixmap = None
  213. self.port_font_name = "Ubuntu"
  214. self.port_font_size = 10
  215. self.port_font_state = QFont.Bold
  216. self.port_mode = self.THEME_PORT_POLYGON
  217. self.port_audio_jack_pen = QPen(QColor(103, 130, 166), 2)
  218. self.port_audio_jack_pen_sel = QPen(QColor(103 + 136, 190 + 130, 226 + 130), 1)
  219. self.port_midi_jack_pen = QPen(QColor(159, 44, 42), 1)
  220. self.port_midi_jack_pen_sel = QPen(QColor(90 + 30, 44 + 30, 42 + 30), 1)
  221. self.port_midi_alsa_pen = QPen(QColor(93, 141, 46), 1)
  222. self.port_midi_alsa_pen_sel = QPen(QColor(93 + 30, 141 + 30, 46 + 30), 1)
  223. self.port_parameter_pen = QPen(QColor(137, 76, 43), 1)
  224. self.port_parameter_pen_sel = QPen(QColor(137 + 30, 76 + 30, 43 + 30), 1)
  225. self.port_audio_jack_bg = QColor(0, 0, 180)
  226. self.port_audio_jack_bg_sel = QColor(135 + 150, 161 + 150, 199 + 150)
  227. self.port_midi_jack_bg = QColor(130, 15, 16)
  228. self.port_midi_jack_bg_sel = QColor(90 + 30, 15 + 50, 16 + 50)
  229. self.port_midi_alsa_bg = QColor(64, 112, 18)
  230. self.port_midi_alsa_bg_sel = QColor(64 + 50, 112 + 50, 18 + 50)
  231. self.port_parameter_bg = QColor(101, 47, 16)
  232. self.port_parameter_bg_sel = QColor(101 + 50, 47 + 50, 16 + 50)
  233. self.port_audio_jack_text = self.port_text
  234. self.port_audio_jack_text_sel = self.port_text
  235. self.port_midi_jack_text = self.port_text
  236. self.port_midi_jack_text_sel = self.port_text
  237. self.port_midi_alsa_text = self.port_text
  238. self.port_midi_alsa_text_sel = self.port_text
  239. self.port_parameter_text = self.port_text
  240. self.port_parameter_text_sel = self.port_text
  241. self.port_height = 15
  242. self.port_offset = 0
  243. self.port_spacing = 3
  244. self.port_spacingT = 2
  245. # Lines
  246. self.line_audio_jack = QColor(63, 90, 126)
  247. self.line_audio_jack_sel = QColor(63 + 63, 90 + 90, 126 + 90)
  248. self.line_audio_jack_glow = QColor(100, 100, 200)
  249. self.line_midi_jack = QColor(159, 44, 42)
  250. self.line_midi_jack_sel = QColor(159 + 44, 44 + 90, 42 + 90)
  251. self.line_midi_jack_glow = QColor(200, 100, 100)
  252. self.line_midi_alsa = QColor(93, 141, 46)
  253. self.line_midi_alsa_sel = QColor(93 + 90, 141 + 90, 46 + 90)
  254. self.line_midi_alsa_glow = QColor(100, 200, 100)
  255. self.line_parameter = QColor(137, 43, 43)
  256. self.line_parameter_sel = QColor(137 + 90, 76 + 90, 43 + 90)
  257. self.line_parameter_glow = QColor(166, 133, 133)
  258. self.rubberband_pen = QPen(QColor(206, 207, 208), 1, Qt.SolidLine)
  259. self.rubberband_brush = QColor(76, 77, 78, 100)
  260. elif idx == self.THEME_CLASSIC_DARK:
  261. # Canvas
  262. self.canvas_bg = QColor(0, 0, 0)
  263. # Boxes
  264. self.box_pen = QPen(QColor(147 - 70, 151 - 70, 143 - 70), 2, Qt.SolidLine)
  265. self.box_pen_sel = QPen(QColor(147, 151, 143), 2, Qt.DashLine)
  266. self.box_bg_1 = QColor(30, 34, 36)
  267. self.box_bg_2 = QColor(30, 34, 36)
  268. self.box_shadow = QColor(89, 89, 89, 180)
  269. self.box_header_pixmap = None
  270. self.box_header_height = 19
  271. self.box_header_spacing = 0
  272. self.box_text = QPen(QColor(255, 255, 255), 0)
  273. self.box_text_sel = self.box_text
  274. self.box_text_ypos = 12
  275. self.box_font_name = "Sans"
  276. self.box_font_size = 9
  277. self.box_font_state = QFont.Normal
  278. self.box_bg_type = self.THEME_BG_GRADIENT
  279. self.box_use_icon = False
  280. # Ports
  281. self.port_text = QPen(QColor(250, 250, 250), 0)
  282. self.port_text_ypos = 11
  283. self.port_bg_pixmap = None
  284. self.port_font_name = "Sans"
  285. self.port_font_size = 8
  286. self.port_font_state = QFont.Normal
  287. self.port_mode = self.THEME_PORT_SQUARE
  288. self.port_audio_jack_pen = QPen(QColor(35, 61, 99), 0)
  289. self.port_audio_jack_pen_sel = QPen(QColor(255, 0, 0), 0)
  290. self.port_midi_jack_pen = QPen(QColor(120, 15, 16), 0)
  291. self.port_midi_jack_pen_sel = QPen(QColor(255, 0, 0), 0)
  292. self.port_midi_alsa_pen = QPen(QColor(63, 112, 19), 0)
  293. self.port_midi_alsa_pen_sel = QPen(QColor(255, 0, 0), 0)
  294. self.port_parameter_pen = QPen(QColor(101, 47, 17), 0)
  295. self.port_parameter_pen_sel = QPen(QColor(255, 0, 0), 0)
  296. self.port_audio_jack_bg = QColor(35, 61, 99)
  297. self.port_audio_jack_bg_sel = QColor(255, 0, 0)
  298. self.port_midi_jack_bg = QColor(120, 15, 16)
  299. self.port_midi_jack_bg_sel = QColor(255, 0, 0)
  300. self.port_midi_alsa_bg = QColor(63, 112, 19)
  301. self.port_midi_alsa_bg_sel = QColor(255, 0, 0)
  302. self.port_parameter_bg = QColor(101, 47, 17)
  303. self.port_parameter_bg_sel = QColor(255, 0, 0)
  304. self.port_audio_jack_text = self.port_text
  305. self.port_audio_jack_text_sel = self.port_text
  306. self.port_midi_jack_text = self.port_text
  307. self.port_midi_jack_text_sel = self.port_text
  308. self.port_midi_alsa_text = self.port_text
  309. self.port_midi_alsa_text_sel = self.port_text
  310. self.port_parameter_text = self.port_text
  311. self.port_parameter_text_sel = self.port_text
  312. self.port_height = 14
  313. self.port_offset = -1
  314. self.port_spacing = 1
  315. self.port_spacingT = 0
  316. # Lines
  317. self.line_audio_jack = QColor(53, 78, 116)
  318. self.line_audio_jack_sel = QColor(255, 0, 0)
  319. self.line_audio_jack_glow = QColor(255, 0, 0)
  320. self.line_midi_jack = QColor(139, 32, 32)
  321. self.line_midi_jack_sel = QColor(255, 0, 0)
  322. self.line_midi_jack_glow = QColor(255, 0, 0)
  323. self.line_midi_alsa = QColor(81, 130, 36)
  324. self.line_midi_alsa_sel = QColor(255, 0, 0)
  325. self.line_midi_alsa_glow = QColor(255, 0, 0)
  326. self.line_parameter = QColor(120, 65, 33)
  327. self.line_parameter_sel = QColor(255, 0, 0)
  328. self.line_parameter_glow = QColor(255, 0, 0)
  329. self.rubberband_pen = QPen(QColor(147, 151, 143), 2, Qt.SolidLine)
  330. self.rubberband_brush = QColor(35, 61, 99, 100)
  331. elif idx == self.THEME_OOSTUDIO:
  332. # Canvas
  333. self.canvas_bg = QColor(11, 11, 11)
  334. # Boxes
  335. self.box_pen = QPen(QColor(76, 77, 78), 1, Qt.SolidLine)
  336. self.box_pen_sel = QPen(QColor(189, 122, 214), 1, Qt.DashLine)
  337. self.box_bg_1 = QColor(46, 46, 46)
  338. self.box_bg_2 = QColor(23, 23, 23)
  339. self.box_shadow = QColor(89, 89, 89, 180)
  340. self.box_header_pixmap = QPixmap(":/bitmaps/canvas/frame_node_header.png")
  341. self.box_header_height = 22
  342. self.box_header_spacing = 6
  343. self.box_text = QPen(QColor(144, 144, 144), 0)
  344. self.box_text_sel = QPen(QColor(189, 122, 214), 0)
  345. self.box_text_ypos = 16
  346. self.box_font_name = "Deja Vu Sans"
  347. self.box_font_size = 8
  348. self.box_font_state = QFont.Bold
  349. self.box_bg_type = self.THEME_BG_SOLID
  350. self.box_use_icon = False
  351. # Ports
  352. normalPortBG = QColor(46, 46, 46)
  353. selPortBG = QColor(23, 23, 23)
  354. self.port_text = QPen(QColor(155, 155, 155), 0)
  355. self.port_text_ypos = 14
  356. self.port_bg_pixmap = QPixmap(":/bitmaps/canvas/frame_port_bg.png")
  357. self.port_font_name = "Deja Vu Sans"
  358. self.port_font_size = 8
  359. self.port_font_state = QFont.Normal
  360. self.port_mode = self.THEME_PORT_SQUARE
  361. self.port_audio_jack_pen = QPen(selPortBG, 2)
  362. self.port_audio_jack_pen_sel = QPen(QColor(1, 230, 238), 1)
  363. self.port_midi_jack_pen = QPen(selPortBG, 2)
  364. self.port_midi_jack_pen_sel = QPen(QColor(252, 118, 118), 1)
  365. self.port_midi_alsa_pen = QPen(selPortBG, 2)
  366. self.port_midi_alsa_pen_sel = QPen(QColor(129, 244, 118), 0)
  367. self.port_parameter_pen = QPen(selPortBG, 2)
  368. self.port_parameter_pen_sel = QPen(QColor(137, 76, 43), 1)
  369. self.port_audio_jack_bg = normalPortBG
  370. self.port_audio_jack_bg_sel = selPortBG
  371. self.port_midi_jack_bg = normalPortBG
  372. self.port_midi_jack_bg_sel = selPortBG
  373. self.port_midi_alsa_bg = normalPortBG
  374. self.port_midi_alsa_bg_sel = selPortBG
  375. self.port_parameter_bg = normalPortBG
  376. self.port_parameter_bg_sel = selPortBG
  377. self.port_audio_jack_text = self.port_text
  378. self.port_audio_jack_text_sel = self.port_audio_jack_pen_sel
  379. self.port_midi_jack_text = self.port_text
  380. self.port_midi_jack_text_sel = self.port_midi_jack_pen_sel
  381. self.port_midi_alsa_text = self.port_text
  382. self.port_midi_alsa_text_sel = self.port_midi_alsa_pen_sel
  383. self.port_parameter_text = self.port_text
  384. self.port_parameter_text_sel = self.port_parameter_pen_sel
  385. # missing, ports 2
  386. self.port_height = 19
  387. self.port_offset = 1
  388. self.port_spacing = 5
  389. self.port_spacingT = 0
  390. # Lines
  391. self.line_audio_jack = QColor(64, 64, 64)
  392. self.line_audio_jack_sel = QColor(1, 230, 238)
  393. self.line_audio_jack_glow = QColor(100, 200, 100)
  394. self.line_midi_jack = QColor(64, 64, 64)
  395. self.line_midi_jack_sel = QColor(252, 118, 118)
  396. self.line_midi_jack_glow = QColor(200, 100, 100)
  397. self.line_midi_alsa = QColor(64, 64, 64)
  398. self.line_midi_alsa_sel = QColor(129, 244, 118)
  399. self.line_midi_alsa_glow = QColor(100, 200, 100)
  400. self.line_parameter = QColor(64, 64, 64)
  401. self.line_parameter_sel = QColor(137+90, 76+90, 43+90)
  402. self.line_parameter_glow = QColor(166, 133, 133)
  403. self.rubberband_pen = QPen(QColor(1, 230, 238), 2, Qt.SolidLine)
  404. self.rubberband_brush = QColor(90, 90, 90, 100)
  405. def getDefaultTheme():
  406. return Theme.THEME_MODERN_DARK
  407. def getThemeName(idx):
  408. if idx == Theme.THEME_MODERN_DARK:
  409. return "Modern Dark"
  410. elif idx == Theme.THEME_MODERN_DARK_TINY:
  411. return "Modern Dark (Tiny)"
  412. elif idx == Theme.THEME_MODERN_LIGHT:
  413. return "Modern Light"
  414. elif idx == Theme.THEME_CLASSIC_DARK:
  415. return "Classic Dark"
  416. elif idx == Theme.THEME_OOSTUDIO:
  417. return "OpenOctave Studio"
  418. else:
  419. return ""
  420. def getDefaultThemeName():
  421. return "Modern Dark"