Skip to content

Commit

Permalink
imp - prt - Added a workaround about the Home butt...
Browse files Browse the repository at this point in the history
...on

---

We've added an ugly workaround about the Home button.

This workaround fixes the About button by making it one cell wider than the Settings button if we sense that this button is not going to fill in the whole button panel.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 2/2
  • Loading branch information
AptiviCEO committed Sep 12, 2024
1 parent 2132a60 commit 9fffdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Homepage/HomepageTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static void OpenHomepage()
var foregroundAboutText = buttonHighlight == 2 ? new Color(ConsoleColors.Black) : KernelColorTools.GetColor(KernelColorType.NeutralText);
builder.Append(BorderColor.RenderBorder(settingsButtonPosX, buttonPanelPosY, buttonWidth, buttonHeight, foregroundSettings, backgroundSettings));
builder.Append(CenteredTextColor.RenderCenteredOneLine(buttonPanelPosY + 1, Translate.DoTranslation("Settings"), foregroundSettingsText, backgroundSettings, settingsButtonPosX + 1, buttonPanelWidth + settingsButtonPosX + aboutButtonPosX + 2 - ConsoleWrapper.WindowWidth % 2));
builder.Append(BorderColor.RenderBorder(aboutButtonPosX, buttonPanelPosY, buttonWidth, buttonHeight, foregroundAbout, backgroundAbout));
builder.Append(BorderColor.RenderBorder(aboutButtonPosX, buttonPanelPosY, aboutButtonPosX + buttonWidth == buttonPanelWidth ? buttonWidth + 1 : buttonWidth, buttonHeight, foregroundAbout, backgroundAbout));
builder.Append(CenteredTextColor.RenderCenteredOneLine(buttonPanelPosY + 1, Translate.DoTranslation("About"), foregroundAboutText, backgroundAbout, aboutButtonPosX + 1, buttonWidth + aboutButtonPosX + 4 - ConsoleWrapper.WindowWidth % 2));
// Populate the available options
Expand Down

0 comments on commit 9fffdd1

Please sign in to comment.