diff --git a/Console/Program.cs b/Console/Program.cs index e6bb3d7..d3a1ee6 100644 --- a/Console/Program.cs +++ b/Console/Program.cs @@ -42,11 +42,9 @@ ColorScheme = customColors }; -var videosWin = new Window +var videosWin = new View { - Title = "Videos", X = Pos.Right(queueWin), - BorderStyle = LineStyle.Rounded, Y = Pos.Bottom(searchWin), Width = Dim.Fill(), Height = Dim.Fill() - 8, @@ -107,8 +105,46 @@ out var time top.Add(queueWin, searchWin, videosWin, playerWin, statusBar); +var tabView = new TabView +{ + X = 0, + Y = 0, + Width = Dim.Fill(), + Height = Dim.Fill() +}; + +var resultsTab = new Tab +{ + DisplayText = "Results", + X = 0, + Y = 0, + Width = Dim.Fill(), + Height = Dim.Fill() +}; +var suggestionsTab = new Tab +{ + DisplayText = "Suggestions", + X = 0, + Y = 0, + Width = Dim.Fill(), + Height = Dim.Fill() +}; + +resultsTab.View = new View +{ + X = 0, + Y = 0, + Width = Dim.Fill(), + Height = Dim.Fill() +}; + +tabView.AddTab(resultsTab, true); +tabView.AddTab(suggestionsTab, false); + +videosWin.Add(tabView); + var player = new PlayerView(playerWin, playerController); -var videosResults = new VideosResultsView(videosWin, playerController); +var videosResults = new VideosResultsView(resultsTab.View, playerController); var videoSearch = new VideoSearchView(searchWin, videosResults, playerController); var queue = new QueueView(queueWin, playerController); videoSearch.ShowSearch(); diff --git a/Console/Views/VideosResultsView.cs b/Console/Views/VideosResultsView.cs index 46bd650..5e645cb 100644 --- a/Console/Views/VideosResultsView.cs +++ b/Console/Views/VideosResultsView.cs @@ -6,7 +6,7 @@ namespace Console.Views; -public class VideosResultsView(Window win, PlayerController playerController) +public class VideosResultsView(View win, PlayerController playerController) { private SpinnerView? spinner = null;