Prior to updating to UIToolkit Preview16, I didn’t have to use a .tss Theme asset. Since I updated, a default runtime theme, attached to the panel settings, have been created.
The problem is that the default values set as part of this them somewhat break my UI documents. For example, there are default margin set on labels (that I didn’t have before), the scroll bars are white, etc.
In UI Builder, I can choose to visualize my documents using the default runtime theme, or using the “Dark Editor Theme”. It looks like until a runtime theme was automatically created by updating to Preview16, all my UI was based on a default stylesheet corresponding to “Dark Editor Theme”.
The question is: Is there a way to use the “Dark Editor Theme” as a base/starting point for my default runtime theme?
I searched in the UI Toolkit package directories but couldn’t find anything like this.
The Dark Theme is only available as a binary package and works different then *.tss files. Because of that they can’t provide it without additional work to maintain it (which I guess might happen?)
Short answer: no easy way to get that, and it only works with editor
Actually, I don’t care about the (Dark) Theme itself. Just knowing, what changed from preview.14 to preview.15 (e.g. Labels have some margin now), would be great, so that I don’t have to fix most of my UI while doing the upgrade, but could just add some uss rules.
I would see this as a part of the changelog, e.g:
Changes to the default style:
It would also be completely ok for me not to have the Dark Editor Theme but just a CSS extract of the prior default rules that I could just copy and paste into my default CSS file. Or as mentioned by @magnetic_scho a list of what changed.
These kind of info should be mentioned in a change log indeed.
I agree with you, but those rules never existed as USS, only in a binary format which was working at runtime as a side-effect. Because of that there is no easy way to extract them from our side
Unity Dev said somewhere else they get created from a central repo for different apps, and they would need to add support for USS export there