Eclipse 4 added several new themes for Eclipse, one of which was an updated dark theme. This can be added to an Eclipse 4 application through the use of the org.eclipse.ui.themes
plug-in.
.product
file and ensure that the org.eclipse.ui.themes
is added as a required bundle of the product on the Contents tab. This will ensure that if the product is exported then it contains the required plug-in.org.eclipse.ui.themes
into the search box, where type filter text is shown. Ensure that the checkbox next to the plug-in is checked.css/default.css
file and add the following to the top:@import url("platform:/plugin/org.eclipse.ui.themes/css/e4-dark.css");
The standard Eclipse themes are delivered inside the org.eclipse.ui.themes
plug-in. These take the form of CSS files and optional images that work together to provide a consistent experience.
The platform:/plugin/...
URL is a way of referring to content in another plug-in. This is only valid if the named plug-in part of the launched application. By default, Eclipse products run with plug-ins selected below only set as the available dependencies, which is created initially from the dependencies of the product file.
When the application style is loaded, the @import
URL is evaluated and the dark theme style is loaded from the org.eclipse.ui.themes
plug-in.
3.144.48.135