From 51606440167b3e3e36edaa8dbab9ea8b5fd39b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Tue, 27 Dec 2022 17:25:54 +0800 Subject: [PATCH] Logo: add Solus logo (#360) --- README.md | 2 +- src/logo/builtin.c | 38 ++++++++++++++++++++++++++++++++++++-- 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5a6942ade..53268059f 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Title, Separator, OS, Host, Bios, Board, Kernel, Uptime, Processes, Packages, Sh ##### Logos ``` -AlmaLinux, Alpine, Android, Arch, Arco, Artix, Bedrock, CachyOS, CentOS, CRUX, Crystal, Debian, Devuan, Deepin, Endeavour, Enso, Fedora, FreeBSD, Garuda, Gentoo, KDE Neon, KISS, Kubuntu, LangitKetujuh, Linux, MacOS, Manjaro, Mint, MSYS2, NixOS, Nobara, OpenSUSE, OpenSUSE Tumbleweed, OpenSUSE LEAP, Parabola, Pop!_OS, RebornOS, RedstarOS, Rocky, Rosa, Slackware, Ubuntu, Vanilla, Void, Windows 11, Windows 8, Windows, Zorin +AlmaLinux, Alpine, Android, Arch, Arco, Artix, Bedrock, CachyOS, CentOS, CRUX, Crystal, Debian, Devuan, Deepin, Endeavour, Enso, Fedora, FreeBSD, Garuda, Gentoo, KDE Neon, KISS, Kubuntu, LangitKetujuh, Linux, MacOS, Manjaro, Mint, MSYS2, NixOS, Nobara, OpenSUSE, OpenSUSE Tumbleweed, OpenSUSE LEAP, Parabola, Pop!_OS, RebornOS, RedstarOS, Rocky, Rosa, Slackware, Solus, Ubuntu, Vanilla, Void, Windows 11, Windows 8, Windows, Zorin ``` * Most of the logos have a small variant. Access it by appending _small to the logo name. * Some logos have an old variant. Access it by appending _old to the logo name. diff --git a/src/logo/builtin.c b/src/logo/builtin.c index d876cc5ac..d13b7e4f8 100644 --- a/src/logo/builtin.c +++ b/src/logo/builtin.c @@ -2120,6 +2120,41 @@ static const FFlogo* getLogoSlackwareSmall() FF_LOGO_RETURN } +static const FFlogo* getLogoSolus() +{ + FF_LOGO_INIT + FF_LOGO_NAMES("solus", "solus-linux") + FF_LOGO_LINES( +"$2 -```````````\n" +" `-+/------------.`\n" +" .---:mNo---------------.\n" +" .-----yMMMy:---------------.\n" +" `------oMMMMMm/----------------`\n" +" .------/MMMMMMMN+----------------.\n" +" .------/NMMMMMMMMm-+/--------------.\n" +"`------/NMMMMMMMMMN-:mh/-------------`\n" +".-----/NMMMMMMMMMMM:-+MMd//oso/:-----.\n" +"-----/NMMMMMMMMMMMM+--mMMMh::smMmyo:--\n" +"----+NMMMMMMMMMMMMMo--yMMMMNo-:yMMMMd/.\n" +".--oMMMMMMMMMMMMMMMy--yMMMMMMh:-yMMMy-`\n" +"`-sMMMMMMMMMMMMMMMMh--dMMMMMMMd:/Ny+y.\n" +"`-/+osyhhdmmNNMMMMMm-/MMMMMMMmh+/ohm+\n" +" .------------:://+-/++++++$1oshddys:\n" +" -hhhhyyyyyyyyyyyhhhhddddhysssso-\n" +" `:ossssssyysssssssssssssssso:`\n" +" `:+ssssssssssssssssssss+-\n" +" `-/+ssssssssssso+/-`\n" +" `.-----..`\n" + ) + FF_LOGO_COLORS( + "34", //blue + "37" //white + ) + FF_LOGO_COLOR_KEYS("34"); //blue + FF_LOGO_COLOR_TITLE("37"); //white + FF_LOGO_RETURN +} + static const FFlogo* getLogoUbuntu() { FF_LOGO_INIT @@ -2146,8 +2181,6 @@ static const FFlogo* getLogoUbuntu() " .':loooooo; ,oooooooooc\n" " ..';::c' .;loooo:'\n" " ." - - ) FF_LOGO_COLORS( "31", //red @@ -2405,6 +2438,7 @@ GetLogoMethod* ffLogoBuiltinGetAll() getLogoRosaLinux, getLogoSlackware, getLogoSlackwareSmall, + getLogoSolus, getLogoUbuntu, getLogoUbuntuOld, getLogoUbuntuSmall,