Minor
This commit is contained in:
		
							parent
							
								
									06c7b292ee
								
							
						
					
					
						commit
						df4ac8640e
					
				| @ -491,6 +491,15 @@ | ||||
|           // console.log('getThemeClassIndex', core.state.generalSettings?.risingDisableWindowsHighContrast); | ||||
| 
 | ||||
|           try { | ||||
|             // Hack! | ||||
|             if (process.platform === 'win32') { | ||||
|               if (core.state.generalSettings?.risingDisableWindowsHighContrast) { | ||||
|                 document.querySelector('html').classList.add('disableWindowsHighContrast'); | ||||
|               } else { | ||||
|                 document.querySelector('html').classList.remove('disableWindowsHighContrast'); | ||||
|               } | ||||
|             } | ||||
| 
 | ||||
|             return { | ||||
|               [`theme-${this.settings.theme}`]: true, | ||||
|               colorblindMode: core.state.settings.risingColorblindMode, | ||||
|  | ||||
| @ -48,6 +48,7 @@ | ||||
|     import {GeneralSettings} from './common'; | ||||
|     import { getSafeLanguages, updateSupportedLanguages } from './language'; | ||||
|     import log from 'electron-log'; | ||||
|     import core from '../chat/core'; | ||||
| 
 | ||||
|     const browserWindow = remote.getCurrentWindow(); | ||||
| 
 | ||||
| @ -385,6 +386,15 @@ | ||||
|           // console.log('getThemeClassWindow', this.settings?.risingDisableWindowsHighContrast); | ||||
| 
 | ||||
|           try { | ||||
|             // Hack! | ||||
|             if (process.platform === 'win32') { | ||||
|               if (this.settings?.risingDisableWindowsHighContrast) { | ||||
|                 document.querySelector('html').classList.add('disableWindowsHighContrast'); | ||||
|               } else { | ||||
|                 document.querySelector('html').classList.remove('disableWindowsHighContrast'); | ||||
|               } | ||||
|             } | ||||
| 
 | ||||
|             return { | ||||
|               ['platform-' + this.platform]: true, | ||||
|               disableWindowsHighContrast: this.settings?.risingDisableWindowsHighContrast || false | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user