Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 199361

Summary: In GTK platform, Display.getHighContrast() always return false, even if it is high contrast mode.
Product: [Eclipse Project] Platform Reporter: Hui Li <lihuibj>
Component: SWTAssignee: Bogdan Gheorghe <gheorghe>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, snorthov
Version: 3.2Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Hui Li CLA 2007-08-09 02:04:53 EDT
Build ID: M20060629-1905

Steps To Reproduce:
I want to check if it is highcontrast mode in gtk platform, but Display.getHighContrast() always return false, even if it is high contrast mode.
The codes of Display.getHighContrast() in gtk:
public boolean getHighContrast()
{
	checkDevice();
	return false;
}

More information:
Comment 1 Steve Northover CLA 2007-08-09 18:15:42 EDT
GTK has not concept of high contrast mode.  Instead, the user picks a theme that has high contrast.
Comment 2 Steve Northover CLA 2007-08-09 18:17:12 EDT
We WONTFIX this.  The only thing I can think of is to query theme names and check for a string match.  This won't work when the user has a custom theme that is based on a high contrast one.
Comment 3 Paul Webster CLA 2012-11-01 10:54:30 EDT
Bogdan, is this still the case?

PW
Comment 4 Eric Williams CLA 2018-05-14 14:48:45 EDT
As mentioned in comment 1, this is totally OS/theme dependent.