You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pop_rejepoch: the warning message has no blue background #871
Arno's feedback of November 29, 2026 (email "Re: November 29 EEGLAB and EEGPrep menu comparison | editable Word") on the seven-menu report, adelorme-assistant/project_eegprep#1, reports/all-menus-2026-11-29.
The confirmation shown by Tools > Reject marked epochs comes from _confirm_reject_epochs, which calls the native QMessageBox.question. That box takes the system palette. The blue EEGLAB rules in theme.py only target QFileDialog and QProgressDialog, and the main-window stylesheet only colours QMainWindow and #main_panel, so nothing turns this box blue. EEGLAB draws the same prompt with questdlg2 (pop_rejepoch.m:78-80), which uses supergui and the EEGLAB background colour.
Route _confirm_reject_epochs through questdlg2("Are you sure, you want to reject the labeled trials ?", "Reject pre-labelled epochs -- pop_rejepoch()", "No", "Yes", "Yes"), matching pop_rejepoch.m. Then give questdlg2 the EEGLAB background and text colours from theme.py (EEGLAB_BACKGROUND, EEGLAB_TEXT, EEGLAB_BUTTON_BACKGROUND). This should take under 30 lines, plus a GUI test that checks the dialog's background colour.
Once #875 has merged, first check whether its supergui rework already styles questdlg2 or message boxes. If it does, only the switch to questdlg2 is left. The other QMessageBox call sites in menu_actions.py (for example L360, L909, L1274) probably have the same problem and could be handled together.
Activity
claude commentedon Nov 29, 2026
🤖 Plan:
Research
The confirmation shown by Tools > Reject marked epochs comes from
_confirm_reject_epochs, which calls the nativeQMessageBox.question. That box takes the system palette. The blue EEGLAB rules intheme.pyonly targetQFileDialogandQProgressDialog, and the main-window stylesheet only coloursQMainWindowand#main_panel, so nothing turns this box blue. EEGLAB draws the same prompt withquestdlg2(pop_rejepoch.m:78-80), which uses supergui and the EEGLAB background colour.Relevant code
menu_actions.py#L1482-L1495: menu path that calls the confirmationmenu_actions.py#L2050-L2066: nativeQMessageBox.question, with no stylingtheme.py#L25-L96: blue rules cover only QFileDialog and QProgressDialogquestdlg2.py#L17-L56: EEGPrep's questdlg2, also unstyledProposed Fix
Route
_confirm_reject_epochsthroughquestdlg2("Are you sure, you want to reject the labeled trials ?", "Reject pre-labelled epochs -- pop_rejepoch()", "No", "Yes", "Yes"), matching pop_rejepoch.m. Then givequestdlg2the EEGLAB background and text colours fromtheme.py(EEGLAB_BACKGROUND,EEGLAB_TEXT,EEGLAB_BUTTON_BACKGROUND). This should take under 30 lines, plus a GUI test that checks the dialog's background colour.Once #875 has merged, first check whether its supergui rework already styles
questdlg2or message boxes. If it does, only the switch toquestdlg2is left. The otherQMessageBoxcall sites inmenu_actions.py(for example L360, L909, L1274) probably have the same problem and could be handled together.