Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-incubator-e4-dev] CSS and declarative UI round up

Hi,

I would like just say that TK-UI CSS Engine manage CSS styles with SWT widgets. There are several strategies to apply styles and if SWT.create event will be exist, it will be very easy to implement new SWT CSS Engine which works this strategy.

I have develp simple sample CSS Editor
which use CSS Engine and this sampel show it's possible to apply styles ar runtime. If you type into CSS TextArea editor, it applies styles on the SWT Shell. CSS engine manage several case like pseudo classes

Text:focus {
   color:red;
}

apply red foreground color to SWT control.
SWT ressources are managed too (cache Color resources in order to avoid create new SWT Color, dispose Color when Display is disposed...),

The CSS Engine manage basic CSS2 properties but its very easy to add your own CSS property handler to manage your own CSS Properties. Layout CSS is not implemented, but I think implement it with MigLayout.

The CSS engine follow all w3c recommandation and use the w3c interface (CSSRule...).

I have integrated the SWT (and Swing)  CSS engine into TK-UI (describe your UI with XML markup) and it works good, but you can use the CSS engine with pur SWT.

If you have questions, don't hesitate to contact me.

Regards Angelo


2008/6/24 Kevin McGuire <Kevin_McGuire@xxxxxxxxxx>:

Hi Alex,

Yes.  The way I see it, CSS just allows a consistent and declarative approach to capabilities that SWT/JFace already provide.  Because of this approach, it facilitates big changes to the look that would've been inpractical before (e.g. easier to make new themes), but only in so far as you could've anyway through existing APIs.


And yeah CSS layout can be, well, challenging.

One topic of discussion is whether we just want CSS for the styling and margins but otherwise forgo its layout for the layout management we already have.  This would seem to fit our current approach, where the platform controls the boxes whose contents its agnostic towards.

Kevin



Alex Fitzpatrick/Ottawa/IBM@IBMCA

06/24/2008 11:55 AM

Please respond to
E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx>

To
E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx>
cc
Subject
Re: [eclipse-incubator-e4-dev] CSS and declarative UI round up






While flexibility built into the framework is a good thing, I am expecting that this effort will not undermine the existing platform look & feel that SWT/JFace default to or break backwards compatibility.


We have a lot of products built on this platform, backwards compatibility is effectively mandatory.


(I also spent spent three years doing AJAX before I moved into RCP, I'd rather slit my wrists than try to lay out UI with CSS)


--
Alex Fitzpatrick
agfitzp@xxxxxxxxxx
Software Developer - Rational UML Modeling



From: Kevin McGuire/Ottawa/IBM@IBMCA
To: E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx>
Date: 2008-06-24 11:46 AM
Subject: Re: [eclipse-incubator-e4-dev] CSS and declarative UI round up







(Also on the XSWT front there's this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=38109)

In view of all the diverse material, and David and Tom's availability, I'd like to suggest the following split:


Effort 1: CSS styling technologies
Effort 2: Declarative UI composition (XSWT, XForms, etc.)


With "Effort 1: CSS styling technologies" being the focus of this first get together.


These really address different (though related) problems and there's tons to dig in for each.  Plus David and Tom would then be available at a future date to talk XSWT.  In particular I'd like us to get started on the CSS side because of the possible deep tie-in to SWT.  Finally, more focus will give greater progress.


Regards,

Kevin


Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
Sent by: eclipse-incubator-e4-dev-bounces@xxxxxxxxxxx

06/24/2008 02:42 AM

Please respond to
E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx>


To
E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx>
cc
Subject
Re: [eclipse-incubator-e4-dev] CSS and declarative UI round up









David Orme schrieb:
> XSWT is pretty well known.  Kevin McLaren invented it and several others
> and myself have maintained it over the years.
>
> I have quite a bit of business travel coming up and I'll demo it if the
> schedule fits in with my travels.  Failing that, Tom Schindl and I have
> a pretty shared vision of where it should go and he can demo his version
> (EXSWT) if he's available, wants to, and it doesn't work out for me to demo.
>

I'm sorry but I'm filled with company projects before my holiday (mid of
July til the first days of August floating along in Norway) starts. I'm
always here to answer questions if there are any and taking part in
discussion but I won't have time to prepare a presentation and/or code
any e4 related stuff until mid of August where hopefully the project
load goes back to a normal level or we find more talented co-workers (I
read Ed is free :-).

By the way Eric, I know you started modelling the workbench with EMF, is
there any code/model around already?

Tom

--
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                               leiter softwareentwicklung/CSO
------------------------------------------------------------------------
eduard-bodem-gasse 8/3    A-6020 innsbruck      phone    ++43 512 935834
_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx

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

https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev

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


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



Back to the top