mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 18:44:01 +08:00
Summary: Keymaps & menus CSON => JSON, remove AtomKeymaps, CommandRegistry use of CSS selectors, use Mousetrap instead Important Notes: - The `application:` prefix is reserved for commands which are handled in the application process. Don't use it for other things. You will not receive the events in the window. - Maintaining dynamic menus seems to come with quite an overhead, because Electron updates the entire menu every time. In the future, we'll need https://github.com/electron/electron/issues/528 to really make things nice. I will be tracking this upstream. - The format for keyboard shortcuts has changed. `cmd-X` is now `command+shift+x` Test Plan: Run tests Reviewers: juan, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2917
21 lines
478 B
JavaScript
21 lines
478 B
JavaScript
/** @babel */
|
|
import React from 'react';
|
|
import {Actions, WorkspaceStore} from 'nylas-exports';
|
|
|
|
import ThemePicker from './theme-picker';
|
|
|
|
|
|
export function activate() {
|
|
this.disposable = NylasEnv.commands.add(document.body, "window:launch-theme-picker", () => {
|
|
WorkspaceStore.popToRootSheet();
|
|
Actions.openModal({
|
|
component: (<ThemePicker />),
|
|
height: 390,
|
|
width: 250,
|
|
});
|
|
});
|
|
}
|
|
|
|
export function deactivate() {
|
|
this.disposable.dispose();
|
|
}
|