Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Aug 12, 2024
1 parent 57d40a7 commit 3f56afa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Console/Commands/MainCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public async ValueTask ExecuteAsync(IConsole console)
X = Pos.Right(queueWin),
Y = Pos.Bottom(searchWin),
Width = Dim.Fill(),
Height = Dim.Fill() - 8,
Height = Dim.Fill()! - 8,
ColorScheme = customColors
};

Expand Down
2 changes: 1 addition & 1 deletion Console/Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="PortAudioSharp2" Version="1.0.4" />
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.1" />
<PackageReference Include="Terminal.Gui" Version="2.0.0-prealpha.216" />
<PackageReference Include="YoutubeExplodeMusic" Version="6.4.0-music.1" />
</ItemGroup>
<ItemGroup>
Expand Down
9 changes: 8 additions & 1 deletion Console/StatusBarFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ PlayerController playerController
public StatusBar Create() =>
new(
[
new Shortcut(Key.Esc, "Exit", () => { }),
new Shortcut(
Key.Esc,
"Exit",
() =>
{
Application.RequestStop();
}
),
new Shortcut(Key.Q.WithCtrl, "Search", searchView.SetFocus),
new Shortcut(
Key.L.WithCtrl,
Expand Down
2 changes: 1 addition & 1 deletion Console/Views/PlayerView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void ShowPlayer()
win.RemoveAll();
ResetTitle();

var baseContainer = new View { Height = Dim.Auto(), Width = Dim.Auto(), };
var baseContainer = new View { Height = Dim.Auto(), Width = Dim.Fill(), };

var backButton = new Button
{
Expand Down

0 comments on commit 3f56afa

Please sign in to comment.