Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

fix: result text in light mode #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

furkan-guvenc
Copy link

In the example, the result text is always white, so it is impossible to see it in light mode.

Comment on lines +447 to +451
if ctx.style().visuals.dark_mode {
egui::Color32::WHITE
} else {
egui::Color32::BLACK
},
Copy link
Contributor

@kamirr kamirr May 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may not work properly for an arbitrary style, only the default two. I think the right approach is using ctx.style().visuals.text_color().

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants