Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
client/settings/disable shadows: add the corresponding checkbox in the Appearance settings page
Adorian Doran7c78d749deb2
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 4537d09f67..986ea78dea 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -1115,7 +1115,8 @@},"ui-performance": {"title": "Performance",- "enable-motion": "Enable transitions and animations"+ "enable-motion": "Enable transitions and animations",+ "enable-shadows": "Enable shadows"},"ai_llm": {"not_started": "Not started",diff --git a/apps/client/src/widgets/type_widgets/options/appearance.tsx b/apps/client/src/widgets/type_widgets/options/appearance.tsxindex de22a9b1b8..ce9dce3d4c 100644--- a/apps/client/src/widgets/type_widgets/options/appearance.tsx+++ b/apps/client/src/widgets/type_widgets/options/appearance.tsx@@ -248,13 +248,21 @@ function ElectronIntegration() {function Performance() {const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled");+ const [ shadowsEnabled, setShadowsEnabled ] = useTriliumOptionBool("shadowsEnabled");+return <OptionsSection title={t("ui-performance.title")}><FormGroup name="motion-enabled">- <FormCheckbox- label={t("ui-performance.enable-motion")}- currentValue={motionEnabled} onChange={setMotionEnabled}- />+ <FormCheckbox+ label={t("ui-performance.enable-motion")}+ currentValue={motionEnabled} onChange={setMotionEnabled}+ />+ </FormGroup>+ <FormGroup name="shadows-enabled">+ <FormCheckbox+ label={t("ui-performance.enable-shadows")}+ currentValue={shadowsEnabled} onChange={setShadowsEnabled}+ /></FormGroup></OptionsSection>}