blockly > blockRendering > ConstantProvider > setTheme
blockRendering.ConstantProvider.setTheme() yöntemi
Temaya bağlı sabit değer özelliklerini yenileyin.
İmza:
setTheme(theme: Theme): void;
Parametreler
Parametre |
Tür |
Açıklama |
tema |
Tema |
Mevcut çalışma alanı teması. |
Şunu döndürür:
geçersiz
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-08-29 UTC.
[null,null,["Son güncelleme tarihi: 2024-08-29 UTC."],[[["The `blockRendering.ConstantProvider.setTheme()` method updates the constant properties of a block rendering based on the provided theme."],["This method accepts a single parameter, `theme`, which is an instance of the `Theme` class representing the current workspace theme."],["Calling `setTheme()` ensures that visual elements of blocks are aligned with the active theme, maintaining consistency in the workspace appearance."]]],[]]