Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
ea651c1f
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ea651c1f
编写于
3月 17, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update seti theme to jesseweed/seti-ui@f7e582f (2017-03-14)
上级
a3dba6ed
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
145 addition
and
60 deletion
+145
-60
extensions/theme-seti/build/update-icon-theme.js
extensions/theme-seti/build/update-icon-theme.js
+60
-9
extensions/theme-seti/icons/seti.woff
extensions/theme-seti/icons/seti.woff
+0
-0
extensions/theme-seti/icons/vs-seti-icon-theme.json
extensions/theme-seti/icons/vs-seti-icon-theme.json
+85
-51
未找到文件。
extensions/theme-seti/build/update-icon-theme.js
浏览文件 @
ea651c1f
...
...
@@ -28,9 +28,12 @@ function getCommitSha(repoId, repoPath) {
});
}
function
download
(
urlString
)
{
function
download
(
source
)
{
if
(
source
.
startsWith
(
'
.
'
))
{
return
readFile
(
source
);
}
return
new
Promise
((
c
,
e
)
=>
{
var
_url
=
url
.
parse
(
urlString
);
var
_url
=
url
.
parse
(
source
);
var
options
=
{
host
:
_url
.
host
,
port
:
_url
.
port
,
path
:
_url
.
path
,
headers
:
{
'
User-Agent
'
:
'
NodeJS
'
}};
var
content
=
''
;
https
.
get
(
options
,
function
(
response
)
{
...
...
@@ -45,9 +48,25 @@ function download(urlString) {
});
}
function
downloadBinary
(
urlString
,
dest
)
{
function
readFile
(
fileName
)
{
return
new
Promise
((
c
,
e
)
=>
{
https
.
get
(
urlString
,
function
(
response
)
{
fs
.
readFile
(
fileName
,
function
(
err
,
data
)
{
if
(
err
)
{
e
(
err
);
}
else
{
c
(
data
.
toString
());
}
});
});
}
function
downloadBinary
(
source
,
dest
)
{
if
(
source
.
startsWith
(
'
.
'
))
{
return
copyFile
(
source
,
dest
);
}
return
new
Promise
((
c
,
e
)
=>
{
https
.
get
(
source
,
function
(
response
)
{
switch
(
response
.
statusCode
)
{
case
200
:
var
file
=
fs
.
createWriteStream
(
dest
);
...
...
@@ -75,6 +94,29 @@ function downloadBinary(urlString, dest) {
});
}
function
copyFile
(
fileName
,
dest
)
{
return
new
Promise
((
c
,
e
)
=>
{
var
cbCalled
=
false
;
function
handleError
(
err
)
{
if
(
!
cbCalled
)
{
e
(
err
);
cbCalled
=
true
;
}
}
var
rd
=
fs
.
createReadStream
(
fileName
);
rd
.
on
(
"
error
"
,
handleError
);
var
wr
=
fs
.
createWriteStream
(
dest
);
wr
.
on
(
"
error
"
,
handleError
);
wr
.
on
(
"
close
"
,
function
()
{
if
(
!
cbCalled
)
{
c
();
cbCalled
=
true
;
}
});
rd
.
pipe
(
wr
);
});
}
function
invertColor
(
color
)
{
var
res
=
'
#
'
;
for
(
var
i
=
1
;
i
<
7
;
i
+=
2
)
{
...
...
@@ -111,13 +153,23 @@ function getLanguageMappings() {
return
langToExt
;
}
//var font = 'https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/_fonts/seti/seti.woff';
var
font
=
'
../../../seti-ui/styles/_fonts/seti/seti.woff
'
;
exports
.
copyFont
=
function
()
{
var
fontURI
=
'
https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/_fonts/seti/seti.woff
'
;
return
downloadBinary
(
fontURI
,
'
./icons/seti.woff
'
);
return
downloadBinary
(
font
,
'
./icons/seti.woff
'
);
};
//var fontMappings = 'https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/_fonts/seti.less';
//var mappings = 'https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/icons/mapping.less';
//var colors = 'https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/ui-variables.less';
var
fontMappings
=
'
../../../seti-ui/styles/_fonts/seti.less
'
;
var
mappings
=
'
../../../seti-ui/styles/icons/mapping.less
'
;
var
colors
=
'
../../../seti-ui/styles/ui-variables.less
'
;
exports
.
update
=
function
()
{
var
fontMappings
=
'
https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/_fonts/seti.less
'
;
console
.
log
(
'
Reading from
'
+
fontMappings
);
var
def2Content
=
{};
var
ext2Def
=
{};
...
...
@@ -192,7 +244,6 @@ exports.update = function () {
def2Content
[
'
_
'
+
match
[
1
]]
=
match
[
2
];
}
var
mappings
=
'
https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/icons/mapping.less
'
;
return
download
(
mappings
).
then
(
function
(
content
)
{
var
regex2
=
/
\.
icon-
(?:
set|partial
)\(
'
([\w
-
\.]
+
)
',
\s
*'
([\w
-
]
+
)
',
\s
*
(
@
[\w
-
]
+
)\)
/g
;
while
((
match
=
regex2
.
exec
(
content
))
!==
null
)
{
...
...
@@ -226,7 +277,7 @@ exports.update = function () {
}
}
var
colors
=
'
https://raw.githubusercontent.com/jesseweed/seti-ui/master/styles/ui-variables.less
'
;
return
download
(
colors
).
then
(
function
(
content
)
{
var
regex3
=
/
(
@
[\w
-
]
+
)
:
\s
*
(
#
[
0-9a-z
]
+
)
/g
;
while
((
match
=
regex3
.
exec
(
content
))
!==
null
)
{
...
...
extensions/theme-seti/icons/seti.woff
浏览文件 @
ea651c1f
无法预览此类型文件
extensions/theme-seti/icons/vs-seti-icon-theme.json
浏览文件 @
ea651c1f
...
...
@@ -665,192 +665,216 @@
"fontCharacter"
:
"
\\
E05C"
,
"fontColor"
:
"#6d8086"
},
"_sass_light"
:
{
"_salesforce_light"
:
{
"fontCharacter"
:
"
\\
E05D"
,
"fontColor"
:
"#ae6545"
},
"_salesforce"
:
{
"fontCharacter"
:
"
\\
E05D"
,
"fontColor"
:
"#519aba"
},
"_sass_light"
:
{
"fontCharacter"
:
"
\\
E05E"
,
"fontColor"
:
"#aac7a"
},
"_sass"
:
{
"fontCharacter"
:
"
\\
E05
D
"
,
"fontCharacter"
:
"
\\
E05
E
"
,
"fontColor"
:
"#f55385"
},
"_sbt_light"
:
{
"fontCharacter"
:
"
\\
E05
E
"
,
"fontCharacter"
:
"
\\
E05
F
"
,
"fontColor"
:
"#ae6545"
},
"_sbt"
:
{
"fontCharacter"
:
"
\\
E05
E
"
,
"fontCharacter"
:
"
\\
E05
F
"
,
"fontColor"
:
"#519aba"
},
"_scala_light"
:
{
"fontCharacter"
:
"
\\
E0
5F
"
,
"fontCharacter"
:
"
\\
E0
60
"
,
"fontColor"
:
"#33c1bb"
},
"_scala"
:
{
"fontCharacter"
:
"
\\
E0
5F
"
,
"fontCharacter"
:
"
\\
E0
60
"
,
"fontColor"
:
"#cc3e44"
},
"_search"
:
{
"fontCharacter"
:
"
\\
E06
0
"
"fontCharacter"
:
"
\\
E06
1
"
},
"_settings"
:
{
"fontCharacter"
:
"
\\
E06
1
"
"fontCharacter"
:
"
\\
E06
2
"
},
"_shell_light"
:
{
"fontCharacter"
:
"
\\
E06
2
"
,
"fontCharacter"
:
"
\\
E06
3
"
,
"fontColor"
:
"#b2a5a1"
},
"_shell"
:
{
"fontCharacter"
:
"
\\
E06
2
"
,
"fontCharacter"
:
"
\\
E06
3
"
,
"fontColor"
:
"#4d5a5e"
},
"_slim_light"
:
{
"fontCharacter"
:
"
\\
E06
3
"
,
"fontCharacter"
:
"
\\
E06
4
"
,
"fontColor"
:
"#1c86cc"
},
"_slim"
:
{
"fontCharacter"
:
"
\\
E06
3
"
,
"fontCharacter"
:
"
\\
E06
4
"
,
"fontColor"
:
"#e37933"
},
"_smarty_light"
:
{
"fontCharacter"
:
"
\\
E06
4
"
,
"fontCharacter"
:
"
\\
E06
5
"
,
"fontColor"
:
"#3434be"
},
"_smarty"
:
{
"fontCharacter"
:
"
\\
E06
4
"
,
"fontCharacter"
:
"
\\
E06
5
"
,
"fontColor"
:
"#cbcb41"
},
"_spring_light"
:
{
"fontCharacter"
:
"
\\
E06
5
"
,
"fontCharacter"
:
"
\\
E06
6
"
,
"fontColor"
:
"#723eb6"
},
"_spring"
:
{
"fontCharacter"
:
"
\\
E06
5
"
,
"fontCharacter"
:
"
\\
E06
6
"
,
"fontColor"
:
"#8dc149"
},
"_stylus_light"
:
{
"fontCharacter"
:
"
\\
E06
6
"
,
"fontCharacter"
:
"
\\
E06
7
"
,
"fontColor"
:
"#723eb6"
},
"_stylus"
:
{
"fontCharacter"
:
"
\\
E06
6
"
,
"fontCharacter"
:
"
\\
E06
7
"
,
"fontColor"
:
"#8dc149"
},
"_sublime_light"
:
{
"fontCharacter"
:
"
\\
E068"
,
"fontColor"
:
"#1c86cc"
},
"_sublime"
:
{
"fontCharacter"
:
"
\\
E068"
,
"fontColor"
:
"#e37933"
},
"_svg_light"
:
{
"fontCharacter"
:
"
\\
E06
7
"
,
"fontCharacter"
:
"
\\
E06
9
"
,
"fontColor"
:
"#5f8b3b"
},
"_svg"
:
{
"fontCharacter"
:
"
\\
E06
7
"
,
"fontCharacter"
:
"
\\
E06
9
"
,
"fontColor"
:
"#a074c4"
},
"_swift_light"
:
{
"fontCharacter"
:
"
\\
E06
8
"
,
"fontCharacter"
:
"
\\
E06
A
"
,
"fontColor"
:
"#1c86cc"
},
"_swift"
:
{
"fontCharacter"
:
"
\\
E06
8
"
,
"fontCharacter"
:
"
\\
E06
A
"
,
"fontColor"
:
"#e37933"
},
"_terraform_light"
:
{
"fontCharacter"
:
"
\\
E06
9
"
,
"fontCharacter"
:
"
\\
E06
B
"
,
"fontColor"
:
"#5f8b3b"
},
"_terraform"
:
{
"fontCharacter"
:
"
\\
E06
9
"
,
"fontCharacter"
:
"
\\
E06
B
"
,
"fontColor"
:
"#a074c4"
},
"_tex_light"
:
{
"fontCharacter"
:
"
\\
E06
A
"
,
"fontCharacter"
:
"
\\
E06
C
"
,
"fontColor"
:
"#2b2829"
},
"_tex"
:
{
"fontCharacter"
:
"
\\
E06
A
"
,
"fontCharacter"
:
"
\\
E06
C
"
,
"fontColor"
:
"#d4d7d6"
},
"_time-cop"
:
{
"fontCharacter"
:
"
\\
E06
B
"
"fontCharacter"
:
"
\\
E06
D
"
},
"_todo"
:
{
"fontCharacter"
:
"
\\
E06
C
"
"fontCharacter"
:
"
\\
E06
E
"
},
"_twig_light"
:
{
"fontCharacter"
:
"
\\
E06
D
"
,
"fontCharacter"
:
"
\\
E06
F
"
,
"fontColor"
:
"#723eb6"
},
"_twig"
:
{
"fontCharacter"
:
"
\\
E06
D
"
,
"fontCharacter"
:
"
\\
E06
F
"
,
"fontColor"
:
"#8dc149"
},
"_typescript_light"
:
{
"fontCharacter"
:
"
\\
E0
6E
"
,
"fontCharacter"
:
"
\\
E0
70
"
,
"fontColor"
:
"#ae6545"
},
"_typescript"
:
{
"fontCharacter"
:
"
\\
E0
6E
"
,
"fontCharacter"
:
"
\\
E0
70
"
,
"fontColor"
:
"#519aba"
},
"_vala_light"
:
{
"fontCharacter"
:
"
\\
E0
6F
"
,
"fontCharacter"
:
"
\\
E0
71
"
,
"fontColor"
:
"#927f79"
},
"_vala"
:
{
"fontCharacter"
:
"
\\
E0
6F
"
,
"fontCharacter"
:
"
\\
E0
71
"
,
"fontColor"
:
"#6d8086"
},
"_video_light"
:
{
"fontCharacter"
:
"
\\
E07
0
"
,
"fontCharacter"
:
"
\\
E07
2
"
,
"fontColor"
:
"#aac7a"
},
"_video"
:
{
"fontCharacter"
:
"
\\
E07
0
"
,
"fontCharacter"
:
"
\\
E07
2
"
,
"fontColor"
:
"#f55385"
},
"_vue_light"
:
{
"fontCharacter"
:
"
\\
E073"
,
"fontColor"
:
"#bc94db"
},
"_vue"
:
{
"fontCharacter"
:
"
\\
E073"
,
"fontColor"
:
"#436b24"
},
"_windows_light"
:
{
"fontCharacter"
:
"
\\
E07
1
"
,
"fontCharacter"
:
"
\\
E07
4
"
,
"fontColor"
:
"#ae6545"
},
"_windows"
:
{
"fontCharacter"
:
"
\\
E07
1
"
,
"fontCharacter"
:
"
\\
E07
4
"
,
"fontColor"
:
"#519aba"
},
"_word_light"
:
{
"fontCharacter"
:
"
\\
E07
2
"
,
"fontCharacter"
:
"
\\
E07
5
"
,
"fontColor"
:
"#ae6545"
},
"_word"
:
{
"fontCharacter"
:
"
\\
E07
2
"
,
"fontCharacter"
:
"
\\
E07
5
"
,
"fontColor"
:
"#519aba"
},
"_xls_light"
:
{
"fontCharacter"
:
"
\\
E07
3
"
,
"fontCharacter"
:
"
\\
E07
6
"
,
"fontColor"
:
"#723eb6"
},
"_xls"
:
{
"fontCharacter"
:
"
\\
E07
3
"
,
"fontCharacter"
:
"
\\
E07
6
"
,
"fontColor"
:
"#8dc149"
},
"_xml_light"
:
{
"fontCharacter"
:
"
\\
E07
4
"
,
"fontCharacter"
:
"
\\
E07
7
"
,
"fontColor"
:
"#1c86cc"
},
"_xml"
:
{
"fontCharacter"
:
"
\\
E07
4
"
,
"fontCharacter"
:
"
\\
E07
7
"
,
"fontColor"
:
"#e37933"
},
"_yarn_light"
:
{
"fontCharacter"
:
"
\\
E07
5
"
,
"fontCharacter"
:
"
\\
E07
8
"
,
"fontColor"
:
"#ae6545"
},
"_yarn"
:
{
"fontCharacter"
:
"
\\
E07
5
"
,
"fontCharacter"
:
"
\\
E07
8
"
,
"fontColor"
:
"#519aba"
},
"_yml_light"
:
{
"fontCharacter"
:
"
\\
E07
6
"
,
"fontCharacter"
:
"
\\
E07
9
"
,
"fontColor"
:
"#5f8b3b"
},
"_yml"
:
{
"fontCharacter"
:
"
\\
E07
6
"
,
"fontCharacter"
:
"
\\
E07
9
"
,
"fontColor"
:
"#a074c4"
}
},
...
...
@@ -938,13 +962,13 @@
"tf.json"
:
"_terraform"
,
"tex"
:
"_tex"
,
"sty"
:
"_tex"
,
"cls"
:
"_tex"
,
"dtx"
:
"_tex"
,
"ins"
:
"_tex"
,
"txt"
:
"_default"
,
"twig"
:
"_twig"
,
"vala"
:
"_vala"
,
"vapi"
:
"_vala"
,
"vue"
:
"_vue"
,
"ai"
:
"_illustrator"
,
"psd"
:
"_photoshop"
,
"pdf"
:
"_pdf"
,
...
...
@@ -958,6 +982,10 @@
"jpeg"
:
"_image"
,
"svg"
:
"_svg"
,
"svgx"
:
"_image"
,
"sublime-project"
:
"_sublime"
,
"sublime-workspace"
:
"_sublime"
,
"component"
:
"_salesforce"
,
"cls"
:
"_salesforce"
,
"fish"
:
"_shell"
,
"mov"
:
"_video"
,
"ogv"
:
"_video"
,
...
...
@@ -971,6 +999,7 @@
"babelrc"
:
"_babel"
,
"bowerrc"
:
"_bower"
,
"eslintrc"
:
"_eslint"
,
"eslintignore"
:
"_eslint"
,
"jshintrc"
:
"_javascript"
,
"jscsrc"
:
"_javascript"
,
"direnv"
:
"_config"
,
...
...
@@ -1132,13 +1161,13 @@
"tf.json"
:
"_terraform_light"
,
"tex"
:
"_tex_light"
,
"sty"
:
"_tex_light"
,
"cls"
:
"_tex_light"
,
"dtx"
:
"_tex_light"
,
"ins"
:
"_tex_light"
,
"txt"
:
"_default_light"
,
"twig"
:
"_twig_light"
,
"vala"
:
"_vala_light"
,
"vapi"
:
"_vala_light"
,
"vue"
:
"_vue_light"
,
"ai"
:
"_illustrator_light"
,
"psd"
:
"_photoshop_light"
,
"pdf"
:
"_pdf_light"
,
...
...
@@ -1152,6 +1181,10 @@
"jpeg"
:
"_image_light"
,
"svg"
:
"_svg_light"
,
"svgx"
:
"_image_light"
,
"sublime-project"
:
"_sublime_light"
,
"sublime-workspace"
:
"_sublime_light"
,
"component"
:
"_salesforce_light"
,
"cls"
:
"_salesforce_light"
,
"fish"
:
"_shell_light"
,
"mov"
:
"_video_light"
,
"ogv"
:
"_video_light"
,
...
...
@@ -1165,6 +1198,7 @@
"babelrc"
:
"_babel_light"
,
"bowerrc"
:
"_bower_light"
,
"eslintrc"
:
"_eslint_light"
,
"eslintignore"
:
"_eslint_light"
,
"jshintrc"
:
"_javascript_light"
,
"jscsrc"
:
"_javascript_light"
,
"direnv"
:
"_config_light"
,
...
...
@@ -1241,5 +1275,5 @@
"npm-debug.log"
:
"_npm_ignored_light"
}
},
"version"
:
"https://github.com/jesseweed/seti-ui/commit/
308379e91ac238b95e0680823a30eec08c05f3a6
"
"version"
:
"https://github.com/jesseweed/seti-ui/commit/
f7e582faec0961ddf783ad4dffed41e0f2da5413
"
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录