high-contrast-dark.src.js 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. /**
  2. * @license Highcharts JS v8.0.0 (2019-12-10)
  3. *
  4. * (c) 2009-2019 Highsoft AS
  5. *
  6. * License: www.highcharts.com/license
  7. */
  8. 'use strict';
  9. (function (factory) {
  10. if (typeof module === 'object' && module.exports) {
  11. factory['default'] = factory;
  12. module.exports = factory;
  13. } else if (typeof define === 'function' && define.amd) {
  14. define('highcharts/themes/high-contrast-dark', ['highcharts'], function (Highcharts) {
  15. factory(Highcharts);
  16. factory.Highcharts = Highcharts;
  17. return factory;
  18. });
  19. } else {
  20. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  21. }
  22. }(function (Highcharts) {
  23. var _modules = Highcharts ? Highcharts._modules : {};
  24. function _registerModule(obj, path, args, fn) {
  25. if (!obj.hasOwnProperty(path)) {
  26. obj[path] = fn.apply(null, args);
  27. }
  28. }
  29. _registerModule(_modules, 'themes/high-contrast-dark.js', [_modules['parts/Globals.js']], function (Highcharts) {
  30. /* *
  31. *
  32. * (c) 2010-2019 Highsoft AS
  33. *
  34. * Author: Øystein Moseng
  35. *
  36. * License: www.highcharts.com/license
  37. *
  38. * Accessible high-contrast dark theme for Highcharts. Specifically tailored
  39. * towards 3:1 contrast against black/off-black backgrounds. Neighboring
  40. * colors are tested for color blindness.
  41. *
  42. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  43. *
  44. * */
  45. var textBright = '#F0F0F3';
  46. Highcharts.theme = {
  47. colors: [
  48. '#a6f0ff',
  49. '#70d49e',
  50. '#e898a5',
  51. '#007faa',
  52. '#f9db72',
  53. '#f45b5b',
  54. '#1e824c',
  55. '#e7934c',
  56. '#dadfe1',
  57. '#a0618b'
  58. ],
  59. chart: {
  60. backgroundColor: '#1f1f20',
  61. plotBorderColor: '#606063'
  62. },
  63. title: {
  64. style: {
  65. color: textBright
  66. }
  67. },
  68. subtitle: {
  69. style: {
  70. color: textBright
  71. }
  72. },
  73. xAxis: {
  74. gridLineColor: '#707073',
  75. labels: {
  76. style: {
  77. color: textBright
  78. }
  79. },
  80. lineColor: '#707073',
  81. minorGridLineColor: '#505053',
  82. tickColor: '#707073',
  83. title: {
  84. style: {
  85. color: textBright
  86. }
  87. }
  88. },
  89. yAxis: {
  90. gridLineColor: '#707073',
  91. labels: {
  92. style: {
  93. color: textBright
  94. }
  95. },
  96. lineColor: '#707073',
  97. minorGridLineColor: '#505053',
  98. tickColor: '#707073',
  99. title: {
  100. style: {
  101. color: textBright
  102. }
  103. }
  104. },
  105. tooltip: {
  106. backgroundColor: 'rgba(0, 0, 0, 0.85)',
  107. style: {
  108. color: textBright
  109. }
  110. },
  111. plotOptions: {
  112. series: {
  113. dataLabels: {
  114. color: textBright
  115. },
  116. marker: {
  117. lineColor: '#333'
  118. }
  119. },
  120. boxplot: {
  121. fillColor: '#505053'
  122. },
  123. candlestick: {
  124. lineColor: 'white'
  125. },
  126. errorbar: {
  127. color: 'white'
  128. },
  129. map: {
  130. nullColor: '#353535'
  131. }
  132. },
  133. legend: {
  134. backgroundColor: 'transparent',
  135. itemStyle: {
  136. color: textBright
  137. },
  138. itemHoverStyle: {
  139. color: '#FFF'
  140. },
  141. itemHiddenStyle: {
  142. color: '#606063'
  143. },
  144. title: {
  145. style: {
  146. color: '#D0D0D0'
  147. }
  148. }
  149. },
  150. credits: {
  151. style: {
  152. color: textBright
  153. }
  154. },
  155. labels: {
  156. style: {
  157. color: '#707073'
  158. }
  159. },
  160. drilldown: {
  161. activeAxisLabelStyle: {
  162. color: textBright
  163. },
  164. activeDataLabelStyle: {
  165. color: textBright
  166. }
  167. },
  168. navigation: {
  169. buttonOptions: {
  170. symbolStroke: '#DDDDDD',
  171. theme: {
  172. fill: '#505053'
  173. }
  174. }
  175. },
  176. rangeSelector: {
  177. buttonTheme: {
  178. fill: '#505053',
  179. stroke: '#000000',
  180. style: {
  181. color: '#eee'
  182. },
  183. states: {
  184. hover: {
  185. fill: '#707073',
  186. stroke: '#000000',
  187. style: {
  188. color: textBright
  189. }
  190. },
  191. select: {
  192. fill: '#303030',
  193. stroke: '#101010',
  194. style: {
  195. color: textBright
  196. }
  197. }
  198. }
  199. },
  200. inputBoxBorderColor: '#505053',
  201. inputStyle: {
  202. backgroundColor: '#333',
  203. color: textBright
  204. },
  205. labelStyle: {
  206. color: textBright
  207. }
  208. },
  209. navigator: {
  210. handles: {
  211. backgroundColor: '#666',
  212. borderColor: '#AAA'
  213. },
  214. outlineColor: '#CCC',
  215. maskFill: 'rgba(180,180,255,0.2)',
  216. series: {
  217. color: '#7798BF',
  218. lineColor: '#A6C7ED'
  219. },
  220. xAxis: {
  221. gridLineColor: '#505053'
  222. }
  223. },
  224. scrollbar: {
  225. barBackgroundColor: '#808083',
  226. barBorderColor: '#808083',
  227. buttonArrowColor: '#CCC',
  228. buttonBackgroundColor: '#606063',
  229. buttonBorderColor: '#606063',
  230. rifleColor: '#FFF',
  231. trackBackgroundColor: '#404043',
  232. trackBorderColor: '#404043'
  233. }
  234. };
  235. // Apply the theme
  236. Highcharts.setOptions(Highcharts.theme);
  237. });
  238. _registerModule(_modules, 'masters/themes/high-contrast-dark.src.js', [], function () {
  239. });
  240. }));