Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
fix colors in solarized
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Dickey committed Jul 1, 2017
1 parent 447e13a commit c7ac918
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class Help {
commandLine (cmd: Class<Command<*>>): [string, ?string] {
return [
buildUsage(cmd),
cmd.description ? this.out.color.gray(cmd.description) : null
cmd.description ? this.out.color.dim(cmd.description) : null
]
}

Expand All @@ -79,7 +79,7 @@ export default class Help {
return '\n' + renderList(args.map(a => {
return [
a.name.toUpperCase(),
a.description ? this.out.color.gray(a.description) : null
a.description ? this.out.color.dim(a.description) : null
]
})) + '\n'
}
Expand All @@ -102,7 +102,7 @@ export default class Help {
if (f.required || f.optional === false) description = `(required) ${description}`
return [
` ${label.join(',').trim()}` + usage,
description ? this.out.color.gray(description) : null
description ? this.out.color.dim(description) : null
]
})) + '\n'
}
Expand Down
4 changes: 2 additions & 2 deletions src/output/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class Output {
}

styledHeader (header: string) {
this.log(this.color.gray('=== ') + this.color.bold(header))
this.log(this.color.dim('=== ') + this.color.bold(header))
}

styledObject (obj: any, keys: string[]) {
Expand All @@ -138,7 +138,7 @@ export default class Output {
}
}
let logKeyValue = (key, value) => {
this.log(`${key}:` + ' '.repeat(maxKeyLength - key.length - 1) + pp(value))
this.log(`${this.color.blue(key)}:` + ' '.repeat(maxKeyLength - key.length - 1) + pp(value))
}
for (var key of (keys || Object.keys(obj).sort())) {
let value = obj[key]
Expand Down
2 changes: 1 addition & 1 deletion src/output/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class Prompter {
prompt (name: string, options: PromptOptions): Promise<string> {
options = options || {}
options.name = name
options.prompt = name ? this.out.color.gray(`${name}: `) : this.out.color.gray('> ')
options.prompt = name ? this.out.color.dim(`${name}: `) : this.out.color.dim('> ')
let isTTY = process.env.TERM !== 'dumb' && (process.stdin: any).isTTY
return this.out.action.pause(() => {
if (options.mask || options.hide) {
Expand Down

0 comments on commit c7ac918

Please sign in to comment.