plain-design 1.0.0-beta.87 → 1.0.0-beta.88
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -54,15 +54,7 @@ export const ThemeEditor = designComponent({
|
|
54
54
|
ClientZoom.set(state.zoom);
|
55
55
|
},
|
56
56
|
onDarkChange: () => {
|
57
|
-
|
58
|
-
PageThemeUtils.toggle(val);
|
59
|
-
if (val && state.primaryKey === 'dark') {
|
60
|
-
state.primaryKey = 'light';
|
61
|
-
handler.onPrimaryChange();
|
62
|
-
} else if (!val && state.primaryKey === 'light') {
|
63
|
-
state.primaryKey = 'dark';
|
64
|
-
handler.onPrimaryChange();
|
65
|
-
}
|
57
|
+
PageThemeUtils.toggle(state.dark == 'dark');
|
66
58
|
},
|
67
59
|
onPrimaryChange: () => {PageThemeUtils.primary(state.primaryKey);},
|
68
60
|
onInputModeChange: () => {PageThemeUtils.inputMode(state.inputMode);},
|