Skip to content

Text inside buttons ignores override_text_color in 0.32.0 #7367

@Aely0

Description

@Aely0

Describe the bug
When override_text_color is set in Visuals, text inside buttons constructed with strings and string literals ignore the set override color

To Reproduce

let mut visuals = ctx.style().visuals.clone();
visuals.override_text_color = Some(Color32::RED);
ctx.set_visuals(visuals);

// Override text color gets ignored
ui.button("Test text color stuffs");

// Using RichText instead works as expected
ui.button(RichText::new("Test text color stuffs"));
ui.button(RichText::new("Test text color stuffs").color(Color32::GREEN));
Image

Desktop
Linux Wayland

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenegui

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions