Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/assets/logos.nim
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,10 @@ const
/ _// _ \/ _ / -_) _ `/ |/ / _ \/ // / __/ /_/ /\ \
/___/_//_/\_,_/\__/\_,_/|___/\___/\_,_/_/ \____/___/
"""
voidLogo* = r"""

_ __ __ ___
| |/ /___ /_/ _/ /
| | // _ \ / // _ /
|__/ \___//_/ \___/
"""
26 changes: 13 additions & 13 deletions src/funcs/drawing.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ proc drawInfo*(asciiArt: bool) =
stdout.styledWrite(styleBright, coloredLogo[0], coloredLogo[1], color0)

# colored out
stdout.styledWrite("\n", styleBright, " ╭───────────╮\n")
stdout.styledWrite(" │ ", color2, userIcon, color0, userCat, color1, userInfo, color0, "\n",)
if not isEmptyOrWhitespace(hostnameInfo):
stdout.styledWrite(" │ ", color2, hnameIcon, color0, hnameCat, color2, hostnameInfo, color0, "\n")
stdout.styledWrite(" │ ", color3, distroIcon, color0, distroCat, color3, distroInfo, color0, "\n")
stdout.styledWrite(" │ ", color4, kernelIcon, color0, kernelCat, color4, kernelInfo, color0, "\n")
stdout.styledWrite(" │ ", color5, uptimeIcon, color0, uptimeCat, color5, uptimeInfo, color0, "\n")
stdout.styledWrite(" │ ", color6, shellIcon, color0, shellCat, color6, shellInfo, color0, "\n")
stdout.styledWrite(" │ ", color1, pkgsIcon, color0, pkgsCat, color1, pkgsInfo, color0, "\n")
stdout.styledWrite(" │ ", color2, ramIcon, color0, ramCat, fgYellow, ramInfo, color0, "\n")
stdout.styledWrite(" ├───────────┤\n")
stdout.styledWrite(" │ ", color7, colorsIcon, color0, colorsCat, color7, dotIcon, " ", color1, dotIcon, " ", color2, dotIcon, " ", color3, dotIcon, " ", color4, dotIcon, " ", color5, dotIcon, " ", color6, dotIcon, " ", color8, dotIcon, color0, "\n")
stdout.styledWrite(" ╰───────────╯\n\n")
stdout.styledWrite("\n", styleBright, " ╭───────────╮\n")
stdout.styledWrite(" │ ", color2, userIcon, color0, userCat, color1, userInfo, color0, "\n",)
if not isEmptyOrWhitespace(hostnameInfo):
stdout.styledWrite(" │ ", color2, hnameIcon, color0, hnameCat, color2, hostnameInfo, color0, "\n")
stdout.styledWrite(" │ ", color3, distroIcon, color0, distroCat, color3, distroInfo, color0, "\n")
stdout.styledWrite(" │ ", color4, kernelIcon, color0, kernelCat, color4, kernelInfo, color0, "\n")
stdout.styledWrite(" │ ", color5, uptimeIcon, color0, uptimeCat, color5, uptimeInfo, color0, "\n")
stdout.styledWrite(" │ ", color6, shellIcon, color0, shellCat, color6, shellInfo, color0, "\n")
stdout.styledWrite(" │ ", color1, pkgsIcon, color0, pkgsCat, color1, pkgsInfo, color0, "\n")
stdout.styledWrite(" │ ", color2, ramIcon, color0, ramCat, fgYellow, ramInfo, color0, "\n")
stdout.styledWrite(" ├───────────┤\n")
stdout.styledWrite(" │ ", color7, colorsIcon, color0, colorsCat, color7, dotIcon, " ", color1, dotIcon, " ", color2, dotIcon, " ", color3, dotIcon, " ", color4, dotIcon, " ", color5, dotIcon, " ", color6, dotIcon, " ", color8, dotIcon, color0, "\n")
stdout.styledWrite(" ╰───────────╯\n\n")
8 changes: 6 additions & 2 deletions src/nitches/getLogo.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import

func getLogo*(distroId: string): tuple =
const
coloredLogos: array[15, tuple] = [
coloredLogos: array[16, tuple] = [
(fgRed, nitchLogo),
(fgBlue, archLogo),
(fgRed, ubuntuLogo),
Expand All @@ -19,7 +19,8 @@ func getLogo*(distroId: string): tuple =
(fgYellow, centosLogo),
(fgRed, redhatLogo),
(fgMagenta, gentooLogo),
(fgMagenta, endeavourosLogo)
(fgMagenta, endeavourosLogo),
(fgGreen, voidLogo)
]

case distroId:
Expand Down Expand Up @@ -64,6 +65,9 @@ func getLogo*(distroId: string): tuple =

of "endeavouros":
result = coloredLogos[14]

of "void":
result = coloredLogos[15]

else:
result = coloredLogos[0]