mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
client/settings/disable motion: add an option to allow transitions and animations to be disabled
This commit is contained in:
@@ -88,6 +88,7 @@ export default function AppearanceSettings() {
|
||||
<ApplicationTheme />
|
||||
{overrideThemeFonts === "true" && <Fonts />}
|
||||
{isElectron() && <ElectronIntegration /> }
|
||||
<Performance />
|
||||
<MaxContentWidth />
|
||||
<RelatedSettings items={[
|
||||
{
|
||||
@@ -245,6 +246,20 @@ function ElectronIntegration() {
|
||||
)
|
||||
}
|
||||
|
||||
function Performance() {
|
||||
const [ motionEnabled, setMotionEnabled ] = useTriliumOptionBool("motionEnabled", true);
|
||||
|
||||
return <OptionsSection title="Performance">
|
||||
<FormGroup name="motion-enabled">
|
||||
<FormCheckbox
|
||||
label={"Use transitions and animations"}
|
||||
currentValue={motionEnabled} onChange={setMotionEnabled}
|
||||
/>
|
||||
</FormGroup>
|
||||
</OptionsSection>
|
||||
}
|
||||
|
||||
|
||||
function MaxContentWidth() {
|
||||
const [ maxContentWidth, setMaxContentWidth ] = useTriliumOption("maxContentWidth");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user