Gray.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. /* *
  2. *
  3. * (c) 2010-2020 Torstein Honsi
  4. *
  5. * License: www.highcharts.com/license
  6. *
  7. * Gray theme for Highcharts JS
  8. *
  9. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  10. *
  11. * */
  12. import H from '../../Core/Globals.js';
  13. import U from '../../Core/Utilities.js';
  14. var setOptions = U.setOptions;
  15. H.theme = {
  16. colors: ['#DDDF0D', '#7798BF', '#55BF3B', '#DF5353', '#aaeeee',
  17. '#ff0066', '#eeaaee', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee'],
  18. chart: {
  19. backgroundColor: {
  20. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  21. stops: [
  22. [0, 'rgb(96, 96, 96)'],
  23. [1, 'rgb(16, 16, 16)']
  24. ]
  25. },
  26. borderWidth: 0,
  27. borderRadius: 0,
  28. plotBackgroundColor: null,
  29. plotShadow: false,
  30. plotBorderWidth: 0
  31. },
  32. title: {
  33. style: {
  34. color: '#FFF',
  35. font: '16px Lucida Grande, Lucida Sans Unicode,' +
  36. ' Verdana, Arial, Helvetica, sans-serif'
  37. }
  38. },
  39. subtitle: {
  40. style: {
  41. color: '#DDD',
  42. font: '12px Lucida Grande, Lucida Sans Unicode,' +
  43. ' Verdana, Arial, Helvetica, sans-serif'
  44. }
  45. },
  46. xAxis: {
  47. gridLineWidth: 0,
  48. lineColor: '#999',
  49. tickColor: '#999',
  50. labels: {
  51. style: {
  52. color: '#999',
  53. fontWeight: 'bold'
  54. }
  55. },
  56. title: {
  57. style: {
  58. color: '#AAA',
  59. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  60. ' Verdana, Arial, Helvetica, sans-serif'
  61. }
  62. }
  63. },
  64. yAxis: {
  65. alternateGridColor: null,
  66. minorTickInterval: null,
  67. gridLineColor: 'rgba(255, 255, 255, .1)',
  68. minorGridLineColor: 'rgba(255,255,255,0.07)',
  69. lineWidth: 0,
  70. tickWidth: 0,
  71. labels: {
  72. style: {
  73. color: '#999',
  74. fontWeight: 'bold'
  75. }
  76. },
  77. title: {
  78. style: {
  79. color: '#AAA',
  80. font: 'bold 12px Lucida Grande, Lucida Sans Unicode,' +
  81. ' Verdana, Arial, Helvetica, sans-serif'
  82. }
  83. }
  84. },
  85. legend: {
  86. backgroundColor: 'rgba(48, 48, 48, 0.8)',
  87. itemStyle: {
  88. color: '#CCC'
  89. },
  90. itemHoverStyle: {
  91. color: '#FFF'
  92. },
  93. itemHiddenStyle: {
  94. color: '#333'
  95. },
  96. title: {
  97. style: {
  98. color: '#E0E0E0'
  99. }
  100. }
  101. },
  102. labels: {
  103. style: {
  104. color: '#CCC'
  105. }
  106. },
  107. tooltip: {
  108. backgroundColor: {
  109. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  110. stops: [
  111. [0, 'rgba(96, 96, 96, .8)'],
  112. [1, 'rgba(16, 16, 16, .8)']
  113. ]
  114. },
  115. borderWidth: 0,
  116. style: {
  117. color: '#FFF'
  118. }
  119. },
  120. plotOptions: {
  121. series: {
  122. dataLabels: {
  123. color: '#444'
  124. },
  125. nullColor: '#444444'
  126. },
  127. line: {
  128. dataLabels: {
  129. color: '#CCC'
  130. },
  131. marker: {
  132. lineColor: '#333'
  133. }
  134. },
  135. spline: {
  136. marker: {
  137. lineColor: '#333'
  138. }
  139. },
  140. scatter: {
  141. marker: {
  142. lineColor: '#333'
  143. }
  144. },
  145. candlestick: {
  146. lineColor: 'white'
  147. }
  148. },
  149. toolbar: {
  150. itemStyle: {
  151. color: '#CCC'
  152. }
  153. },
  154. navigation: {
  155. buttonOptions: {
  156. symbolStroke: '#DDDDDD',
  157. theme: {
  158. fill: {
  159. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  160. stops: [
  161. [0.4, '#606060'],
  162. [0.6, '#333333']
  163. ]
  164. },
  165. stroke: '#000000'
  166. }
  167. }
  168. },
  169. // scroll charts
  170. rangeSelector: {
  171. buttonTheme: {
  172. fill: {
  173. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  174. stops: [
  175. [0.4, '#888'],
  176. [0.6, '#555']
  177. ]
  178. },
  179. stroke: '#000000',
  180. style: {
  181. color: '#CCC',
  182. fontWeight: 'bold'
  183. },
  184. states: {
  185. hover: {
  186. fill: {
  187. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  188. stops: [
  189. [0.4, '#BBB'],
  190. [0.6, '#888']
  191. ]
  192. },
  193. stroke: '#000000',
  194. style: {
  195. color: 'white'
  196. }
  197. },
  198. select: {
  199. fill: {
  200. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  201. stops: [
  202. [0.1, '#000'],
  203. [0.3, '#333']
  204. ]
  205. },
  206. stroke: '#000000',
  207. style: {
  208. color: 'yellow'
  209. }
  210. }
  211. }
  212. },
  213. inputStyle: {
  214. backgroundColor: '#333',
  215. color: 'silver'
  216. },
  217. labelStyle: {
  218. color: 'silver'
  219. }
  220. },
  221. navigator: {
  222. handles: {
  223. backgroundColor: '#666',
  224. borderColor: '#AAA'
  225. },
  226. outlineColor: '#CCC',
  227. maskFill: 'rgba(16, 16, 16, 0.5)',
  228. series: {
  229. color: '#7798BF',
  230. lineColor: '#A6C7ED'
  231. }
  232. },
  233. scrollbar: {
  234. barBackgroundColor: {
  235. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  236. stops: [
  237. [0.4, '#888'],
  238. [0.6, '#555']
  239. ]
  240. },
  241. barBorderColor: '#CCC',
  242. buttonArrowColor: '#CCC',
  243. buttonBackgroundColor: {
  244. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  245. stops: [
  246. [0.4, '#888'],
  247. [0.6, '#555']
  248. ]
  249. },
  250. buttonBorderColor: '#CCC',
  251. rifleColor: '#FFF',
  252. trackBackgroundColor: {
  253. linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
  254. stops: [
  255. [0, '#000'],
  256. [1, '#333']
  257. ]
  258. },
  259. trackBorderColor: '#666'
  260. }
  261. };
  262. // Apply the theme
  263. setOptions(H.theme);