move background color to the root element

This commit is contained in:
nightwing 2013-05-29 00:22:30 +04:00
commit 968688fb40
55 changed files with 97 additions and 163 deletions

View file

@ -4,6 +4,7 @@
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
font-size: 12px; font-size: 12px;
line-height: normal; line-height: normal;
color: black;
} }
.ace_scroller { .ace_scroller {
@ -11,6 +12,7 @@
overflow: hidden; overflow: hidden;
top: 0; top: 0;
bottom: 0; bottom: 0;
background-color: inherit;
} }
.ace_content { .ace_content {
@ -135,7 +137,6 @@
} }
.ace_text-layer { .ace_text-layer {
color: black;
font: inherit !important; font: inherit !important;
} }

View file

@ -51,15 +51,15 @@
} }
.ace-ambiance .ace_scroller { .ace-ambiance .ace_scroller {
background-color: #202020;
-webkit-box-shadow: inset 0 0 10px black; -webkit-box-shadow: inset 0 0 10px black;
-moz-box-shadow: inset 0 0 10px black; -moz-box-shadow: inset 0 0 10px black;
-o-box-shadow: inset 0 0 10px black; -o-box-shadow: inset 0 0 10px black;
box-shadow: inset 0 0 10px black; box-shadow: inset 0 0 10px black;
} }
.ace-ambiance .ace_text-layer { .ace-ambiance {
color: #E6E1DC; color: #E6E1DC;
background-color: #202020;
} }
.ace-ambiance .ace_cursor { .ace-ambiance .ace_cursor {

View file

@ -23,13 +23,11 @@
right: 0; right: 0;
background: #1D1D1D; background: #1D1D1D;
} }
.ace-chaos .ace_scroller { .ace-chaos {
background-color: #161616; background-color: #161616;
}
.ace-chaos .ace_text-layer {
cursor: text;
color: #E6E1DC; color: #E6E1DC;
} }
.ace-chaos .ace_cursor { .ace-chaos .ace_cursor {
border-left: 2px solid #FFFFFF; border-left: 2px solid #FFFFFF;
} }

View file

@ -9,7 +9,7 @@
background: #e8e8e8; background: #e8e8e8;
} }
.ace-chrome .ace_scroller { .ace-chrome {
background-color: #FFFFFF; background-color: #FFFFFF;
} }

View file

@ -8,11 +8,8 @@
background: #e8e8e8 background: #e8e8e8
} }
.ace-clouds .ace_scroller { .ace-clouds {
background-color: #FFFFFF background-color: #FFFFFF;
}
.ace-clouds .ace_text-layer {
color: #000000 color: #000000
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #232323 background: #232323
} }
.ace-clouds-midnight .ace_scroller { .ace-clouds-midnight{
background-color: #191919 background-color: #191919;
}
.ace-clouds-midnight .ace_text-layer {
color: #929292 color: #929292
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #011e3a background: #011e3a
} }
.ace-cobalt .ace_scroller { .ace-cobalt {
background-color: #002240 background-color: #002240;
}
.ace-cobalt .ace_text-layer {
color: #FFFFFF color: #FFFFFF
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -14,11 +14,8 @@
background: #e8e8e8; background: #e8e8e8;
} }
.ace-crimson-editor .ace_scroller { .ace-crimson-editor {
background-color: #FFFFFF; background-color: #FFFFFF;
}
.ace-crimson-editor .ace_text-layer {
color: rgb(64, 64, 64); color: rgb(64, 64, 64);
} }

View file

@ -8,11 +8,8 @@
background: #e8e8e8 background: #e8e8e8
} }
.ace-dawn .ace_scroller { .ace-dawn {
background-color: #F9F9F9 background-color: #F9F9F9;
}
.ace-dawn .ace_text-layer {
color: #080808 color: #080808
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,7 +8,7 @@
background: #e8e8e8; background: #e8e8e8;
} }
.ace-dreamweaver .ace_scroller { .ace-dreamweaver {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
@ -16,9 +16,6 @@
background-color: #757AD8; background-color: #757AD8;
} }
.ace-dreamweaver .ace_text-layer {
}
.ace-dreamweaver .ace_cursor { .ace-dreamweaver .ace_cursor {
border-left: 2px solid black; border-left: 2px solid black;
} }

