Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "E4/UI/Running CSS demos"

< E4‎ | UI
(CSS'ified RCP Mail Application)
(CSS Live Editors)
Line 17: Line 17:
 
</pre>
 
</pre>
  
=== CSS Live Editors ===
+
== CSS Live Editors ==
 
There are two examples that show a number of widgets styled with a stylesheet, with an editor area where you can modify the stylesheet.  Changes in the stylesheet are immediately reflected in the widgets.
 
There are two examples that show a number of widgets styled with a stylesheet, with an editor area where you can modify the stylesheet.  Changes in the stylesheet are immediately reflected in the widgets.
  

Revision as of 18:17, 6 February 2009

There are three CSS examples available.

CSS'ified RCP Mail Application

E4 css mail.jpg
This is the RCP mail app example, with CSS goodness added. Also acts as an example of how to add CSS to your application.
Features:

  • Entirely styled with a CSS stylesheet.
  • Notice the date is in italics, this is to indicate that the message is unread. Clicking on the mail icon in the toolbar will mark the message as read, and the italics will go away. This demonstrates use of changing the CSS class name of an element to switch which style it uses:
.messageDateUnRead {
    font-style: italic;
}

.messageDateRead {
    font-style: normal;
}

CSS Live Editors

There are two examples that show a number of widgets styled with a stylesheet, with an editor area where you can modify the stylesheet. Changes in the stylesheet are immediately reflected in the widgets.

CSS SWT Editor =

This provides a number of SWT widgets being styled.

CSS Nebula Example

We have CSS support for styling the Nebula Gallery widget (as seen in the e4 photo demo). This little example is like the SWT editor above, but for styling the Gallery widget.

Back to the top