रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकले > blockRendering > ConstantProvider > setTheme
ब्लॉकरेंडरिंग.ConstantProvider.setTheme() तरीका
थीम पर आधारित कॉन्स्टेंट प्रॉपर्टी रीफ़्रेश करें.
हस्ताक्षर:
setTheme(theme: Theme): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
थीम |
थीम |
वर्कस्पेस की मौजूदा थीम. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-29 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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."]]],["The `setTheme()` method within the `ConstantProvider` class updates constant properties based on the workspace's current theme. It accepts a `Theme` object as input, which dictates the visual styles. This method does not return any value. Its purpose is to refresh the rendering constants when the workspace theme is changed.\n"]]