11cb0ef41Sopenharmony_ci'use strict'
21cb0ef41Sopenharmony_civar color = require('console-control-strings').color
31cb0ef41Sopenharmony_civar ThemeSet = require('./theme-set.js')
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_civar themes = module.exports = new ThemeSet()
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_cithemes.addTheme('ASCII', {
81cb0ef41Sopenharmony_ci  preProgressbar: '[',
91cb0ef41Sopenharmony_ci  postProgressbar: ']',
101cb0ef41Sopenharmony_ci  progressbarTheme: {
111cb0ef41Sopenharmony_ci    complete: '#',
121cb0ef41Sopenharmony_ci    remaining: '.',
131cb0ef41Sopenharmony_ci  },
141cb0ef41Sopenharmony_ci  activityIndicatorTheme: '-\\|/',
151cb0ef41Sopenharmony_ci  preSubsection: '>',
161cb0ef41Sopenharmony_ci})
171cb0ef41Sopenharmony_ci
181cb0ef41Sopenharmony_cithemes.addTheme('colorASCII', themes.getTheme('ASCII'), {
191cb0ef41Sopenharmony_ci  progressbarTheme: {
201cb0ef41Sopenharmony_ci    preComplete: color('bgBrightWhite', 'brightWhite'),
211cb0ef41Sopenharmony_ci    complete: '#',
221cb0ef41Sopenharmony_ci    postComplete: color('reset'),
231cb0ef41Sopenharmony_ci    preRemaining: color('bgBrightBlack', 'brightBlack'),
241cb0ef41Sopenharmony_ci    remaining: '.',
251cb0ef41Sopenharmony_ci    postRemaining: color('reset'),
261cb0ef41Sopenharmony_ci  },
271cb0ef41Sopenharmony_ci})
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_cithemes.addTheme('brailleSpinner', {
301cb0ef41Sopenharmony_ci  preProgressbar: '(',
311cb0ef41Sopenharmony_ci  postProgressbar: ')',
321cb0ef41Sopenharmony_ci  progressbarTheme: {
331cb0ef41Sopenharmony_ci    complete: '#',
341cb0ef41Sopenharmony_ci    remaining: '⠂',
351cb0ef41Sopenharmony_ci  },
361cb0ef41Sopenharmony_ci  activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
371cb0ef41Sopenharmony_ci  preSubsection: '>',
381cb0ef41Sopenharmony_ci})
391cb0ef41Sopenharmony_ci
401cb0ef41Sopenharmony_cithemes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
411cb0ef41Sopenharmony_ci  progressbarTheme: {
421cb0ef41Sopenharmony_ci    preComplete: color('bgBrightWhite', 'brightWhite'),
431cb0ef41Sopenharmony_ci    complete: '#',
441cb0ef41Sopenharmony_ci    postComplete: color('reset'),
451cb0ef41Sopenharmony_ci    preRemaining: color('bgBrightBlack', 'brightBlack'),
461cb0ef41Sopenharmony_ci    remaining: '⠂',
471cb0ef41Sopenharmony_ci    postRemaining: color('reset'),
481cb0ef41Sopenharmony_ci  },
491cb0ef41Sopenharmony_ci})
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_cithemes.setDefault({}, 'ASCII')
521cb0ef41Sopenharmony_cithemes.setDefault({ hasColor: true }, 'colorASCII')
531cb0ef41Sopenharmony_cithemes.setDefault({ platform: 'darwin', hasUnicode: true }, 'brailleSpinner')
541cb0ef41Sopenharmony_cithemes.setDefault({ platform: 'darwin', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
551cb0ef41Sopenharmony_cithemes.setDefault({ platform: 'linux', hasUnicode: true }, 'brailleSpinner')
561cb0ef41Sopenharmony_cithemes.setDefault({ platform: 'linux', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
57