WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
147786
Web Inspector: AX: Support increased contrast mode
https://bugs.webkit.org/show_bug.cgi?id=147786
Summary
Web Inspector: AX: Support increased contrast mode
Timothy Hatcher
Reported
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.
Attachments
Screenshot
(528.70 KB, image/png)
2015-08-07 10:16 PDT
,
Timothy Hatcher
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Nikita Vasilyev
Comment 1
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?
Timothy Hatcher
Comment 2
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.
Matt Baker
Comment 3
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.
David Kilzer (:ddkilzer)
Comment 4
2016-09-09 11:19:58 PDT
<
rdar://problem/28228734
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug