Lots of theme and UI related updates.

This commit is contained in:
Kevin Pope 2014-03-21 16:18:47 -07:00
parent caa660fc22
commit 738b2d5a57
15 changed files with 275 additions and 151 deletions

View file

@ -24,10 +24,13 @@ namespace MatterHackers.MatterControl
//colorText.VAnchor = Agg.UI.VAnchor.ParentCenter;
//this.AddChild(colorText);
//Temporary theme changer button
GuiWidget themeButtons = new GuiWidget(96, 42);
GuiWidget themeButtons = new GuiWidget(186, 42);
int themeCount = ActiveTheme.Instance.AvailableThemes.Count;
themeButtons.BackgroundColor = RGBA_Bytes.White;
int index = 0;
for (int x = 0; x < 5; x++)
for (int x = 0; x < themeCount/2; x++)
{
for (int y = 0; y < 2; y++)
{
@ -49,7 +52,7 @@ namespace MatterHackers.MatterControl
index++;
themeButtons.AddChild(colorButton);
}
}
}
themeButtons.Margin = new BorderDouble(2);
this.AddChild(themeButtons);
this.VAnchor = VAnchor.ParentCenter;