Skip to content

Commit

Permalink
feat: #572 Theme replicating the coloring of the WTP XML editor (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevloral authored Oct 17, 2023
1 parent 0b42c0f commit 3fa4d4a
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 4 deletions.
2 changes: 1 addition & 1 deletion org.eclipse.tm4e.feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<feature
id="org.eclipse.tm4e.feature"
label="%featureName"
version="0.6.1.qualifier"
version="0.6.2.qualifier"
provider-name="%featureProvider"
license-feature="org.eclipse.license"
license-feature-version="0.0.0">
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.tm4e.feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

<artifactId>org.eclipse.tm4e.feature</artifactId>
<packaging>eclipse-feature</packaging>
<version>0.6.1-SNAPSHOT</version>
<version>0.6.2-SNAPSHOT</version>
</project>
2 changes: 1 addition & 1 deletion org.eclipse.tm4e.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Bundle-SymbolicName: org.eclipse.tm4e.ui;singleton:=true
Bundle-Version: 0.7.1.qualifier
Bundle-Version: 0.7.2.qualifier
Require-Bundle: org.eclipse.core.expressions,
org.eclipse.core.filesystem,
org.eclipse.core.resources,
Expand Down
1 change: 1 addition & 0 deletions org.eclipse.tm4e.ui/plugin.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Theme.EclipseLight.name=Eclipse Light
Theme.Monokai.name=Monokai
Theme.SolarizedLight.name=Solarized Light
Theme.Dark.name=Dark
Theme.WtpXmlClassic.name=WTP XML Classic

# Preferences
TextMatePreferencePage.name=TextMate
Expand Down
3 changes: 3 additions & 0 deletions org.eclipse.tm4e.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
<theme id="org.eclipse.tm4e.ui.themes.EclipseLight"
name="%Theme.EclipseLight.name"
path="./themes/Eclipse-light.css" />
<theme id="org.eclipse.tm4e.ui.themes.WtpXmlClassic"
name="%Theme.WtpXmlClassic.name"
path="./themes/WTP-XML-Classic.css" />
<!-- "Dark" themes -->
<theme id="org.eclipse.tm4e.ui.themes.Dark"
name="%Theme.Dark.name"
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.tm4e.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@

<artifactId>org.eclipse.tm4e.ui</artifactId>
<packaging>eclipse-plugin</packaging>
<version>0.7.1-SNAPSHOT</version>
<version>0.7.2-SNAPSHOT</version>
</project>
297 changes: 297 additions & 0 deletions org.eclipse.tm4e.ui/themes/WTP-XML-Classic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,297 @@
.emphasis {
font-style: italic;
}

.strong {
font-weight: bold;
}

.header {
color: rgba(0, 0, 128, 1);
}

.constant.language {
color: rgba(0, 0, 255, 1);
}

.constant.numeric {
color: rgba(9, 136, 90, 1);
}

.constant.regexp {
color: rgba(129, 31, 63, 1);
}

.constant.rgb-value {
color: rgba(4, 81, 165, 1);
}

.entity.name.selector {
color: rgba(128, 0, 0, 1);
}

.entity.other.attribute-name.css {
color: rgba(128, 0, 0, 1);
}

.entity.other.attribute-name.scss {
color: rgba(128, 0, 0, 1);
}

.invalid {
color: rgba(205, 49, 49, 1);
}

.markup.underline {
text-decoration: underline;
}

.markup.bold {
font-weight: bold;
color: rgba(0, 0, 128, 1);
}

.markup.heading {
font-weight: bold;
color: rgba(128, 0, 0, 1);
}

.markup.italic {
font-style: italic;
}

.markup.inserted {
color: rgba(9, 136, 90, 1);
}

.markup.deleted {
color: rgba(163, 21, 21, 1);
}

.markup.changed {
color: rgba(4, 81, 165, 1);
}

.markup.punctuation.quote.beginning {
color: rgba(4, 81, 165, 1);
}

.markup.punctuation.list.beginning {
color: rgba(4, 81, 165, 1);
}

.markup.inline.raw {
color: rgba(128, 0, 0, 1);
}

.meta.selector {
color: rgba(128, 255, 0, 1);
}

.meta.preprocessor {
color: rgba(0, 0, 255, 1);
}

.meta.preprocessor.numeric {
color: rgba(9, 136, 90, 1);
}

.meta.structure.dictionary.key.python {
color: rgba(4, 81, 165, 1);
}

.storage {
color: rgba(0, 0, 255, 1);
}

.storage.type {
color: rgba(0, 0, 255, 1);
}

.storage.modifier {
color: rgba(0, 0, 255, 1);
}

.string {
color: rgba(163, 21, 21, 1);
}

.string.jade {
color: rgba(0, 0, 255, 1);
}

.string.yaml {
color: rgba(0, 0, 255, 1);
}

.string.html {
color: rgba(0, 0, 255, 1);
}

.string.regexp {
color: rgba(129, 31, 63, 1);
}

.support.property-value {
color: rgba(4, 81, 165, 1);
}

.support.type.property-name.css {
color: rgba(255, 0, 0, 1);
}

.support.type.property-name.less {
color: rgba(255, 0, 0, 1);
}

.support.type.property-name.scss {
color: rgba(255, 0, 0, 1);
}

.support.type.property-name {
color: rgba(4, 81, 165, 1);
}

.keyword {
color: rgba(0, 0, 255, 1);
}

.keyword.control {
color: rgba(0, 0, 255, 1);
}

.keyword.operator {
color: rgba(0, 0, 0, 1);
}

.keyword.operator.new {
color: rgba(0, 0, 255, 1);
}

.keyword.other.unit {
color: rgba(9, 136, 90, 1);
}

.keyword.control.less {
color: rgba(128, 0, 0, 1);
}

.metatag.php {
color: rgba(128, 0, 0, 1);
}

.support.function.git-rebase {
color: rgba(4, 81, 165, 1);
}

.constant.sha.git-rebase {
color: rgba(9, 136, 90, 1);
}

.storage.modifier.import.java {
color: rgba(0, 0, 0, 1);
}

.storage.modifier.package.java {
color: rgba(0, 0, 0, 1);
}

.meta.type.name {
color: rgba(38, 127, 153, 1);
}

.meta.return.type {
color: rgba(38, 127, 153, 1);
}

.meta.return-type {
color: rgba(38, 127, 153, 1);
}

.meta.cast {
color: rgba(38, 127, 153, 1);
}

.meta.type.annotation {
color: rgba(38, 127, 153, 1);
}

.support.type {
color: rgba(38, 127, 153, 1);
}

.entity.name.class {
color: rgba(38, 127, 153, 1);
}

.entity.name.type {
color: rgba(38, 127, 153, 1);
}

.storage.type.cs {
color: rgba(38, 127, 153, 1);
}

.storage.type.java {
color: rgba(38, 127, 153, 1);
}

.entity.name.function {
color: rgba(121, 94, 38, 1);
}

.entity.name.method {
color: rgba(121, 94, 38, 1);
}

.keyword.control {
color: rgba(175, 0, 219, 1);
}

.meta.parameter.type.variable {
color: rgba(0, 16, 128, 1);
}

.variable.parameter {
color: rgba(0, 16, 128, 1);
}

.variable {
color: rgba(0, 16, 128, 1);
}

.variable.name {
color: rgba(0, 16, 128, 1);
}

.editor { background-color: rgba(255, 255, 255, 1); color: rgba(0, 0, 0, 1); }
.editor.lineHighlight {background-color: rgba(238, 238, 238, 1); }
.editor.selection {}

/* Modified for replicating the WTP XML editor coloring */

.comment {
color: rgba(63, 95, 191, 1);
}

.entity.name.tag {
color: rgba(63, 127, 127, 1);
}

.entity.other.attribute-name {
color: rgba(127, 0, 127, 1);
}

.meta.preprocessor.string {
color: rgba(41, 0, 255, 1);
font-style: italic;
}

.meta.tag {
color: rgba(63, 127, 127, 1);
}

.string.xml {
color: rgba(0, 0, 255, 1);
font-style: italic;
}

0 comments on commit 3fa4d4a

Please sign in to comment.