Skip to content

Commit

Permalink
Mars Form CSS compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeeyul committed Jul 23, 2015
1 parent ff8cad2 commit 1be7af0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions net.jeeeyul.eclipse.themes/plugin.xml
Expand Up @@ -183,6 +183,22 @@
name="jtitle-bar-active-text-color">
</property-name>
</handler>
<handler
adapter="org.eclipse.ui.internal.forms.css.dom.SectionElement"
handler="net.jeeeyul.eclipse.themes.css.internal.handlers.SectionCSSPropertyHandler">
<property-name
name="jtitle-bar-border-color">
</property-name>
<property-name
name="jtitle-bar-background-color">
</property-name>
<property-name
name="jtitle-bar-text-color">
</property-name>
<property-name
name="jtitle-bar-active-text-color">
</property-name>
</handler>
<handler
adapter="net.jeeeyul.eclipse.themes.css.internal.elements.FormTextElement"
handler="net.jeeeyul.eclipse.themes.css.internal.handlers.FormTextCSSPropertyHandler">
Expand Down
Expand Up @@ -12,6 +12,7 @@ import org.eclipse.swt.graphics.GC
import org.eclipse.ui.forms.widgets.Section
import org.w3c.dom.css.CSSPrimitiveValue
import org.w3c.dom.css.CSSValue
import org.eclipse.e4.ui.css.swt.dom.WidgetElement

/**
* CSS Property handler for {@link StyledText}.
Expand All @@ -22,7 +23,7 @@ class SectionCSSPropertyHandler implements ICSSPropertyHandler {
extension SWTExtensions = SWTExtensions.INSTANCE

override applyCSSProperty(Object element, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception {
var sElement = element as SectionElement
var sElement = element as WidgetElement
var section = sElement.nativeWidget as Section

return switch (property) {
Expand Down

0 comments on commit 1be7af0

Please sign in to comment.