From 9cde9b074330367861170839f175826a14501f2e Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Fri, 23 Jul 2021 16:25:29 +0200 Subject: [PATCH] Add tint to timeline navbar buttons --- Source/Editor/GUI/Timeline/Timeline.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Editor/GUI/Timeline/Timeline.cs b/Source/Editor/GUI/Timeline/Timeline.cs index 8481e4aa2..ea0ee59b1 100644 --- a/Source/Editor/GUI/Timeline/Timeline.cs +++ b/Source/Editor/GUI/Timeline/Timeline.cs @@ -724,6 +724,7 @@ namespace FlaxEditor.GUI.Timeline } var playbackButtonsSize = 0.0f; + var playbackButtonsMouseOverColor = Color.FromBgra(0xFFBBBBBB); if (playbackButtons != PlaybackButtons.None) { playbackButtonsSize = 24.0f; @@ -754,6 +755,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Rewind to timeline start (Home)", Brush = new SpriteBrush(icons.Skip64), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Rotation = 180.0f, @@ -766,6 +768,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Seek back to the previous keyframe (Page Down)", Brush = new SpriteBrush(icons.Shift64), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Rotation = 180.0f, @@ -782,6 +785,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Move one frame back (Left Arrow)", Brush = new SpriteBrush(icons.Left32), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Parent = playbackButtonsPanel @@ -795,6 +799,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Stop playback", Brush = new SpriteBrush(icons.Stop64), + MouseOverColor = playbackButtonsMouseOverColor, Visible = false, Enabled = false, Parent = playbackButtonsPanel @@ -808,6 +813,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Play/pause playback (Space)", Brush = new SpriteBrush(icons.Play64), + MouseOverColor = playbackButtonsMouseOverColor, Visible = false, Tag = false, // Set to true if image is set to Pause, false if Play Parent = playbackButtonsPanel @@ -821,6 +827,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Move one frame forward (Right Arrow)", Brush = new SpriteBrush(icons.Right32), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Parent = playbackButtonsPanel @@ -832,6 +839,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Seek to the next keyframe (Page Up)", Brush = new SpriteBrush(icons.Shift64), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Parent = playbackButtonsPanel @@ -847,6 +855,7 @@ namespace FlaxEditor.GUI.Timeline { TooltipText = "Rewind to timeline end (End)", Brush = new SpriteBrush(icons.Skip64), + MouseOverColor = playbackButtonsMouseOverColor, Enabled = false, Visible = false, Parent = playbackButtonsPanel