From 36dadcdc7f176b6ab0a9c73eca92c2902b01f3f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 3 May 2024 08:58:13 +0800 Subject: [PATCH] Logo (Builtin): add MX2 & fix mx distro detection Fix: #847 --- src/logo/ascii/mx2.txt | 18 ++++++++++++++++++ src/logo/builtin.c | 15 +++++++++++++-- 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/logo/ascii/mx2.txt diff --git a/src/logo/ascii/mx2.txt b/src/logo/ascii/mx2.txt new file mode 100644 index 000000000..b2132fbbd --- /dev/null +++ b/src/logo/ascii/mx2.txt @@ -0,0 +1,18 @@ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +@@@@@@@@@@@@%*+--:------=+*%@@@@@@@@@@@@ +@@@@@@@@@#=. .-+#%@@@@@%#*+--=#@@@@@@@@@ +@@@@@@@+. .=%@@@@@@@@@@@@@@@@*-:+@@@@@@@ +@@@@@*. *@@@@@@@@@@@@@@@@@@@@@%-.*@@@@@ +@@@@- -@@@@@@@@@@@@@@@@@@@@@@@#: -@@@@ +@@@: -@@@@@@@=.*@@@@@@@@@@@@%- = :@@@ +@@= .@@@@@@@@%- :%@@@@@@@@@+ -%@# =@@ +@% +@@@@@@@@@@#. =@@@@@@*. .*@@@@. %@ +@+ *@@@@@@*..*@@+ *@@%- =@@@@@@- +@ +@= *@@@@%- -%@@- := -%@@@@@@@: +@ +@+ :@@@= +@@= .#@@@@@@@@% *@ +@% +*. .: *@@#: +@@: @@ +@@+ :%@- :- :: +@@ +@@@- .=@@= -@@@ +@@+. . +@@ +%=..:.................::...........:..-% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ diff --git a/src/logo/builtin.c b/src/logo/builtin.c index f024d1300..3b0d2ab18 100644 --- a/src/logo/builtin.c +++ b/src/logo/builtin.c @@ -2662,7 +2662,7 @@ static const FFlogo M[] = { }, // MX { - .names = {"MX"}, + .names = {"MX", "MX Linux"}, .lines = FASTFETCH_DATATEXT_LOGO_MX, .colors = { FF_COLOR_FG_WHITE, @@ -2672,7 +2672,7 @@ static const FFlogo M[] = { }, // MXSmall { - .names = {"MX_small", "mx-small"}, + .names = {"MX_small", "mx linux_small"}, .type = FF_LOGO_LINE_TYPE_SMALL_BIT, .lines = FASTFETCH_DATATEXT_LOGO_MX_SMALL, .colors = { @@ -2681,6 +2681,17 @@ static const FFlogo M[] = { .colorKeys = FF_COLOR_FG_BLUE, .colorTitle = FF_COLOR_FG_CYAN, }, + // MX2 + { + .names = {"MX2"}, + .type = FF_LOGO_LINE_TYPE_ALTER_BIT, + .lines = FASTFETCH_DATATEXT_LOGO_MX2, + .colors = { + FF_COLOR_FG_WHITE, + }, + .colorKeys = FF_COLOR_FG_BLUE, + .colorTitle = FF_COLOR_FG_CYAN, + }, // LAST {}, };