Skip to content

Commit

Permalink
remove objmgr code
Browse files Browse the repository at this point in the history
  • Loading branch information
DartVanya committed Nov 23, 2024
1 parent 165f3a5 commit af3ec7c
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 734 deletions.
5 changes: 1 addition & 4 deletions SystemInformer/srvprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,7 @@ INT_PTR CALLBACK PhpServiceGeneralDlgProc(

context->Ready = TRUE;

if (PhEnableThemeSupport) // TODO: Required for compat (dmex)
PhInitializeWindowTheme(GetParent(hwndDlg), PhEnableThemeSupport); // HACK (GetParent)
else
PhInitializeWindowTheme(hwndDlg, FALSE);
PhInitializeWindowTheme(GetParent(hwndDlg), PhEnableThemeSupport); // HACK (GetParent)
}
break;
case WM_DESTROY:
Expand Down
5 changes: 1 addition & 4 deletions SystemInformer/tokprp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2586,10 +2586,7 @@ INT_PTR CALLBACK PhpTokenGeneralPageProc(

EnableWindow(GetDlgItem(hwndDlg, IDC_LINKEDTOKEN), !!hasLinkedToken);

if (PhEnableThemeSupport) // TODO: Required for compat (dmex)
PhInitializeWindowTheme(GetParent(hwndDlg), PhEnableThemeSupport); // HACK (GetParent)
else
PhInitializeWindowTheme(hwndDlg, FALSE);
PhInitializeWindowTheme(GetParent(hwndDlg), PhEnableThemeSupport); // HACK (GetParent)
}
break;
case WM_COMMAND:
Expand Down
5 changes: 4 additions & 1 deletion phlib/treenew.c
Original file line number Diff line number Diff line change
Expand Up @@ -5364,7 +5364,10 @@ VOID PhTnpPaint(
BLENDFUNCTION blendFunction;

// Fix ForeColor for theme, previously it was always white. Plus 90-100 brightness adjustments seems fine for good contrast. (Dart Vanya)
SetTextColor(hdc, !node->UseAutoForeColor && node->s.DrawForeColor != 0 ? PhMakeColorBrighter(node->s.DrawForeColor, 95) : PhThemeWindowTextColor);
SetTextColor(hdc,
!node->UseAutoForeColor && node->s.DrawForeColor != 0 ?
PhMakeColorBrighter(node->s.DrawForeColor, node->s.DrawBackColor == 16777215 ? 95 : 105) :
PhThemeWindowTextColor);
SetDCBrushColor(hdc, PhThemeWindowBackgroundColor);
FillRect(hdc, &rowRect, PhGetStockBrush(DC_BRUSH));

Expand Down
Loading

0 comments on commit af3ec7c

Please sign in to comment.