Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > Tema > defineTheme
Metodo Theme.defineTheme()
Definisci un nuovo tema Blockly.
Firma:
static defineTheme(name: string, themeObj: ITheme): Theme;
Parametri
Parametro |
Tipo |
Descrizione |
nome |
stringa |
Il nome del tema. |
themeObj |
ITheme |
Un oggetto contenente le proprietà del tema. |
Resi:
Tema
Un nuovo tema Blockly.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-25 UTC."],[],["The `Theme.defineTheme()` method creates a new Blockly theme. It accepts two parameters: `name` (a string specifying the theme's name) and `themeObj` (an `ITheme` object containing theme properties). This method returns a new `Theme` object, representing the defined theme. Essentially, it allows for custom styling and appearance configuration within Blockly by creating and returning a theme object based on user-provided parameters.\n"]]