mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.99] Center automatically logo and text, when logo is longer than text and viceversa (before this commit only the first case was supported)
This commit is contained in:
@@ -19,25 +19,12 @@ struct ascii_logo {
|
||||
};
|
||||
|
||||
#define ASCII_AMD \
|
||||
" \
|
||||
\
|
||||
\
|
||||
\
|
||||
\
|
||||
\
|
||||
$C1 @@@@ @@@ @@@ @@@@@@@@ $C2############ \
|
||||
"$C1 @@@@ @@@ @@@ @@@@@@@@ $C2############ \
|
||||
$C1 @@@@@@ @@@@@ @@@@@ @@@ @@@ $C2########## \
|
||||
$C1 @@@ @@@ @@@@@@@@@@@@@ @@@ @@ $C2# ##### \
|
||||
$C1 @@@ @@@ @@@ @@@ @@@ @@@ @@ $C2### ##### \
|
||||
$C1 @@@@@@@@@@@@ @@@ @@@ @@@ @@@ $C2######### ### \
|
||||
$C1 @@@ @@@ @@@ @@@ @@@@@@@@@ $C2######## ## \
|
||||
\
|
||||
\
|
||||
\
|
||||
\
|
||||
\
|
||||
\
|
||||
"
|
||||
$C1 @@@ @@@ @@@ @@@ @@@@@@@@@ $C2######## ## "
|
||||
|
||||
// 1 2 3 4 5 6
|
||||
// 123456789012345678901234567890123456789012345678901234567890
|
||||
@@ -234,7 +221,7 @@ $C1 ######################### \
|
||||
|
||||
// LOGO W H COLORS LOGO (>0 && <10) COLORS TEXT (=2)
|
||||
// --------------------------------------------------------------------------------
|
||||
static struct ascii_logo logo_amd = { ASCII_AMD, 62, 19, {COLOR_WHITE, COLOR_GREEN}, {COLOR_WHITE, COLOR_GREEN} };
|
||||
static struct ascii_logo logo_amd = { ASCII_AMD, 62, 6, {COLOR_WHITE, COLOR_GREEN}, {COLOR_WHITE, COLOR_GREEN} };
|
||||
static struct ascii_logo logo_intel = { ASCII_INTEL, 62, 19, {COLOR_CYAN}, {COLOR_CYAN, COLOR_WHITE} };
|
||||
static struct ascii_logo logo_snapd = { ASCII_SNAPD, 62, 19, {COLOR_RED, COLOR_WHITE}, {COLOR_RED, COLOR_WHITE} };
|
||||
static struct ascii_logo logo_mtk = { ASCII_MTK, 62, 19, {COLOR_BLUE, COLOR_YELLOW}, {COLOR_BLUE, COLOR_YELLOW} };
|
||||
|
||||
Reference in New Issue
Block a user