Conditionally invert icon lightness
This commit is contained in:
parent
99e7660bf0
commit
a13fea5ea0
1 changed files with 7 additions and 1 deletions
|
|
@ -124,7 +124,13 @@ namespace MatterHackers.MatterControl
|
|||
//e.graphics2D.Render(directionArrow, buttonView.LocalBounds.Right - arrowHeight * 2 - 2, buttonView.LocalBounds.Center.y + arrowHeight / 2, ActiveTheme.Instance.SecondaryTextColor);
|
||||
};
|
||||
|
||||
buttonView.AddChild(new ImageWidget(StaticData.Instance.LoadIcon(Path.Combine("..", "Images", "mh-logo.png"), 24, 24).InvertLightness()));
|
||||
var icon = StaticData.Instance.LoadIcon(Path.Combine("..", "Images", "mh-logo.png"), 32, 32);
|
||||
if (!ActiveTheme.Instance.IsDarkTheme)
|
||||
{
|
||||
icon = icon.InvertLightness();
|
||||
}
|
||||
|
||||
buttonView.AddChild(new ImageWidget(icon));
|
||||
|
||||
buttonView.AddChild(new TextWidget("MatterControl 2.0", textColor: ActiveTheme.Instance.PrimaryTextColor)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue