Ableton / aqt-stylesheets

Apply CSS style sheets to QML applications
Other
214 stars 39 forks source link

Support color expressions #11

Closed gck-ableton closed 9 years ago

gck-ableton commented 9 years ago

@rof-ableton @sbs-ableton

... like color: hsla(320, 100% 75%, 0.3); in CSS. This is probably not the final version. Color functions like this can easily be resolved inside of the StyleMatchTree builder (as it is done here), but expressions like url('') wouldn't have enough context. Those can only be resolved probably in the StyleSet (at lookup time?), but for this we would need to change the PropertyMap representation (which already works in terms of QVariant). But maybe this is a second step? What do you think?

rof-ableton commented 9 years ago

As we talked about, we would also like to have a hsb and hsba function, similar to https://github.com/AbletonAppDev/appearance/blob/master/sass/Live/_color_functions.sass#L35

gck-ableton commented 9 years ago

I'm closing this PR for now, because I'll reorganize the approach completely!