Bug 199361 - In GTK platform, Display.getHighContrast() always return false, even if it is high contrast mode.
Summary: In GTK platform, Display.getHighContrast() always return false, even if it is...
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2007-08-09 02:04 EDT by Hui Li CLA
Modified: 2018-05-14 14:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.