Re: How do we redefine system colors
Re: How do we redefine system colors
- Subject: Re: How do we redefine system colors
- From: Chris Fleizach via Accessibility-dev <email@hidden>
- Date: Fri, 14 Jul 2023 12:50:55 -0700
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:
>
> Hi Chris
> 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?
>
> Thank you
> Ted
>
>
> 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
>
> Hi
>
> Are you asking how to create new colors or how to replace the colors you get
> from things like UIColor.red ?
>
> Thanks
>
>
>> On Jul 12, 2023, at 3:18 PM, Drake, Ted via Accessibility-dev
>> <email@hidden> wrote:
>>
>> Hi everyone
>>
>> 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
>> <https://developer.apple.com/documentation/swiftui/color>, 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.
>>
>> Thank you
>>
>> Ted Drake | Accessibility and Inclusive Design Leader, Intuit Design System
>> Cell Phone: (650) 245-4825
>> Pronouns: He/Him/His | Work Style Guide
>> <https://www.last-child.com/working-style-for-ted-drake/>
>> Email: email@hidden <mailto:email@hidden>
>>
>> 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
>>
>> <image001.png>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Accessibility-dev mailing list (email@hidden
>> <mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden <mailto: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