2016-03-05 07:21:06 +08:00
|
|
|
/** @babel */
|
2016-04-20 08:14:25 +08:00
|
|
|
import React from 'react';
|
|
|
|
import {Actions, WorkspaceStore} from 'nylas-exports';
|
|
|
|
|
|
|
|
import ThemePicker from './theme-picker';
|
|
|
|
|
2016-03-05 07:21:06 +08:00
|
|
|
|
|
|
|
export function activate() {
|
2016-04-20 08:14:25 +08:00
|
|
|
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
|
|
|
|
WorkspaceStore.popToRootSheet();
|
|
|
|
Actions.openModal({
|
|
|
|
component: (<ThemePicker />),
|
|
|
|
height: 390,
|
|
|
|
width: 250,
|
|
|
|
});
|
|
|
|
});
|
2016-03-05 07:21:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2016-04-20 08:14:25 +08:00
|
|
|
this.disposable.dispose();
|
2016-03-05 07:21:06 +08:00
|
|
|
}
|