Replies: 1 comment 2 replies
-
|
The difference is mostly technical and depends on how the workspace tabs are configured. iconClass sets the icon for a note everywhere (like in the note tree and tabs), while workspaceIconClass is meant to set the icon only for the tab when the note is hoisted in a workspace. However, by default, Trilium's main theme uses the CSS variable --tab-note-icons set to true, which means the tab will always use iconClass if it's set, and workspaceIconClass is ignored. Only if --tab-note-icons is false (or iconClass is not set) will workspaceIconClass be used for the tab icon. That's why you don't see a difference in behavior when both are set—the default theme always prefers iconClass for tabs. You can see this logic in the code for tab rendering and icon selection (source, source). So, unless you remove iconClass or use a custom theme that disables note icons in tabs, workspaceIconClass won't have any visible effect. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I read the documentation about iconClass
and workspaceIconClass
But still, when using them, I don't see a difference in behaviour when working in a workspace. Could you point it out to me?
Beta Was this translation helpful? Give feedback.
All reactions