[GH-ISSUE #3063] [Bug] Callout Text Theme Issues #1347

Closed
opened 2026-03-23 20:48:08 +00:00 by mirror · 3 comments
Owner

Originally created by @AmanNegi on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3063

Originally assigned to: @AmanNegi on GitHub.

Bug Description

We offer users the ability to choose a color for the callout in our application. However, this customization option often leads to issues such as unreadable text and poor visibility.

How to Reproduce

Simply add a callout item, and try to change to different colors and you will find wierd contrast theming issues.

Expected Behavior

To rectify this problem, we propose implementing a solution where a specific text color is automatically assigned based on the chosen background color.

Operating System

Ubuntu

AppFlowy Version(s)

Latest

Screenshots

callout

Additional Context

No response

Originally created by @AmanNegi on GitHub (Jul 26, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3063 Originally assigned to: @AmanNegi on GitHub. ### Bug Description We offer users the ability to choose a color for the callout in our application. However, this customization option often leads to issues such as unreadable text and poor visibility. ### How to Reproduce Simply add a callout item, and try to change to different colors and you will find wierd contrast theming issues. ### Expected Behavior To rectify this problem, we propose implementing a solution where a specific text color is automatically assigned based on the chosen background color. ### Operating System Ubuntu ### AppFlowy Version(s) Latest ### Screenshots ![callout](https://github.com/AppFlowy-IO/AppFlowy/assets/37607224/61b7b174-b21e-4b82-ba14-69fcf8f241a0) ### Additional Context _No response_
Author
Owner

@hyj1204 commented on GitHub (Jul 26, 2023):

Perhaps it's a good idea to update the background color choices for the callout to address the visiable issue with the current dark mode.

image

The default text color in the data format is actually null for the font color attribute. It is rendered based on the current theme. Therefore, I suggest not changing the text color and instead adjusting the background colors for the callout to better suit the dark mode.

<!-- gh-comment-id:1652079726 --> @hyj1204 commented on GitHub (Jul 26, 2023): Perhaps it's a good idea to update the background color choices for the callout to address the visiable issue with the current dark mode. <img width="321" alt="image" src="https://github.com/AppFlowy-IO/AppFlowy/assets/14248245/588a25d0-3da6-431d-9800-69bf82fea01f"> The default text color in the data format is actually `null` for the font color attribute. It is rendered based on the current theme. Therefore, I suggest not changing the text color and instead adjusting the background colors for the callout to better suit the dark mode.
Author
Owner

@AmanNegi commented on GitHub (Jul 27, 2023):

@hyj1204 Yeah, I guess we should go ahead with that. I will try to come up with a list of colors matching previous ones, which should go well in both themes.

<!-- gh-comment-id:1652821859 --> @AmanNegi commented on GitHub (Jul 27, 2023): @hyj1204 Yeah, I guess we should go ahead with that. I will try to come up with a list of colors matching previous ones, which should go well in both themes.
Author
Owner

@AmanNegi commented on GitHub (Jul 29, 2023):

@hyj1204 It seems very viable to tone down the colors(opacity) for dark mode. Here's a PR I created with a Demo for same:

https://github.com/AppFlowy-IO/AppFlowy/pull/3079

<!-- gh-comment-id:1656566175 --> @AmanNegi commented on GitHub (Jul 29, 2023): @hyj1204 It seems very viable to tone down the colors(opacity) for dark mode. Here's a PR I created with a Demo for same: https://github.com/AppFlowy-IO/AppFlowy/pull/3079
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#1347
No description provided.