This commit is contained in:
griffi-gh 2024-04-17 16:02:29 +02:00
parent eda2ddcc0f
commit 7a4c4b1a29

View file

@ -127,7 +127,7 @@ macro_rules! rect_frame {
_color_is_set |= stringify!($ident) == "color";
}
)+
// set color to white if image is set but color is left as default
// set color to white if image is explicitly set to Some(...) but color is left as the default
if _frame.image.is_some() && _image_is_set && !_color_is_set {
_frame.color = (1., 1., 1., 1.).into();
}