1. Franck Fasolin
  2. PowerBuilder
  3. Monday, 17 April 2023 23:06 PM UTC

Is there a way when you are creating a theme, to display the default windows images instead and not specify an image for some objects. I have tried to use the drawing":false, on some objects and at least it does not crash the app but it has no effect. Right now I am only able to disable the theming of a control using drawing":false, not just some properties of them.

Example : I would like to set the title color and background color of my windows but I don't want to change the border, and the min/max/close button images. If I do not specify the Json key (as I would in an HTML CSS), it crashes when I run the app. If I specify drawing":false at the key level, it has no effect.

 

Can't we just specify the properties that we want to change and let de PowerBuilder default behavior for those we don't specify (like we would in a CSS style sheet)?

Franck Fasolin Accepted Answer Pending Moderation
  1. Monday, 24 April 2023 22:52 PM UTC
  2. PowerBuilder
  3. # 1

Hello, 

I must be missing something. I am not able to override the theme for a specific window. I have created a sample app (source code attached) and defined a theme that should not apply on w_genapp_sheet1 and should make w_genapp_sheet2 orange. I changed the default title color to blue to be sure my theme file is working.

Nothing happens on my 2 sheet windows.

Attachments (1)
Comment
  1. Eduardo Barbeito
  2. Thursday, 11 May 2023 18:26 PM UTC
I have the same problem. The "window":{} tag overrides the settings of the "w main":{} tag
  1. Helpful
There are no comments made yet.
kitty he @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 19 April 2023 08:44 AM UTC
  2. PowerBuilder
  3. # 2

Hi Franck,

 

UI Theme has a switch for each control, but not for each property. You can use a custom theme for the parts you need. For example, the following JSON only applies to the w_test window's background-color and background-color of the active title. Other unspecified parts of the window will use the PB built-in theme.json.

 

“W_test”

{

 “background-color”:”FF0000”,

  “title”:

     {

     “active-state”:

       {

         “background-color”:”FFFF00”

        }

    }

}

 

Please check if this type of customization satisfies your requirements.

BTW, if you encounter a crash issue, please open a ticket at https://www.appeon.com/standardsupport/newbug and provide a small case that can reproduce the issue for us to further analyze it.

 

Regards,

Kitty

Comment
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.