Skip to content

Commit

Permalink
feat: add default_color constant
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaGarcia committed Aug 13, 2019
1 parent 014fc99 commit 73bcb41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/constants/cli.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ export const OPTIONS: ICliOptions[] = [
},
];

export const DEFAULT_COLOR = 'bgBlue';

export const COLORS = {
blue: 'bgBlack',
cyan: 'bgCyan',
magenta: 'bgMagenta',
red: 'bgRed',
Expand Down
4 changes: 2 additions & 2 deletions src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
UI_POSITIONS,
VALID_KEYS,
} from './constants/main.constants';
import { COLORS, OPTIONS } from './constants/cli.constants';
import { COLORS, DEFAULT_COLOR, OPTIONS } from './constants/cli.constants';
import {
ERROR_MSG,
HELP_MSGS,
Expand Down Expand Up @@ -45,7 +45,7 @@ export class Controller {
private cursorPosY: number = MARGINS.ROW_RESULTS_START;
private previousCursorPosY: number = 0;
private scroll: number = 0;
private backgroundColor: string = 'bgCyan';
private backgroundColor: string = DEFAULT_COLOR;

private finishSearching$: Subject<boolean> = new Subject<boolean>();

Expand Down

0 comments on commit 73bcb41

Please sign in to comment.