<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>GUI GuiderのトピックGUI Guider 1.10.1 omits background style properties when Background Opacity is 0</title>
    <link>https://community.nxp.com/t5/GUI-Guider/GUI-Guider-1-10-1-omits-background-style-properties-when/m-p/2403572#M1902</link>
    <description>&lt;P&gt;Environment&lt;/P&gt;&lt;P&gt;GUI Guider: 1.10.1&lt;BR /&gt;LVGL: 8.3&lt;BR /&gt;Widget: Button&lt;BR /&gt;Style Part: LV_PART_MAIN&lt;BR /&gt;Style State: LV_STATE_DEFAULT&lt;/P&gt;&lt;P&gt;Problem Description&lt;/P&gt;&lt;P&gt;I found a reproducible code-generation issue in GUI Guider 1.10.1.&lt;/P&gt;&lt;P&gt;When a button has a configured background color but its Background Opacity is set to 0, GUI Guider does not generate the corresponding background color property.&lt;/P&gt;&lt;P&gt;This causes unexpected behavior when the background opacity is changed dynamically at runtime.&lt;/P&gt;&lt;P&gt;Reproduction&lt;/P&gt;&lt;P&gt;Create a Button and configure:&lt;/P&gt;&lt;P&gt;Background Color: #F08300&lt;BR /&gt;Background Opacity: 0&lt;/P&gt;&lt;P&gt;Then generate the LVGL 8.3 code.&lt;/P&gt;&lt;P&gt;GUI Guider generates:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;0,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;However, the configured background color is not generated:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Test: Change only Background Opacity from 0 to 1&lt;/P&gt;&lt;P&gt;I changed only the Background Opacity from 0 to 1, while keeping the same Background Color #F08300.&lt;/P&gt;&lt;P&gt;After regenerating the code, GUI Guider generates:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;1,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_grad_dir(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;LV_GRAD_DIR_NONE,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Therefore, the generated code differs depending on whether Background Opacity is exactly 0.&lt;/P&gt;&lt;P&gt;Background Opacity = 0:&lt;BR /&gt;bg_opa is generated&lt;BR /&gt;bg_color is not generated&lt;/P&gt;&lt;P&gt;Background Opacity = 1:&lt;BR /&gt;bg_opa is generated&lt;BR /&gt;bg_color is generated&lt;BR /&gt;other background properties are also generated&lt;/P&gt;&lt;P&gt;Runtime Impact&lt;/P&gt;&lt;P&gt;My application uses the background opacity to indicate the currently selected password digit.&lt;/P&gt;&lt;P&gt;The background color is configured in GUI Guider as #F08300, while the application dynamically changes only the background opacity.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;LV_OPA_COVER,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;For a button whose initial Background Opacity is 0, the generated code does not contain the configured background color.&lt;/P&gt;&lt;P&gt;When the application changes the opacity from 0 to LV_OPA_COVER, the button displays the LVGL theme or default background color instead of the #F08300 color configured in GUI Guider.&lt;/P&gt;&lt;P&gt;The behavior is:&lt;/P&gt;&lt;P&gt;GUI Guider configuration:&lt;BR /&gt;Background Color = #F08300&lt;BR /&gt;Background Opacity = 0&lt;/P&gt;&lt;P&gt;Generated code:&lt;BR /&gt;bg_opa = 0&lt;BR /&gt;bg_color is not generated&lt;/P&gt;&lt;P&gt;Runtime:&lt;BR /&gt;bg_opa is changed to LV_OPA_COVER&lt;/P&gt;&lt;P&gt;Result:&lt;BR /&gt;The default or theme background color is displayed instead of #F08300.&lt;/P&gt;&lt;P&gt;Workaround&lt;/P&gt;&lt;P&gt;Explicitly setting the background color in application code resolves the issue:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(btn,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;LV_OPA_COVER,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Another possible workaround is setting Background Opacity to 1 in GUI Guider, because this causes GUI Guider to generate the configured background color.&lt;/P&gt;&lt;P&gt;However, this changes the initial UI state and is therefore not ideal.&lt;/P&gt;&lt;P&gt;Expected Behavior&lt;/P&gt;&lt;P&gt;Background Color and Background Opacity are separate LVGL style properties.&lt;/P&gt;&lt;P&gt;If the user explicitly configures:&lt;/P&gt;&lt;P&gt;Background Color = #F08300&lt;BR /&gt;Background Opacity = 0&lt;/P&gt;&lt;P&gt;I would expect GUI Guider to preserve both properties in the generated code:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;0,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(btn,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Although bg_color has no visible effect while bg_opa is 0, it becomes relevant when the application dynamically changes bg_opa at runtime.&lt;/P&gt;&lt;P&gt;The current code-generation behavior loses the background color information configured in GUI Guider.&lt;/P&gt;&lt;P&gt;Actual Behavior&lt;/P&gt;&lt;P&gt;GUI Guider 1.10.1 appears to omit background style properties when Background Opacity is 0.&lt;/P&gt;&lt;P&gt;Changing only the opacity from 0 to 1 causes the background color and other background properties to be generated again.&lt;/P&gt;&lt;P&gt;Steps to Reproduce&lt;/P&gt;&lt;P&gt;Create a Button in GUI Guider 1.10.1.&lt;/P&gt;&lt;P&gt;Set Background Color to #F08300.&lt;/P&gt;&lt;P&gt;Set Background Opacity to 0.&lt;/P&gt;&lt;P&gt;Generate LVGL 8.3 code.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_opa with value 0 is generated.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_color with #F08300 is not generated.&lt;/P&gt;&lt;P&gt;Change only Background Opacity from 0 to 1.&lt;/P&gt;&lt;P&gt;Generate the code again.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_color with #F08300 is now generated.&lt;/P&gt;&lt;P&gt;At runtime, change the opacity of the original button to LV_OPA_COVER.&lt;/P&gt;&lt;P&gt;Observe that the configured background color is not displayed unless bg_color is explicitly set by the application.&lt;/P&gt;&lt;P&gt;Question&lt;/P&gt;&lt;P&gt;Is this an intentional code-size optimization in GUI Guider 1.10.1, or is it a code-generation issue?&lt;/P&gt;&lt;P&gt;If this optimization is intentional, could GUI Guider provide an option to preserve background properties when Background Opacity is 0?&lt;/P&gt;&lt;P&gt;Runtime applications commonly change LVGL style properties dynamically, so omitting bg_color based only on its initial opacity can result in runtime behavior that differs from the UI configuration.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2026 07:15:52 GMT</pubDate>
    <dc:creator>zzjgood</dc:creator>
    <dc:date>2026-08-11T07:15:52Z</dc:date>
    <item>
      <title>GUI Guider 1.10.1 omits background style properties when Background Opacity is 0</title>
      <link>https://community.nxp.com/t5/GUI-Guider/GUI-Guider-1-10-1-omits-background-style-properties-when/m-p/2403572#M1902</link>
      <description>&lt;P&gt;Environment&lt;/P&gt;&lt;P&gt;GUI Guider: 1.10.1&lt;BR /&gt;LVGL: 8.3&lt;BR /&gt;Widget: Button&lt;BR /&gt;Style Part: LV_PART_MAIN&lt;BR /&gt;Style State: LV_STATE_DEFAULT&lt;/P&gt;&lt;P&gt;Problem Description&lt;/P&gt;&lt;P&gt;I found a reproducible code-generation issue in GUI Guider 1.10.1.&lt;/P&gt;&lt;P&gt;When a button has a configured background color but its Background Opacity is set to 0, GUI Guider does not generate the corresponding background color property.&lt;/P&gt;&lt;P&gt;This causes unexpected behavior when the background opacity is changed dynamically at runtime.&lt;/P&gt;&lt;P&gt;Reproduction&lt;/P&gt;&lt;P&gt;Create a Button and configure:&lt;/P&gt;&lt;P&gt;Background Color: #F08300&lt;BR /&gt;Background Opacity: 0&lt;/P&gt;&lt;P&gt;Then generate the LVGL 8.3 code.&lt;/P&gt;&lt;P&gt;GUI Guider generates:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;0,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;However, the configured background color is not generated:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Test: Change only Background Opacity from 0 to 1&lt;/P&gt;&lt;P&gt;I changed only the Background Opacity from 0 to 1, while keeping the same Background Color #F08300.&lt;/P&gt;&lt;P&gt;After regenerating the code, GUI Guider generates:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;1,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_grad_dir(ui-&amp;gt;screen_password_btn_15,&lt;BR /&gt;LV_GRAD_DIR_NONE,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Therefore, the generated code differs depending on whether Background Opacity is exactly 0.&lt;/P&gt;&lt;P&gt;Background Opacity = 0:&lt;BR /&gt;bg_opa is generated&lt;BR /&gt;bg_color is not generated&lt;/P&gt;&lt;P&gt;Background Opacity = 1:&lt;BR /&gt;bg_opa is generated&lt;BR /&gt;bg_color is generated&lt;BR /&gt;other background properties are also generated&lt;/P&gt;&lt;P&gt;Runtime Impact&lt;/P&gt;&lt;P&gt;My application uses the background opacity to indicate the currently selected password digit.&lt;/P&gt;&lt;P&gt;The background color is configured in GUI Guider as #F08300, while the application dynamically changes only the background opacity.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;LV_OPA_COVER,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;For a button whose initial Background Opacity is 0, the generated code does not contain the configured background color.&lt;/P&gt;&lt;P&gt;When the application changes the opacity from 0 to LV_OPA_COVER, the button displays the LVGL theme or default background color instead of the #F08300 color configured in GUI Guider.&lt;/P&gt;&lt;P&gt;The behavior is:&lt;/P&gt;&lt;P&gt;GUI Guider configuration:&lt;BR /&gt;Background Color = #F08300&lt;BR /&gt;Background Opacity = 0&lt;/P&gt;&lt;P&gt;Generated code:&lt;BR /&gt;bg_opa = 0&lt;BR /&gt;bg_color is not generated&lt;/P&gt;&lt;P&gt;Runtime:&lt;BR /&gt;bg_opa is changed to LV_OPA_COVER&lt;/P&gt;&lt;P&gt;Result:&lt;BR /&gt;The default or theme background color is displayed instead of #F08300.&lt;/P&gt;&lt;P&gt;Workaround&lt;/P&gt;&lt;P&gt;Explicitly setting the background color in application code resolves the issue:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(btn,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;LV_OPA_COVER,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Another possible workaround is setting Background Opacity to 1 in GUI Guider, because this causes GUI Guider to generate the configured background color.&lt;/P&gt;&lt;P&gt;However, this changes the initial UI state and is therefore not ideal.&lt;/P&gt;&lt;P&gt;Expected Behavior&lt;/P&gt;&lt;P&gt;Background Color and Background Opacity are separate LVGL style properties.&lt;/P&gt;&lt;P&gt;If the user explicitly configures:&lt;/P&gt;&lt;P&gt;Background Color = #F08300&lt;BR /&gt;Background Opacity = 0&lt;/P&gt;&lt;P&gt;I would expect GUI Guider to preserve both properties in the generated code:&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_opa(btn,&lt;BR /&gt;0,&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;/P&gt;&lt;P&gt;lv_obj_set_style_bg_color(btn,&lt;BR /&gt;lv_color_hex(0xF08300),&lt;BR /&gt;LV_PART_MAIN | LV_STATE_DEFAULT);&lt;BR /&gt;Although bg_color has no visible effect while bg_opa is 0, it becomes relevant when the application dynamically changes bg_opa at runtime.&lt;/P&gt;&lt;P&gt;The current code-generation behavior loses the background color information configured in GUI Guider.&lt;/P&gt;&lt;P&gt;Actual Behavior&lt;/P&gt;&lt;P&gt;GUI Guider 1.10.1 appears to omit background style properties when Background Opacity is 0.&lt;/P&gt;&lt;P&gt;Changing only the opacity from 0 to 1 causes the background color and other background properties to be generated again.&lt;/P&gt;&lt;P&gt;Steps to Reproduce&lt;/P&gt;&lt;P&gt;Create a Button in GUI Guider 1.10.1.&lt;/P&gt;&lt;P&gt;Set Background Color to #F08300.&lt;/P&gt;&lt;P&gt;Set Background Opacity to 0.&lt;/P&gt;&lt;P&gt;Generate LVGL 8.3 code.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_opa with value 0 is generated.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_color with #F08300 is not generated.&lt;/P&gt;&lt;P&gt;Change only Background Opacity from 0 to 1.&lt;/P&gt;&lt;P&gt;Generate the code again.&lt;/P&gt;&lt;P&gt;Observe that lv_obj_set_style_bg_color with #F08300 is now generated.&lt;/P&gt;&lt;P&gt;At runtime, change the opacity of the original button to LV_OPA_COVER.&lt;/P&gt;&lt;P&gt;Observe that the configured background color is not displayed unless bg_color is explicitly set by the application.&lt;/P&gt;&lt;P&gt;Question&lt;/P&gt;&lt;P&gt;Is this an intentional code-size optimization in GUI Guider 1.10.1, or is it a code-generation issue?&lt;/P&gt;&lt;P&gt;If this optimization is intentional, could GUI Guider provide an option to preserve background properties when Background Opacity is 0?&lt;/P&gt;&lt;P&gt;Runtime applications commonly change LVGL style properties dynamically, so omitting bg_color based only on its initial opacity can result in runtime behavior that differs from the UI configuration.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2026 07:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/GUI-Guider-1-10-1-omits-background-style-properties-when/m-p/2403572#M1902</guid>
      <dc:creator>zzjgood</dc:creator>
      <dc:date>2026-08-11T07:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: GUI Guider 1.10.1 omits background style properties when Background Opacity is 0</title>
      <link>https://community.nxp.com/t5/GUI-Guider/GUI-Guider-1-10-1-omits-background-style-properties-when/m-p/2404469#M1904</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/265487"&gt;@zzjgood&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can reproduce the behavior you described. I think this is a code-generation issue. If the user explicitly configures a Background Color, GUI Guider should preserve the corresponding bg_color code even when the initial Background Opacity is 0, or provide an option to preserve background style properties for transparent objects. I will report this to the GUI-Guider team for further fix. In addition, according to our internal escalation process, we would appreciate it if you could provide the following information:&lt;/P&gt;
