Skip to content

Commit 1f45ce9

Browse files
committed
Fix token highlighting inconsistency
1 parent 3c1cb4f commit 1f45ce9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ProcessHacker/tokprp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ COLORREF PhGetGroupAttributesColor(
302302
if (Attributes & SE_GROUP_INTEGRITY)
303303
{
304304
if (Attributes & SE_GROUP_INTEGRITY_ENABLED)
305-
return RGB(0xff, 0xf0, 0xc0);
305+
return RGB(0xe0, 0xf0, 0xe0);
306306
else
307307
return GetSysColor(COLOR_WINDOW);
308308
}
309309

310310
if (Attributes & SE_GROUP_ENABLED_BY_DEFAULT)
311311
return RGB(0xc0, 0xf0, 0xc0);
312312
else if (Attributes & SE_GROUP_ENABLED)
313-
return RGB(0x00, 0xff, 0x7f);
313+
return GetSysColor(COLOR_WINDOW);
314314
else
315315
return RGB(0xf0, 0xe0, 0xe0);
316316
}
@@ -322,7 +322,7 @@ COLORREF PhGetPrivilegeAttributesColor(
322322
if (Attributes & SE_PRIVILEGE_ENABLED_BY_DEFAULT)
323323
return RGB(0xc0, 0xf0, 0xc0);
324324
else if (Attributes & SE_PRIVILEGE_ENABLED)
325-
return RGB(0x00, 0xff, 0x7f);
325+
return RGB(0xe0, 0xf0, 0xe0);
326326
else
327327
return RGB(0xf0, 0xe0, 0xe0);
328328
}
@@ -581,7 +581,7 @@ INT_PTR CALLBACK PhpTokenPageProc(
581581

582582
PhSetExtendedListView(tokenPageContext->ListViewHandle);
583583
ExtendedListView_SetItemColorFunction(tokenPageContext->ListViewHandle, PhpTokenGroupColorFunction);
584-
PhLoadListViewColumnsFromSetting(L"TokenGroupsListViewColumns", tokenPageContext->ListViewHandle);
584+
PhLoadListViewColumnsFromSetting(L"TokenGroupsListViewColumns", tokenPageContext->ListViewHandle);
585585

586586
ListView_EnableGroupView(tokenPageContext->ListViewHandle, TRUE);
587587
PhAddListViewGroup(tokenPageContext->ListViewHandle, PH_PROCESS_TOKEN_CATEGORY_PRIVILEGES, L"Privileges");

0 commit comments

Comments
 (0)