View file

@ -9,7 +9,7 @@
background: #ebebeb; background: #ebebeb;
} }
.ace-eclipse .ace_scroller { .ace-eclipse {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
@ -17,9 +17,6 @@
background-color: rgb(60, 76, 114); background-color: rgb(60, 76, 114);
} }
.ace-eclipse .ace_text-layer {
}
.ace-eclipse .ace_cursor { .ace-eclipse .ace_cursor {
border-left: 2px solid black; border-left: 2px solid black;
} }

View file

@ -5,8 +5,9 @@
color: #AAA; color: #AAA;
} }
.ace-github .ace_scroller { .ace-github {
background: #fff; background: #fff;
color: #000;
} }
.ace-github .ace_keyword { .ace-github .ace_keyword {
@ -63,9 +64,6 @@
font-weight: bold; font-weight: bold;
} }
.ace-github .ace_text-layer {
}
.ace-github .ace_cursor { .ace-github .ace_cursor {
border-left: 2px solid black; border-left: 2px solid black;
} }

View file

@ -8,8 +8,9 @@
background: #3b3b3b background: #3b3b3b
} }
.ace-idle-fingers .ace_scroller { .ace-idle-fingers {
background-color: #323232 background-color: #323232;
color: #FFFFFF
} }
.ace-idle-fingers .ace_text-layer { .ace-idle-fingers .ace_text-layer {

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #1c1917 background: #1c1917
} }
.ace-kr-theme .ace_scroller { .ace-kr-theme {
background-color: #0B0A09 background-color: #0B0A09;
}
.ace-kr-theme .ace_text-layer {
color: #FCFFE0 color: #FCFFE0
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #555651 background: #555651
} }
.ace-merbivore .ace_scroller { .ace-merbivore {
background-color: #161616 background-color: #161616;
}
.ace-merbivore .ace_text-layer {
color: #E6E1DC color: #E6E1DC
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #262424 background: #262424
} }
.ace-merbivore-soft .ace_scroller { .ace-merbivore-soft {
background-color: #1C1C1C background-color: #1C1C1C;
}
.ace-merbivore-soft .ace_text-layer {
color: #E6E1DC color: #E6E1DC
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #555651 background: #555651
} }
.ace-mono-industrial .ace_scroller { .ace-mono-industrial {
background-color: #222C28 background-color: #222C28;
}
.ace-mono-industrial .ace_text-layer {
color: #FFFFFF color: #FFFFFF
} }
@ -135,4 +132,4 @@
.ace-mono-industrial .ace_indent-guide { .ace-mono-industrial .ace_indent-guide {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ0tH4zzBz5sz/ABAOBECKH+evAAAAAElFTkSuQmCC) right repeat-y background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNQ0tH4zzBz5sz/ABAOBECKH+evAAAAAElFTkSuQmCC) right repeat-y
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #555651 background: #555651
} }
.ace-monokai .ace_scroller { .ace-monokai {
background-color: #272822 background-color: #272822;
}
.ace-monokai .ace_text-layer {
color: #F8F8F2 color: #F8F8F2
} }
@ -102,6 +99,7 @@
.ace-monokai .ace_entity.ace_name.ace_function, .ace-monokai .ace_entity.ace_name.ace_function,
.ace-monokai .ace_entity.ace_other, .ace-monokai .ace_entity.ace_other,
.ace-monokai .ace_entity.ace_other.ace_attribute-name,
.ace-monokai .ace_variable { .ace-monokai .ace_variable {
color: #A6E22E color: #A6E22E
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #353030 background: #353030
} }
.ace-pastel-on-dark .ace_scroller { .ace-pastel-on-dark {
background-color: #2C2828 background-color: #2C2828;
}
.ace-pastel-on-dark .ace_text-layer {
color: #8F938F color: #8F938F
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,8 +8,9 @@
background: #33555E background: #33555E
} }
.ace-solarized-dark .ace_scroller { .ace-solarized-dark {
background-color: #002B36 background-color: #002B36;
color: #93A1A1
} }
.ace-solarized-dark .ace_entity.ace_other.ace_attribute-name, .ace-solarized-dark .ace_entity.ace_other.ace_attribute-name,

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #e8e8e8 background: #e8e8e8
} }
.ace-solarized-light .ace_scroller { .ace-solarized-light {
background-color: #FDF6E3 background-color: #FDF6E3;
}
.ace-solarized-light .ace_text-layer {
color: #586E75 color: #586E75
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #1a1a1a background: #1a1a1a
} }
.ace-terminal-theme .ace_scroller { .ace-terminal-theme {
background-color: black background-color: black
}
.ace-terminal-theme .ace_text-layer {
color: #DEDEDE color: #DEDEDE
} }

