Re: Invert colors and allow images to remain natural colors
Re: Invert colors and allow images to remain natural colors
- Subject: Re: Invert colors and allow images to remain natural colors
- From: "Drake, Ted" <email@hidden>
- Date: Mon, 20 Feb 2017 00:58:05 +0000
- Thread-topic: Invert colors and allow images to remain natural colors
Thank you James
So if I understand correctly, we would check to see if the user has requested inverted colors, or if the status has changed, and then re-invert the images.
I found this documentation on detecting the preference state.
https://developer.apple.com/reference/uikit/1615167-uiaccessibilityisinvertcolorsena
Once I know the user has set inverted colors, what would you use to flip the images back? Can this be done at the iOS level, or would it use a web view and CSS?
I was looking for something similar to “filter: invert(100%);” within the iOS documentation. Is this where it would be located https://developer.apple.com/reference/uikit/uiimage
Thank you again for your help. I think this would be very helpful for our mobile point of sale application.
Ted
From: James Craig <email@hidden> on behalf of James Craig <email@hidden>
Date: Thursday, February 16, 2017 at 8:35 PM
To: "Drake, Ted" <email@hidden>
Cc: Chris Fleizach <email@hidden>, Apple Accessibility Developer List <email@hidden>
Subject: Re: Invert colors and allow images to remain natural colors
You can do this in the web with: @media (inverted-colors)
There's an example and a test case here: https://webkit.org/b/163564
Only one outstanding bug I know of: https://webkit.org/b/168491
On the native side, you can take a similar approach with either:
iOS:
UIAccessibilityIsInvertColorsEnabled()
UIAccessibilityInvertColorsStatusDidChange
macOS:
accessibilityDisplayShouldInvertColors()
NSWorkspaceAccessibilityDisplayOptionsDidChangeNotification
On Feb 16, 2017, at 12:08 PM, email@hidden wrote:
Is this web or native content?
On Feb 16, 2017, at 11:59 AM, Drake, Ted <email@hidden> wrote:
Hi Chris
I’m at the RSVA conference in Las Vegas and one of the presentations was by one of the Apple Accessibility evangelists. He showed how we could allow a user to invert colors, but allow images to remain in natural colors. He said you could share information on the code that would allow the hardware to not invert images.
Is there documentation on this?
Thanks
Ted Drake | Principal Engineer, Intuit Accessibility
Intuit | simplify the business of lifetm
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
James Craig ∙ Accessibility Design & Quality ∙ email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden