Re: Radnen's Sphere Studio v1.1.6.0
Reply #240 –
The API for plugins is simple:
var my_style_group = new StyleGroup();
my_style_group.Label = new Style();
// ...
StyleSettings.addStyle("CoolTheme", my_style_group);
// ...
StyleSettings.removeStyle("CoolTheme");
BTW I just expanded the style options (latest github code), now status bars, toolbars, and menu bars are styleable. The style system I use is not automatic, all controls need to be manually told what things get styled. I don't think that's bad considering the plugin author / I can choose what gets styled and what does not to prevent some weird style artifacts from happening: such as the awkward black text on black background.
There is still one issue: the settings editor does not enumerate a list of all styles. So far it just enumerates the built-in styles. But that will change shortly (it's not like we suddenly get a new style plugin tomorrow, lol).