Updownquark / Quick

Quark's User Interface Creation Kit
0 stars 0 forks source link

Create style sheet capabilty #24

Closed Updownquark closed 11 years ago

Updownquark commented 12 years ago

This may be renamed. Need a capability to have an external file that specifies styles for different types and possibly groups of widgets. Need a default sheet that is loaded by default and specifies styles for buttons, scroll bars, etc.

Updownquark commented 12 years ago

As noted by the last commit, stylesheets now work, including animation. I want to try to get the button rendering much faster so I have a good animated stylesheet demo piece before I continue on this issue.

After that, I need to integrate stylesheets more into the framework by making them specifiable from the toolkit MuisRegistry.xml (might rename this to toolkit.xml) as defaults for the toolkit. The document style sheet should depend on these defaults last.

I also made a mistake with stylesheet-scoped namespaces. The stylesheet should specify its own namespace mappings and not rely on correct mappings from the MUIS file, nor require the toolkit to specify namespace mappings when I get that going.

Updownquark commented 12 years ago

Didn't mention it in the last commit message, but it also fixed the namespace issue mentioned in the previous comment.

This issue is almost finished. The only thing left that I know of is defining certain functions and maybe constants to be used from the style sheets (e.g. rgb(r, g, b) to define colors by integer rgb values). Any style attribute value can be specified in a style sheet by enclosing in quotes, but when this is done, it is not possible to use animation variables. I did some work on this on another machine (and forgot to push), but the parser was failing on it, so that will need to be debugged and more functions defined.

Updownquark commented 11 years ago

I think this is done. Very possible I'll discover bugs with it in the future, but the conceptual work is done, the feature is added, it works.