mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 22:30:03 -04:00
Fix text color of disabled widgets (#3744)
* Introduced recently in https://github.com/emilk/egui/pull/3727 * Closes https://github.com/emilk/egui/issues/3732
This commit is contained in:
@@ -458,6 +458,8 @@ impl Painter {
|
||||
|
||||
fn tint_shape_towards(shape: &mut Shape, target: Color32) {
|
||||
epaint::shape_transform::adjust_colors(shape, &|color| {
|
||||
*color = crate::ecolor::tint_color_towards(*color, target);
|
||||
if *color != Color32::PLACEHOLDER {
|
||||
*color = crate::ecolor::tint_color_towards(*color, target);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user