WisejWeb.Line not refreshing with Application.LoadTheme

Answered
0
0

Hi.

Working on our themes, I have noticed that the Line doesn’t seem to be refreshed when the Theme is changed programmatically with Application.LoadTheme.

I have attached 2 screen shots of the same Line, one at run time showing the Line after the theme was changed by code, and one showing it at design time with the theme it was changed to.

Anything I should take a look at?

Best.

Ivan

 

  • You must to post comments
Best Answer
0
0

Hi Ivan,

this issue is now fixed in the latest Wisej development build (2.1.87).

Best regards
Frank

  • You must to post comments
Good Answer
0
0

To make sure my themes were not playing any tricks on this matter, I have tested the same situation changing from Blue-1 to Graphite-3. I have attached pictures of the Graphite-3 Line color at the designer, and another of the same Line after changing the theme from Blue-1 to Graphite-3 at run time.

  • Luca (ITG)
    Yes, I can reproduce when the change affects only the colors {} section. Add Applicatio.Reload() and it will update the controls correctly. Will log the bug.
  • Ivan Borges
    Thank you. Guess Application.Reload() will be a bit too much of a drastic action for this case, so I will just let it be and wait for the fix, since it is no biggie. :-)
  • You must to post comments
0
0

Brilliant!

Thank you, Frank.

  • You must to post comments
0
0

My own themes, created from the Material-3 as base.

I am not changing anything through mixin for the Line. The lineColor property is set to windowFrame as it was originally. The windowFrame color was changed for each of the Themes created. If I set the Theme through the Default.json, it shows properly when we open the application. But if the user changes the Theme (we just added 2 buttons, each changing to one of the themes created), the Line color for the theme which we changed to (programmatically) doesn’t mach with the one in the .theme file. If we change the themes in the designer with an open window where there is a Line, the Line color changes properly.

The pictures attached show the same Line in the same window, one at run time where the theme was changed after the application was run, and the other picture showing the same line at the designer, with the corresponding theme set through the combobox on the bottom of the designer.

  • You must to post comments
0
0

Which themes? I tried a theme mixin that changes the line color to red and it works both at design time and runtime. To force a reload you can always use Application.Reload().

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.