Skip to content
Permalink
Browse files

[javafx] add a default theme

  • Loading branch information
ckeimel committed Mar 31, 2015
1 parent 0b928b1 commit 48d73c90e27be616280066b24fb77a17b82ae0f8
@@ -5,6 +5,11 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
@@ -20,9 +25,15 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ds.core.builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
@@ -16,8 +16,11 @@ Require-Bundle: org.eclipse.core.runtime,
org.eclipse.e4.ui.model.workbench,
org.eclipse.fx.core,
org.eclipse.fx.runtime.swt.e4,
org.eclipse.fx.ui.workbench.renderers.base
org.eclipse.fx.ui.workbench.renderers.base,
org.eclipse.fx.ui.theme,
org.eclipse.fx.ui.services
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: javax.annotation;version="1.1.0",
javax.inject;version="1.0.0"
Bundle-ActivationPolicy: lazy
Service-Component: OSGI-INF/osgi-DefaultTheme-component.xml
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="de.emsw.e4.migration.theme.default">
<implementation class="de.emsw.e4.migration.DefaultTheme"/>
<service>
<provide interface="org.eclipse.fx.ui.services.theme.Theme"/>
</service>
<reference
bind="registerStylesheet"
cardinality="0..n"
interface="org.eclipse.fx.ui.services.theme.Stylesheet"
name="Stylesheet"
policy="dynamic"
unbind="unregisterStylesheet"/>
</scr:component>
@@ -5,4 +5,5 @@ bin.includes = META-INF/,\
TestApp.e4xmi,\
css/,\
plugin.xml,\
icons/
icons/,\
OSGI-INF/
@@ -1,17 +1,5 @@
.MTrimmedWindow {
margin-top: 4px;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
}

.MPartStack {
swt-selected-tabs-background: #FFFFFF #F0F0F0 100%;
swt-simple: false;
swt-mru-visible: true;
font-size: 9;
}

.MPartStack.active {
swt-selected-tabs-background: #F2F5F9 #99B4D1 100%;
.root {
-fx-base: rgb(50, 50, 50);
-fx-background: rgb(50, 50, 50);
-fx-control-inner-background: rgb(50, 50, 50);
}
@@ -0,0 +1,12 @@
package de.emsw.e4.migration;

import org.eclipse.fx.ui.theme.AbstractTheme;

public class DefaultTheme extends AbstractTheme {

public DefaultTheme() {
super("default", "Default Theme", DefaultTheme.class.getClassLoader().getResource("css/default.css"));
}

}

0 comments on commit 48d73c9

Please sign in to comment.
You can’t perform that action at this time.