Ticket #90 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Re-do theme to be an overloadable class, then simple overload class to get different themes

Reported by: clayasaurus Assigned to: clayasaurus
Priority: major Milestone: 0.3
Component: unspecified Version: svn
Keywords: Cc:

Description

ThemeManager theme; // global object private hidden in theme.d

class BaseTheme
{
  drawButton(ACTIONTYPE type, bool focus, Point pos, Size size, Color color); 
  drawWidget(ACTIONTYPE type, bool focus, Point pos, Size size, Color color);
  drawLabel(ACTIONTYPE type, bool focus, Point pos, Size size, Color color); 
}

setTheme(new FreeUniverseTheme())
setTheme(new Win32Theme());
setTheme(new UserDefinedTheme()); 

This will allow for the users of ArcLib to write their own widget theme implementations.

Change History

09/08/07 17:40:52 changed by clayasaurus

  • status changed from new to closed.
  • resolution set to fixed.

Done.

Themes are set through

arc.gui.themes.theme.setTheme(new UserTheme?);

and overload BaseTheme? class to implement your own theme functionality.

~ Clay