View file

@ -12,7 +12,7 @@
background-color: #6B72E6; background-color: #6B72E6;
} }
.ace-tm .ace_scroller { .ace-tm {
background-color: #FFFFFF; background-color: #FFFFFF;
} }

View file

@ -8,11 +8,9 @@
background: #f6f6f6 background: #f6f6f6
} }
.ace-tomorrow,
.ace-tomorrow .ace_scroller { .ace-tomorrow .ace_scroller {
background-color: #FFFFFF background-color: #FFFFFF;
}
.ace-tomorrow .ace_text-layer {
color: #4D4D4C color: #4D4D4C
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #25282c background: #25282c
} }
.ace-tomorrow-night .ace_scroller { .ace-tomorrow-night {
background-color: #1D1F21 background-color: #1D1F21;
}
.ace-tomorrow-night .ace_text-layer {
color: #C5C8C6 color: #C5C8C6
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,12 +8,12 @@
background: #00204b background: #00204b
} }
.ace-tomorrow-night-blue .ace_scroller { .ace-tomorrow-night-blue {
background-color: #002451 background-color: #002451;
color: #FFFFFF
} }
.ace-tomorrow-night-blue .ace_constant.ace_other, .ace-tomorrow-night-blue .ace_constant.ace_other {
.ace-tomorrow-night-blue .ace_text-layer {
color: #FFFFFF color: #FFFFFF
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #1a1a1a background: #1a1a1a
} }
.ace-tomorrow-night-bright .ace_scroller { .ace-tomorrow-night-bright {
background-color: #000000 background-color: #000000;
}
.ace-tomorrow-night-bright .ace_text-layer {
color: #DEDEDE color: #DEDEDE
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,12 +8,12 @@
background: #272727 background: #272727
} }
.ace-tomorrow-night-eighties .ace_scroller { .ace-tomorrow-night-eighties {
background-color: #2D2D2D background-color: #2D2D2D;
color: #CCCCCC
} }
.ace-tomorrow-night-eighties .ace_constant.ace_other, .ace-tomorrow-night-eighties .ace_constant.ace_other {
.ace-tomorrow-night-eighties .ace_text-layer {
color: #CCCCCC color: #CCCCCC
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #232323 background: #232323
} }
.ace-twilight .ace_scroller { .ace-twilight {
background-color: #141414 background-color: #141414;
}
.ace-twilight .ace_text-layer {
color: #F8F8F8 color: #F8F8F8
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -8,11 +8,8 @@
background: #1a1a1a background: #1a1a1a
} }
.ace-vibrant-ink .ace_scroller { .ace-vibrant-ink {
background-color: #0F0F0F background-color: #0F0F0F;
}
.ace-vibrant-ink .ace_text-layer {
color: #FFFFFF color: #FFFFFF
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -10,11 +10,8 @@
background: #e8e8e8 background: #e8e8e8
} }
.ace-xcode .ace_scroller { .ace-xcode {
background-color: #FFFFFF background-color: #FFFFFF;
}
.ace-xcode .ace_text-layer {
color: #000000 color: #000000
} }
@ -107,5 +104,5 @@
} }
.ace-xcode .ace_indent-guide { .ace-xcode .ace_indent-guide {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==) right repeat-y
} }

