mirror of
https://github.com/google/blockly.git
synced 2026-01-08 01:20:12 +01:00
Dynamic fonts (#3698)
* Piping themes into the renderer and ensuring fields update their size information when constants change.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user