mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-02 02:53:01 +08:00
Summary: Adds a new visual theme picker to the menu that allows users to select different themes based on color palettes and then change their themes live. Test Plan: Test included. Reviewers: evan, bengotow Reviewed By: evan, bengotow Differential Revision: https://phab.nylas.com/D2669
18 lines
598 B
JavaScript
18 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();
|
|
}
|