Skip to content
Discussion options

You must be logged in to vote

The real trick is a scoped widget script, not CSS attributes.

#appCss only applies globally — it can't be isolated per workspace.

You should consider using a widget script to achieve the effect you want. This is a reference script — add #widget to activate it.

Then, on the workspace root note, add the attribute labels #workspace and #lhaWorkspace(inheritable) .

#lhaWorkspace is a custom label defined in the reference script.


/** @jsx h */
import { defineWidget, useActiveNoteContext, useEffect, useState } from "trilium:preact";
import { searchForNotes, getNote } from "trilium:api";

const STYLE_ID = "lha-scoped-workspace-style";

// 材质:深色底 + 浅色前景。
// 通过官方 --launcher-pane-* 变量注入, 让 Trilium…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mowityx
Comment options

Answer selected by mowityx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants