source: trip-planner-front/node_modules/gauge/themes.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1'use strict'
2var consoleControl = require('console-control-strings')
3var ThemeSet = require('./theme-set.js')
4
5var themes = module.exports = new ThemeSet()
6
7themes.addTheme('ASCII', {
8 preProgressbar: '[',
9 postProgressbar: ']',
10 progressbarTheme: {
11 complete: '#',
12 remaining: '.'
13 },
14 activityIndicatorTheme: '-\\|/',
15 preSubsection: '>'
16})
17
18themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
19 progressbarTheme: {
20 preComplete: consoleControl.color('inverse'),
21 complete: ' ',
22 postComplete: consoleControl.color('stopInverse'),
23 preRemaining: consoleControl.color('brightBlack'),
24 remaining: '.',
25 postRemaining: consoleControl.color('reset')
26 }
27})
28
29themes.addTheme('brailleSpinner', {
30 preProgressbar: '⸨',
31 postProgressbar: '⸩',
32 progressbarTheme: {
33 complete: '░',
34 remaining: '⠂'
35 },
36 activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
37 preSubsection: '>'
38})
39
40themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
41 progressbarTheme: {
42 preComplete: consoleControl.color('inverse'),
43 complete: ' ',
44 postComplete: consoleControl.color('stopInverse'),
45 preRemaining: consoleControl.color('brightBlack'),
46 remaining: '░',
47 postRemaining: consoleControl.color('reset')
48 }
49})
50
51themes.setDefault({}, 'ASCII')
52themes.setDefault({hasColor: true}, 'colorASCII')
53themes.setDefault({platform: 'darwin', hasUnicode: true}, 'brailleSpinner')
54themes.setDefault({platform: 'darwin', hasUnicode: true, hasColor: true}, 'colorBrailleSpinner')
Note: See TracBrowser for help on using the repository browser.