diff --git a/src/detection/displayserver/displayserver_windows.c b/src/detection/displayserver/displayserver_windows.c index a25764ca4..95f435cc9 100644 --- a/src/detection/displayserver/displayserver_windows.c +++ b/src/detection/displayserver/displayserver_windows.c @@ -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"); + } } diff --git a/src/logo/ascii/windows_2025.txt b/src/logo/ascii/windows_2025.txt new file mode 100644 index 000000000..1c02084e7 --- /dev/null +++ b/src/logo/ascii/windows_2025.txt @@ -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%%%%%%%%%######## \ No newline at end of file diff --git a/src/logo/builtin.c b/src/logo/builtin.c index 60f874dce..c0e867009 100644 --- a/src/logo/builtin.c +++ b/src/logo/builtin.c @@ -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"},