Skip to content

Commit

Permalink
imp - prt - Tweaked the About button (pt. 1)
Browse files Browse the repository at this point in the history
---

We've tweaked the About button positioning for a bit, but it seems to still exhibit this behavior that makes the button not fill.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/2
  • Loading branch information
AptiviCEO committed Sep 11, 2024
1 parent 6f5a225 commit 2132a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/Nitrocid/Shell/Homepage/HomepageTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ public static void OpenHomepage()
// Populate the settings button
int buttonPanelPosY = ConsoleWrapper.WindowHeight - 5;
int buttonPanelWidth = ConsoleWrapper.WindowWidth / 2 - 5 + ConsoleWrapper.WindowWidth % 2;
int buttonPanelWidth = widgetLeft - 4;
int buttonWidth = buttonPanelWidth / 2 - 2;
int buttonHeight = 1;
int settingsButtonPosX = 2;
int aboutButtonPosX = buttonWidth + 6;
int aboutButtonPosX = settingsButtonPosX + buttonWidth + 3;
var foregroundSettings = buttonHighlight == 1 ? new Color(ConsoleColors.Black) : KernelColorTools.GetColor(KernelColorType.TuiPaneSeparator);
var backgroundSettings = buttonHighlight == 1 ? KernelColorTools.GetColor(KernelColorType.TuiPaneSelectedSeparator) : ColorTools.CurrentBackgroundColor;
var foregroundSettingsText = buttonHighlight == 1 ? new Color(ConsoleColors.Black) : KernelColorTools.GetColor(KernelColorType.NeutralText);
Expand Down

0 comments on commit 2132a60

Please sign in to comment.