Adjust track icon size
Go down from 20 to 18 instead.
This commit is contained in:
@@ -70,7 +70,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
: base(ref options)
|
||||
{
|
||||
// Select Actor button
|
||||
const float buttonSize = 20;
|
||||
const float buttonSize = 18;
|
||||
var icons = Editor.Instance.Icons;
|
||||
_selectActor = new Image
|
||||
{
|
||||
|
||||
@@ -312,7 +312,8 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Curve.UnlockChildrenRecursive();
|
||||
|
||||
// Navigation buttons
|
||||
const float buttonSize = 20;
|
||||
const float keySize = 18;
|
||||
const float addSize = 20;
|
||||
var icons = Editor.Instance.Icons;
|
||||
var rightKey = new Image
|
||||
{
|
||||
@@ -323,7 +324,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(1),
|
||||
Brush = new SpriteBrush(icons.Right32),
|
||||
Offsets = new Margin(-buttonSize - 2 + _muteCheckbox.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-keySize - 2 + _muteCheckbox.Offsets.Left, keySize, keySize * -0.5f, keySize),
|
||||
Parent = this,
|
||||
};
|
||||
rightKey.Clicked += OnRightKeyClicked;
|
||||
@@ -336,7 +337,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(3),
|
||||
Brush = new SpriteBrush(icons.Add32),
|
||||
Offsets = new Margin(-buttonSize - 2 + rightKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-addSize - 2 + rightKey.Offsets.Left, addSize, addSize * -0.5f, addSize),
|
||||
Parent = this,
|
||||
};
|
||||
addKey.Clicked += OnAddKeyClicked;
|
||||
@@ -349,7 +350,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(1),
|
||||
Brush = new SpriteBrush(icons.Left32),
|
||||
Offsets = new Margin(-buttonSize - 2 + addKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-keySize - 2 + addKey.Offsets.Left, keySize, keySize * -0.5f, keySize),
|
||||
Parent = this,
|
||||
};
|
||||
leftKey.Clicked += OnLeftKeyClicked;
|
||||
|
||||
@@ -685,7 +685,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Height = CameraCutThumbnailRenderer.Height + 8;
|
||||
|
||||
// Pilot Camera button
|
||||
const float buttonSize = 20;
|
||||
const float buttonSize = 18;
|
||||
var icons = Editor.Instance.Icons;
|
||||
_pilotCamera = new Image
|
||||
{
|
||||
|
||||
@@ -118,7 +118,8 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
if (useNavigationButtons)
|
||||
{
|
||||
// Navigation buttons
|
||||
const float buttonSize = 20;
|
||||
const float keySize = 18;
|
||||
const float addSize = 20;
|
||||
var icons = Editor.Instance.Icons;
|
||||
_rightKey = new Image
|
||||
{
|
||||
@@ -129,7 +130,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(1),
|
||||
Brush = new SpriteBrush(icons.Right32),
|
||||
Offsets = new Margin(-buttonSize - 2 + uiLeft, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-keySize - 2 + uiLeft, keySize, keySize * -0.5f, keySize),
|
||||
Parent = this,
|
||||
};
|
||||
_addKey = new Image
|
||||
@@ -141,7 +142,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(3),
|
||||
Brush = new SpriteBrush(icons.Add32),
|
||||
Offsets = new Margin(-buttonSize - 2 + _rightKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-addSize - 2 + _rightKey.Offsets.Left, addSize, addSize * -0.5f, addSize),
|
||||
Parent = this,
|
||||
};
|
||||
_leftKey = new Image
|
||||
@@ -153,7 +154,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
|
||||
Color = Style.Current.ForegroundGrey,
|
||||
Margin = new Margin(1),
|
||||
Brush = new SpriteBrush(icons.Left32),
|
||||
Offsets = new Margin(-buttonSize - 2 + _addKey.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
|
||||
Offsets = new Margin(-keySize - 2 + _addKey.Offsets.Left, keySize, keySize * -0.5f, keySize),
|
||||
Parent = this,
|
||||
};
|
||||
uiLeft = _leftKey.Offsets.Left;
|
||||
|
||||
Reference in New Issue
Block a user