Home > bitburner > UserInterface > setTheme
Sets the current theme
Signature:
setTheme(newTheme: UserInterfaceTheme): void;
Parameter | Type | Description |
---|---|---|
newTheme | UserInterfaceTheme |
Returns:
void
RAM cost: 0 GB
Usage example (NS2)
const theme = ns.ui.getTheme();
theme.primary = '#ff5500';
ns.ui.setTheme(theme);