1. Magid Slimani
  2. PowerBuilder
  3. Friday, 5 July 2024 07:23 AM UTC

Hello

I'm in pb2022 R3 , I'm using a theme in which I put an exception for a given window .

I followed the documentation but it does not work.
Does anyone have an example that works?
Here's what I put in the theme.json file.

For all windows
"window":
{
"drawing":true,
"background-color": "#FFFFFF",
"title":
{
"active-state":
{
"background-color": "#FFFFFF",
"text-font":{"color":"#18322e"}
},
"inactive-state":
{
"background-color": "#F5F7F8",
"text-font":{"color":"#5d707a"}
}
}

For a particular window :

"w_1_test":
{
"drawing":true,
"background-color":"#f44336",
"title":
{
"active-state":
{
"background-color":"#f44336",
"text-font":{"color":"#18322e"}
},
"inactive-state":
{
"background-color": "#F5F7F8",
"text-font":{"color":"#5d707a"}
}
}

Translated with DeepL.com (free version)

Thank you

.

 

Accepted Answer
Ronnie Po Accepted Answer Pending Moderation
  1. Friday, 5 July 2024 17:23 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Magid,

Your customization for "w_1_test" should go in a separate companion file named "theme-[xxxx].json" where [xxxx] is any text.

See full specifications here:

https://community.appeon.com/index.php/articles-blogs/tutorials-articles/2-powerbuilder/301-applying-a-new-ui-theme-to-your-application-2

 

Comment
There are no comments made yet.
Magid Slimani Accepted Answer Pending Moderation
  1. Monday, 8 July 2024 07:21 AM UTC
  2. PowerBuilder
  3. # 1

Hello Ronnie


That means I have to make 2 theme.json files
One for the general definition of the windows ( theme.json ) and one for my window "w_1_test" ( theme[xxx].json )
For each particular window, I need a theme-[xxx].json file.
Correct ?

Comment
  1. Ronnie Po
  2. Monday, 8 July 2024 16:56 PM UTC
Hi Magid,

You may be able to customize multiple windows using the same theme-xxx.json file. I haven't tested the technique but it should be quick and easy to do so.
  1. Helpful 1
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.