Skip to content

Commit

Permalink
Use Segoe Fluent Icons font for modern settings icons on Win11
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ge0rdi committed Dec 6, 2022
1 parent 77d2d3a commit 0465ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Src/StartMenu/StartMenuHelper/ModernSettingsShellFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "stdafx.h"
#include "ModernSettings.h"
#include "ModernSettingsShellFolder.h"
#include "ResourceHelper.h"
#include <propkey.h>
#include <strsafe.h>
#include <Uxtheme.h>
Expand Down Expand Up @@ -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{};
Expand Down

0 comments on commit 0465ac9

Please sign in to comment.