mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 21:49:04 +01:00
client/settings/disable shadows: add the corresponding checkbox in the Appearance settings page
This commit is contained in:
parent
85dd99a3c4
commit
7c78d749de
@ -1115,7 +1115,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"
|
||||||
},
|
},
|
||||||
"ai_llm": {
|
"ai_llm": {
|
||||||
"not_started": "Not started",
|
"not_started": "Not started",
|
||||||
|
|||||||
@ -248,6 +248,8 @@ function ElectronIntegration() {
|
|||||||
|
|
||||||
function Performance() {
|
function Performance() {
|
||||||
const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled");
|
const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled");
|
||||||
|
const [ shadowsEnabled, setShadowsEnabled ] = useTriliumOptionBool("shadowsEnabled");
|
||||||
|
|
||||||
|
|
||||||
return <OptionsSection title={t("ui-performance.title")}>
|
return <OptionsSection title={t("ui-performance.title")}>
|
||||||
<FormGroup name="motion-enabled">
|
<FormGroup name="motion-enabled">
|
||||||
@ -256,6 +258,12 @@ function Performance() {
|
|||||||
currentValue={motionEnabled} onChange={setMotionEnabled}
|
currentValue={motionEnabled} onChange={setMotionEnabled}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
|
<FormGroup name="shadows-enabled">
|
||||||
|
<FormCheckbox
|
||||||
|
label={t("ui-performance.enable-shadows")}
|
||||||
|
currentValue={shadowsEnabled} onChange={setShadowsEnabled}
|
||||||
|
/>
|
||||||
|
</FormGroup>
|
||||||
</OptionsSection>
|
</OptionsSection>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user