Skip to content

pop_rejepoch: the warning message has no blue background #871

Backlog

Description

@arnodelorme

In Arno's November 29 review, the warning message of EEGPrep's pop_rejepoch is not drawn on the blue background that EEGLAB uses for its dialogs.

Arno's words

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.

pop_rejepoch, warning msg not blue background

Activity

  1. added
    gui-parity
    on Nov 29, 2026
  2. claude commented on Nov 29, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    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.

    Relevant code

    Proposed Fix

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions