From 0465ac9c1b55dcec51ddfec12bb794c7df75e7ca Mon Sep 17 00:00:00 2001 From: ge0rdi Date: Sat, 3 Dec 2022 11:46:28 +0100 Subject: [PATCH] Use `Segoe Fluent Icons` font for modern settings icons on Win11 It seems that Windows 11 prefers `Segoe Fluent Icons` over `Segoe MDL2 Assets` font. https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font Most of settings defined in `AllSystemSettings_{253E530E-387D-4BC2-959D-E6F86122E5F2}.xml` now refer to the new font. --- Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp b/Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp index a9e973e..fb2a13e 100644 --- a/Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp +++ b/Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp @@ -9,6 +9,7 @@ #include "stdafx.h" #include "ModernSettings.h" #include "ModernSettingsShellFolder.h" +#include "ResourceHelper.h" #include #include #include @@ -181,7 +182,7 @@ HICON IconFromGlyph(UINT glyph, UINT size) HDC dc = CreateCompatibleDC(nullptr); SelectObject(dc, info.hbmColor); - HFONT font = CreateFontW(size, 0, 0, 0, 400, 0, 0, 0, 1, 0, 0, 0, 0, L"Segoe MDL2 Assets"); + HFONT font = CreateFontW(size, 0, 0, 0, 400, 0, 0, 0, 1, 0, 0, 0, 0, IsWin11() ? L"Segoe Fluent Icons" : L"Segoe MDL2 Assets"); SelectObject(dc, font); RECT rc{};