This commit is contained in:
Mr. Stallion 2021-12-29 15:01:06 -06:00
parent 06c7b292ee
commit df4ac8640e
2 changed files with 19 additions and 0 deletions

View File

@ -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,

View File

@ -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