mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
20 lines
464 B
JavaScript
20 lines
464 B
JavaScript
import React from 'react';
|
|
import {Actions, WorkspaceStore} from 'nylas-exports';
|
|
|
|
import ThemePicker from './theme-picker';
|
|
|
|
|
|
export function activate() {
|
|
this.disposable = NylasEnv.commands.add(document.body, "window:launch-theme-picker", () => {
|
|
WorkspaceStore.popToRootSheet();
|
|
Actions.openModal({
|
|
component: (<ThemePicker />),
|
|
height: 390,
|
|
width: 250,
|
|
});
|
|
});
|
|
}
|
|
|
|
export function deactivate() {
|
|
this.disposable.dispose();
|
|
}
|