From 76a41147ef8bca73b2a61b4326af3bfa56b2bfa7 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 28 Sep 2011 11:50:36 +0200 Subject: [PATCH] generate tomorrow themes --- demo/styles.css | 4 +- kitchen-sink.html | 5 + lib/ace/theme/tomorrow.js | 261 +++++++++++++++++++++++ lib/ace/theme/tomorrow_night.js | 261 +++++++++++++++++++++++ lib/ace/theme/tomorrow_night_blue.js | 261 +++++++++++++++++++++++ lib/ace/theme/tomorrow_night_bright.js | 261 +++++++++++++++++++++++ lib/ace/theme/tomorrow_night_eighties.js | 261 +++++++++++++++++++++++ tool/tmtheme.js | 17 +- 8 files changed, 1323 insertions(+), 8 deletions(-) create mode 100644 lib/ace/theme/tomorrow.js create mode 100644 lib/ace/theme/tomorrow_night.js create mode 100644 lib/ace/theme/tomorrow_night_blue.js create mode 100644 lib/ace/theme/tomorrow_night_bright.js create mode 100644 lib/ace/theme/tomorrow_night_eighties.js diff --git a/demo/styles.css b/demo/styles.css index 884807d7..74c53b90 100644 --- a/demo/styles.css +++ b/demo/styles.css @@ -18,13 +18,13 @@ body { #logo { padding: 15px; - margin-left: 65px; + margin-left: 70px; } #editor { position: absolute; top: 0px; - left: 280px; + left: 300px; bottom: 0px; right: 0px; background: white; diff --git a/kitchen-sink.html b/kitchen-sink.html index d5a872f1..60c5433e 100644 --- a/kitchen-sink.html +++ b/kitchen-sink.html @@ -114,6 +114,11 @@ + + + + + diff --git a/lib/ace/theme/tomorrow.js b/lib/ace/theme/tomorrow.js new file mode 100644 index 00000000..977c4d33 --- /dev/null +++ b/lib/ace/theme/tomorrow.js @@ -0,0 +1,261 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Ajax.org Code Editor (ACE). + * + * The Initial Developer of the Original Code is + * Ajax.org B.V. + * Portions created by the Initial Developer are Copyright (C) 2010 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Fabian Jakobs + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +define(function(require, exports, module) { + + var dom = require("pilot/dom"); + + var cssText = ".ace-tomorrow .ace_editor {\ + border: 2px solid rgb(159, 159, 159);\ +}\ +\ +.ace-tomorrow .ace_editor.ace_focus {\ + border: 2px solid #327fbd;\ +}\ +\ +.ace-tomorrow .ace_gutter {\ + width: 50px;\ + background: #e8e8e8;\ + color: #333;\ + overflow : hidden;\ +}\ +\ +.ace-tomorrow .ace_gutter-layer {\ + width: 100%;\ + text-align: right;\ +}\ +\ +.ace-tomorrow .ace_gutter-layer .ace_gutter-cell {\ + padding-right: 6px;\ +}\ +\ +.ace-tomorrow .ace_print_margin {\ + width: 1px;\ + background: #e8e8e8;\ +}\ +\ +.ace-tomorrow .ace_scroller {\ + background-color: #FFFFFF;\ +}\ +\ +.ace-tomorrow .ace_text-layer {\ + cursor: text;\ + color: #4D4D4C;\ +}\ +\ +.ace-tomorrow .ace_cursor {\ + border-left: 2px solid #AEAFAD;\ +}\ +\ +.ace-tomorrow .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #AEAFAD;\ +}\ + \ +.ace-tomorrow .ace_marker-layer .ace_selection {\ + background: #D6D6D6;\ +}\ +\ +.ace-tomorrow .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ +}\ +\ +.ace-tomorrow .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #D1D1D1;\ +}\ +\ +.ace-tomorrow .ace_marker-layer .ace_active_line {\ + background: #EFEFEF;\ +}\ +\ + \ +.ace-tomorrow .ace_invisible {\ + color: #D1D1D1;\ +}\ +\ +.ace-tomorrow .ace_keyword {\ + color:#8959A8;\ +}\ +\ +.ace-tomorrow .ace_keyword.ace_operator {\ + color:#3E999F;\ +}\ +\ +.ace-tomorrow .ace_constant {\ + \ +}\ +\ +.ace-tomorrow .ace_constant.ace_language {\ + color:#F5871F;\ +}\ +\ +.ace-tomorrow .ace_constant.ace_library {\ + \ +}\ +\ +.ace-tomorrow .ace_constant.ace_numeric {\ + color:#F5871F;\ +}\ +\ +.ace-tomorrow .ace_invalid {\ + color:#FFFFFF;\ +background-color:#C82829;\ +}\ +\ +.ace-tomorrow .ace_invalid.ace_illegal {\ + \ +}\ +\ +.ace-tomorrow .ace_invalid.ace_deprecated {\ + color:#FFFFFF;\ +background-color:#8959A8;\ +}\ +\ +.ace-tomorrow .ace_support {\ + \ +}\ +\ +.ace-tomorrow .ace_support.ace_function {\ + color:#4271AE;\ +}\ +\ +.ace-tomorrow .ace_function.ace_buildin {\ + \ +}\ +\ +.ace-tomorrow .ace_string {\ + color:#718C00;\ +}\ +\ +.ace-tomorrow .ace_string.ace_regexp {\ + color:#C82829;\ +}\ +\ +.ace-tomorrow .ace_comment {\ + color:#8E908C;\ +}\ +\ +.ace-tomorrow .ace_comment.ace_doc {\ + \ +}\ +\ +.ace-tomorrow .ace_comment.ace_doc.ace_tag {\ + \ +}\ +\ +.ace-tomorrow .ace_variable {\ + color:#C82829;\ +}\ +\ +.ace-tomorrow .ace_variable.ace_language {\ + \ +}\ +\ +.ace-tomorrow .ace_xml_pe {\ + \ +}\ +\ +.ace-tomorrow .ace_meta {\ + \ +}\ +\ +.ace-tomorrow .ace_meta.ace_tag {\ + color:#C82829;\ +}\ +\ +.ace-tomorrow .ace_meta.ace_tag.ace_input {\ + \ +}\ +\ +.ace-tomorrow .ace_entity.ace_other.ace_attribute-name {\ + color:#C82829;\ +}\ +\ +.ace-tomorrow .ace_entity.ace_name {\ + \ +}\ +\ +.ace-tomorrow .ace_entity.ace_name.ace_function {\ + color:#4271AE;\ +}\ +\ +.ace-tomorrow .ace_markup.ace_underline {\ + text-decoration:underline;\ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading {\ + color:#718C00;\ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_1 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_2 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_3 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_4 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_5 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_heading.ace_6 {\ + \ +}\ +\ +.ace-tomorrow .ace_markup.ace_list {\ + \ +}\ +\ +.ace-tomorrow .ace_collab.ace_user1 {\ + \ +}"; + + // import CSS once + dom.importCssString(cssText); + + exports.cssClass = "ace-tomorrow"; +}); \ No newline at end of file diff --git a/lib/ace/theme/tomorrow_night.js b/lib/ace/theme/tomorrow_night.js new file mode 100644 index 00000000..221aefcc --- /dev/null +++ b/lib/ace/theme/tomorrow_night.js @@ -0,0 +1,261 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Ajax.org Code Editor (ACE). + * + * The Initial Developer of the Original Code is + * Ajax.org B.V. + * Portions created by the Initial Developer are Copyright (C) 2010 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Fabian Jakobs + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +define(function(require, exports, module) { + + var dom = require("pilot/dom"); + + var cssText = ".ace-tomorrow-night .ace_editor {\ + border: 2px solid rgb(159, 159, 159);\ +}\ +\ +.ace-tomorrow-night .ace_editor.ace_focus {\ + border: 2px solid #327fbd;\ +}\ +\ +.ace-tomorrow-night .ace_gutter {\ + width: 50px;\ + background: #e8e8e8;\ + color: #333;\ + overflow : hidden;\ +}\ +\ +.ace-tomorrow-night .ace_gutter-layer {\ + width: 100%;\ + text-align: right;\ +}\ +\ +.ace-tomorrow-night .ace_gutter-layer .ace_gutter-cell {\ + padding-right: 6px;\ +}\ +\ +.ace-tomorrow-night .ace_print_margin {\ + width: 1px;\ + background: #e8e8e8;\ +}\ +\ +.ace-tomorrow-night .ace_scroller {\ + background-color: #1D1F21;\ +}\ +\ +.ace-tomorrow-night .ace_text-layer {\ + cursor: text;\ + color: #C5C8C6;\ +}\ +\ +.ace-tomorrow-night .ace_cursor {\ + border-left: 2px solid #AEAFAD;\ +}\ +\ +.ace-tomorrow-night .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #AEAFAD;\ +}\ + \ +.ace-tomorrow-night .ace_marker-layer .ace_selection {\ + background: #373B41;\ +}\ +\ +.ace-tomorrow-night .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ +}\ +\ +.ace-tomorrow-night .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #4B4E55;\ +}\ +\ +.ace-tomorrow-night .ace_marker-layer .ace_active_line {\ + background: #282A2E;\ +}\ +\ + \ +.ace-tomorrow-night .ace_invisible {\ + color: #4B4E55;\ +}\ +\ +.ace-tomorrow-night .ace_keyword {\ + color:#B294BB;\ +}\ +\ +.ace-tomorrow-night .ace_keyword.ace_operator {\ + color:#8ABEB7;\ +}\ +\ +.ace-tomorrow-night .ace_constant {\ + \ +}\ +\ +.ace-tomorrow-night .ace_constant.ace_language {\ + color:#DE935F;\ +}\ +\ +.ace-tomorrow-night .ace_constant.ace_library {\ + \ +}\ +\ +.ace-tomorrow-night .ace_constant.ace_numeric {\ + color:#DE935F;\ +}\ +\ +.ace-tomorrow-night .ace_invalid {\ + color:#CED2CF;\ +background-color:#DF5F5F;\ +}\ +\ +.ace-tomorrow-night .ace_invalid.ace_illegal {\ + \ +}\ +\ +.ace-tomorrow-night .ace_invalid.ace_deprecated {\ + color:#CED2CF;\ +background-color:#B798BF;\ +}\ +\ +.ace-tomorrow-night .ace_support {\ + \ +}\ +\ +.ace-tomorrow-night .ace_support.ace_function {\ + color:#81A2BE;\ +}\ +\ +.ace-tomorrow-night .ace_function.ace_buildin {\ + \ +}\ +\ +.ace-tomorrow-night .ace_string {\ + color:#B5BD68;\ +}\ +\ +.ace-tomorrow-night .ace_string.ace_regexp {\ + color:#CC6666;\ +}\ +\ +.ace-tomorrow-night .ace_comment {\ + color:#969896;\ +}\ +\ +.ace-tomorrow-night .ace_comment.ace_doc {\ + \ +}\ +\ +.ace-tomorrow-night .ace_comment.ace_doc.ace_tag {\ + \ +}\ +\ +.ace-tomorrow-night .ace_variable {\ + color:#CC6666;\ +}\ +\ +.ace-tomorrow-night .ace_variable.ace_language {\ + \ +}\ +\ +.ace-tomorrow-night .ace_xml_pe {\ + \ +}\ +\ +.ace-tomorrow-night .ace_meta {\ + \ +}\ +\ +.ace-tomorrow-night .ace_meta.ace_tag {\ + color:#CC6666;\ +}\ +\ +.ace-tomorrow-night .ace_meta.ace_tag.ace_input {\ + \ +}\ +\ +.ace-tomorrow-night .ace_entity.ace_other.ace_attribute-name {\ + color:#CC6666;\ +}\ +\ +.ace-tomorrow-night .ace_entity.ace_name {\ + \ +}\ +\ +.ace-tomorrow-night .ace_entity.ace_name.ace_function {\ + color:#81A2BE;\ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_underline {\ + text-decoration:underline;\ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading {\ + color:#B5BD68;\ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_1 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_2 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_3 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_4 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_5 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_heading.ace_6 {\ + \ +}\ +\ +.ace-tomorrow-night .ace_markup.ace_list {\ + \ +}\ +\ +.ace-tomorrow-night .ace_collab.ace_user1 {\ + \ +}"; + + // import CSS once + dom.importCssString(cssText); + + exports.cssClass = "ace-tomorrow-night"; +}); \ No newline at end of file diff --git a/lib/ace/theme/tomorrow_night_blue.js b/lib/ace/theme/tomorrow_night_blue.js new file mode 100644 index 00000000..b8766d26 --- /dev/null +++ b/lib/ace/theme/tomorrow_night_blue.js @@ -0,0 +1,261 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Ajax.org Code Editor (ACE). + * + * The Initial Developer of the Original Code is + * Ajax.org B.V. + * Portions created by the Initial Developer are Copyright (C) 2010 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Fabian Jakobs + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +define(function(require, exports, module) { + + var dom = require("pilot/dom"); + + var cssText = ".ace-tomorrow-night-blue .ace_editor {\ + border: 2px solid rgb(159, 159, 159);\ +}\ +\ +.ace-tomorrow-night-blue .ace_editor.ace_focus {\ + border: 2px solid #327fbd;\ +}\ +\ +.ace-tomorrow-night-blue .ace_gutter {\ + width: 50px;\ + background: #e8e8e8;\ + color: #333;\ + overflow : hidden;\ +}\ +\ +.ace-tomorrow-night-blue .ace_gutter-layer {\ + width: 100%;\ + text-align: right;\ +}\ +\ +.ace-tomorrow-night-blue .ace_gutter-layer .ace_gutter-cell {\ + padding-right: 6px;\ +}\ +\ +.ace-tomorrow-night-blue .ace_print_margin {\ + width: 1px;\ + background: #e8e8e8;\ +}\ +\ +.ace-tomorrow-night-blue .ace_scroller {\ + background-color: #002451;\ +}\ +\ +.ace-tomorrow-night-blue .ace_text-layer {\ + cursor: text;\ + color: #FFFFFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_cursor {\ + border-left: 2px solid #FFFFFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #FFFFFF;\ +}\ + \ +.ace-tomorrow-night-blue .ace_marker-layer .ace_selection {\ + background: #003F8E;\ +}\ +\ +.ace-tomorrow-night-blue .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ +}\ +\ +.ace-tomorrow-night-blue .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #404F7D;\ +}\ +\ +.ace-tomorrow-night-blue .ace_marker-layer .ace_active_line {\ + background: #00346E;\ +}\ +\ + \ +.ace-tomorrow-night-blue .ace_invisible {\ + color: #404F7D;\ +}\ +\ +.ace-tomorrow-night-blue .ace_keyword {\ + color:#EBBBFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_keyword.ace_operator {\ + color:#99FFFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_constant {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_constant.ace_language {\ + color:#FFC58F;\ +}\ +\ +.ace-tomorrow-night-blue .ace_constant.ace_library {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_constant.ace_numeric {\ + color:#FFC58F;\ +}\ +\ +.ace-tomorrow-night-blue .ace_invalid {\ + color:#FFFFFF;\ +background-color:#F99DA5;\ +}\ +\ +.ace-tomorrow-night-blue .ace_invalid.ace_illegal {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_invalid.ace_deprecated {\ + color:#FFFFFF;\ +background-color:#EBBBFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_support {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_support.ace_function {\ + color:#BBDAFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_function.ace_buildin {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_string {\ + color:#D1F1A9;\ +}\ +\ +.ace-tomorrow-night-blue .ace_string.ace_regexp {\ + color:#FF9DA4;\ +}\ +\ +.ace-tomorrow-night-blue .ace_comment {\ + color:#7285B7;\ +}\ +\ +.ace-tomorrow-night-blue .ace_comment.ace_doc {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_comment.ace_doc.ace_tag {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_variable {\ + color:#FF9DA4;\ +}\ +\ +.ace-tomorrow-night-blue .ace_variable.ace_language {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_xml_pe {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_meta {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_meta.ace_tag {\ + color:#FF9DA4;\ +}\ +\ +.ace-tomorrow-night-blue .ace_meta.ace_tag.ace_input {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_entity.ace_other.ace_attribute-name {\ + color:#FF9DA4;\ +}\ +\ +.ace-tomorrow-night-blue .ace_entity.ace_name {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_entity.ace_name.ace_function {\ + color:#BBDAFF;\ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_underline {\ + text-decoration:underline;\ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading {\ + color:#D1F1A9;\ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_1 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_2 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_3 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_4 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_5 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_heading.ace_6 {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_markup.ace_list {\ + \ +}\ +\ +.ace-tomorrow-night-blue .ace_collab.ace_user1 {\ + \ +}"; + + // import CSS once + dom.importCssString(cssText); + + exports.cssClass = "ace-tomorrow-night-blue"; +}); \ No newline at end of file diff --git a/lib/ace/theme/tomorrow_night_bright.js b/lib/ace/theme/tomorrow_night_bright.js new file mode 100644 index 00000000..3072559f --- /dev/null +++ b/lib/ace/theme/tomorrow_night_bright.js @@ -0,0 +1,261 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Ajax.org Code Editor (ACE). + * + * The Initial Developer of the Original Code is + * Ajax.org B.V. + * Portions created by the Initial Developer are Copyright (C) 2010 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Fabian Jakobs + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +define(function(require, exports, module) { + + var dom = require("pilot/dom"); + + var cssText = ".ace-tomorrow-night-bright .ace_editor {\ + border: 2px solid rgb(159, 159, 159);\ +}\ +\ +.ace-tomorrow-night-bright .ace_editor.ace_focus {\ + border: 2px solid #327fbd;\ +}\ +\ +.ace-tomorrow-night-bright .ace_gutter {\ + width: 50px;\ + background: #e8e8e8;\ + color: #333;\ + overflow : hidden;\ +}\ +\ +.ace-tomorrow-night-bright .ace_gutter-layer {\ + width: 100%;\ + text-align: right;\ +}\ +\ +.ace-tomorrow-night-bright .ace_gutter-layer .ace_gutter-cell {\ + padding-right: 6px;\ +}\ +\ +.ace-tomorrow-night-bright .ace_print_margin {\ + width: 1px;\ + background: #e8e8e8;\ +}\ +\ +.ace-tomorrow-night-bright .ace_scroller {\ + background-color: #000000;\ +}\ +\ +.ace-tomorrow-night-bright .ace_text-layer {\ + cursor: text;\ + color: #DEDEDE;\ +}\ +\ +.ace-tomorrow-night-bright .ace_cursor {\ + border-left: 2px solid #9F9F9F;\ +}\ +\ +.ace-tomorrow-night-bright .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #9F9F9F;\ +}\ + \ +.ace-tomorrow-night-bright .ace_marker-layer .ace_selection {\ + background: #424242;\ +}\ +\ +.ace-tomorrow-night-bright .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ +}\ +\ +.ace-tomorrow-night-bright .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #343434;\ +}\ +\ +.ace-tomorrow-night-bright .ace_marker-layer .ace_active_line {\ + background: #2A2A2A;\ +}\ +\ + \ +.ace-tomorrow-night-bright .ace_invisible {\ + color: #343434;\ +}\ +\ +.ace-tomorrow-night-bright .ace_keyword {\ + color:#C397D8;\ +}\ +\ +.ace-tomorrow-night-bright .ace_keyword.ace_operator {\ + color:#70C0B1;\ +}\ +\ +.ace-tomorrow-night-bright .ace_constant {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_constant.ace_language {\ + color:#E78C45;\ +}\ +\ +.ace-tomorrow-night-bright .ace_constant.ace_library {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_constant.ace_numeric {\ + color:#E78C45;\ +}\ +\ +.ace-tomorrow-night-bright .ace_invalid {\ + color:#CED2CF;\ +background-color:#DF5F5F;\ +}\ +\ +.ace-tomorrow-night-bright .ace_invalid.ace_illegal {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_invalid.ace_deprecated {\ + color:#CED2CF;\ +background-color:#B798BF;\ +}\ +\ +.ace-tomorrow-night-bright .ace_support {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_support.ace_function {\ + color:#7AA6DA;\ +}\ +\ +.ace-tomorrow-night-bright .ace_function.ace_buildin {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_string {\ + color:#B9CA4A;\ +}\ +\ +.ace-tomorrow-night-bright .ace_string.ace_regexp {\ + color:#D54E53;\ +}\ +\ +.ace-tomorrow-night-bright .ace_comment {\ + color:#969896;\ +}\ +\ +.ace-tomorrow-night-bright .ace_comment.ace_doc {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_comment.ace_doc.ace_tag {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_variable {\ + color:#D54E53;\ +}\ +\ +.ace-tomorrow-night-bright .ace_variable.ace_language {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_xml_pe {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_meta {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_meta.ace_tag {\ + color:#D54E53;\ +}\ +\ +.ace-tomorrow-night-bright .ace_meta.ace_tag.ace_input {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_entity.ace_other.ace_attribute-name {\ + color:#D54E53;\ +}\ +\ +.ace-tomorrow-night-bright .ace_entity.ace_name {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_entity.ace_name.ace_function {\ + color:#7AA6DA;\ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_underline {\ + text-decoration:underline;\ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading {\ + color:#B9CA4A;\ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_1 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_2 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_3 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_4 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_5 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_heading.ace_6 {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_markup.ace_list {\ + \ +}\ +\ +.ace-tomorrow-night-bright .ace_collab.ace_user1 {\ + \ +}"; + + // import CSS once + dom.importCssString(cssText); + + exports.cssClass = "ace-tomorrow-night-bright"; +}); \ No newline at end of file diff --git a/lib/ace/theme/tomorrow_night_eighties.js b/lib/ace/theme/tomorrow_night_eighties.js new file mode 100644 index 00000000..6dd7dcf0 --- /dev/null +++ b/lib/ace/theme/tomorrow_night_eighties.js @@ -0,0 +1,261 @@ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Ajax.org Code Editor (ACE). + * + * The Initial Developer of the Original Code is + * Ajax.org B.V. + * Portions created by the Initial Developer are Copyright (C) 2010 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Fabian Jakobs + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +define(function(require, exports, module) { + + var dom = require("pilot/dom"); + + var cssText = ".ace-tomorrow-night-eighties .ace_editor {\ + border: 2px solid rgb(159, 159, 159);\ +}\ +\ +.ace-tomorrow-night-eighties .ace_editor.ace_focus {\ + border: 2px solid #327fbd;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_gutter {\ + width: 50px;\ + background: #e8e8e8;\ + color: #333;\ + overflow : hidden;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_gutter-layer {\ + width: 100%;\ + text-align: right;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_gutter-layer .ace_gutter-cell {\ + padding-right: 6px;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_print_margin {\ + width: 1px;\ + background: #e8e8e8;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_scroller {\ + background-color: #2D2D2D;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_text-layer {\ + cursor: text;\ + color: #CCCCCC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_cursor {\ + border-left: 2px solid #CCCCCC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_cursor.ace_overwrite {\ + border-left: 0px;\ + border-bottom: 1px solid #CCCCCC;\ +}\ + \ +.ace-tomorrow-night-eighties .ace_marker-layer .ace_selection {\ + background: #515151;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_marker-layer .ace_step {\ + background: rgb(198, 219, 174);\ +}\ +\ +.ace-tomorrow-night-eighties .ace_marker-layer .ace_bracket {\ + margin: -1px 0 0 -1px;\ + border: 1px solid #6A6A6A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_marker-layer .ace_active_line {\ + background: #393939;\ +}\ +\ + \ +.ace-tomorrow-night-eighties .ace_invisible {\ + color: #6A6A6A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_keyword {\ + color:#CC99CC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_keyword.ace_operator {\ + color:#66CCCC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_constant {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_constant.ace_language {\ + color:#F99157;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_constant.ace_library {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_constant.ace_numeric {\ + color:#F99157;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_invalid {\ + color:#CDCDCD;\ +background-color:#F2777A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_invalid.ace_illegal {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_invalid.ace_deprecated {\ + color:#CDCDCD;\ +background-color:#CC99CC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_support {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_support.ace_function {\ + color:#6699CC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_function.ace_buildin {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_string {\ + color:#99CC99;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_string.ace_regexp {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_comment {\ + color:#999999;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_comment.ace_doc {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_comment.ace_doc.ace_tag {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_variable {\ + color:#F2777A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_variable.ace_language {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_xml_pe {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_meta {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_meta.ace_tag {\ + color:#F2777A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_meta.ace_tag.ace_input {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_entity.ace_other.ace_attribute-name {\ + color:#F2777A;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_entity.ace_name {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_entity.ace_name.ace_function {\ + color:#6699CC;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_underline {\ + text-decoration:underline;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading {\ + color:#99CC99;\ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_1 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_2 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_3 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_4 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_5 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_heading.ace_6 {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_markup.ace_list {\ + \ +}\ +\ +.ace-tomorrow-night-eighties .ace_collab.ace_user1 {\ + \ +}"; + + // import CSS once + dom.importCssString(cssText); + + exports.cssClass = "ace-tomorrow-night-eighties"; +}); \ No newline at end of file diff --git a/tool/tmtheme.js b/tool/tmtheme.js index fe3656b7..01ca1dc0 100644 --- a/tool/tmtheme.js +++ b/tool/tmtheme.js @@ -6,7 +6,7 @@ function plistToJson(el) { throw new Error("not a plist!"); return $plistParse(el.selectSingleNode("dict")); -}; +} function $plistParse(el) { if (el.tagName == "dict") { @@ -31,7 +31,7 @@ function $plistParse(el) { } else if (el.tagName == "array") { var arr = []; - var childNodes = el.childNodes; + var childNodes = el.childNodes; for (var i=0, l=childNodes.length; i