You set opacity to 100. It applies to the entire hierarchy.

On Thursday, December 17, 2020 at 11:17:41 AM UTC+2 P5music wrote:

> So why does it not work?
>
> Il giorno giovedì 17 dicembre 2020 alle 04:34:35 UTC+1 Shai Almog ha 
> scritto:
>
>> Opacity is applied to an entire hierarchy and will impact the children 
>> too. 
>>
>> On Wednesday, December 16, 2020 at 11:29:04 AM UTC+2 P5music wrote:
>>
>>> I used the defaut valuse
>>>
>>> but also using
>>> textParameterValueDialog.setOpaque(true);
>>> textParameterValueDialog.getStyle().setBgColor(ColorUtil.WHITE);
>>> textParameterValueDialog.getStyle().setOpacity(100);
>>> textParameterValueDialog.getDialogStyle().setOpacity(100);
>>>
>>> it is transparent.
>>> Regards
>>>
>>> Il giorno mercoledì 16 dicembre 2020 alle 04:48:11 UTC+1 Shai Almog ha 
>>> scritto:
>>>
>>>> How did you set the transparency of the interaction dialog?
>>>>
>>>> On Tuesday, December 15, 2020 at 6:06:09 PM UTC+2 P5music wrote:
>>>>
>>>>> I am using InteractionDialog to create a little dialog for the user to 
>>>>> input a text value.
>>>>> It works but I see that the InteractionDialog is transparent, and the 
>>>>> TextField is transparent too, foreground color is black for the TextField 
>>>>> but I need that its background is white.
>>>>> I tried to set the background color and the setOpaque(true) but the 
>>>>> TextField is not affected at all, it is the same.
>>>>>
>>>>> editText.getStyle().setBgColor(65536 * 255 + 256 * 255 + 255); 
>>>>> //couldn't use Color.WHITE
>>>>> // or editText.getStyle().setBgColor(ColorUtil.WHITE); doen't change 
>>>>> the bg color
>>>>> editText.setOpaque(true);
>>>>>
>>>>> What's wrong?
>>>>> Thanks, regards
>>>>>
>>>>

-- 
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/54fbab87-0a12-45c7-b1e0-4c187f6adbd0n%40googlegroups.com.

Reply via email to