MSW: Dark Mode: Update of PrintHostDialogs

This commit is contained in:
YuSanka 2021-11-08 11:06:37 +01:00
parent 24d1303126
commit 8bc074f5f2
3 changed files with 12 additions and 0 deletions

View file

@ -101,6 +101,8 @@ PrintHostSendDialog::PrintHostSendDialog(const fs::path &path, bool can_start_pr
EndDialog(wxID_OK);
});
wxGetApp().UpdateDlgDarkUI(this);
Fit();
CenterOnParent();
@ -331,6 +333,14 @@ void PrintHostQueueDialog::on_dpi_changed(const wxRect &suggested_rect)
save_user_data(UDT_SIZE | UDT_POSITION | UDT_COLS);
}
void PrintHostQueueDialog::on_sys_color_changed()
{
#ifdef _WIN32
wxGetApp().UpdateDlgDarkUI(this);
wxGetApp().UpdateDVCDarkUI(job_list);
#endif
}
PrintHostQueueDialog::JobState PrintHostQueueDialog::get_state(int idx)
{
wxCHECK_MSG(idx >= 0 && idx < job_list->GetItemCount(), ST_ERROR, "Out of bounds access to job list");