1
0
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:
Emil Ernerfeldt
2023-12-28 11:16:39 +01:00
committed by GitHub
parent 9dbfb8ce4e
commit e44f54f81f
2 changed files with 62 additions and 27 deletions

View File

@@ -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);
}
});
}