Skip to content

Commit

Permalink
🎨 Use real theme style value replace var in preview mode siyuan-note#…
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 17, 2024
1 parent 35d1c10 commit 6dad90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func fillThemeStyleVar(tree *parse.Tree) {
buf.WriteString(style)
buf.WriteString(": ")
value := themeStyles[name]
if strings.Contains(value, "-b3-") {
if strings.Contains(value, "var(") {
name = gulu.Str.SubStringBetween(value, "(", ")")
value = themeStyles[name]
}
Expand Down

0 comments on commit 6dad90f

Please sign in to comment.