mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Fix: toggle light / dark makes background white (#4553)
This commit is contained in:
		
							parent
							
								
									6f429a6a4b
								
							
						
					
					
						commit
						1a85175b15
					
				@ -459,7 +459,7 @@ function Home({ initialSettings }) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export default function Wrapper({ initialSettings, fallback }) {
 | 
			
		||||
  const { theme } = useContext(ThemeContext);
 | 
			
		||||
  const { themeContext } = useContext(ThemeContext);
 | 
			
		||||
  const wrappedStyle = {};
 | 
			
		||||
  let backgroundBlur = false;
 | 
			
		||||
  let backgroundSaturate = false;
 | 
			
		||||
@ -490,9 +490,9 @@ export default function Wrapper({ initialSettings, fallback }) {
 | 
			
		||||
      id="page_wrapper"
 | 
			
		||||
      className={classNames(
 | 
			
		||||
        "relative",
 | 
			
		||||
        theme && theme,
 | 
			
		||||
        initialSettings.theme && initialSettings.theme,
 | 
			
		||||
        initialSettings.color && `theme-${initialSettings.color}`,
 | 
			
		||||
        theme === "dark" ? "scheme-dark" : "scheme-light",
 | 
			
		||||
        themeContext === "dark" ? "scheme-dark" : "scheme-light",
 | 
			
		||||
      )}
 | 
			
		||||
    >
 | 
			
		||||
      <div
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user