&lt;P&gt;- Which NXP product are you using?&lt;BR /&gt;- What is your end application?&lt;/P&gt;
&lt;P class=""&gt;The current practical workaround is to explicitly set both the background color and opacity in the application code:&lt;/P&gt;
&lt;DIV class="text-left mx-auto flex h-full min-h-0 w-full"&gt;
&lt;DIV class="relative size-full overflow-auto rounded-none border border-border shadow-lg"&gt;&lt;BUTTON class="gap-2 whitespace-nowrap transition-colors disabled:pointer-events-none disabled:opacity-50 [&amp;amp;_svg]:pointer-events-none [&amp;amp;_svg:not([class*='size-'])]:size-4 [&amp;amp;_svg]:shrink-0 font-medium hover:bg-muted hover:text-foreground sticky top-2 right-2 -mt-8 ml-auto flex size-8 items-center justify-center rounded-md p-1.5 text-foreground hover:ring-2 hover:ring-muted-foreground focus:outline-none focus:ring-2 focus:ring-muted-foreground" data-state="closed" data-slot="tooltip-trigger"&gt;&lt;SPAN class="sr-only"&gt;Copy&lt;/SPAN&gt;&lt;/BUTTON&gt;
&lt;PRE&gt;&lt;CODE class="language-javascript"&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;lv_obj_set_style_bg_color&lt;/SPAN&gt;&lt;SPAN class="token"&gt;(&lt;/SPAN&gt;btn&lt;SPAN class="token"&gt;,&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN&gt;                          &lt;SPAN class="token"&gt;lv_color_hex&lt;/SPAN&gt;&lt;SPAN class="token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token"&gt;0xF08300&lt;/SPAN&gt;&lt;SPAN class="token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token"&gt;,&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN&gt;                          &lt;SPAN class="token"&gt;LV_PART_MAIN&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="token"&gt;LV_STATE_DEFAULT&lt;/SPAN&gt;&lt;SPAN class="token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token"&gt;;&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class="token"&gt;lv_obj_set_style_bg_opa&lt;/SPAN&gt;&lt;SPAN class="token"&gt;(&lt;/SPAN&gt;btn&lt;SPAN class="token"&gt;,&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN&gt;                        &lt;SPAN class="token"&gt;LV_OPA_COVER&lt;/SPAN&gt;&lt;SPAN class="token"&gt;,&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;SPAN&gt;                        &lt;SPAN class="token"&gt;LV_PART_MAIN&lt;/SPAN&gt; &lt;SPAN class="token"&gt;|&lt;/SPAN&gt; &lt;SPAN class="token"&gt;LV_STATE_DEFAULT&lt;/SPAN&gt;&lt;SPAN class="token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hop it helps.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2026 09:03:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/GUI-Guider/GUI-Guider-1-10-1-omits-background-style-properties-when/m-p/2404469#M1904</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2026-08-13T09:03:32Z</dc:date>
    </item>
  </channel>
</rss>

