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

@@ -70,7 +70,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
: base(ref options)
{
// Select Actor button
const float buttonSize = 14;
const float buttonSize = 20;
var icons = Editor.Instance.Icons;
_selectActor = new Image
{
@@ -80,7 +80,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
IsScrollable = false,
Color = Style.Current.ForegroundGrey,
Margin = new Margin(1),
Brush = new SpriteBrush(icons.Search12),
Brush = new SpriteBrush(icons.Search32),
Offsets = new Margin(-buttonSize - 2 + _addButton.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
Parent = this,
};

View File

@@ -312,7 +312,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
Curve.UnlockChildrenRecursive();
// Navigation buttons
const float buttonSize = 14;
const float buttonSize = 20;
var icons = Editor.Instance.Icons;
var rightKey = new Image
{

View File

@@ -682,10 +682,10 @@ namespace FlaxEditor.GUI.Timeline.Tracks
public CameraCutTrack(ref TrackCreateOptions options)
: base(ref options)
{
Height = CameraCutThumbnailRenderer.Height + 4 + 4;
Height = CameraCutThumbnailRenderer.Height + 8;
// Pilot Camera button
const float buttonSize = 14;
const float buttonSize = 20;
var icons = Editor.Instance.Icons;
_pilotCamera = new Image
{
@@ -695,7 +695,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
IsScrollable = false,
Color = Style.Current.ForegroundGrey,
Margin = new Margin(1),
Brush = new SpriteBrush(icons.Camera64),
Brush = new SpriteBrush(icons.CameraFill32),
Offsets = new Margin(-buttonSize - 2 + _selectActor.Offsets.Left, buttonSize, buttonSize * -0.5f, buttonSize),
Parent = this,
};

View File

@@ -24,7 +24,7 @@ namespace FlaxEditor.GUI.Timeline.Tracks
{
TypeId = 1,
Name = "Folder",
Icon = Editor.Instance.Icons.Folder64,
Icon = Editor.Instance.Icons.Folder32,
Create = options => new FolderTrack(ref options),
Load = LoadTrack,
Save = SaveTrack,

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,
};