From 79b7e7677794bdd28208863e84b92a664e978937 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 23 Aug 2021 16:51:17 +0200 Subject: [PATCH] Adjustments for timeline editing UI --- Source/Editor/GUI/CurveEditor.Contents.cs | 13 ++++++++++++- Source/Editor/GUI/Timeline/GUI/BackgroundArea.cs | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Source/Editor/GUI/CurveEditor.Contents.cs b/Source/Editor/GUI/CurveEditor.Contents.cs index 2058a0aa7..9964c0485 100644 --- a/Source/Editor/GUI/CurveEditor.Contents.cs +++ b/Source/Editor/GUI/CurveEditor.Contents.cs @@ -83,7 +83,18 @@ namespace FlaxEditor.GUI { _editor._mainPanel.ViewOffset += delta; _movingViewLastPos = location; - Cursor = CursorType.SizeAll; + switch (_editor.EnablePanning) + { + case UseMode.Vertical: + Cursor = CursorType.SizeNS; + break; + case UseMode.Horizontal: + Cursor = CursorType.SizeWE; + break; + case UseMode.On: + Cursor = CursorType.SizeAll; + break; + } } return; diff --git a/Source/Editor/GUI/Timeline/GUI/BackgroundArea.cs b/Source/Editor/GUI/Timeline/GUI/BackgroundArea.cs index a62fb5023..bffedc1ee 100644 --- a/Source/Editor/GUI/Timeline/GUI/BackgroundArea.cs +++ b/Source/Editor/GUI/Timeline/GUI/BackgroundArea.cs @@ -18,6 +18,9 @@ namespace FlaxEditor.GUI.Timeline.GUI public BackgroundArea(Timeline timeline) : base(ScrollBars.Both) { + ScrollBarsSize = 18.0f; + VScrollBar.ThumbThickness = 10.0f; + HScrollBar.ThumbThickness = 10.0f; _timeline = timeline; }