The system won’t automatically modify your own colors, but you could implement a custom accessor for your “intuitRed” static property that checks the current context (e.g., checking whether the system is in dark mode, querying for various accessibility settings, etc.) and returns a different color value depending on that context.On Jul 18, 2023, at 7:21 PM, Drake, Ted via Accessibility-dev <email@hidden> wrote:
Thank you Chris
If I understand correctly. We cannot overwrite the standard colors. But we could define our own color, like “intuitRed”. We could then use UIColor.intuitRed and the operating system will modify that color when someone requests dark mode
and/or increased contrast.
Our initial concern wasn’t about the colors not adapting to user preferences. It was about the default red, and other colors, not providing 4.5:1 contrast in the default state.
Thank you for your help.
Ted
From: Chris Fleizach <email@hidden>
Date: Friday, July 14, 2023 at 12:57 PM
To: "Drake, Ted" <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: How do we redefine system colors
The system colors do change automatically when increase contrast is enabled.
We have different colors for light and dark mode, but there’s no algorithm, it’s just a different RGB value.
Are you seeing specific examples where Increase Contrast gives you lower contrast colors in cases? It’s possible it could be a bug.
To answer your first question directly - there’s no way to override UIColor values, but you could add your own colors and have those respond to increase contrast.
On Jul 14, 2023, at 11:32 AM, Drake, Ted <email@hidden> wrote:
We’d like to redefine UIColor.red. I’m just using red as an example. But we want to maintain the flexibility of red using a different hue/value when in dark mode and/or with high contrast setting. What I’ve seen is how to redefine red,
but not what is needed to modify the dark and accessible versions. Is this something the UIColor does automatically? Is there an algorithm that takes a new red hue and creates the multiple versions?
From: Chris Fleizach <email@hidden>
Date: Thursday, July 13, 2023 at 3:10 PM
To: "Drake, Ted" <email@hidden>
Cc: "email@hidden" <email@hidden>
Subject: Re: How do we redefine system colors
Are you asking how to create new colors or how to replace the colors you get from things like UIColor.red ?
On Jul 12, 2023, at 3:18 PM, Drake, Ted via Accessibility-dev <email@hidden> wrote:
Does Apple have a tutorial on how to redefine the system colors to maintain flexibility but also allow us to use our color palettes and increase contrast?
I found the documentation for defining colors, but I don’t see how you would define the
colors for Red (Default light), Red (Default Dark), red (accessible light), and red (accessible dark). I would expect it is like redefining the font family in Dynamic Text.
Ted Drake | Accessibility
and Inclusive Design Leader, Intuit Design System
Cell Phone: (650) 245-4825
Intuit products are more than web, desktop, and mobile applications. We build the products that enable people to live independent lives. They manage their finances,
start businesses, hire employees, and develop their careers. Our goal within the Intuit Accessibility team is to ensure our products reach everyone, regardless of their physical, sensory, or cognitive ability.
Intuit | Powering
Prosperitytm
_______________________________________________
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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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
|