1. Joe Hess
  2. PowerBuilder
  3. Friday, 28 June 2019 15:05 PM UTC

Is there a way to override the datawindow (background) color set by a theme? The theme color is white. I would like a specific user object inherited from the datawindow class to have a different color.

 

Thank you,

Joe Hess

Accepted Answer
Michael Kramer Accepted Answer Pending Moderation
  1. Sunday, 30 June 2019 09:04 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Joe,

UI themes in PB 2019 GA is a kind of binary decision without third state: You either have the theme governing or you don't. Your theme.json file can skip certain controls/features using the drawing:false option.

However, there is no per control customization options. In Appeon's MVP agile style this will improve in later revision governed by customer feedback.

The more you, me, and others give Appeon feedback on improvements the better chance of those specific improvements being included.

HTH /Michael

Technical Tip:

You can create a custom theme where you turn off themes for DataWindow controls - and then switch between the standard theme and your custom theme. However, this is a global switch so all DataWindows in your app simultaneously turn themes on/off.

Comment
  1. Olan Knight
  2. Monday, 19 October 2020 22:45 PM UTC
I would think that having the ability to use an EXPRESSION on each level and each object would be the default option for themes.



Having never used themes I may be barking up the wrong tree, but I ADORE being aboe to put an expression in a property. I would definitely like to see that same capability applied tothe various properties of themes.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 19 October 2020 23:34 PM UTC
You can use expressions and expressions take precedence over themes.
  1. Helpful
  1. Benjamin Gaesslein
  2. Tuesday, 20 October 2020 07:31 AM UTC
You can use an expression for DataWindow bands *but* not the actual DataWindow background-color, which is a fixed value. So the DW itself will always have its bg color set by the theme. If your DW doesn't use the footer or summary band you could probably work around that by dynamically adjusting the height but that seems like a lot of work.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.