2016-03-05 07:21:06 +08:00
|
|
|
/** @babel */
|
|
|
|
import React from 'react';
|
2016-03-09 09:08:09 +08:00
|
|
|
import Actions from '../../../src/flux/actions';
|
2016-03-05 07:21:06 +08:00
|
|
|
|
2016-03-09 09:08:09 +08:00
|
|
|
import ThemePicker from './theme-picker';
|
|
|
|
import ThemePickerStore from './theme-picker-store';
|
2016-03-05 07:21:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
export function activate() {
|
2016-03-09 09:08:09 +08:00
|
|
|
ThemePickerStore.activate();
|
|
|
|
this.disposable = NylasEnv.commands.add("body", "window:launch-theme-picker", () => {
|
|
|
|
Actions.openModal(
|
|
|
|
children=<ThemePicker />,
|
|
|
|
height=400,
|
|
|
|
width=250,
|
|
|
|
);
|
|
|
|
});
|
2016-03-05 07:21:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export function deactivate() {
|
2016-03-09 09:08:09 +08:00
|
|
|
ThemePickerStore.deactivate();
|
2016-03-05 07:21:06 +08:00
|
|
|
this.disposable.dispose();
|
|
|
|
}
|