git.schokokeks.org
Repositories
Help
Report an Issue
fs-words.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6e9c872
Branches
Tags
develop-client_server
master
typescript
fs-words.git
server
lib
node_modules
gauge
themes.js
[add] server:lib:node_modules
Christian Fraß
commited
6e9c872
at 2021-03-08 23:52:07
themes.js
Blame
History
Raw
'use strict' var consoleControl = require('console-control-strings') var ThemeSet = require('./theme-set.js') var themes = module.exports = new ThemeSet() themes.addTheme('ASCII', { preProgressbar: '[', postProgressbar: ']', progressbarTheme: { complete: '#', remaining: '.' }, activityIndicatorTheme: '-\\|/', preSubsection: '>' }) themes.addTheme('colorASCII', themes.getTheme('ASCII'), { progressbarTheme: { preComplete: consoleControl.color('inverse'), complete: ' ', postComplete: consoleControl.color('stopInverse'), preRemaining: consoleControl.color('brightBlack'), remaining: '.', postRemaining: consoleControl.color('reset') } }) themes.addTheme('brailleSpinner', { preProgressbar: '⸨', postProgressbar: '⸩', progressbarTheme: { complete: '░', remaining: '⠂' }, activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏', preSubsection: '>' }) themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), { progressbarTheme: { preComplete: consoleControl.color('inverse'), complete: ' ', postComplete: consoleControl.color('stopInverse'), preRemaining: consoleControl.color('brightBlack'), remaining: '░', postRemaining: consoleControl.color('reset') } }) themes.setDefault({}, 'ASCII') themes.setDefault({hasColor: true}, 'colorASCII') themes.setDefault({platform: 'darwin', hasUnicode: true}, 'brailleSpinner') themes.setDefault({platform: 'darwin', hasUnicode: true, hasColor: true}, 'colorBrailleSpinner')