Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,12 @@ private unsafe void CreateHandle()
// Setting the max width has the added benefit of enabling multiline tool tips.
PInvokeCore.SendMessage(this, PInvoke.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);

Form? activeForm = Form.ActiveForm;
if (Application.IsDarkModeEnabled && !SystemInformation.HighContrast && activeForm is not null && activeForm.DarkModeRequestState is true)
Comment thread
SimonZhao888 marked this conversation as resolved.
Outdated
{
PInvoke.SetWindowTheme(HWND, $"{Control.DarkModeIdentifier}_{Control.ExplorerThemeIdentifier}", null);
}

if (_auto)
{
// AutomaticDelay property should overwrite other delay timer values, _auto field indicates that
Expand Down