Skip to content

Commit 0465ac9

Browse files
committed
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.
1 parent 77d2d3a commit 0465ac9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "stdafx.h"
1010
#include "ModernSettings.h"
1111
#include "ModernSettingsShellFolder.h"
12+
#include "ResourceHelper.h"
1213
#include <propkey.h>
1314
#include <strsafe.h>
1415
#include <Uxtheme.h>
@@ -181,7 +182,7 @@ HICON IconFromGlyph(UINT glyph, UINT size)
181182
HDC dc = CreateCompatibleDC(nullptr);
182183
SelectObject(dc, info.hbmColor);
183184

184-
HFONT font = CreateFontW(size, 0, 0, 0, 400, 0, 0, 0, 1, 0, 0, 0, 0, L"Segoe MDL2 Assets");
185+
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");
185186
SelectObject(dc, font);
186187

187188
RECT rc{};

0 commit comments

Comments
 (0)