Move theme image adjustment functionality into StaticData.LoadIcon
This commit is contained in:
parent
dc4aa1d03a
commit
145ef1ad63
22 changed files with 69 additions and 274 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue