1. Tomáš Podzimek
  2. PowerBuilder
  3. Tuesday, 22 October 2024 07:44 AM UTC

Hi,

I have a Themes JSON question.

We have a modified JSON with drawing:false for dwo-column, because we need to have different borders for various columns.

So far so good. But it has consequences like ignoring all the nested nodes of the JSON for checkbox-type column etc. leaving them with default images instead of the themed ones, even if there's drawing:true for checkbox-type.

Is there a way to switch off themes only for dwo-column but to let it on for the nested nodes?

I'm afraid I know the answer but one never knows...

Here's a snippet of our JSON file:

"datawindow":
	{
		"dwo-column":
		{
			"drawing":false,
			"border":0,
			"border-color":"#E7EBF2",
			"background-color":"#FFFFFF",
			"text-font":{"color":"#3C465A"},
			"checkbox-type":
			{
				"drawing":true,
				"normal-state":
				{
					"box-images":
					{
						"unchecked":{"file":"checkbox-box-normal-unchecked.bmp"},
						"checked":{"file":"checkbox-box-normal-checked.bmp"},
						"indeterminate":{"file":"checkbox-box-normal-indeterminate.bmp"}
					}
				},
				"hover-state":
				{
					"box-images":
					{
						"unchecked":{"file":"checkbox-box-hover-unchecked.bmp"},
						"checked":{"file":"checkbox-box-hover-checked.bmp"},
						"indeterminate":{"file":"checkbox-box-hover-indeterminate.bmp"}
					}
				}
			}
		}
	}

Regards,

Tomáš

 

kitty he @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 23 October 2024 02:42 AM UTC
  2. PowerBuilder
  3. # 1

Hi Tomáš,

 

Thank you for bringing up this issue! 

The drawing switch for the dwo column in theme.json is a global switch for the column, and it currently does not meet your usage unless we add a separate switch for the border or provide an additional value for the border item to control it (currently, 1 represents having a border, and 0 represents no border).

 

Regards, 

Kitty

Comment
  1. Tomáš Podzimek
  2. Wednesday, 23 October 2024 13:25 PM UTC
Hi Kitty,

thanks for your response.

Are you planning to add such a separate switch?

Should I create an enhancement request ticket?



Regards,

Tomáš
  1. Helpful 2
  1. kitty he @Appeon
  2. Thursday, 24 October 2024 02:44 AM UTC
Hi Tomáš,



The purpose of the UI Theme is to achieve a flat UI design, so when using the UI theme, the borders cannot retain the old PB styles. In the theme.json control, borders should either not be drawn (i.e., no border) or be drawn according to the colors set in theme.json, with the border pixel size being fixed in theme.json.



Setting a separate switch for borders is also not very appropriate. You may consider using other ways to distinguish different columns (e.g., font color).



Regards,

Kitty

  1. Helpful 2
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.