Skip to content

Commit cd8cc8c

Browse files
committed
Skin: Add more DPI options
Allow skin customizations for higher DPI displays by adding more DPI options: - 120_DPI - 144_DPI - 168_DPI - 192_DPI - 216_DPI - 240_DPI Fixes #458 .
1 parent 1bfbe09 commit cd8cc8c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Src/StartMenu/StartMenuDLL/SkinManager.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,8 +1495,21 @@ bool MenuSkin::ComputeOptionStates( const std::map<CString,CString> &options, st
14951495
values.push_back(L"ALL_PROGRAMS");
14961496
if (SkinType==SKIN_TYPE_CLASSIC2)
14971497
values.push_back(L"TWO_COLUMNS");
1498+
// for compatibility with existing skins
14981499
if (Dpi>=144)
14991500
values.push_back(L"HIGH_DPI");
1501+
if (Dpi>=240)
1502+
values.push_back(L"240_DPI"); // 250% scaling
1503+
else if (Dpi>=216)
1504+
values.push_back(L"216_DPI"); // 225% scaling
1505+
else if (Dpi>=192)
1506+
values.push_back(L"192_DPI"); // 200% scaling
1507+
else if (Dpi>=168)
1508+
values.push_back(L"168_DPI"); // 175% scaling
1509+
else if (Dpi>=144)
1510+
values.push_back(L"144_DPI"); // 150% scaling
1511+
else if (Dpi>=120)
1512+
values.push_back(L"120_DPI"); // 125% scaling
15001513
if (ForceTouch || (GetWinVersion()>=WIN_VER_WIN8 && GetSettingBool(L"EnableTouch") && (GetSystemMetrics(SM_DIGITIZER)&NID_INTEGRATED_TOUCH)!=0))
15011514
values.push_back(L"TOUCH_ENABLED");
15021515
if (GetSettingInt(L"SearchBox")!=SEARCHBOX_HIDDEN)

0 commit comments

Comments
 (0)