To make it non-editable you can use send(TextItem, editable, @off).
. A quick look through the source indicates that the background is than painted using an internal elevation
instance that has no externally visible reference. See init_entry_resources()
in x_menu.c
You’d have to go through the same setup as used for the elevation of buttons that do provide user access. Means changing the C code …
Xpce is old