189 views
in GUI Development by
Hi Team,

We understand the following change in color computation after 11.0 integration - the modulation is performed by multiplying the color components (red, green, blue, alpha) from the individual property (e.g. ColorTL) with the corresponding components from the common property Color.

We face an error while changing the color of a view based on Styles - Constant::White (#FFFFFFFF) and created a variant of the constant(#000000FF), which is Black.

The properties of the view is as follows:

Color : Constant::White

ColorBL : Constant::White

ColorBR : Constant::White

ColorTL : Constant::White
 
During style change, when we try to change the color to white from black(variant), it still remains Black.

In our use case, can you please explain how White(common property) multiplied by White(individual property) changes to Black?

Note:This issue was not observed in 10.0 version.

1 Answer

0 votes
by

Hello,

During style change, when we try to change the color to white from black(variant), it still remains Black.

Switching on/off a style does not affect already evaluated expressions. After switching the styles you have to re-evaluate the expression initializing the property (e.g. Color) or you recreate the corresponding GUI component. An automatic re-evaluation of expressions is not supported in case of the variants. May be this is the problem you observed? If yes, see also the section: Control the selection of dynamic variants.

In our use case, can you please explain how White(common property) multiplied by White(individual property) changes to Black?

This should not occur. Per default the color values are already #FFFFFFFF. If the problem is not explained by the above mentioned behavior of variants, we have to investigate the case. In such case, can you extract an example demonstrating this effect and upload it for analyze purpose?

Best regards

Paul Banach

Embedded Wizard Website | Privacy Policy | Imprint

...