mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-23 08:46:07 +08:00
ba5cba3181
Summary: Themes can now be uninstalled by clicking a button in the theme picker, instead of going to `~/.nylas/packages` to delete the directory. Test Plan: Tested locally. Reviewers: evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2700
24 lines
541 B
JavaScript
24 lines
541 B
JavaScript
/** @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();
|
|
}
|