Thanks

El Sunday, July 4, 2021 a la(s) 9:04:22 PM UTC-5, Shai Almog escribió:

> Hi,
> the current check box isn't in the theme. It's a material icon that's a 
> special case.
> If you replace it you need to use a MultiImage so the size will be 
> different based on the device density so there's no accurate size in pixels.
>
> In the developer guide: https://www.codenameone.com/developer-guide.html
>
> Look for the code setRadioButtonImages.
>
> The code for CheckBoxes is almost identical with setCheckBoxImages 
> instead: 
> https://www.codenameone.com/javadoc/com/codename1/ui/plaf/DefaultLookAndFeel.html#setCheckBoxImages-com.codename1.ui.Image-com.codename1.ui.Image-com.codename1.ui.Image-com.codename1.ui.Image-
>
> Alternatively you can use a few theme constants: 
> https://www.codenameone.com/developer-guide.html#theme-constants-section
> Specifically: checkBoxCheckDisImage, checkBoxCheckedImage, 
> checkBoxUncheckDisImage and checkBoxUncheckedImage.
>
> On Sunday, July 4, 2021 at 9:03:29 AM UTC+3 [email protected] wrote:
>
>> Hi,
>>
>> I know how to place a new image in the CN1 Designer, but in the case of 
>> components like Check I need to change the background color only of the 
>> check and from what I understand this is achieved by changing the image.
>> I tried to modify the UIID and the results were not good.
>> [image: Muestra.png]
>>
>> 1. How big should the new image be (I imagine it should be png)?
>> 2. Can you download the current image that is in the theme to be able to 
>> manipulate it in an editor?
>>
>

-- 
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/910ed02a-da56-4a1d-9d20-b96bda04826an%40googlegroups.com.

Reply via email to