I am exploring and playing with the Theme Builder. I create a new one based on Blue-1. I changed the radius of the button and textbox and height of the textbox a little bigger. I saw the changes in Preview -> Window. Saved the new theme in Project->Themes folder.
I then loaded the new in the designer and dropped a new button and it worked fine. Same thing with a new textbox. However, though the radius of the textbox changed in the Theme Builder, the height didn’t change and it’is still 22 when I dropped a new textbox into the form (Window)
Having said that, how do I use this new theme and what should I add in Default.json file. I tried <project name>.Themes.<new theme name>”” but I got a message “Couldn’t find file of resource” when a I ran the project.
good catch, thanks. There was a problem with the textbox reading it´s default height from the theme definition.
It´s logged as WJ-7264 and is fixed in the latest build (22.214.171.124)
Regarding the selection of themes, you can use the following:
Set default theme in web.config – This is the one that is used in the designer (unless you select a different one manually)
Define a theme in default.json – Simply use “Theme”:”Name” (w/o extension). This overrides theme setting at runtime.
You can also load a theme at runtime in your code using Application.LoadTheme (“name”).
Hope that helps.