[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipse-incubator-e4-dev] E4 Contacts demo with CSS theming
|
Very-a-nice-a! Looks great.
- Menu.setBackground() worked at one
point, had bugs and was never implemented on platforms other than Windows.
That's why the API is not public. Also, custom draw menus cause
Vista theming to throw up.
- column titles (ie. Headers) are waiting
for SWT to implement a general header control. At that point, there
will be an widget to style. Unfortunately, this keeps falling off
the plan
- borders (ie SWT.BORDER) are by definition
a native and different on the platforms. If you want a custom border,
you will need create widgets without the style bit and use another
strategy to draw the border
- separators are also native, in the
same mannera as borders. The style bits are intended to hide platform
differences and draw natively everywhere
"Toedter, Kai"
<kai.toedter@xxxxxxxxxxx>
Sent by: eclipse-incubator-e4-dev-bounces@xxxxxxxxxxx
10/08/2008 07:52 AM
Please respond to
E4 developer list <eclipse-incubator-e4-dev@xxxxxxxxxxx> |
|
To
| "E4 developer list" <eclipse-incubator-e4-dev@xxxxxxxxxxx>
|
cc
| Kevin McGuire/Ottawa/IBM@IBMCA
|
Subject
| [eclipse-incubator-e4-dev] E4 Contacts
demo with CSS theming |
|
Hi All,
I am just back from Denmark and found some time to play around with e4
and css theming. Kevin was so kind and sent me his running version of
the TK-UI css engine. Attached you find a screenshot of my E4 contacts
demo styled with css using TK-UI. This is just a demo style to check out
the capabilities of css theming...
I run into a few problems though:
- SWT does not allow to set the background color or background image of
a Menu. Even after patching the win32 SWT and making the methods
Menu.setBackground and Menu.setBackgroundImage public, it did not work
under Windows. Any hints from the SWT gurus how to change the Menu
background under Windows?
- I could not style the table column titles, I assume that is caused
also by the SWT native mapping.
- Other things I did not figure out so far:
- How to style a Label with SWT.SEPARATOR set
- How to style the border around a text input (looks also very
"native" on Windows Vista)
But besides that, from the end user point of view it is very easy to
theme an RCP application using TK-UIs css engine.
Best regards,
Kai
_______________________________________________
eclipse-incubator-e4-dev mailing list
eclipse-incubator-e4-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipse-incubator-e4-dev
Attachment:
e4-css-dark.png
Description: Binary data