<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to change background color of M5Msgbox]]></title><description><![CDATA[<p dir="auto">The <a href="https://docs.m5stack.com/en/mpy/display/m5stack_lvgl" target="_blank" rel="noopener noreferrer nofollow ugc">documentation of the M5 LVGL API</a> does not state a method for specifying the background color of a M5Msgbox.<br />
However, I found that a M5Msgbox object has a style property which has a set_bg_color method . So I tried this:</p>
<p dir="auto">myMsgboxObj.style.set_bg_color(lvgl.STATE.DEFAULT, lvgl.color_hex(0x888888))</p>
<p dir="auto">This does not produce an error but meither does it change the backgound color of the box.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://community.m5stack.com/topic/5014/how-to-change-background-color-of-m5msgbox</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 17:55:35 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5014.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Jan 2023 16:30:57 GMT</pubDate><ttl>60</ttl></channel></rss>