-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RichTextEditorStyle not supporting colorScheme #215
Comments
HI, I have the same problem. I found out that the text color is in the formatting of the NSAttributedString. This means that you always have to adjust the color when changing the color scheme. Be careful, though, if you have already formatted individual elements in the text in color. And when printing, you have to reset the textColor back to black or whatever you need for printing. But you can do:
|
Forgot a func you need.
|
Thank you @karlmira 🙏 |
I'm using RichTextEditorStyle to set up different color and font for editor using below code
Here
.textPrimary
is added in color assets for both dark and light mode, but it's not dynamically adapting to light and dark mode, and when i reopen a file it's using color fromAnyAppearance
for font instead of using color according to colorScheme(light or dark)I would really appreciate any help for this.
The text was updated successfully, but these errors were encountered: