// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. /** * @packageDocumentation * @module theme-light-extension */ import { JupyterFrontEnd, JupyterFrontEndPlugin } from '@jupyterlab/application'; import { IThemeManager } from '@jupyterlab/apputils'; import { ITranslator } from '@jupyterlab/translation'; /** * A plugin for the Jupyter Light Theme. */ const plugin: JupyterFrontEndPlugin = { id: '@jupyterlab/theme-light-extension:plugin', description: 'Adds a light theme.', requires: [IThemeManager, ITranslator], activate: ( app: JupyterFrontEnd, manager: IThemeManager, translator: ITranslator ) => { const trans = translator.load('jupyterlab'); const style = '@jupyterlab/theme-light-extension/index.css'; manager.register({ name: 'JupyterLab Light', displayName: trans.__('JupyterLab Light'), isLight: true, themeScrollbars: false, load: () => manager.loadCSS(style), unload: () => Promise.resolve(undefined) }); }, autoStart: true }; export default plugin;