[Interest] pre-processing for Qt widget stylesheet

Konstantin Tokarev annulen at yandex.ru
Wed Aug 12 15:43:39 CEST 2015



12.08.2015, 05:06, "Hamish Moffatt" <hamish at risingsoftware.com>:
> On 11/08/15 19:25, Konstantin Tokarev wrote:
>>  I've implemented custom SCSS-like markup using Text:Sass [1], it is not very strict
>>  about (S)CSS conformance and one can relatively easy write custom (non-CSS) generator
>>  (e.g., my code produces XML)
>>
>>  [1] http://search.cpan.org/~rpettett/Text-Sass-0.97/lib/Text/Sass.pm
>
> Thanks, but I want to do it at runtime (ie in the C++ app) as I will
> have some constants that depend on the runtime environment, eg the
> screen DPI.

If you are not concerned too much about preprocessing speed you might want to consider
Styleus [1] - it is implemented in JavaScript and it might be possible to run it inside
Qt engine.

[1] http://learnboost.github.io/stylus/

-- 
Regards,
Konstantin



More information about the Interest mailing list