From 7a4c4b1a29a085348783c142fe4e81e334babe31 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 17 Apr 2024 16:02:29 +0200 Subject: [PATCH] a --- hui/src/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hui/src/macros.rs b/hui/src/macros.rs index 5318a33..c91414a 100644 --- a/hui/src/macros.rs +++ b/hui/src/macros.rs @@ -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(); }