Change the containing window
extends "res://scripts/runtime/script_base.gd"func run(_context: Dictionary = {}) -> Variant:
await ChangeGUIProperty({
"guiId": "style_lab",
"property": "windowFrame.windowBackground",
"value": "#182b39"
})
await ChangeGUIProperty({
"guiId": "style_lab",
"property": "windowFrame.radiusTopLeft",
"value": 0
})
return trueChange GUI Property addresses the window. Change GUI Element Property addresses a particular element. The explicit windowFrame prefix in this script identifies the stored window-chrome property.
A project can have several GUIs open, each with a different background. Supply the GUI ID deliberately so an alert style changes the intended window.
For a full theme change, update the title bar, close control, element colors, image states and text as appropriate. Changing the outer window alone does not retheme the separate controls inside it.
