You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This API is added now to style the widgets (you can try it out already).
Is there any property that is interesting to add?
Example:
// change the main script themeui.setTheme({background: '#000055',primary: '#FF0000',secondary: '#00FF00',textPrimary: '#FFFF00',animationOnViewAdd: true})// get the theme propertiesconsole.log(ui.getTheme())ui.addTitle(app.name)varslider=ui.addSlider(0.1,0.5,0.8,0.2).mode('drag').onChange(function(e){console.log(e)})// get all the slider propertiesconsole.log(slider.getProps())// change individual properties of a widgetslider.props.slider="#00FF00"varbtn=ui.addButton('Click me',0.1,0.2,0.8,0.2).onClick(function(){console.log('clicked')})// change many properties at oncebtn.setProps({background : '#00bbbb',textSize: 50})
Output:
The text was updated successfully, but these errors were encountered:
This API is added now to style the widgets (you can try it out already).
Is there any property that is interesting to add?
Example:
Output:

The text was updated successfully, but these errors were encountered: