mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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%%%%%%%%%########
|
||||
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user