Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Use appearance text colors for mind map lines https://github.com/siyuan-note/siyuan/issues/18831

Vanessabcd9f226c24d
diff --git a/app/src/protyle/render/listMindmap/index.ts b/app/src/protyle/render/listMindmap/index.ts
index 1787a468ab..06daea5342 100644
--- a/app/src/protyle/render/listMindmap/index.ts
+++ b/app/src/protyle/render/listMindmap/index.ts
@@ -133,7 +133,7 @@ class ListMindmapController {
}
},
colors: () => {
- const type = "backgroundColor";
+ const type = "color";
const data = getInlineStylesCache();
return getVisibleOrderedStyleKeys(type, data).map(key => {
if (isBuiltinOrderKey(type, key)) {
@@ -158,7 +158,7 @@ class ListMindmapController {
});
},
onManageNodeColors: () => openInlineStyleDialog("style1"),
- onManageLineColors: () => openInlineStyleDialog("backgroundColor"),
+ onManageLineColors: () => openInlineStyleDialog("color"),
finishEdit: () => this.activeEditor?.finish(),
onExit: async () => {
if (this.activeEditor && !await this.activeEditor.finish()) {