|  |  | @ -47,7 +47,7 @@ import { UserUtils } from '../../session/utils'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import { getLatestReleaseFromFileServer } from '../../session/apis/file_server_api/FileServerApi'; |  |  |  | import { getLatestReleaseFromFileServer } from '../../session/apis/file_server_api/FileServerApi'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import { switchThemeTo } from '../../themes/switchTheme'; |  |  |  | import { switchThemeTo } from '../../themes/switchTheme'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import { ThemeStateType } from '../../themes/constants/colors'; |  |  |  | import { ThemeStateType } from '../../themes/constants/colors'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import { getTheme } from '../../state/selectors/theme'; |  |  |  | import { isDarkTheme } from '../../state/selectors/theme'; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | const Section = (props: { type: SectionType }) => { |  |  |  | const Section = (props: { type: SectionType }) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |   const ourNumber = useSelector(getOurNumber); |  |  |  |   const ourNumber = useSelector(getOurNumber); | 
			
		
	
	
		
		
			
				
					|  |  | @ -55,7 +55,7 @@ const Section = (props: { type: SectionType }) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |   const dispatch = useDispatch(); |  |  |  |   const dispatch = useDispatch(); | 
			
		
	
		
		
			
				
					
					|  |  |  |   const { type } = props; |  |  |  |   const { type } = props; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |   const theme = useSelector(getTheme); |  |  |  |   const isDarkMode = useSelector(isDarkTheme); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   const focusedSection = useSelector(getFocusedSection); |  |  |  |   const focusedSection = useSelector(getFocusedSection); | 
			
		
	
		
		
			
				
					
					|  |  |  |   const isSelected = focusedSection === props.type; |  |  |  |   const isSelected = focusedSection === props.type; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -65,9 +65,9 @@ const Section = (props: { type: SectionType }) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |       dispatch(editProfileModal({})); |  |  |  |       dispatch(editProfileModal({})); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } else if (type === SectionType.ColorMode) { |  |  |  |     } else if (type === SectionType.ColorMode) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       const currentTheme = String(window.Events.getThemeSetting()); |  |  |  |       const currentTheme = String(window.Events.getThemeSetting()); | 
			
		
	
		
		
			
				
					
					|  |  |  |       const newTheme = (currentTheme.includes('light') |  |  |  |       const newTheme = (isDarkMode | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ? currentTheme.replace('light', 'dark') |  |  |  |         ? currentTheme.replace('dark', 'light') | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         : currentTheme.replace('dark', 'light')) as ThemeStateType; |  |  |  |         : currentTheme.replace('light', 'dark')) as ThemeStateType; | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       // We want to persist the primary color when using the color mode button
 |  |  |  |       // We want to persist the primary color when using the color mode button
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       await switchThemeTo({ |  |  |  |       await switchThemeTo({ | 
			
		
	
	
		
		
			
				
					|  |  | @ -137,7 +137,7 @@ const Section = (props: { type: SectionType }) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |       return ( |  |  |  |       return ( | 
			
		
	
		
		
			
				
					
					|  |  |  |         <SessionIconButton |  |  |  |         <SessionIconButton | 
			
		
	
		
		
			
				
					
					|  |  |  |           iconSize="medium" |  |  |  |           iconSize="medium" | 
			
		
	
		
		
			
				
					
					|  |  |  |           iconType={theme.includes('light') ? 'sun' : 'moon'} |  |  |  |           iconType={isDarkMode ? 'moon' : 'sun'} | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           dataTestId="theme-section" |  |  |  |           dataTestId="theme-section" | 
			
		
	
		
		
			
				
					
					|  |  |  |           notificationCount={unreadToShow} |  |  |  |           notificationCount={unreadToShow} | 
			
		
	
		
		
			
				
					
					|  |  |  |           onClick={handleClick} |  |  |  |           onClick={handleClick} | 
			
		
	
	
		
		
			
				
					|  |  | 
 |