Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/defining-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace basic {
...
}
```
* `icon` The Unicode character from the icon font to display. Any free non-brand icon from Font Awesome (v5.15.4 at the time of writing) can be used. The full list can be found https://fontawesome.com/v5/search?m=free
* `icon` The Unicode character from the icon font to display. Any free non-brand icon from [Font Awesome](https://fontawesome.com/v5/search?m=free) (v5.15.4 at the time of writing) can be used.
* `color` should be included in a comment line starting with `//%`. The color takes a **hue** value or a HTML color.
* `weight` determines where your category appears in the toolbox. Higher weight means it appears closer to the top.

Expand Down
4 changes: 3 additions & 1 deletion theme/blockly-core.less
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ i.icon.blocklyTreeButton {
}

.blocklyFlyoutLabelIcon {
font-family: 'Icons';
font-family: 'Icons', 'Font Awesome 5 Free';
font-weight: 900;
font-synthesis: none;
font-size: 1.5rem;
}

Expand Down
6 changes: 4 additions & 2 deletions theme/toolbox.less
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,11 @@ span.blocklyTreeIcon {
opacity: 1;
margin: 0.0em 0.25em 0.0em 0.25em;
width: 30px;
font-family: 'Icons';
// Keep legacy glyphs first, and use the bundled solid face for newer glyphs.
font-family: 'Icons', 'Font Awesome 5 Free';
font-style: normal;
font-weight: normal;
font-weight: 900;
font-synthesis: none;
text-decoration: inherit;
text-align: center;
speak: none;
Expand Down
Loading