Remaining icon fixes. Using blockIcons to show custom icons for built in categories

This commit is contained in:
Sam El-Husseini 2018-01-03 14:20:33 -08:00
parent cc020d5a81
commit 7993363e89
4 changed files with 12 additions and 11 deletions

View File

@ -19,12 +19,12 @@ namespace sensors {
namespace motors {
}
//% color="#D67923" weight=80
//% color="#D67923" weight=80 icon="\uf10e"
namespace music {
}
//% color="#5F3109"
//% color="#5F3109" icon="\uf107"
namespace control {
}

View File

@ -45,7 +45,7 @@
},
"dependencies": {
"pxt-common-packages": "0.14.13",
"pxt-core": "3.0.2"
"pxt-core": "3.0.5"
},
"scripts": {
"test": "node node_modules/pxt-core/built/pxt.js travis"

View File

@ -137,6 +137,15 @@
"functions": "#19325A",
"arrays": "#901F76"
},
"blockIcons": {
"loops": "\uf10b",
"logic": "\uf10a",
"math": "\uf10c",
"variables": "\uf111",
"text": "\uf110",
"functions": "\uf108",
"arrays": "\uf109"
},
"monacoColors": {
"editor.background": "#ecf6ff"
}

View File

@ -82,10 +82,6 @@ span.blocklyTreeLabel {
}
}
span.blocklyTreeIcon.blocklyTreeIconmusic::before {
content: "\f10e";
}
span.blocklyTreeIcon.blocklyTreeIconloops::before {
content: "\f10b";
}
@ -117,10 +113,6 @@ span.blocklyTreeIcon.blocklyTreeIcontext::before {
content: "\f110";
}
span.blocklyTreeIcon.blocklyTreeIconcontrol::before {
content: "\f107";
}
span.blocklyTreeIcon.blocklyTreeIconaddpackage::before {
content: "\f105";
}