Logo (Builtin): add Windows Server 2025

Fix #1420
This commit is contained in:
李通洲
2024-11-28 21:55:02 +08:00
parent 77c06193d6
commit bbe239647b
3 changed files with 49 additions and 14 deletions
@@ -236,19 +236,24 @@ void ffConnectDisplayServerImpl(FFDisplayServerResult* ds)
//https://github.com/hykilpikonna/hyfetch/blob/master/neofetch#L2067
const FFOSResult* os = ffDetectOS();
if(
ffStrbufEqualS(&os->version, "11") ||
ffStrbufEqualS(&os->version, "10") ||
ffStrbufEqualS(&os->version, "2022") ||
ffStrbufEqualS(&os->version, "2019") ||
ffStrbufEqualS(&os->version, "2016")
) ffStrbufSetStatic(&ds->dePrettyName, "Fluent");
else if(
ffStrbufEqualS(&os->version, "8") ||
ffStrbufEqualS(&os->version, "8.1") ||
ffStrbufEqualS(&os->version, "2012 R2") ||
ffStrbufEqualS(&os->version, "2012")
) ffStrbufSetStatic(&ds->dePrettyName, "Metro");
uint32_t ver = (uint32_t) ffStrbufToUInt(&os->version, 0);
if (ver > 1000)
{
// Windows Server
if (ver >= 2016)
ffStrbufSetStatic(&ds->dePrettyName, "Fluent");
else if (ver >= 2012)
ffStrbufSetStatic(&ds->dePrettyName, "Metro");
else
ffStrbufSetStatic(&ds->dePrettyName, "Aero");
}
else
ffStrbufSetStatic(&ds->dePrettyName, "Aero");
{
if (ver >= 10)
ffStrbufSetStatic(&ds->dePrettyName, "Fluent");
else if (ver >= 8)
ffStrbufSetStatic(&ds->dePrettyName, "Metro");
else
ffStrbufSetStatic(&ds->dePrettyName, "Aero");
}
}
+17
View File
@@ -0,0 +1,17 @@
$1 ##%%%%%%%%% $2%%%%%%%%%##
$1 ###%%%%%%%%%% $2%%%%%%%%%%###
$1 ####%%%%%%%%%%% $2%%%%%%%%%%%####
$1 ##%%%%%%%%%%%%%% $2%%%%%%%%%%%%%%##
$1#%%%%%%%%%%%%%%%% $2%%%%%%%%%%%%%%%%#
$1%%%%%%%%%%%%%%%%% $2%%%%%%%%%%%%%%%%%
$1%%%%%%%%%%%%%%%%% $2%%%%%%%%%%%%%%%%%
$1%%%%%%%%%%%%%%%%% $2#%%%%%%%%%%%%%%%%
$3%%%%%%%%%%%%%%%%% $4#%%%%%%%%%%%%%%%%
$3%%%%%%%%%%%%%%%%% $4%%%%%%%%%%%%%%%%%
$3%%%%%%%%%%%%%%%%% $4%%%%%%%%%%%%%%%%%
$3%%%%%%%%%%%%%%%%% $4%%%%%%%%%%%%%%%%#
$3 ###%%%%%%%%%%%%% $4%%%%%%%%%%%%%%%##
$3 ####%%%%%%%%%%% $4%%%%%%%%%%%#%####
$3 ##%#%%%%%%%%% $4%%%%%%%%%%%######
$3 ##%%%%%%%%% $4%%%%%%%%%########
+13
View File
@@ -4820,6 +4820,19 @@ static const FFlogo W[] = {
FF_COLOR_FG_WHITE,
},
},
// Windows2025
{
.names = {"Windows Server 2025"},
.lines = FASTFETCH_DATATEXT_LOGO_WINDOWS_2025,
.colors = {
FF_COLOR_FG_BLUE,
FF_COLOR_FG_BLUE,
FF_COLOR_FG_BLUE,
FF_COLOR_FG_BLUE,
},
.colorKeys = FF_COLOR_FG_YELLOW,
.colorTitle = FF_COLOR_FG_CYAN,
},
// Windows11
{
.names = {"Windows 11", "Windows Server 2022"},