[fix] ProgressBar & Switch for High Contrast mode

Prevent these controls from becoming invisible in Windows High Contrast mode by
disabling forced color adjustment for these elements.

Fix #1606
This commit is contained in:
Nicolas Gallagher
2021-06-14 12:41:09 -07:00
parent 2a930b7e3f
commit d48f630600
2 changed files with 4 additions and 0 deletions
@@ -71,12 +71,14 @@ ProgressBar.displayName = 'ProgressBar';
const styles = StyleSheet.create({
track: {
forcedColorAdjust: 'none',
height: 5,
overflow: 'hidden',
userSelect: 'none',
zIndex: 0
},
progress: {
forcedColorAdjust: 'none',
height: '100%',
zIndex: -1
},
+2
View File
@@ -145,6 +145,7 @@ const styles = StyleSheet.create({
cursor: 'inherit'
},
track: {
forcedColorAdjust: 'none',
...StyleSheet.absoluteFillObject,
height: '70%',
margin: 'auto',
@@ -152,6 +153,7 @@ const styles = StyleSheet.create({
width: '100%'
},
thumb: {
forcedColorAdjust: 'none',
alignSelf: 'flex-start',
borderRadius: '100%',
boxShadow: thumbDefaultBoxShadow,