| [81bc7da] | 1 | 'use strict'
|
|---|
| 2 | var color = require('console-control-strings').color
|
|---|
| 3 | var ThemeSet = require('./theme-set.js')
|
|---|
| 4 |
|
|---|
| 5 | var themes = module.exports = new ThemeSet()
|
|---|
| 6 |
|
|---|
| 7 | themes.addTheme('ASCII', {
|
|---|
| 8 | preProgressbar: '[',
|
|---|
| 9 | postProgressbar: ']',
|
|---|
| 10 | progressbarTheme: {
|
|---|
| 11 | complete: '#',
|
|---|
| 12 | remaining: '.',
|
|---|
| 13 | },
|
|---|
| 14 | activityIndicatorTheme: '-\\|/',
|
|---|
| 15 | preSubsection: '>',
|
|---|
| 16 | })
|
|---|
| 17 |
|
|---|
| 18 | themes.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 |
|
|---|
| 29 | themes.addTheme('brailleSpinner', {
|
|---|
| 30 | preProgressbar: '(',
|
|---|
| 31 | postProgressbar: ')',
|
|---|
| 32 | progressbarTheme: {
|
|---|
| 33 | complete: '#',
|
|---|
| 34 | remaining: '⠂',
|
|---|
| 35 | },
|
|---|
| 36 | activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
|
|---|
| 37 | preSubsection: '>',
|
|---|
| 38 | })
|
|---|
| 39 |
|
|---|
| 40 | themes.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 |
|
|---|
| 51 | themes.setDefault({}, 'ASCII')
|
|---|
| 52 | themes.setDefault({ hasColor: true }, 'colorASCII')
|
|---|
| 53 | themes.setDefault({ platform: 'darwin', hasUnicode: true }, 'brailleSpinner')
|
|---|
| 54 | themes.setDefault({ platform: 'darwin', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
|
|---|
| 55 | themes.setDefault({ platform: 'linux', hasUnicode: true }, 'brailleSpinner')
|
|---|
| 56 | themes.setDefault({ platform: 'linux', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
|
|---|