mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2025-02-20 11:43:27 +08:00
Generic Linux logo
This commit is contained in:
parent
4e68c09f27
commit
00fdb8a0c4
@ -42,11 +42,11 @@ Title, Separator, OS, Host, Kernel, Uptime, Processes, Packages, Shell, Resoluti
|
||||
|
||||
##### Logos
|
||||
```
|
||||
Android, Arch, Arco, Artix, CachyOS, CentOS, Debian, Endeavour, Fedora, Garuda, Gentoo, Manjaro, Mint, Pop!_OS, RebornOS, Ubuntu, Void, Zorin
|
||||
Android, Arch, Arco, Artix, CachyOS, CentOS, Debian, Endeavour, Fedora, Garuda, Gentoo, Linux, Manjaro, Mint, Pop!_OS, RebornOS, Ubuntu, Void, 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.
|
||||
* Unknown/unsupported logos will be replaced with a question mark when running fastfetch.
|
||||
* Unknown/unsupported logos will be replaced with a generic linux logo when running fastfetch.
|
||||
* Get a list of all available logos with `fastfetch --print-logos`.
|
||||
|
||||
##### Package managers
|
||||
|
@ -592,6 +592,32 @@ static const FFlogo* getLogoGentooSmall()
|
||||
FF_LOGO_RETURN
|
||||
}
|
||||
|
||||
static const FFlogo* getLogoLinux()
|
||||
{
|
||||
FF_LOGO_INIT
|
||||
FF_LOGO_NAMES("linux", "linux-generic")
|
||||
FF_LOGO_LINES(
|
||||
"$2 ##### \n"
|
||||
"$2 ####### \n"
|
||||
"$2 ##$1O$2#$1O$2## \n"
|
||||
"$2 #$3#####$2# \n"
|
||||
"$2 ##$1##$3###$1##$2## \n"
|
||||
"$2 #$1##########$2## \n"
|
||||
"$2 #$1############$2## \n"
|
||||
"$2 #$1############$2### \n"
|
||||
"$3 ##$2#$1###########$2##$3# \n"
|
||||
"$3######$2#$1#######$2#$3######\n"
|
||||
"$3#######$2#$1#####$2#$3#######\n"
|
||||
"$3 #####$2#######$3##### "
|
||||
)
|
||||
FF_LOGO_COLORS(
|
||||
"37", //white
|
||||
"30", //black
|
||||
"33" //yellow
|
||||
)
|
||||
FF_LOGO_RETURN
|
||||
}
|
||||
|
||||
static const FFlogo* getLogoManjaro()
|
||||
{
|
||||
FF_LOGO_INIT
|
||||
@ -984,6 +1010,7 @@ static GetLogoMethod* getLogoMethods()
|
||||
getLogoGaruda,
|
||||
getLogoGentoo,
|
||||
getLogoGentooSmall,
|
||||
getLogoLinux,
|
||||
getLogoManjaro,
|
||||
getLogoManjaroSmall,
|
||||
getLogoMint,
|
||||
@ -1110,10 +1137,10 @@ void ffLoadLogo(FFinstance* instance)
|
||||
const FFOSResult* result = ffDetectOS(instance);
|
||||
|
||||
if(
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->name) &&
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->id) &&
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->systemName) &&
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->idLike)
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->name) && //e.g. Pop!_OS
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->id) && //e.g. popos
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->idLike) && //e.g. ubuntu
|
||||
!loadLogoSetWithVersion(instance, &result->versionID, &result->systemName) //e.g. linux
|
||||
) setLogo(instance, getLogoUnknown());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user