Questions tagged [high-contrast]

Use this tag for questions about high contrast scenarios in software, web development, browser extensions, etc. High contrast content benefits people with various visual impairments as well as users with normal vision under variable lighting conditions.

High contrast design and content make an application or website usable by people with certain visual impairments. High contrast may also be beneficial for the battery life of one's device and preventing eye strain. Further explanation for reasons to use high contrast mode.

Contrast standards are codified by the Web Content Accessibility Guidelines (WCAG) under Success Criterion 1.4.11: Non-text Contrast and Success Criterion 1.4.6 Contrast (Enhanced).

73 questions
1
vote
0 answers

How to change HTML placeholder color under Windows high contrast mode?

Suppose I have the following HTML placeholder: I was able to change its color to blue using the CSS stylesheet: .form-control::-webkit-input-placeholder { color:…
JJX Su
  • 21
  • 1
1
vote
1 answer

Improve quality of old handwritten birth statement with washed ink using OpenCV or Gimp

I've taken the task to decipher a bit of handwritten text of an old birth/baptism statement (1734), which has washed ink at the bottom of the page (see original photo Chavane.jpg). More specifically, it is for the erased text, beginning just after…
1
vote
0 answers

High Contrast mode on though not desired (Brackets Preview)

Hello and thanks for any help in advance... I have been working on a site and recently added some jquery to the site (I'm not sure if this is the cause of my issue), worth pointing out though I feel as I was not having the problem before I added the…
1
vote
1 answer

How to set TextBlock background color for HighContrast Theme in UWP

In Microsoft UWP application I tried to set a TextBlock background color using Grid in XAML. It was okay for default theme. But When I enable HighContrast Theme, only the Filled Text portion is black color; while remaining portion of the TextBlock…
Abu Raihan
  • 87
  • 8
1
vote
0 answers

Visual Studio Code selected text color in High Contrast Theme

The text color changes to black when selected in Visual Studio Code. This happens only in High Contrast Theme. Though I can change the color in settings.json and editor.selectionForeground, what I want is to reserve the original color. How can I do…
n.yoshioka
  • 11
  • 2
1
vote
1 answer

How to handle color contrast accessibility issue on disabled button

There's a button conditionally disabled, and the disabled button is greyed out. The background color is #e0e0e0 and the text color is #a6a6a6, so the contrast ratio is 1.84 out of a required 4.5. I was wondering if there's any way to skip the…
doobean
  • 1,929
  • 4
  • 19
  • 27
1
vote
0 answers

How do I remove the noise while improving the contrast of a real time video?

I have been working on this code which is a video captured by an IR camera. I need to improve the contrast while omitting the noise and this shadow cast that occurs. I have simply applied CLAHE and Histogram Equalization with medianBlur in python…
1
vote
1 answer

High contrast CSS or JavaScript detection for Firefox

I'm trying to style a high contrast version of a site. The following code works fine for IE and Edge, but I need to detect Firefox. @media screen and (-ms-high-contrast: active) {} I could also use JavaScript detection for high contrast and…
UserEsp
  • 415
  • 1
  • 7
  • 29
1
vote
2 answers

High contrast mode on Mozilla browser

I am not able to use any media query for high contrast mode in the Mozilla (Firefox) browser. The media queries given are working fine on IE and edge, but not working on Mozilla. The images are not coming on Mozilla in high contrast mode. Can…
sachin patil
  • 61
  • 1
  • 9
1
vote
0 answers

How to fix high contrast setting for text control in wix toolset

Disabled user control in installer GUI is not being highlighted (in green border) in high contrast windows theme, but password controls works correctly. But configuration for both elements is same. How to fix that or is it even possible to fix that…
Deep
  • 5,772
  • 2
  • 26
  • 36
1
vote
2 answers

JTree view under High Contrast Mode

I have one issue related to JTree swing component, I want to use JTree under Windows high contrast Mode, but it never shows tree nodes according to windows High contrast theme. Jtree view Under Normal Mode Jtree view Under High Contrast…
Preetam Purbia
  • 5,736
  • 3
  • 24
  • 26
1
vote
1 answer

how can I modify the brightness&contrast automatically on my images with fiji macro?

I try to write a very simple macro with Fiji in order to merge channels and enhance contrast automatically. dir = getDirectory("Select input directory"); out = getDirectory("Select destination directory"); files = getFileList(dir); //foreach…
EaudeRoche
  • 207
  • 4
  • 19
1
vote
2 answers

How to override PhoneAccentBrush on High Contrast WP8.1

I have a problem in my app. On all screens I have hard-coded "White" Background and for text color (Foreground) I use PhoneAccentBrush. Everything was fine before I check high-contrast option in ease of access. Then PhoneAccentBrush turns white, and…
Piachu
  • 195
  • 1
  • 13
1
vote
0 answers

Shift a color in order to obtain a specific contrast ratio

Is there a way, given two colors (let's call them first color and second color) to figure out what color the second color must be changed to in order to obtain a contrast ratio of 4.5? In other words, what amount do we need to shift the second color…
BigBug
  • 6,202
  • 23
  • 87
  • 138
1
vote
1 answer

Restyling AvalonDock for high contrast themes?

I'm using AvalonDock in a project. For the sake of this example, it is structured as follows:
Alan Spark
  • 8,152
  • 8
  • 56
  • 91