client/settings/disable backdrop effects: add the corresponding checkbox in the Appearance settings page

This commit is contained in:
Adorian Doran
2025-08-23 01:20:54 +03:00
parent 94ddad3c49
commit 82e076378c
2 changed files with 9 additions and 1 deletions

View File

@@ -1116,7 +1116,8 @@
"ui-performance": { "ui-performance": {
"title": "Performance", "title": "Performance",
"enable-motion": "Enable transitions and animations", "enable-motion": "Enable transitions and animations",
"enable-shadows": "Enable shadows" "enable-shadows": "Enable shadows",
"enable-backdrop-effects": "Enable background effects for menus, popups and panels"
}, },
"ai_llm": { "ai_llm": {
"not_started": "Not started", "not_started": "Not started",

View File

@@ -249,6 +249,7 @@ function ElectronIntegration() {
function Performance() { function Performance() {
const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled"); const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled");
const [ shadowsEnabled, setShadowsEnabled ] = useTriliumOptionBool("shadowsEnabled"); const [ shadowsEnabled, setShadowsEnabled ] = useTriliumOptionBool("shadowsEnabled");
const [ backdropEffectsEnabled, setBackdropEffectsEnabled ] = useTriliumOptionBool("backdropEffectsEnabled");
return <OptionsSection title={t("ui-performance.title")}> return <OptionsSection title={t("ui-performance.title")}>
@@ -264,6 +265,12 @@ function Performance() {
currentValue={shadowsEnabled} onChange={setShadowsEnabled} currentValue={shadowsEnabled} onChange={setShadowsEnabled}
/> />
</FormGroup> </FormGroup>
<FormGroup name="backdrop-effects-enabled">
<FormCheckbox
label={t("ui-performance.enable-backdrop-effects")}
currentValue={backdropEffectsEnabled} onChange={setBackdropEffectsEnabled}
/>
</FormGroup>
</OptionsSection> </OptionsSection>
} }