Skip to content

Commit 5e26ca4

Browse files
committed
应用选项设置中重新应用一次任务栏透明颜色,解决更改任务栏背景颜色时背景透明效果丢失的问题
1 parent 81cc42b commit 5e26ca4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

TrafficMonitor/TrafficMonitorDlg.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ void CTrafficMonitorDlg::ApplySettings(COptionsDlg& optionsDlg)
780780
{
781781
m_tBarDlg->WidthChanged();
782782
}
783+
m_tBarDlg->ApplyWindowTransparentColor();
783784
}
784785

785786
if (optionsDlg.m_tab3_dlg.IsAutoRunModified())
@@ -1849,7 +1850,7 @@ void CTrafficMonitorDlg::OnTimer(UINT_PTR nIDEvent)
18491850
//根据任务栏颜色自动设置任务栏窗口背景色
18501851
if (theApp.m_taskbar_data.auto_set_background_color && theApp.m_win_version.IsWindows8OrLater()
18511852
&& IsTaskbarWndValid() && theApp.m_taskbar_data.transparent_color != 0
1852-
&& !m_is_foreground_fullscreen)
1853+
&& !m_is_foreground_fullscreen && theApp.m_taskbar_data.disable_d2d)
18531854
{
18541855
CRect rect;
18551856
::GetWindowRect(m_tBarDlg->GetSafeHwnd(), rect);

0 commit comments

Comments
 (0)