Skip to content

Commit

Permalink
imp - Consistency with border styles
Browse files Browse the repository at this point in the history
---

We've made the interface more consistent by using the matching border characters

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 18, 2024
1 parent c3a4c6e commit 7f9dbc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions BassBoom.Cli/CliBase/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ public static void PlayerLoop()
hue = 0;
}
string indicator =
$" Seek: {PlayerControls.seekRate:0.00} | " +
$"Volume: {Common.volume:0.00} ";
$" Seek: {PlayerControls.seekRate:0.00} | " +
$"Volume: {Common.volume:0.00} ";
string lyric = Common.CurrentCachedInfo.LyricInstance is not null ? Common.CurrentCachedInfo.LyricInstance.GetLastLineCurrent(BassBoomCli.basolia) : "";
string finalLyric = string.IsNullOrWhiteSpace(lyric) ? "..." : lyric;
buffer.Append(
ProgressBarColor.RenderProgress(100 * (position / (double)Common.CurrentCachedInfo.Duration), 2, ConsoleWrapper.WindowHeight - 8, ConsoleWrapper.WindowWidth - 6, disco, disco) +
TextWriterWhereColor.RenderWhereColor($" {posSpan} / {Common.CurrentCachedInfo.DurationSpan} ", 4, ConsoleWrapper.WindowHeight - 8, disco) +
TextWriterWhereColor.RenderWhereColor($" {posSpan} / {Common.CurrentCachedInfo.DurationSpan} ", 4, ConsoleWrapper.WindowHeight - 8, disco) +
TextWriterWhereColor.RenderWhereColor(indicator, ConsoleWrapper.WindowWidth - indicator.Length - 4, ConsoleWrapper.WindowHeight - 8, disco) +
CenteredTextColor.RenderCentered(ConsoleWrapper.WindowHeight - 6, Common.CurrentCachedInfo.LyricInstance is not null && PlaybackTools.IsPlaying(BassBoomCli.basolia) ? $" {finalLyric} " : "", disco)
CenteredTextColor.RenderCentered(ConsoleWrapper.WindowHeight - 6, Common.CurrentCachedInfo.LyricInstance is not null && PlaybackTools.IsPlaying(BassBoomCli.basolia) ? $" {finalLyric} " : "", disco)
);
return buffer.ToString();
});
Expand Down
2 changes: 1 addition & 1 deletion BassBoom.Cli/CliBase/Radio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static void RadioLoop()
if (Common.CurrentCachedInfo is null)
return "";
var buffer = new StringBuilder();
string indicator = $" Volume: {Common.volume:0.00} ";
string indicator = $" Volume: {Common.volume:0.00} ";
var disco = PlaybackTools.IsPlaying(BassBoomCli.basolia) && Common.enableDisco ? new Color($"hsl:{hue};50;50") : BassBoomCli.white;
if (PlaybackTools.IsPlaying(BassBoomCli.basolia))
{
Expand Down

0 comments on commit 7f9dbc5

Please sign in to comment.