Skip to content

Commit

Permalink
fix: merge cssVar
Browse files Browse the repository at this point in the history
  • Loading branch information
SSShooter committed Nov 2, 2024
1 parent 21c2a5f commit b6e88ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mind-elixir",
"version": "4.2.4",
"version": "4.2.5",
"type": "module",
"description": "Mind elixir is a free open source mind map core.",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/utils/theme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { THEME } from '../const'
import type { MindElixirInstance } from '../types/index'
import type { Theme } from '../types/index'

const changeTheme = function (this: MindElixirInstance, theme: Theme, shouldRefresh = true) {
theme.cssVar = { ...THEME.cssVar, ...theme.cssVar }
this.theme = theme
const cssVar = this.theme.cssVar
const keys = Object.keys(cssVar)
Expand Down

0 comments on commit b6e88ce

Please sign in to comment.