Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-14 Thread Konstantin Tokarev
14.08.2015, 10:03, "Hamish Moffatt" : > On 12/08/15 17:01, Alejandro Exojo wrote: >>  The problem is that Sass is more than a template engine. Is a language >> crafted >>  for generating CSS. It has functions for colors, understands selector >>  inheritance, and a lot more. See for example: >> >

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-14 Thread Hamish Moffatt
On 12/08/15 17:01, Alejandro Exojo wrote: > The problem is that Sass is more than a template engine. Is a language crafted > for generating CSS. It has functions for colors, understands selector > inheritance, and a lot more. See for example: > > http://sassymothereffingtextshadow.com/ > > OK, prob

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-12 Thread Konstantin Tokarev
12.08.2015, 05:06, "Hamish Moffatt" : > 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 produce

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-12 Thread Konstantin Tokarev
12.08.2015, 10:02, "Alejandro Exojo" : > El Wednesday 12 August 2015, André Somers escribió: >>  I guess any template engine would do, really. Perhaps take a look at >>  grantlee? > > The problem is that Sass is more than a template engine. Is a language crafted > for generating CSS. It has funct

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-12 Thread Konstantin Tokarev
12.08.2015, 05:06, "Hamish Moffatt" : > 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 produce

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-12 Thread Alejandro Exojo
El Wednesday 12 August 2015, André Somers escribió: > I guess any template engine would do, really. Perhaps take a look at > grantlee? The problem is that Sass is more than a template engine. Is a language crafted for generating CSS. It has functions for colors, understands selector inheritance,

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-11 Thread André Somers
I guess any template engine would do, really. Perhaps take a look at grantlee? André > Op 12 aug. 2015 om 04:05 heeft Hamish Moffatt het > volgende geschreven: > >> On 11/08/15 19:25, Konstantin Tokarev wrote: >> I've implemented custom SCSS-like markup using Text:Sass [1], it is not very >>

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-11 Thread Hamish Moffatt
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/Te

Re: [Interest] pre-processing for Qt widget stylesheet

2015-08-11 Thread Konstantin Tokarev
11.08.2015, 05:47, "Hamish Moffatt" : >  Does anyone have any experience with preprocessing to generate the Qt >  stylesheet? > >  I'd like to be able to refer to constants (eg colours), and also perhaps >  to define functions (eg to perform dpi scaling). > >  I have looked at incorporating libsa

[Interest] pre-processing for Qt widget stylesheet

2015-08-10 Thread Hamish Moffatt
Does anyone have any experience with preprocessing to generate the Qt stylesheet? I'd like to be able to refer to constants (eg colours), and also perhaps to define functions (eg to perform dpi scaling). I have looked at incorporating libsass (http://libsass.org/) into my application. The firs