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