Dynamic fonts (#3698)

* Piping themes into the renderer and ensuring fields update their size information when constants change.
This commit is contained in:
Sam El-Husseini
2020-02-20 17:16:01 -08:00
committed by GitHub
parent 8524da903b
commit eb40ca44ba
21 changed files with 495 additions and 224 deletions

View File

@@ -94,6 +94,10 @@ Blockly.ThemeManager.prototype.setTheme = function(theme) {
// Refresh all subscribed workspaces.
for (var i = 0, workspace; (workspace = this.subscribedWorkspaces_[i]); i++) {
workspace.refreshTheme();
// Re-render if workspace is visible
if (workspace.isVisible()) {
workspace.setVisible(true);
}
}
// Refresh all registered Blockly UI components.