all files / linear-gauge/model/ theme.js

94.59% Statements 35/37
94.12% Branches 16/17
100% Functions 2/2
94.59% Lines 35/37
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393   498× 498×       13×                                       13×   32×                                       32×   13×                                               13×                                                                                                                                                                                                                                                                                               13×                                               13×   13×                                               13×                                                   12×                                               12×                                                           375×                                         375×   498×      
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    function getThemeStyle(theme) {
        var style;
        switch (theme.toLowerCase()) {
            case 'materialdark':
            case 'fabricdark':
            case 'bootstrapdark':
                style = {
                    backgroundColor: '#333232',
                    titleFontColor: '#ffffff',
                    titleFontSize: '15px',
                    tooltipFillColor: '#FFFFFF',
                    tooltipFontColor: '#000000',
                    tooltipFontSize: '13px',
                    labelColor: '#DADADA',
                    lineColor: '#C8C8C8',
                    majorTickColor: '#C8C8C8',
                    minorTickColor: '#9A9A9A',
                    pointerColor: '#9A9A9A',
                    titleFontStyle: 'Normal',
                    titleFontWeight: 'Normal',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#bfbfbf',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI'
                };
                break;
            case 'highcontrast':
                style = {
                    backgroundColor: '#000000',
                    titleFontColor: '#FFFFFF',
                    titleFontSize: '15px',
                    tooltipFillColor: '#ffffff',
                    tooltipFontColor: '#000000',
                    tooltipFontSize: '13px',
                    labelColor: '#FFFFFF',
                    lineColor: '#FFFFFF',
                    majorTickColor: '#FFFFFF',
                    minorTickColor: '#FFFFFF',
                    pointerColor: '#FFFFFF',
                    titleFontStyle: 'Normal',
                    titleFontWeight: 'Normal',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#bfbfbf',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI'
                };
                break;
            case 'bootstrap4':
                style = {
                    backgroundColor: '#FFFFFF',
                    titleFontColor: '#212529',
                    titleFontSize: '15px',
                    tooltipFillColor: '#000000',
                    tooltipFontColor: '#FFFFFF',
                    tooltipFontSize: '13px',
                    labelColor: '#212529',
                    lineColor: '#ADB5BD',
                    majorTickColor: '#ADB5BD',
                    minorTickColor: '#CED4DA',
                    pointerColor: '#6C757D',
                    fontFamily: 'HelveticaNeue-Medium',
                    fontSize: '16px',
                    labelFontFamily: 'HelveticaNeue',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 0.9,
                    containerBackground: '#F8F9FA',
                    titleFontStyle: 'Normal',
                    titleFontWeight: 'Normal',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#bfbfbf'
                };
                break;
            case 'tailwind':
                style = {
                    backgroundColor: 'rgba(255,255,255, 0.0)',
                    titleFontColor: '#374151',
                    titleFontSize: '15px',
                    tooltipFillColor: '#111827',
                    tooltipFontColor: '#F9FAFB',
                    tooltipFontSize: '13px',
                    labelColor: '#6B7280',
                    lineColor: '#E5E7EB',
                    majorTickColor: '#9CA3AF',
                    minorTickColor: '#9CA3AF',
                    pointerColor: '#1F2937',
                    fontFamily: 'Inter',
                    fontSize: '14px',
                    labelFontFamily: 'Inter',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 0.9,
                    containerBackground: 'rgba(255,255,255, 0.0)',
                    titleFontStyle: 'Normal',
                    titleFontWeight: '500',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#E5E7EB'
                };
                break;
            case 'tailwinddark':
                style = {
                    backgroundColor: 'rgba(255,255,255, 0.0)',
                    titleFontColor: '#D1D5DB',
                    titleFontSize: '15px',
                    tooltipFillColor: '#F9FAFB',
                    tooltipFontColor: '#1F2937',
                    tooltipFontSize: '13px',
                    labelColor: '#9CA3AF',
                    lineColor: '#374151',
                    majorTickColor: '#6B7280',
                    minorTickColor: '#6B7280',
                    pointerColor: '#9CA3AF',
                    fontFamily: 'Inter',
                    fontSize: '14px',
                    labelFontFamily: 'Inter',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 0.9,
                    containerBackground: 'rgba(255,255,255, 0.0)',
                    titleFontStyle: 'Normal',
                    titleFontWeight: '500',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#4b5563'
                };
                break;
            case 'bootstrap5':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#212529',
                    titleFontSize: '14px',
                    tooltipFillColor: '#000000',
                    tooltipFontColor: '#FFFFFF',
                    tooltipFontSize: '12px',
                    labelColor: '#212529',
                    lineColor: '#E9ECEF',
                    majorTickColor: '#CED4DA',
                    minorTickColor: '#CED4DA',
                    pointerColor: '#343A40',
                    fontSize: '14px',
                    titleFontStyle: 'normal',
                    titleFontWeight: '400',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI',
                    tooltipFillOpacity: 0.9,
                    containerBackground: '#E9ECEF',
                    containerBorderColor: '#E9ECEF'
                };
                break;
            case 'bootstrap5dark':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#DEE2E6',
                    titleFontSize: '14px',
                    titleFontStyle: 'normal',
                    titleFontWeight: '400',
                    tooltipFillColor: '#FFFFFF',
                    tooltipFontColor: '#212529',
                    tooltipFontSize: '12px',
                    labelColor: '#DEE2E6',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    labelFontFamily: 'Segoe UI',
                    lineColor: '#343A40',
                    majorTickColor: '#6C757D',
                    minorTickColor: '#6C757D',
                    pointerColor: '#ADB5BD',
                    fontSize: '14px',
                    fontFamily: 'Segoe UI',
                    tooltipFillOpacity: 0.9,
                    containerBackground: '#343A40',
                    containerBorderColor: '#343A40'
                };
                break;
            case 'fluent':
                style = {
                    backgroundColor: 'rgba(255,255,255, 0.0)',
                    titleFontColor: '#201F1E',
                    titleFontSize: '15px',
                    tooltipFillColor: '#FFFFFF',
                    tooltipFontColor: '#323130',
                    tooltipFontSize: '13px',
                    labelColor: '#3B3A39',
                    lineColor: '#EDEBE9',
                    majorTickColor: '#C8C6C4',
                    minorTickColor: '#C8C6C4',
                    pointerColor: '#A19F9D',
                    fontFamily: 'Segoe UI',
                    fontSize: '14px',
                    labelFontFamily: 'Segoe UI',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    containerBackground: 'rgba(255,255,255, 0.0)',
                    titleFontStyle: 'normal',
                    titleFontWeight: '600',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#EDEBE9'
                };
                break;
            case 'fluentdark':
                style = {
                    backgroundColor: 'rgba(255,255,255, 0.0)',
                    titleFontColor: '#F3F2F1',
                    titleFontSize: '15px',
                    tooltipFillColor: '#252423',
                    tooltipFontColor: '#F3F2F1',
                    tooltipFontSize: '13px',
                    labelColor: '#C8C6C4',
                    lineColor: '#292827',
                    majorTickColor: '#484644',
                    minorTickColor: '#484644',
                    pointerColor: '#797775',
                    fontFamily: 'Segoe UI',
                    fontSize: '14px',
                    labelFontFamily: 'Segoe UI',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    containerBackground: 'rgba(255,255,255, 0.0)',
                    titleFontStyle: 'normal',
                    titleFontWeight: '600',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#292827'
                };
                break;
            case 'material3':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#1C1B1F',
                    titleFontSize: '16px',
                    tooltipFillColor: '#313033',
                    tooltipFontColor: '#F4EFF4',
                    tooltipFontSize: '14px',
                    labelColor: ' #1E192B',
                    lineColor: '#C4C7C5',
                    majorTickColor: '#C4C7C5',
                    minorTickColor: '#C4C7C5',
                    pointerColor: '#49454E',
                    fontFamily: 'Roboto',
                    fontSize: '12px',
                    labelFontFamily: 'Roboto',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    containerBackground: '#E7E0EC',
                    titleFontStyle: 'normal',
                    titleFontWeight: '500',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#E7E0EC'
                };
                break;
            case 'material3dark':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#E6E1E5',
                    titleFontSize: '16px',
                    tooltipFillColor: '#E6E1E5',
                    tooltipFontColor: '#313033',
                    tooltipFontSize: '14px',
                    labelColor: '#E6E1E5',
                    lineColor: '#938F99',
                    majorTickColor: '#938F99',
                    minorTickColor: '#938F99',
                    pointerColor: '#CAC4D0',
                    fontFamily: 'Roboto',
                    fontSize: '12px',
                    labelFontFamily: 'Roboto',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    containerBackground: '#49454F',
                    titleFontStyle: 'normal',
                    titleFontWeight: '500',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#49454F'
                };
                break;
            case 'fluent2':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#242424',
                    titleFontSize: '14px',
                    tooltipFillColor: '#FFFFFF',
                    tooltipFontColor: '#242424',
                    tooltipFontSize: '12px',
                    labelColor: '#616161',
                    lineColor: '#EDEBE9',
                    majorTickColor: '#C8C6C4',
                    minorTickColor: '#C8C6C4',
                    pointerColor: '#A19F9D',
                    fontSize: '12px',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    titleFontStyle: 'normal',
                    titleFontWeight: '600',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#EDEBE9',
                    containerBackground: '#EDEBE9',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI'
                };
                break;
            case 'fluent2dark':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#FFFFFF',
                    titleFontSize: '14px',
                    tooltipFillColor: '#292929',
                    tooltipFontColor: '#FFFFFF',
                    tooltipFontSize: '12px',
                    labelColor: '#ADADAD',
                    lineColor: '#292827',
                    majorTickColor: '#484644',
                    minorTickColor: '#484644',
                    pointerColor: '#8A8886',
                    fontSize: '12px',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    titleFontStyle: 'normal',
                    titleFontWeight: '600',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#292827',
                    containerBackground: '#292827',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI'
                };
                break;
            case 'fluent2highcontrast':
                style = {
                    backgroundColor: 'transparent',
                    titleFontColor: '#FFFFFF',
                    titleFontSize: '14px',
                    tooltipFillColor: '#000000',
                    tooltipFontColor: '#FFFFFF',
                    tooltipFontSize: '12px',
                    labelColor: '#FFFFFF',
                    lineColor: '#292827',
                    majorTickColor: '#484644',
                    minorTickColor: '#484644',
                    pointerColor: '#8A8886',
                    fontSize: '12px',
                    tooltipFillOpacity: 1,
                    tooltipTextOpacity: 1,
                    titleFontStyle: 'normal',
                    titleFontWeight: '600',
                    labelStyle: 'normal',
                    labelWeight: '400',
                    containerBorderColor: '#292827',
                    containerBackground: '#292827',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI',
                    tooltipBorderColor: '#FFF',
                    tooltipBorderWidth: 1
                };
                break;
            default:
                style = {
                    backgroundColor: '#FFFFFF',
                    titleFontColor: '#424242',
                    titleFontSize: '15px',
                    tooltipFillColor: '#FFFFF',
                    tooltipFontColor: '#FFFFFF',
                    tooltipFontSize: '13px',
                    labelColor: '#686868',
                    lineColor: '#a6a6a6',
                    majorTickColor: '#a6a6a6',
                    minorTickColor: '#a6a6a6',
                    pointerColor: '#a6a6a6',
                    containerBackground: '#e0e0e0',
                    titleFontStyle: 'Normal',
                    titleFontWeight: 'Normal',
                    labelStyle: 'Normal',
                    labelWeight: 'Normal',
                    containerBorderColor: '#bfbfbf',
                    fontFamily: 'Segoe UI',
                    labelFontFamily: 'Segoe UI'
                };
                break;
        }
        return style;
    }
    exports.getThemeStyle = getThemeStyle;
});