Skip to content

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

:art: Show displayName for non-built-in icons in settings dropdown

Daniel96074287490d
diff --git a/kernel/model/appearance.go b/kernel/model/appearance.go
index 3f3437cd23..325af906af 100644
--- a/kernel/model/appearance.go
+++ b/kernel/model/appearance.go
@@ -245,6 +245,15 @@ func LoadIcons() {
t.Label = name + Conf.Language(288)
} else {
t.Label = name
+ if len(iconConf.DisplayName) > 0 {
+ v := strings.TrimSpace(iconConf.DisplayName[util.Lang])
+ if "" == v {
+ v = strings.TrimSpace(iconConf.DisplayName["default"])
+ }
+ if "" != v && name != v {
+ t.Label = v + " (" + name + ")"
+ }
+ }
}
icons = append(icons, t)
if currentIcon == name {