Containers must always be transparent. Doing something like that will cause
serious side effects and destroy your performance. Using gradients from
white to white would also cause such an issue.
There's no getStyles() method.
I'm guessing you didn't use setBgTransparency to 255.
On Tuesday, May 11, 2021 at 10:49:32 PM UTC+3 P5music wrote:
> My CodenameOne app user interface has strange background color that I am
> not able to get rid of.
> In the attached image you can see that the background is gray.
> I want that it is white.
> A general theme is what is loaded at startup.
> Then
> I made some attempts:
> 1 - I created an item for containers inside the main theme with
> background=gradient white->white
> That caused that a white curtain covered all the user interface.
> 2 - I created another theme file: white_container_theme with just one
> item, the same of above for white container background
> That also had no effect, it was assigned with the code provided below
>
> Resources theme = null;
> try {
> theme = Resources.openLayered("/white_container_theme");
> } catch (IOException e) {
>
> }
> area.setInlineStylesTheme(theme);
> 3 - assigned a bg color
> area.getStyles().setBackGroundColor();
>
> No one worked.
>
> Notice that I have other items inside the main theme and they work, for
> example TextFields with border, but TextFields themselves have that gray
> background too and if I add with white->white gradient background to
> their item it has no effect.
>
> Thanks in advance
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/76e42dad-1d57-4f5f-869c-b86dc59f274an%40googlegroups.com.