[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
yes I was actually under the opinion that it would support all CSS properties but I understand now from your response.
To use the CTabFolder would I need to install new software into my eclipse v4? because I tried call it like following:
#FirstLabel{
tab-renderer: url('platform:/plugin/org.eclipse.e4.ui.workbench.renderers.swt/org.eclipse.e4.ui.workbench.renderers.swt.CTabRendering');
shadow-visible: true;
shadow-color: #000000;
font-family: "Times New Roman";
font-size: 16px;
color: #FFFFFF;
}
within my CSS file but I think I have got the wrong end of the stick with it comes to CTabFolder!
Sorry to be bothering you I am just very confused about it!
Or for my GUI would I only be able to specify color, font, background color?
Regards,
Ann.
On Mon, Aug 15, 2011 at 6:50 PM, Tom Schindl
<tom.schindl@xxxxxxxxxxxxxxx> wrote:
Hi Ann,
You have to distinguish between:
a) CSS as a Language (e.g. selectors, pseudo-selectors,...)
b) CSS-properties
We only support the very basic attributes like font, color, background
color (including some paint types), ... and some custom ones (for
CTabFolder).
I've sent a mail to this list after we shipped 4.1 where I highlight
some problems with our current css treatment because we are not
following general rules here (e.g. it is good practice to prefix custom
attributes using -vendor (e.g. -moz, -webkit,...)) and our own SDK-CSS
is not even valid CSS because the selector some of the selectors defined
are simply invalid if you read the css spec.
Sad enough I didn't get a response on it.
My personal opinion on CSS is that we advertised it completely wrong
because people now think they can apply all CSS-Properties they can in
HTML which is far from true because naturally SWT has constraints we are
not able to overcome.
I think in reality only toolkits who completely draw the UI (like Swing,
JavaFX, Browser-Rendering-Engines) are able to fully implement
CSS-Properties but as said that's my personal opinion and others may
disagree.
Tom
Am 15.08.11 19:40, schrieb Ann Smith:
> Thank you Angelo that information is very helpful. For example for
> shadows on my labels can I use this property within my application?
> I am building a GUI and some of CSS2 support is ran from a browser
> window. or can you direct me to any tutorials or projects that are GUI
> based and have used CSS2?
>
> Regards,
> Ann.
>
> On Mon, Aug 15, 2011 at 6:33 PM, Angelo zerr <
angelo.zerr@xxxxxxxxx
> <mailto:
angelo.zerr@xxxxxxxxx>> wrote:
>
> Hi Ann,
>
> Just for your information, E4 CSS engine is based on W3C SAC Parser
> API
http://www.w3.org/Style/CSS/SAC/ to load CSS style properties.
> The implementation used by E4 CSS engine is batik which supports
> CSS2 (not CSS3). Problem with CSS3 that it doesn't exists Java
> implementation for CSS3 (not for CSS2). Once it will exists CSS3
> implementation (SAC Parser), it will be easy to use it without
> changing E4 CSS engine to use CSS3.
>
> Regards Angelo
>
>
> 2011/8/15 Ann Smith <
annsmith.smith38@xxxxxxxxx
> <mailto:annsmith.smith38@xxxxxxxxx>>
>
> Thanks that is exactly what I was looking for. Do you call the
> CTabFolder within the CSS files? or is there any tutorials out
> there?
>
> Thanks for your help,
> Ann
>
>
> On Mon, Aug 15, 2011 at 4:18 PM, Bogdan Gheorghe
> <mailto:annsmith.smith38@xxxxxxxxx>>
> <mailto:e4-dev@xxxxxxxxxxx>>
> <mailto:e4-dev-bounces@xxxxxxxxxxx>
>
>
> ------------------------------------------------------------------------
>
>
>
> Hi,
>
> Just wondering does e4 support css3 if using a stand alone
> GUI? or is it only css2?
>
> Ann._______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
> e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
> e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
> e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>