UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

345 lines (344 loc) • 8.29 kB
/** * DevExtreme (esm/viz/core/themes/generic.contrast.js) * Version: 21.1.4 * Build date: Mon Jun 21 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { registerTheme } from "../../themes"; var WHITE = "#ffffff"; var BLACK = "#000000"; var CONTRAST_ACTIVE = "#cf00da"; var MARKER_COLOR = "#f8ca00"; var AREA_LAYER_COLOR = "#686868"; registerTheme({ name: "generic.contrast", defaultPalette: "Bright", font: { color: WHITE }, backgroundColor: BLACK, primaryTitleColor: WHITE, secondaryTitleColor: WHITE, gridColor: WHITE, axisColor: WHITE, export: { backgroundColor: BLACK, font: { color: WHITE }, button: { default: { color: WHITE, borderColor: WHITE, backgroundColor: BLACK }, hover: { color: WHITE, borderColor: WHITE, backgroundColor: "#cf00d7" }, focus: { color: WHITE, borderColor: "#cf00d7", backgroundColor: BLACK }, active: { color: BLACK, borderColor: WHITE, backgroundColor: WHITE } }, borderColor: WHITE, menuButtonColor: BLACK, activeBackgroundColor: WHITE, activeColor: BLACK, selectedBorderColor: CONTRAST_ACTIVE, selectedColor: CONTRAST_ACTIVE, shadowColor: "none" }, tooltip: { border: { color: WHITE }, font: { color: WHITE }, color: BLACK }, "chart:common": { commonSeriesSettings: { valueErrorBar: { color: WHITE }, hoverStyle: { hatching: { opacity: .5 } }, selectionStyle: { hatching: { opacity: .35 } }, label: { font: { color: WHITE }, border: { color: WHITE } } } }, "chart:common:axis": { constantLineStyle: { color: WHITE } }, "chart:common:annotation": { font: { color: WHITE }, border: { color: WHITE }, color: BLACK }, chart: { commonSeriesSettings: {}, crosshair: { color: "#cf00d7" }, commonPaneSettings: { backgroundColor: BLACK, border: { color: WHITE } }, scrollBar: { color: WHITE }, commonAxisSettings: { breakStyle: { color: "#cf00d7" } }, zoomAndPan: { dragBoxStyle: { color: WHITE, opacity: .7 } } }, pie: { commonSeriesSettings: { pie: { hoverStyle: { hatching: { opacity: .5 } }, selectionStyle: { hatching: { opacity: .35 } } }, doughnut: { hoverStyle: { hatching: { opacity: .5 } }, selectionStyle: { hatching: { opacity: .35 } } }, donut: { hoverStyle: { hatching: { opacity: .5 } }, selectionStyle: { hatching: { opacity: .35 } } } } }, gauge: { rangeContainer: { backgroundColor: WHITE }, valueIndicators: { _default: { color: WHITE }, rangebar: { color: WHITE, backgroundColor: BLACK }, twocolorneedle: { secondColor: WHITE }, trianglemarker: { color: WHITE }, textcloud: { color: WHITE, text: { font: { color: BLACK } } } } }, barGauge: { backgroundColor: "#3c3c3c" }, rangeSelector: { scale: { tick: { color: WHITE, opacity: .4 }, minorTick: { color: WHITE, opacity: .12 }, breakStyle: { color: "#cf00d7" } }, selectedRangeColor: CONTRAST_ACTIVE, sliderMarker: { color: CONTRAST_ACTIVE }, sliderHandle: { color: CONTRAST_ACTIVE, opacity: 1 }, shutter: { opacity: .75 }, background: { color: BLACK } }, map: { background: { borderColor: WHITE }, layer: { label: { stroke: BLACK, font: { color: WHITE } } }, "layer:area": { borderColor: BLACK, color: AREA_LAYER_COLOR, hoveredBorderColor: WHITE, selectedBorderColor: WHITE, label: { font: { opacity: 1 } } }, "layer:line": { color: "#267cff", hoveredColor: "#f613ff", selectedColor: WHITE }, "layer:marker:dot": { borderColor: BLACK, color: MARKER_COLOR, backColor: BLACK, backOpacity: .32 }, "layer:marker:bubble": { color: MARKER_COLOR, hoveredBorderColor: WHITE, selectedBorderColor: WHITE }, "layer:marker:pie": { hoveredBorderColor: WHITE, selectedBorderColor: WHITE }, controlBar: { borderColor: WHITE, color: BLACK, opacity: .3 } }, treeMap: { tile: { color: "#70c92f" }, group: { color: "#797979", label: { font: { color: WHITE } } } }, sparkline: { pointColor: BLACK }, bullet: {}, polar: { commonSeriesSettings: {} }, funnel: { label: { connector: { opacity: 1 } } }, sankey: { label: { font: { color: WHITE }, shadow: { opacity: 0 } }, node: { border: { visible: true, width: 1, color: WHITE } }, link: { opacity: .5, border: { visible: true, width: 1, color: WHITE }, hoverStyle: { opacity: .9 } } } }, "generic.light"); registerTheme({ name: "generic.contrast.compact" }, "generic.contrast");