The painter, allocated by `Ui::allocate_painter`, doesn't inherit properties from the `Ui` object, leading to improper widget rendering in `egui`. Specifically, if the `Ui` object is disabled, the corresponding painter should also be disabled.