Move icon settings to styles

This commit is contained in:
David Conway
2020-12-24 19:52:06 +11:00
parent 16fab80f86
commit c0cc89201e
4 changed files with 11 additions and 19 deletions

View File

@@ -64,15 +64,15 @@ namespace FlaxEditor.GUI
/// <summary>
/// Gets the height for the items.
/// </summary>
public float ItemsHeight => Height - itemScale * DefaultMarginV;
public float ItemsHeight => Height + itemScale * DefaultMarginV;
private float itemScale = 2;
/// <summary>
private float itemScale;
/// <summarys
/// Initializes a new instance of the <see cref="ToolStrip"/> class.
/// </summary>
public ToolStrip()
{
itemScale = Editor.Instance.Options.Options.Interface.ToolStripScale;
itemScale = Style.Current.IconSizeExtra;
AutoFocus = false;
AnchorPreset = AnchorPresets.HorizontalStretchTop;
BackgroundColor = Style.Current.LightBackground;