Fix timeline track icons

This commit is contained in:
W2Wizard
2021-06-13 16:20:23 +02:00
parent eb6e3a7e8e
commit 96089d5396
7 changed files with 17 additions and 15 deletions

View File

@@ -118,7 +118,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
if (useNavigationButtons)
{
// Navigation buttons
const float buttonSize = 14;
const float buttonSize = 20;
var icons = Editor.Instance.Icons;
_rightKey = new Image
{
@@ -128,7 +128,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
IsScrollable = false,
Color = Style.Current.ForegroundGrey,
Margin = new Margin(1),
Brush = new SpriteBrush(icons.Right64),
Brush = new SpriteBrush(icons.Right32),
Offsets = new Margin(-buttonSize - 2 + uiLeft, buttonSize, buttonSize * -0.5f, buttonSize),
Parent = this,
};
@@ -138,9 +138,9 @@ namespace FlaxEditor.GUI.Timeline.Tracks
AutoFocus = true,
AnchorPreset = AnchorPresets.MiddleRight,
IsScrollable = false,
Color = Style.Current.Foreground,
Color = Style.Current.ForegroundGrey,
Margin = new Margin(3),
Brush = new SpriteBrush(icons.Add64),
Brush = new SpriteBrush(icons.Add32),
Offsets = new Margin(-buttonSize - 2 + _rightKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
Parent = this,
};
@@ -150,9 +150,9 @@ namespace FlaxEditor.GUI.Timeline.Tracks
AutoFocus = true,
AnchorPreset = AnchorPresets.MiddleRight,
IsScrollable = false,
Color = Style.Current.Foreground,
Color = Style.Current.ForegroundGrey,
Margin = new Margin(1),
Brush = new SpriteBrush(icons.Left64),
Brush = new SpriteBrush(icons.Left32),
Offsets = new Margin(-buttonSize - 2 + _addKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
Parent = this,
};