I tried it in different ways,
but for me the
cuba.theme.defaultSize = small
does not work.
This setting
cuba.theme.sizes = small|medium
is working fine.
I can only select those two, so I think the helium-theme.properties file is used in a correct way.
Also I can see, that the new user get an entry in the user_setting table for heliumSize,
but the value is empty.
Any idea what to do?
KR
Roland
and after doing some more testing it looks like, that the cuba.theme.defaultSize setting causes, that doing the setting manually in the help - theme_setting menu does not work any more… I can change there from small to medium but I cannot get small running again.
When I take out the cuba.theme.defaultSize , I can again use the manual settings.
Theme properties in the helium-theme.properties work in conjunction with styles. For instance, cuba.theme.defaultSize is used to define what size preset has no additional class name and can’t be changed without corresponding changes in styles. The same applicable for cuba.theme.defaultMode.
Currently, there is no way to define default size to use if no user settings are presented. We have an issue on GitHub to implement such functionality.
I saw the issue, thx.
Do you have any roadmap information when you would plan to implement that?
I am asking, because I need an answer for the user of the next app rollout.
If it there is no date now, I need to think about a workaround on our side.
cuba.theme.helium.defaultSize - the name of size preset that has no additional style class name. Default: medium . Note: can’t be changed without corresponding changes in styles.
What does mean “can’t be changed without corresponding change in styles” ?
As you can see, there are no styles for the medium size, i.e. it has no additional style class name, as a result it is defined as the default value for the cuba.theme.helium.defaultSize property. In simple words, cuba.theme.helium.defaultSize and cuba.theme.helium.defaultMode are internal properties and should not be changed.
This is because you defined cuba.theme.helium.defaultSize = small. Remove this attribute, clear user settings and page cookies.
cuba.theme.helium.defaultSizeToUse - the name of size preset to be used if no other settings are available. Either cookie or user settings obtained from UserSettingService have precedence over this value.