Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] css

Ann,

You are currently abusing the e4 mailing list (which is intended to be used by those who are *developers* on the e4 project itself) to ask basic SWT questions. *Please* go to the SWT forum at...
http://www.eclipse.org/forums/index.php?t=thread&frm_id=100
... and ask your questions there. I'm sure that many people, including Bogdan, will be able to assist you.

Also, there does not currently appear to be anything 4.x specific about what you are building, so I suggest testing your application on Eclipse 3.7. Once you have a working implementation, then try testing it on 4.1. If you are seeing different behavior between 3.7 and 4.1, by all means bring that to our attention here.

Thanks,
McQ. (e4 Project Lead)

Inactive hide details for Ann Smith ---2011/08/16 04:24:12---Thanks Bogdan. I am still a little confused, my application is a GAnn Smith ---2011/08/16 04:24:12---Thanks Bogdan. I am still a little confused, my application is a GUI created in version 4 and I have been using stack layouts c


From:

Ann Smith <annsmith.smith38@xxxxxxxxx>

To:

E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>

Date:

2011/08/16 04:24

Subject:

Re: [e4-dev] css




Thanks Bogdan. I am still a little confused, my application is a GUI created in version 4 and I have been using stack layouts called through composites:
  
  final Composite cp= new Composite(parent, SWT.BORDER);
        cp.setBounds(0, 0, 100, 100);
        final StackLayout layout = new StackLayout();
        cp.setLayout(layout);

        final Composite p1= new Composite(cp, SWT.NONE);
 final Composite p2= new Composite(cp, SWT.NONE);

would I have to change all my composites to CTabFolders?

 
Ann.
On Tue, Aug 16, 2011 at 3:20 AM, Bogdan Gheorghe <gheorghe@xxxxxxxxxx> wrote:
    Hi Ann -

    You do not have install anything new, but depending on the type of project you are working on, you might have to configure your build path. Is this an RCP app? Also, in the CSS snippet you have posted, you are trying to style a CTabFolder that has the id "FirstLabel". In order for the styling to work, this ID must be first set on the CTabFolder. There was a talk about styling RCP apps at EclipseCon this year that explains this. You can find the slides here: http://www.toedter.com/blog/?p=477 .

    Regards,
    Bogdan



    From: Ann Smith <annsmith.smith38@xxxxxxxxx>
    To: E4 Project developer mailing list <e4-dev@xxxxxxxxxxx>
    Date: 08/15/2011 02:01 PM
    Subject: Re: [e4-dev] css
    Sent by: e4-dev-bounces@xxxxxxxxxxx






    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
    >         <
    gheorghe@xxxxxxxxxx <mailto:gheorghe@xxxxxxxxxx>> wrote:
    >
    >             Hi Ann -
    >
    >             Currently it is mainly css2 support with a number of custom
    >             properties for CTabFolder. You can find these here:
    >             _
    http://wiki.eclipse.org/E4/CSS/SWT_Mapping_
    >
    >             Regards,
    >             B
    >
    >
    >             From:     Ann Smith <
    annsmith.smith38@xxxxxxxxx
    >             <mailto:
    annsmith.smith38@xxxxxxxxx>>
    >             To:       E4 Project developer mailing list <
    e4-dev@xxxxxxxxxxx
    >             <mailto:
    e4-dev@xxxxxxxxxxx>>
    >             Date:     08/12/2011 04:43 AM
    >             Subject:  [e4-dev] css
    >             Sent by:  
    e4-dev-bounces@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>
    >            
    https://dev.eclipse.org/mailman/listinfo/e4-dev
    >
    >
    >
    >             _______________________________________________
    >             e4-dev mailing list
    >            
    e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
    >            
    https://dev.eclipse.org/mailman/listinfo/e4-dev
    >
    >
    >
    >         _______________________________________________
    >         e4-dev mailing list
    >        
    e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
    >        
    https://dev.eclipse.org/mailman/listinfo/e4-dev
    >
    >
    >
    >     _______________________________________________
    >     e4-dev mailing list
    >    
    e4-dev@xxxxxxxxxxx <mailto:e4-dev@xxxxxxxxxxx>
    >    
    https://dev.eclipse.org/mailman/listinfo/e4-dev
    >
    >
    >
    >
    > _______________________________________________
    > e4-dev mailing list
    >
    e4-dev@xxxxxxxxxxx
    >
    https://dev.eclipse.org/mailman/listinfo/e4-dev

    _______________________________________________
    e4-dev mailing list

    e4-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/e4-dev
    _______________________________________________
    e4-dev mailing list

    e4-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/e4-dev



    _______________________________________________
    e4-dev mailing list

    e4-dev@xxxxxxxxxxx
    https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/e4-dev


GIF image

GIF image


Back to the top