mirror of
https://github.com/griffi-gh/hUI.git
synced 2024-11-22 07:08:42 -06:00
a
This commit is contained in:
parent
fda54e01b3
commit
4b34137375
|
@ -127,7 +127,7 @@ macro_rules! rect_frame {
|
||||||
_color_is_set |= stringify!($ident) == "color";
|
_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 {
|
if _frame.image.is_some() && _image_is_set && !_color_is_set {
|
||||||
_frame.color = (1., 1., 1., 1.).into();
|
_frame.color = (1., 1., 1., 1.).into();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue