|
|
|
|
Re: theming full eclipse? [message #980199 is a reply to message #976172] |
Sun, 11 November 2012 12:46 |
Eclipse User |
|
|
|
The better approach, IMHO, is to use a CSS preprocessor like SCSS/SASS which providers darken() and lighten() functions that operate on colours. Plus they provide nested rules and variables. I used SCSS in a recent project and it worked really well.
|
|
|
|
Re: theming full eclipse? [message #981631 is a reply to message #980301] |
Mon, 12 November 2012 15:19 |
Eclipse User |
|
|
|
Tom,
CSS 2.1 has a way to expose system colours to CSS using specific named constants, and I'm sure I prototyped a way to expose those from the SWT OS-specified colours. But I can't find my patch nor the message about it, though it was pretty straightforward to implement.
Unfortunately CSS 2.1 system colours won't be adequate to implement your exampe code -- your example uses SWT.COLOR_TITLE_BACKGROUND to generate a gradient. CSS 2.1 doesn't have a concept of functions that operate on data, and even if we could find a CSS3 implementation, there don't seem to be any such functions there either. I'm loathe to extend our CSS engine to be non-compliant, especially since the underlying Batik implementation doesn't seem to be maintained.
Brian.
http://www.w3.org/TR/CSS21/ui.html#system-colors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278498
[Updated on: Mon, 12 November 2012 15:20] by Moderator Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04223 seconds