Skip to content

Commit

Permalink
imp - Improved the look of the timer
Browse files Browse the repository at this point in the history
---

We've improved the look of the timer.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 28, 2024
1 parent b327ee6 commit 4222f87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static void OpenTimer()
// Print the keys text
builder.Append(
CenteredTextColor.RenderCenteredOneLine(KeysTextTopPosition, KeysText, true, KernelColorType.Tip)
CenteredTextColor.RenderCenteredOneLine(KeysTextTopPosition, KeysText, KernelColorTools.GetColor(KernelColorType.Tip))
);
// Print the time interval
Expand All @@ -151,13 +151,13 @@ public static void OpenTimer()
else
{
builder.Append(
TextWriterWhereColor.RenderWhere(UntilText, TimeLeftPosition, TimeTopPosition, true, KernelColorTools.GetColor(KernelColorType.NeutralText), KernelColorTools.GetColor(KernelColorType.Background))
TextWriterWhereColor.RenderWhereColorBack(UntilText, TimeLeftPosition, TimeTopPosition, true, KernelColorTools.GetColor(KernelColorType.NeutralText), KernelColorTools.GetColor(KernelColorType.Background))
);
}
// Print the border
builder.Append(
TextWriterWhereColor.RenderWhere(new string('═', ConsoleWrapper.WindowWidth), 0, KeysTextTopPosition - 2, true, ColorTools.GetGray(), KernelColorTools.GetColor(KernelColorType.Background))
TextWriterWhereColor.RenderWhereColorBack(new string('═', ConsoleWrapper.WindowWidth), 0, KeysTextTopPosition - 2, true, ColorTools.GetGray(), KernelColorTools.GetColor(KernelColorType.Background))
);
// Return the final result
Expand Down

0 comments on commit 4222f87

Please sign in to comment.