2
votes

Hope you are doing fine overthere.

Is there a way to easily find out a theme styles hierarchy? What derives from what?

Thanks for your help.

E

1
Do you mean programmatically, reading the CSS or opening the .res file? - Francesco Galgani
I mean opening the .res since I know now from Shai's answer that it's not possible from within the compiled app. - ebardet
Open the *.res with the Codename One Designer, click on the theme you are interested to, click on a UIID (i.e.: "DialogButton"), click on "Derive": you will see the UIID form which the current UIID is derived from (i.e.: "DialogButtonCommand"). Repeting the same step, for example I can see that, in my case, "DialogButtonCommand" derives from "Button". - Francesco Galgani
Hello Francesco, thanks for answering. I agree when the value is there however in some cases the "Override Attribute" is on which makes the dropdown disabled not showing anything. That's where I am stuck. - ebardet
I'm unfamiliar with a case where it's disabled, can you give an example? Notice that this won't show the hierarchy, it will just show the component you derived in your specific theme but it won't show if Button derived Label etc. - Shai Almog

1 Answers

1
votes

No. The hierarchy of Codename One styles is static. The derive behavior is implemented during the load process only by using the style elements of the base as a starting point.

Once this is done the concept of inheritance if discarded and no longer applicable. So changes to the base style will no longer have an impact.