Mailspring/internal_packages/theme-picker/lib/main.js

24 lines
541 B
JavaScript
Raw Normal View History

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