1. Luis Pesaressi
  2. PowerBuilder
  3. Friday, 1 October 2021 09:27 AM UTC

Hi why this custom Theme not work   this code not work  "w_logon.gb_1":  not change color, but if change for "groupbox":   work fine 

thanks

Luis

{
"meta-info":
{
"version":"190"
},
"window":
{
"drawing":true,
"background-color":"#FFFFFF",
"title":
{
"active-state":
{
"background-color":"#2563EB",
"text-font":{"color":"#FFFFFF"}
},
"inactive-state":
{
"background-color":"#FFFFFF",
"text-font":{"color":"#999999"}
}
},
"statusbar":
{
"background-color":"#E6E6E6",
"text-font":{"color":"#000000"}
},
"border":
{
"margin":[1,30,1,1],
"active-state":
{
"border-color":"#2563EB"
},
"inactive-state":
{
"border-color":"#CCCCCC"
}
},
"mdiclient":
{
"background-color":"#BFBFBF"
},
"min-button":
{
"normal-state":
{
"button-image":{"file":"window-min-button-normal.bmp"}
},
"hover-state":
{
"button-image":{"file":"window-min-button-hover.bmp"}
},
"pressed-state":
{
"button-image":{"file":"window-min-button-pressed.bmp"}
},
"disabled-state":
{
"button-image":{"file":"window-min-button-disabled.bmp"}
},
"inactive-state":
{
"button-image":{"file":"window-min-button-inactive.bmp"}
}
},
"max-button":
{
"normal-state":
{
"button-image":{"file":"window-max-button-normal.bmp"}
},
"hover-state":
{
"button-image":{"file":"window-max-button-hover.bmp"}
},
"pressed-state":
{
"button-image":{"file":"window-max-button-pressed.bmp"}
},
"disabled-state":
{
"button-image":{"file":"window-max-button-disabled.bmp"}
},
"inactive-state":
{
"button-image":{"file":"window-max-button-inactive.bmp"}
}
},
"restore-button":
{
"normal-state":
{
"button-image":{"file":"window-restore-button-normal.bmp"}
},
"hover-state":
{
"button-image":{"file":"window-restore-button-hover.bmp"}
},
"pressed-state":
{
"button-image":{"file":"window-restore-button-pressed.bmp"}
},
"disabled-state":
{
"button-image":{"file":"window-restore-button-disabled.bmp"}
},
"inactive-state":
{
"button-image":{"file":"window-restore-button-inactive.bmp"}
}
},
"close-button":
{
"normal-state":
{
"button-image":{"file":"window-close-button-normal.bmp"}
},
"hover-state":
{
"button-image":{"file":"window-close-button-hover.bmp"}
},
"pressed-state":
{
"button-image":{"file":"window-close-button-pressed.bmp"}
},
"disabled-state":
{
"button-image":{"file":"window-close-button-disabled.bmp"}
},
"inactive-state":
{
"button-image":{"file":"window-close-button-inactive.bmp"}
}
},
"help-button":
{
"normal-state":
{
"button-image":{"file":"window-help-button-normal.bmp"}
},
"hover-state":
{
"button-image":{"file":"window-help-button-hover.bmp"}
},
"pressed-state":
{
"button-image":{"file":"window-help-button-pressed.bmp"}
},
"disabled-state":
{
"button-image":{"file":"window-help-button-disabled.bmp"}
},
"inactive-state":
{
"button-image":{"file":"window-help-button-inactive.bmp"}
}
}
},
"w_logon.gb_1":
{
"drawing":true,
"background-transparent":true,
"normal-state":
{
"border-color":"#CCCCCC",
"background-color":"#FFFFFF",
"text-font":{"color":"#000000"}
},
"disabled-state":
{
"border-color":"#CCCCCC",
"background-color":"#FFFFFF",
"text-font":{"color":"#999999"}
}
}
}

Ken Guo @Appeon Accepted Answer Pending Moderation
  1. Saturday, 9 October 2021 08:03 AM UTC
  2. PowerBuilder
  3. # 1

Hi Luis,

 

I can’t reproduce the issue with the JSON you provided. It sets the color for gb_1 correctly.

I suggest that you check if you have the correct window name. In the meantime, I suggest that you try the following simplified JSON for testing.

 

{

                "meta-info":

                {

                                "version":"190"

                },

                "w_logon.gb_1":

                {

                                "drawing":true,

                                "background-transparent":true,

                                "normal-state":

                                {

                                                "border-color":"#CCCCCC",

                                                "background-color":"#FFFFFF",

                                                "text-font":{"color":"#00CC00"}

                                },

                                "disabled-state":

                                {

                                                "border-color":"#CCCCCC",

                                                "background-color":"#FFFFFF",

                                                "text-font":{"color":"#999999"}

                                }

                }

}

 

Regards,

Ken

Comment
  1. Luis Pesaressi
  2. Saturday, 9 October 2021 09:07 AM UTC
HI

yes the name of windows is right I try change name but NOT work ..... I copy the samples and not work

my version of PB is 2019 R3 Build 2728 Runtime 19.2.0.2728



Thanks



Luis
  1. Helpful
  1. Ken Guo @Appeon
  2. Saturday, 9 October 2021 09:24 AM UTC
If you can reproduce this issue all the time, I suggest you go to Appeon Support System at https://www.appeon.com/standardsupport/newbug to submit a ticket and upload your small case(include PBL, custom theme json files) there for Appeon Support to analyze.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.