mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +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": {
 | 
			
		||||
    "title": "Performance",
 | 
			
		||||
    "enable-motion": "Enable transitions and animations"
 | 
			
		||||
    "enable-motion": "Enable transitions and animations",
 | 
			
		||||
    "enable-shadows": "Enable shadows"
 | 
			
		||||
  },
 | 
			
		||||
  "ai_llm": {
 | 
			
		||||
    "not_started": "Not started",
 | 
			
		||||
 | 
			
		||||
@ -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>
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user