"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/gauge/themes.js" (8 Mar 2017, 1543 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 'use strict'
    2 var consoleControl = require('console-control-strings')
    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: 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 
   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: 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 
   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')