Skip to content

Commit

Permalink
imp - Updated showcases to show/hide current shell num
Browse files Browse the repository at this point in the history
---

We need to show all the presets for the normal UESH shell as exactly as how the user would get it as soon as they select a preset.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 24, 2024
1 parent 55d4cd5 commit 3bf3ac0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/Default.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ internal override string PresetPromptBuilderShowcase()
{
// Opening
PresetStringBuilder.Append(ColorTools.GetGray().VTSequenceForeground);
PresetStringBuilder.AppendFormat("[1:");
PresetStringBuilder.AppendFormat($"[{(Config.MainConfig.ShowShellCount ? $"1:" : "")}");

// Current username
PresetStringBuilder.Append(KernelColorTools.GetColor(KernelColorType.UserNameShell).VTSequenceForeground);
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLine1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(85, 255, 255), new Color(43, 127, 127), "user"),
new PowerLineSegment(new Color(0, 0, 0), new Color(85, 255, 255), "host", PadlockChar),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), "/home/user [1]"),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}"),
];

// Builder
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLine2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(255, 85, 255), new Color(127, 43, 127), "user"),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 85, 255), "host", PadlockChar),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), "/home/user [1]"),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}"),
];

// Builder
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLine3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(255, 255, 85), new Color(127, 127, 43), "user"),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 85), "host", PadlockChar),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), "/home/user [1]"),
new PowerLineSegment(new Color(0, 0, 0), new Color(255, 255, 255), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}"),
];

// Builder
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLineBG1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(85, 255, 255), new Color(25, 25, 25), "user", default, TransitionPartChar),
new PowerLineSegment(new Color(85, 255, 255), new Color(25, 25, 25), "host", PadlockChar, TransitionPartChar),
new PowerLineSegment(new Color(85, 255, 255), new Color(25, 25, 25), "/home/user [1]", default, TransitionPartChar),
new PowerLineSegment(new Color(85, 255, 255), new Color(25, 25, 25), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}", default, TransitionPartChar),
];

// Builder
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLineBG2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(255, 85, 255), new Color(25, 25, 25), "user", default, TransitionPartChar),
new PowerLineSegment(new Color(255, 85, 255), new Color(25, 25, 25), "host", PadlockChar, TransitionPartChar),
new PowerLineSegment(new Color(255, 85, 255), new Color(25, 25, 25), "/home/user [1]", default, TransitionPartChar),
new PowerLineSegment(new Color(255, 85, 255), new Color(25, 25, 25), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}", default, TransitionPartChar),
];

// Builder
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Shell/Shells/UESH/Presets/PowerLineBG3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ internal override string PresetPromptBuilderShowcase()
[
new PowerLineSegment(new Color(255, 255, 85), new Color(25, 25, 25), "user", default, TransitionPartChar),
new PowerLineSegment(new Color(255, 255, 85), new Color(25, 25, 25), "host", PadlockChar, TransitionPartChar),
new PowerLineSegment(new Color(255, 255, 85), new Color(25, 25, 25), "/home/user [1]", default, TransitionPartChar),
new PowerLineSegment(new Color(255, 255, 85), new Color(25, 25, 25), $"/home/user{(Config.MainConfig.ShowShellCount ? $" [1]" : "")}", default, TransitionPartChar),
];

// Builder
Expand Down

0 comments on commit 3bf3ac0

Please sign in to comment.