Bug 147786 - Web Inspector: AX: Support increased contrast mode
Summary: Web Inspector: AX: Support increased contrast mode
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-07 10:16 PDT by Timothy Hatcher
Modified: 2016-12-13 15:39 PST (History)
5 users (show)

See Also:


Attachments
Screenshot (528.70 KB, image/png)
2015-08-07 10:16 PDT, Timothy Hatcher
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2015-08-07 10:16:41 PDT
Created attachment 258508 [details]
Screenshot

We should make our toolbar, borders, etc. match the AppKit controls when increased contrast is enabled in Accessibility system preferences. See screenshot.
Comment 1 Nikita Vasilyev 2015-08-07 10:22:52 PDT
How do we detect in Web Inspector that the increased contrast mode is turned on? Can we set something like "increased-contrast-mode" CSS class name on body?
Comment 2 Timothy Hatcher 2015-08-07 10:26:14 PDT
Yeah, we would need to add a class. We would likely add a function on InspectorFrontEndHost to return the state of this mode. I'm not sure what API to use to know when you are in that mode. We also need to know when it changes to update the Inspector live.
Comment 3 Matt Baker 2015-08-07 11:53:22 PDT
For OS X, AppKit's NSWorkspace class exposes the accessibilityDisplayShouldIncreaseContrast property and 
NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification notification.

For the Windows port, winuser.h defines the SystemParametersInfo function:

HIGHCONTRAST highContrast;
highContrast.cbSize = sizeof(HIGHCONTRAST);
SystemParametersInfo(SPI_GETHIGHCONTRAST, sizeof(HIGHCONTRAST), & highContrast, 0);

As for detecting changes, I think we'd want to handle the WM_SETTINGCHANGE message, which is sent to all top-level windows when a system parameter changes. But I'm not positive about this.
Comment 4 David Kilzer (:ddkilzer) 2016-09-09 11:19:58 PDT
<rdar://problem/28228734>