Move theme image adjustment functionality into StaticData.LoadIcon

This commit is contained in:
John Lewin 2017-10-14 23:18:06 -07:00
parent dc4aa1d03a
commit 145ef1ad63
22 changed files with 69 additions and 274 deletions

View file

@ -75,7 +75,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
return null;
}
var toggleSwitch = ImageButtonFactory.CreateToggleSwitch(toggleSwitchConfig.Checked, menuTextColor, backgroundType: IconColor.White);
var toggleSwitch = ImageButtonFactory.CreateToggleSwitch(toggleSwitchConfig.Checked, menuTextColor);
toggleSwitch.VAnchor = VAnchor.Center;
toggleSwitch.Margin = new BorderDouble(left: 16);
toggleSwitch.CheckedStateChanged += (sender, e) =>

View file

@ -115,7 +115,7 @@ namespace MatterHackers.MatterControl.ConfigurationPage
if (isActive)
{
this.AddChild(new ImageWidget(AggContext.StaticData.LoadIcon("426.png", 16, 16).InvertLightness())
this.AddChild(new ImageWidget(AggContext.StaticData.LoadIcon("426.png", 16, 16, IconColor.White))
{
HAnchor = HAnchor.Absolute,
VAnchor = VAnchor.Absolute,