From 1a343aa85cbf9efa93868fb521f2a5dcc5776e7f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 17 Apr 2023 15:02:30 +0800 Subject: [PATCH] :fire: Remove Settings - Appearance - Customize the current theme https://github.com/siyuan-note/siyuan/issues/8006 --- kernel/model/appearance.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/kernel/model/appearance.go b/kernel/model/appearance.go index b3ebac6a9..b9dc19db3 100644 --- a/kernel/model/appearance.go +++ b/kernel/model/appearance.go @@ -266,8 +266,7 @@ func watchTheme(folder string) { } //logging.LogInfof(event.String()) - if event.Op&fsnotify.Write == fsnotify.Write && - (strings.HasSuffix(event.Name, "theme.css") || strings.HasSuffix(event.Name, "custom.css")) { + if event.Op&fsnotify.Write == fsnotify.Write && (strings.HasSuffix(event.Name, "theme.css")) { var themeName string if themeName = isCurrentUseTheme(event.Name); "" == themeName { break @@ -279,13 +278,6 @@ func watchTheme(folder string) { }) break } - - if strings.HasSuffix(event.Name, "custom.css") { - util.BroadcastByType("main", "refreshtheme", 0, "", map[string]interface{}{ - "theme": "/appearance/themes/" + themeName + "/custom.css?" + fmt.Sprintf("%d", time.Now().Unix()), - }) - break - } } case err, ok := <-themeWatcher.Errors: if !ok {