Optional disable high contrast mode
This commit is contained in:
parent
08a1cf5690
commit
94d5b8e327
|
@ -199,6 +199,13 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="risingDisableWindowsHighContrast">
|
||||
<input type="checkbox" id="risingDisableWindowsHighContrast" v-model="risingDisableWindowsHighContrast"/>
|
||||
Disable high-contrast mode (Windows)
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div v-show="selectedTab === '3'">
|
||||
<template v-if="hidden.length">
|
||||
|
@ -268,6 +275,7 @@
|
|||
|
||||
risingShowUnreadOfflineCount!: boolean;
|
||||
risingColorblindMode!: boolean;
|
||||
risingDisableWindowsHighContrast!: boolean;
|
||||
|
||||
|
||||
async load(): Promise<void> {
|
||||
|
@ -305,6 +313,7 @@
|
|||
this.risingShowUnreadOfflineCount = settings.risingShowUnreadOfflineCount;
|
||||
|
||||
this.risingColorblindMode = settings.risingColorblindMode;
|
||||
this.risingDisableWindowsHighContrast = settings.risingDisableWindowsHighContrast;
|
||||
}
|
||||
|
||||
async doImport(): Promise<void> {
|
||||
|
@ -359,7 +368,8 @@
|
|||
risingComparisonInSearch: this.risingComparisonInSearch,
|
||||
risingShowUnreadOfflineCount: this.risingShowUnreadOfflineCount,
|
||||
|
||||
risingColorblindMode: this.risingColorblindMode
|
||||
risingColorblindMode: this.risingColorblindMode,
|
||||
risingDisableWindowsHighContrast: this.risingDisableWindowsHighContrast
|
||||
};
|
||||
if(this.notifications) await core.notifications.requestPermission();
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ export class Settings implements ISettings {
|
|||
|
||||
risingShowUnreadOfflineCount = true;
|
||||
risingColorblindMode = false;
|
||||
risingDisableWindowsHighContrast: false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -221,6 +221,7 @@ export namespace Settings {
|
|||
|
||||
readonly risingShowUnreadOfflineCount: boolean;
|
||||
readonly risingColorblindMode: boolean;
|
||||
readonly risingDisableWindowsHighContrast: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -489,7 +489,8 @@
|
|||
try {
|
||||
return {
|
||||
[`theme-${this.settings.theme}`]: true,
|
||||
colorblindMode: core.state.settings.risingColorblindMode
|
||||
colorblindMode: core.state.settings.risingColorblindMode,
|
||||
disableWindowsHighContrast: core.state.settings.risingDisableWindowsHighContrast
|
||||
};
|
||||
} catch(err) {
|
||||
return { [`theme-${this.settings.theme}`]: true };
|
||||
|
|
|
@ -40,3 +40,7 @@
|
|||
--#{$varName}: #{$value};
|
||||
}
|
||||
}
|
||||
|
||||
.disableWindowsHighContrast {
|
||||
forced-colors-adjust: none !important;
|
||||
}
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
}
|
||||
}
|
||||
|
||||
.disableWindowsHighContrast {
|
||||
forced-colors-adjust: none !important;
|
||||
}
|
||||
|
||||
|
||||
//@import "../../util/accecss";
|
||||
//
|
||||
//@include accecss(
|
||||
|
|
|
@ -40,3 +40,7 @@
|
|||
--#{$varName}: #{$value};
|
||||
}
|
||||
}
|
||||
|
||||
.disableWindowsHighContrast {
|
||||
forced-colors-adjust: none !important;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue