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

This commit is contained in:
Adorian Doran 2025-08-23 00:49:35 +03:00
parent 85dd99a3c4
commit 7c78d749de
2 changed files with 14 additions and 5 deletions

View File

@ -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",

View File

@ -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>
}