mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-21 22:58:42 -06:00
a
This commit is contained in:
parent
eda2ddcc0f
commit
7a4c4b1a29
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue