update themes

This commit is contained in:
Fabian Jakobs 2012-04-11 16:01:09 +02:00
commit d3f147cc72
23 changed files with 156 additions and 63 deletions

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #000000;\
}\
\
\
.ace-clouds .ace_marker-layer .ace_selection {\
background: #BDD5FC;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-clouds .ace_marker-layer .ace_selected_word {\
border: 1px solid #BDD5FC;\
}\
\
\
.ace-clouds .ace_invisible {\
color: #BFBFBF;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #7DA5DC;\
}\
\
\
.ace-clouds-midnight .ace_marker-layer .ace_selection {\
background: #000000;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-clouds-midnight .ace_marker-layer .ace_selected_word {\
border: 1px solid #000000;\
}\
\
\
.ace-clouds-midnight .ace_invisible {\
color: #BFBFBF;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-cobalt .ace_marker-layer .ace_selection {\
background: rgba(179, 101, 57, 0.75);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-cobalt .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(179, 101, 57, 0.75);\
}\
\
\
.ace-cobalt .ace_invisible {\
color: rgba(255, 255, 255, 0.15);\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#FF628C;\
}\
\
.ace-cobalt .ace_constant.ace_character, {\
color:#FF628C;\
}\
\
.ace-cobalt .ace_constant.ace_character.ace_escape, {\
color:#FF628C;\
}\
\
.ace-cobalt .ace_invalid {\
color:#F8F8F8;\
background-color:#800F00;\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #000000;\
}\
\
\
.ace-dawn .ace_marker-layer .ace_selection {\
background: rgba(39, 95, 255, 0.30);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-dawn .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(39, 95, 255, 0.30);\
}\
\
\
.ace-dawn .ace_invisible {\
color: rgba(75, 75, 126, 0.50);\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#811F24;\
}\
\
.ace-dawn .ace_constant.ace_character, {\
color:#811F24;\
}\
\
.ace-dawn .ace_constant.ace_character.ace_escape, {\
color:#811F24;\
}\
\
.ace-dawn .ace_invalid.ace_illegal {\
text-decoration:underline;\
font-style:italic;\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #91FF00;\
}\
\
\
.ace-idle-fingers .ace_marker-layer .ace_selection {\
background: rgba(90, 100, 126, 0.88);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-idle-fingers .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(90, 100, 126, 0.88);\
}\
\
\
.ace-idle-fingers .ace_invisible {\
color: #404040;\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#6C99BB;\
}\
\
.ace-idle-fingers .ace_constant.ace_character, {\
color:#6C99BB;\
}\
\
.ace-idle-fingers .ace_constant.ace_character.ace_escape, {\
color:#6C99BB;\
}\
\
.ace-idle-fingers .ace_invalid {\
color:#FFFFFF;\
background-color:#FF0000;\
@ -158,7 +166,7 @@ color:#BC9458;\
\
.ace-idle-fingers .ace_collab.ace_user1 {\
color:#323232;\
background-color:#FFF980; \
background-color:#FFF980;\
}";
var dom = require("../lib/dom");

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FF9900;\
}\
\
\
.ace-kr-theme .ace_marker-layer .ace_selection {\
background: rgba(170, 0, 255, 0.45);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-kr-theme .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(170, 0, 255, 0.45);\
}\
\
\
.ace-kr-theme .ace_invisible {\
color: rgba(255, 177, 111, 0.32);\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:rgba(210, 117, 24, 0.76);\
}\
\
.ace-kr-theme .ace_constant.ace_character, {\
color:rgba(210, 117, 24, 0.76);\
}\
\
.ace-kr-theme .ace_constant.ace_character.ace_escape, {\
color:rgba(210, 117, 24, 0.76);\
}\
\
.ace-kr-theme .ace_invalid {\
color:#F8F8F8;\
background-color:#A41300;\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-merbivore .ace_marker-layer .ace_selection {\
background: #454545;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-merbivore .ace_marker-layer .ace_selected_word {\
border: 1px solid #454545;\
}\
\
\
.ace-merbivore .ace_invisible {\
color: #404040;\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#1EDAFB;\
}\
\
.ace-merbivore .ace_constant.ace_character, {\
color:#1EDAFB;\
}\
\
.ace-merbivore .ace_constant.ace_character.ace_escape, {\
color:#1EDAFB;\
}\
\
.ace-merbivore .ace_constant.ace_language {\
color:#FDC251;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-merbivore-soft .ace_marker-layer .ace_selection {\
background: #494949;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-merbivore-soft .ace_marker-layer .ace_selected_word {\
border: 1px solid #494949;\
}\
\
\
.ace-merbivore-soft .ace_invisible {\
color: #404040;\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#68C1D8;\
}\
\
.ace-merbivore-soft .ace_constant.ace_character, {\
color:#68C1D8;\
}\
\
.ace-merbivore-soft .ace_constant.ace_character.ace_escape, {\
color:#68C1D8;\
}\
\
.ace-merbivore-soft .ace_constant.ace_language {\
color:#E1C582;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-mono-industrial .ace_marker-layer .ace_selection {\
background: rgba(145, 153, 148, 0.40);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-mono-industrial .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(145, 153, 148, 0.40);\
}\
\
\
.ace-mono-industrial .ace_invisible {\
color: rgba(102, 108, 104, 0.50);\
}\
@ -113,6 +113,14 @@ exports.cssText = "\
color:#E98800;\
}\
\
.ace-mono-industrial .ace_constant.ace_character, {\
color:#E98800;\
}\
\
.ace-mono-industrial .ace_constant.ace_character.ace_escape, {\
color:#E98800;\
}\
\
.ace-mono-industrial .ace_constant.ace_numeric {\
color:#E98800;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #F8F8F0;\
}\
\
\
.ace-monokai .ace_marker-layer .ace_selection {\
background: #49483E;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-monokai .ace_marker-layer .ace_selected_word {\
border: 1px solid #49483E;\
}\
\
\
.ace-monokai .ace_invisible {\
color: #49483E;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #A7A7A7;\
}\
\
\
.ace-pastel-on-dark .ace_marker-layer .ace_selection {\
background: rgba(221, 240, 255, 0.20);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-pastel-on-dark .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(221, 240, 255, 0.20);\
}\
\
\
.ace-pastel-on-dark .ace_invisible {\
color: rgba(255, 255, 255, 0.25);\
}\
@ -113,6 +113,14 @@ exports.cssText = "\
color:#4FB7C5;\
}\
\
.ace-pastel-on-dark .ace_constant.ace_character, {\
color:#4FB7C5;\
}\
\
.ace-pastel-on-dark .ace_constant.ace_character.ace_escape, {\
color:#4FB7C5;\
}\
\
.ace-pastel-on-dark .ace_constant.ace_language {\
color:#DE8E30;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #D30102;\
}\
\
\
.ace-solarized-dark .ace_marker-layer .ace_selection {\
background: #073642;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-solarized-dark .ace_marker-layer .ace_selected_word {\
border: 1px solid #073642;\
}\
\
\
.ace-solarized-dark .ace_invisible {\
color: rgba(147, 161, 161, 0.50);\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #000000;\
}\
\
\
.ace-solarized-light .ace_marker-layer .ace_selection {\
background: #073642;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-solarized-light .ace_marker-layer .ace_selected_word {\
border: 1px solid #073642;\
}\
\
\
.ace-solarized-light .ace_invisible {\
color: rgba(147, 161, 161, 0.50);\
}\

View file

@ -84,6 +84,10 @@ exports.cssText = ".ace-tm .ace_editor {\
color: blue;\
}\
\
.ace-tm .ace_line .ace_constant {\
color: rgb(197, 6, 11);\
}\
\
.ace-tm .ace_line .ace_constant.ace_buildin {\
color: rgb(88, 72, 246);\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #AEAFAD;\
}\
\
\
.ace-tomorrow .ace_marker-layer .ace_selection {\
background: #D6D6D6;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-tomorrow .ace_marker-layer .ace_selected_word {\
border: 1px solid #D6D6D6;\
}\
\
\
.ace-tomorrow .ace_invisible {\
color: #D1D1D1;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #AEAFAD;\
}\
\
\
.ace-tomorrow-night .ace_marker-layer .ace_selection {\
background: #373B41;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-tomorrow-night .ace_marker-layer .ace_selected_word {\
border: 1px solid #373B41;\
}\
\
\
.ace-tomorrow-night .ace_invisible {\
color: #4B4E55;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-tomorrow-night-blue .ace_marker-layer .ace_selection {\
background: #003F8E;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-tomorrow-night-blue .ace_marker-layer .ace_selected_word {\
border: 1px solid #003F8E;\
}\
\
\
.ace-tomorrow-night-blue .ace_invisible {\
color: #404F7D;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #9F9F9F;\
}\
\
\
.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {\
background: #424242;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-tomorrow-night-bright .ace_marker-layer .ace_selected_word {\
border: 1px solid #424242;\
}\
\
\
.ace-tomorrow-night-bright .ace_invisible {\
color: #343434;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #CCCCCC;\
}\
\
\
.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {\
background: #515151;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-tomorrow-night-eighties .ace_marker-layer .ace_selected_word {\
border: 1px solid #515151;\
}\
\
\
.ace-tomorrow-night-eighties .ace_invisible {\
color: #6A6A6A;\
}\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #A7A7A7;\
}\
\
\
.ace-twilight .ace_marker-layer .ace_selection {\
background: rgba(221, 240, 255, 0.20);\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-twilight .ace_marker-layer .ace_selected_word {\
border: 1px solid rgba(221, 240, 255, 0.20);\
}\
\
\
.ace-twilight .ace_invisible {\
color: rgba(255, 255, 255, 0.25);\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#CF6A4C;\
}\
\
.ace-twilight .ace_constant.ace_character, {\
color:#CF6A4C;\
}\
\
.ace-twilight .ace_constant.ace_character.ace_escape, {\
color:#CF6A4C;\
}\
\
.ace-twilight .ace_invalid.ace_illegal {\
color:#F8F8F8;\
background-color:rgba(86, 45, 86, 0.75);\

View file

@ -75,7 +75,7 @@ exports.cssText = "\
border-left: 0px;\
border-bottom: 1px solid #FFFFFF;\
}\
\
\
.ace-vibrant-ink .ace_marker-layer .ace_selection {\
background: #6699CC;\
}\
@ -96,7 +96,7 @@ exports.cssText = "\
.ace-vibrant-ink .ace_marker-layer .ace_selected_word {\
border: 1px solid #6699CC;\
}\
\
\
.ace-vibrant-ink .ace_invisible {\
color: #404040;\
}\
@ -109,6 +109,14 @@ exports.cssText = "\
color:#339999;\
}\
\
.ace-vibrant-ink .ace_constant.ace_character, {\
color:#339999;\
}\
\
.ace-vibrant-ink .ace_constant.ace_character.ace_escape, {\
color:#339999;\
}\
\
.ace-vibrant-ink .ace_constant.ace_numeric {\
color:#99CC99;\
}\

View file

@ -34,7 +34,7 @@
border-left: 0px;
border-bottom: 1px solid %overwrite%;
}
.%cssClass% .ace_marker-layer .ace_selection {
background: %selection%;
}
@ -55,7 +55,7 @@
.%cssClass% .ace_marker-layer .ace_selected_word {
%selected_word_highlight%
}
.%cssClass% .ace_invisible {
%invisible%
}
@ -72,6 +72,14 @@
%constant%
}
.%cssClass% .ace_constant.ace_character, {
%constant%
}
.%cssClass% .ace_constant.ace_character.ace_escape, {
%constant%
}
.%cssClass% .ace_constant.ace_language {
%constant.language%
}
@ -230,5 +238,5 @@
}
.%cssClass% .ace_collab.ace_user1 {
%collab.user1%
%collab.user1%
}

39
tool/tmtheme.js Normal file → Executable file
View file

@ -8,16 +8,16 @@ function plistToJson(el) {
return $plistParse(el.selectSingleNode("dict"));
}
function $plistParse(el) {
function $plistParse(el) {
if (el.tagName == "dict") {
var dict = {};
var key;
var childNodes = el.childNodes;
for (var i=0, l=childNodes.length; i<l; i++) {
var child = childNodes[i];
if (child.nodeType !== 1)
if (child.nodeType !== 1)
continue;
if (child.tagName == "key") {
key = child.nodeValue;
} else {
@ -34,9 +34,9 @@ function $plistParse(el) {
var childNodes = el.childNodes;
for (var i=0, l=childNodes.length; i<l; i++) {
var child = childNodes[i];
if (child.nodeType !== 1)
if (child.nodeType !== 1)
continue;
arr.push($plistParse(child));
}
return arr;
@ -53,38 +53,39 @@ function parseTheme(themeXml) {
return plistToJson(xml.parseFromString(themeXml).documentElement);
} catch(e) { return; }
}
var supportedScopes = {
"keyword": "keyword",
"keyword.operator": "keyword.operator",
"constant": "constant",
"constant.language": "constant.language",
"constant.library": "constant.library",
"constant.numeric": "constant.numeric",
"constant.character" : "constant.character",
"constant.character.escape" : "constant.character.escape",
"constant.other" : "constant.other",
"support": "support",
"support.function": "support.function",
"support.function.dom": "support.function.dom",
"support.function.firebug": "support.firebug",
"support.function.constant": "support.function.constant",
"support.constant": "support.constant",
"function": "function",
"function.buildin": "function.buildin",
"storage": "storage",
"storage.type": "storage.type",
"invalid": "invalid",
"invalid.illegal": "invalid.illegal",
"invalid.deprecated": "invalid.deprecated",
"string": "string",
"string.regexp": "string.regexp",
"comment": "comment",
"comment.documentation": "comment.doc",
"comment.documentation.tag": "comment.doc.tag",
@ -92,15 +93,15 @@ var supportedScopes = {
"variable": "variable",
"variable.language": "variable.language",
"variable.parameter": "variable.parameter",
"meta": "meta",
"meta": "meta",
"meta.tag.sgml.doctype": "xml_pe",
"meta.tag": "meta.tag",
"meta.tag.form": "meta.tag.form",
"entity.other.attribute-name": "entity.other.attribute-name",
"entity.name.function": "entity.name.function",
"entity.name": "entity.name",
"markup.heading": "markup.heading",
"markup.heading.1": "markup.heading.1",
"markup.heading.2": "markup.heading.2",
@ -109,7 +110,7 @@ var supportedScopes = {
"markup.heading.5": "markup.heading.5",
"markup.heading.6": "markup.heading.6",
"markup.list": "markup.list",
"collab.user1": "collab.user1"
};
@ -148,7 +149,7 @@ function extractStyles(theme) {
if (!colors.fold)
colors.fold = ((colors["entity.name.function"] || colors.keyword).match(/\:([^;]+)/)||[])[1];
if (!colors.selected_word_highlight)
colors.selected_word_highlight = "border: 1px solid " + colors.selection + ";";
@ -211,7 +212,7 @@ function fillTemplate(template, replacements) {
function createTheme(name, styles, cssTemplate, jsTemplate) {
styles.cssClass = "ace-" + hyphenate(name);
var css = fillTemplate(cssTemplate, styles);
css = css.replace(/[^\{\}]+{\s*}/g, "");
return fillTemplate(jsTemplate, {
name: name,