mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-24 01:06:07 +08:00
19 lines
598 B
JavaScript
19 lines
598 B
JavaScript
|
/** @babel */
|
||
|
import React from 'react';
|
||
|
import Actions from '../../../src/flux/actions'
|
||
|
|
||
|
import ThemePicker from './theme-picker'
|
||
|
|
||
|
|
||
|
export function activate() {
|
||
|
this.disposable = NylasEnv.commands.add("body",
|
||
|
"window:launch-theme-picker",
|
||
|
() => Actions.openModal(children=<ThemePicker />,
|
||
|
height=400,
|
||
|
width=250));
|
||
|
}
|
||
|
|
||
|
export function deactivate() {
|
||
|
this.disposable.dispose();
|
||
|
}
|