update themes
This commit is contained in:
parent
b6fbe5b6bb
commit
9ef05262f4
29 changed files with 305 additions and 1245 deletions
|
|
@ -101,7 +101,8 @@
|
|||
}
|
||||
|
||||
.%cssClass% .ace_fold {
|
||||
outline-color: %foldOutline%
|
||||
background-color: %fold%;
|
||||
border-color: %foreground%;
|
||||
}
|
||||
|
||||
.%cssClass% .ace_support.ace_function {
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ function extractStyles(theme) {
|
|||
"cursor": parseColor(globalSettings.caret),
|
||||
|
||||
"invisible": "color: " + parseColor(globalSettings.invisibles) + ";"
|
||||
}
|
||||
};
|
||||
|
||||
for (var i=1; i<theme.settings.length; i++) {
|
||||
var element = theme.settings[i];
|
||||
|
|
@ -133,17 +133,17 @@ function extractStyles(theme) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!colors.foldOutline)
|
||||
colors.foldOutline = (colors.keyword.match(/\:([^;]+)/)||[])[1];
|
||||
|
||||
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 + ";";
|
||||
|
||||
colors.isDark = (luma(colors.background) < 0.5) + ""
|
||||
colors.isDark = (luma(colors.background) < 0.5) + "";
|
||||
|
||||
return colors;
|
||||
};
|
||||
}
|
||||
|
||||
function luma(color) {
|
||||
if (color[0]=="#")
|
||||
|
|
@ -155,7 +155,7 @@ function luma(color) {
|
|||
return parseInt(c, 10);
|
||||
});
|
||||
|
||||
return (0.21 * rgb[0] + 0.72 * rgb[1] + 0.07 * rgb[2]) / 255
|
||||
return (0.21 * rgb[0] + 0.72 * rgb[1] + 0.07 * rgb[2]) / 255;
|
||||
}
|
||||
|
||||
function parseColor(color) {
|
||||
|
|
@ -206,8 +206,8 @@ function createTheme(name, styles, cssTemplate, jsTemplate) {
|
|||
css: '"' + css.replace(/\\/, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\\n") + '"',
|
||||
cssClass: "ace-" + hyphenate(name),
|
||||
isDark: styles.isDark
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
function hyphenate(str) {
|
||||
return str.replace(/([A-Z])/g, "-$1").replace(/_/g, "-").toLowerCase();
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<key>lineHighlight</key>
|
||||
<string>#333435</string>
|
||||
<key>selection</key>
|
||||
<string>#392243E0</string>
|
||||
<string>#494949</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -44,6 +44,19 @@
|
|||
<string>#AC4BB8</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Deprecated</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#FFFFFF</string>
|
||||
<key>background</key>
|
||||
<string>#FE3838</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Keyword</string>
|
||||
|
|
@ -169,6 +182,17 @@
|
|||
<string></string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library constant</string>
|
||||
<key>scope</key>
|
||||
<string>constant.library</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#8EC65F</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library type</string>
|
||||
|
|
@ -204,6 +228,19 @@
|
|||
<string>#FC803A</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Markup tag</string>
|
||||
<key>scope</key>
|
||||
<string>meta</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>italic</string>
|
||||
<key>foreground</key>
|
||||
<string>#AC4BB8</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Markup tag attribute</string>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<key>lineHighlight</key>
|
||||
<string>#333435</string>
|
||||
<key>selection</key>
|
||||
<string>#5A647EE0</string>
|
||||
<string>#454545</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -132,6 +132,28 @@
|
|||
<key>settings</key>
|
||||
<dict/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Constant lib</string>
|
||||
<key>scope</key>
|
||||
<string>constant.library</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#8DFF0A</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>support function</string>
|
||||
<key>scope</key>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#FC6F09</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Constant (built-in)</string>
|
||||
|
|
@ -158,17 +180,6 @@
|
|||
<string>#8DFF0A</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library function</string>
|
||||
<key>scope</key>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library type</string>
|
||||
|
|
|
|||
|
|
@ -12,17 +12,17 @@
|
|||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#211E1E</string>
|
||||
<string>#2C2828</string>
|
||||
<key>caret</key>
|
||||
<string>#FFFFFF</string>
|
||||
<string>#A7A7A7</string>
|
||||
<key>foreground</key>
|
||||
<string>#DADADA</string>
|
||||
<string>#8F938F</string>
|
||||
<key>invisibles</key>
|
||||
<string>#4F4D4D</string>
|
||||
<string>#FFFFFF40</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#353030</string>
|
||||
<string>#FFFFFF08</string>
|
||||
<key>selection</key>
|
||||
<string>#73597E80</string>
|
||||
<string>#DDF0FF33</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#555555</string>
|
||||
<string>#A6C6FF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -48,7 +48,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#555555</string>
|
||||
<string>#A6C6FF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -59,7 +59,7 @@
|
|||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AD9361</string>
|
||||
<string>#66A968</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#A1A1FF</string>
|
||||
<string>#757aD8</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -122,7 +122,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#A1A1FF</string>
|
||||
<string>#AEB2F8</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -206,15 +206,28 @@
|
|||
<key>name</key>
|
||||
<string>Invalid</string>
|
||||
<key>scope</key>
|
||||
<string>invalid</string>
|
||||
<string>invalid, invalid.illegal</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#FF0000</string>
|
||||
<string>#562D56BF</string>
|
||||
<key>fontStyle</key>
|
||||
<string>bold</string>
|
||||
<key>foreground</key>
|
||||
<string>#FFF9F9</string>
|
||||
<string>#F8F8F8</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Invalid</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>italic, underline</string>
|
||||
<key>foreground</key>
|
||||
<string>#D2A8A1</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -224,6 +237,8 @@
|
|||
<string>invalid.deprecated.trailing-whitespace</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>bold</string>
|
||||
<key>background</key>
|
||||
<string>#FFD0D0</string>
|
||||
</dict>
|
||||
|
|
@ -260,7 +275,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#666666</string>
|
||||
<string>#E9C062</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -269,6 +284,17 @@
|
|||
<key>scope</key>
|
||||
<string>variable</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#BEBF55</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Variables</string>
|
||||
<key>scope</key>
|
||||
<string>variable.language</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C1C144</string>
|
||||
|
|
@ -282,7 +308,7 @@
|
|||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#6782D3</string>
|
||||
<string>#4FB7C5</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -384,7 +410,7 @@
|
|||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#47B8D6</string>
|
||||
<string>#797878</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -419,7 +445,7 @@
|
|||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#888888</string>
|
||||
<string>#494949</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#000000</string>
|
||||
<string>#0F0F0F</string>
|
||||
<key>caret</key>
|
||||
<string>#FFFFFF</string>
|
||||
<key>foreground</key>
|
||||
|
|
@ -18,9 +18,9 @@
|
|||
<key>invisibles</key>
|
||||
<string>#404040</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#333300</string>
|
||||
<string>#333333</string>
|
||||
<key>selection</key>
|
||||
<string>#35493CE0</string>
|
||||
<string>#6699CC</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -62,13 +62,26 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Ruby Number</string>
|
||||
<string>Invalid </string>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric.ruby</string>
|
||||
<string>invalid, invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#CCFF33</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Number</string>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#CCFF33</string>
|
||||
<string>#99CC99</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
@ -205,13 +218,13 @@
|
|||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>ActiveRecord Function</string>
|
||||
<string>Support Function</string>
|
||||
<key>scope</key>
|
||||
<string>support.function.activerecord.rails</string>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#999966</string>
|
||||
<string>#FFCC00</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue