@@ -34,6 +34,7 @@ import {
3434 terminalStore ,
3535 TerminalState ,
3636} from '../components/terminal/TerminalState' ;
37+ import { Colormode } from '../theme' ;
3738
3839export type OnSessionConnection = (
3940 kernelConnection : Session . ISessionConnection | undefined
@@ -54,9 +55,11 @@ export type JupyterReactState = {
5455 serviceManager ?: ServiceManager . IManager ;
5556 terminalStore : TerminalState ;
5657 version : string ;
58+ colormode : Colormode ;
5759 setJupyterConfig : ( configuration ?: IJupyterConfig ) => void ;
5860 setServiceManager : ( serviceManager ?: ServiceManager . IManager ) => void ;
5961 setVersion : ( version : string ) => void ;
62+ setColormode : ( colormode : Colormode ) => void ;
6063} ;
6164
6265export const jupyterReactStore = createStore < JupyterReactState > ( ( set , get ) => ( {
@@ -72,6 +75,7 @@ export const jupyterReactStore = createStore<JupyterReactState>((set, get) => ({
7275 notebookStore : notebookStore . getState ( ) ,
7376 outputStore : outputsStore . getState ( ) ,
7477 terminalStore : terminalStore . getState ( ) ,
78+ colormode : 'light' ,
7579 setJupyterConfig : ( jupyterConfig ?: IJupyterConfig ) => {
7680 set ( state => ( { jupyterConfig } ) ) ;
7781 } ,
@@ -83,6 +87,9 @@ export const jupyterReactStore = createStore<JupyterReactState>((set, get) => ({
8387 set ( state => ( { version } ) ) ;
8488 }
8589 } ,
90+ setColormode : colormode => {
91+ set ( state => ( { colormode } ) ) ;
92+ } ,
8693} ) ) ;
8794
8895// TODO Reuse code portions from JupyterContext.
0 commit comments