Hi,
Is it possible to set the background-color for a checkbox or a radiobutton from the theme.json file?
We have many screens and are currently looking at making a custom theme to apply across our application.
Please note following image where the Active checkbox is using the background if the datawindow column but i would prefer to set the colour to light blue to match the datawindow itself.
The structure basically looks like this,
"datawindow": {
background-color: light-blue
"dwo-column": {
background-color: white
"checkbox-type" : {
"background-color": light-blue
I've also tried setting "background-transparent": true, however no luck.
I've also tried setting the "checkbox" background-color to light-blue however no luck either.
Cheers,
Cameron
*Edit*
Apologies I don't think I was clear enough, i was primarily hoping to change the background colour of the text, to match the background colour of the datawindow.
For example, The text background here would be blue but the checkbox stay whatever the .bmp or .png is set to or just stay white.
- Cameron Grey-Caminiti
- PowerBuilder
- Tuesday, 5 September 2023 06:57 AM UTC
- Page :
- 1
There are no replies made for this question yet.
However, you are not allowed to reply to this question.
However, you are not allowed to reply to this question.
Could i please confirm that using these pngs would also make the text background transparent for the checkbox - text.
For instance where you have 50s and 60s using different text backgrounds. So in my original message the text is white and the checkbox is white, is there a way to make the text go blue too?
Much appreciated,
Cheers,
Cameron
Actually, there's no need to use themes at all. Just set the background color of the column control to transparent. You can still use a theme to customize the appearance, but it should have no effect on the transparency of the label portion of the checkbox control. For an example, see the additional images that I've attached.
Ronnie
Appreciate the help although the application already has hundreds of windows and going through each one, one by one, to update checkboxes and radiobuttons to transparent would take a considerable amount of time.
Preferably if i can do it via using themes, that would be the best outcome and i would be very happy with it.
Cheers,
Cameron