diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-05-04 17:50:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 17:50:42 +0900 |
commit | 69b6894b1997a773678709a7cd591afddc15c8ce (patch) | |
tree | 07e4c665829236e733316ae6f2684fe03b0a6781 /src/console/actions/index.ts | |
parent | 49addd75b76f185c9dad5d74e44e39cbea360510 (diff) | |
parent | 44ff8e449dba0de32500da3c3f17fc1361449717 (diff) |
Merge pull request #751 from ueokande/dark-mode
Supports dark mode
Diffstat (limited to 'src/console/actions/index.ts')
-rw-r--r-- | src/console/actions/index.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/console/actions/index.ts b/src/console/actions/index.ts index 308a093..6c1c759 100644 --- a/src/console/actions/index.ts +++ b/src/console/actions/index.ts @@ -1,5 +1,6 @@ import Completions from "../Completions"; import CompletionType from "../../shared/CompletionType"; +import ColorScheme from "../../shared/ColorScheme"; export const CONSOLE_HIDE = "console.hide"; export const CONSOLE_SHOW_COMMAND = "console.show.command"; @@ -11,6 +12,7 @@ export const CONSOLE_SET_COMPLETIONS = "console.set.completions"; export const CONSOLE_COMPLETION_NEXT = "console.completion.next"; export const CONSOLE_COMPLETION_PREV = "console.completion.prev"; export const CONSOLE_SHOW_FIND = "console.show.find"; +export const CONSOLE_SET_COLORSCHEME = "console.set.colorscheme"; export interface HideAction { type: typeof CONSOLE_HIDE; @@ -59,6 +61,11 @@ export interface CompletionPrevAction { type: typeof CONSOLE_COMPLETION_PREV; } +export interface SetColorSchemeAction { + type: typeof CONSOLE_SET_COLORSCHEME; + colorscheme: ColorScheme; +} + export type ConsoleAction = | HideAction | ShowCommand @@ -69,4 +76,5 @@ export type ConsoleAction = | SetConsoleTextAction | SetCompletionsAction | CompletionNextAction - | CompletionPrevAction; + | CompletionPrevAction + | SetColorSchemeAction; |