Enabling system wide higher contrast lowers contrast in Nio
Nio shows low contrast text bubbles, when Dark Mode is enabled.
Ah, well that's certainly unfortunate... 🙈 Thanks for the issue! I'll definitely have to validate the current styles in high-contrast mode.
Thanks 👍
I pushed a new beta with some changes regarding this yesterday. Could you have a look and see if that improves things? Thanks!
Yes, just tried it. Thanks, a lot better than before 👍 Maybe it would be even better if text color stays white? More like in iMessage, but with a more colorful bubble?
I was thinking the same and would prefer it that way, but right now I'm using SwiftUI's default colors (e.g. Color.purple), which unfortunately doesn't give me access to the actual underlying color to update that. SwiftUI just assumes it knows best when high-contrast-mode is enabled and makes the purple lighter in dark-mode. That's why I opted to change the text color for now.
I'll keep the issue here open, since I'd very much prefer it the other way around as well.
I know @regexident has ranted about the colors before. Maybe he has an idea on how to handle this nicely?
Given that SwiftUI's Color essentially makes use of UIKit's UIColor and named Color (e.g. Color.red) maps to its corresponding named UIColor I would just do the color handling in UIColor and then create a Color from it via init(_ color: UIColor).
https://github.com/yannickl/DynamicColor has a bunch of nice methods for modifying colors.
Just make sure to wrap things in UIColor(dynamicProvider:) to ensure things work with dark mode.
Ah, that's fantastic!