View file

@ -3,7 +3,7 @@
* *
* Copyright (c) 2010, Ajax.org B.V. * Copyright (c) 2010, Ajax.org B.V.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright * * Redistributions of source code must retain the above copyright

View file

@ -3,7 +3,7 @@
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"plist": "", "plist": "",
"css-parse": "", "css-parse": "1.0.3",
"css-stringify": "" "css-stringify": "1.0.3"
} }
} }

View file

@ -10,11 +10,8 @@
background: %printMargin%; background: %printMargin%;
} }
.%cssClass% .ace_scroller { .%cssClass% {
background-color: %background%; background-color: %background%;
}
.%cssClass% .ace_text-layer {
color: %foreground%; color: %foreground%;
} }

View file

@ -248,7 +248,6 @@ var themes = {
"solarized_dark": "Solarized-dark", "solarized_dark": "Solarized-dark",
"solarized_light": "Solarized-light", "solarized_light": "Solarized-light",
//"textmate": "Textmate (Mac Classic)", //"textmate": "Textmate (Mac Classic)",
"terminal": "Terminal"
"tomorrow": "Tomorrow", "tomorrow": "Tomorrow",
"tomorrow_night": "Tomorrow-Night", "tomorrow_night": "Tomorrow-Night",
"tomorrow_night_blue": "Tomorrow-Night-Blue", "tomorrow_night_blue": "Tomorrow-Night-Blue",
@ -256,7 +255,7 @@ var themes = {
"tomorrow_night_eighties": "Tomorrow-Night-Eighties", "tomorrow_night_eighties": "Tomorrow-Night-Eighties",
"twilight": "Twilight", "twilight": "Twilight",
"vibrant_ink": "Vibrant Ink", "vibrant_ink": "Vibrant Ink",
//"xcode": "Xcode_default" "xcode": "Xcode_default"
}; };
function convertTheme(name) { function convertTheme(name) {
@ -277,13 +276,6 @@ function convertTheme(name) {
i.replace(/^|\./g, ".ace_") + "{" + styles[i] + "}"; i.replace(/^|\./g, ".ace_") + "{" + styles[i] + "}";
} }
var js = fillTemplate(jsTemplate, {
name: name,
css: 'require("../requirejs/text!./' + name + '.css")', // quoteString(css), //
cssClass: "ace-" + hyphenate(name),
isDark: styles.isDark
});
// we're going to look for NEW rules in the parsed content only // we're going to look for NEW rules in the parsed content only
// if such a rule exists, add it to the destination file // if such a rule exists, add it to the destination file
// this way, we preserve all hand-modified rules in the <theme>.css rules, // this way, we preserve all hand-modified rules in the <theme>.css rules,
@ -319,6 +311,13 @@ function convertTheme(name) {
console.log("Creating new file: " + name + ".css") console.log("Creating new file: " + name + ".css")
} }
var js = fillTemplate(jsTemplate, {
name: name,
css: 'require("../requirejs/text!./' + name + '.css")', // quoteString(css), //
cssClass: "ace-" + hyphenate(name),
isDark: styles.isDark
});
fs.writeFileSync(__dirname + "/../lib/ace/theme/" + name + ".js", js); fs.writeFileSync(__dirname + "/../lib/ace/theme/" + name + ".js", js);
fs.writeFileSync(__dirname + "/../lib/ace/theme/" + name + ".css", css); fs.writeFileSync(__dirname + "/../lib/ace/theme/" + name + ".css", css);
}) })