Skip to content

Commit b6e88ce

Browse files
committed
fix: merge cssVar
1 parent 21c2a5f commit b6e88ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mind-elixir",
3-
"version": "4.2.4",
3+
"version": "4.2.5",
44
"type": "module",
55
"description": "Mind elixir is a free open source mind map core.",
66
"keywords": [

src/utils/theme.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import { THEME } from '../const'
12
import type { MindElixirInstance } from '../types/index'
23
import type { Theme } from '../types/index'
34

45
const changeTheme = function (this: MindElixirInstance, theme: Theme, shouldRefresh = true) {
6+
theme.cssVar = { ...THEME.cssVar, ...theme.cssVar }
57
this.theme = theme
68
const cssVar = this.theme.cssVar
79
const keys = Object.keys(cssVar)

0 commit comments

Comments
 (0)