source: node_modules/gauge/lib/themes.js@ 62b2964

finki-main main
Last change on this file since 62b2964 was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 1.6 KB
Line 
1'use strict'
2var color = require('console-control-strings').color
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: color('bgBrightWhite', 'brightWhite'),
21 complete: '#',
22 postComplete: color('reset'),
23 preRemaining: color('bgBrightBlack', 'brightBlack'),
24 remaining: '.',
25 postRemaining: 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: color('bgBrightWhite', 'brightWhite'),
43 complete: '#',
44 postComplete: color('reset'),
45 preRemaining: color('bgBrightBlack', 'brightBlack'),
46 remaining: '⠂',
47 postRemaining: 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')
55themes.setDefault({ platform: 'linux', hasUnicode: true }, 'brailleSpinner')
56themes.setDefault({ platform: 'linux', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
Note: See TracBrowser for help on using the repository browser.