Skip to content

supergui (the shared dialog code): graphical parity with EEGLAB #745

Backlog
5 of 6 issues completed
Backlog

Description

@arnodelorme

EEGPrep checks each EEGLAB function on its own, in one issue, for both the window and the numbers (Arno, November 26, 2026). This issue is supergui (shared dialog code), all menu: The code that draws every dialog. inputgui, the thin wrapper around it, has its own issue since November 26, 2026 (Arno: "it should be split, although inputgui can reference supergui issue"): #764. It stays open until the window and the numbers are both acceptably close to EEGLAB's, even when a pull request is merged or closed.

Graphics

pop_reref with the native Mac style, before and after pull request 774.

checkbox_mac_reref

Earlier captures

pop_importepoch, before and after pull request 722.

700_item14

pop_importevent, before and after pull request 722.

700_item15

pop_importerplab, before and after pull request 722.

700_item19

pop_study, before and after pull request 722.

700_item38

pop_epoch (Tools menu), before and after pull request 722.

700_pop_epoch

pop_rejmenu (Tools menu), before and after pull request 722.

700_pop_rejmenu

Checked boxes (issue 752, pull request 754): pop_chanevent in EEGLAB, EEGPrep before, EEGPrep after.

752

Every checkbox and radio button state in a test window, before and after pull request 754.

752_states

A disabled list box in a test window, before and after pull request 755 (issue 753).

753

November 27, issue 772: pop_export with the native Mac style, before and after pull request 774.

checkbox_mac_export

Captured on jamming under a virtual screen (EEGLAB with getframe, EEGPrep with the Qt widget grab), and on the Mac where said.

The window: what differs from EEGLAB
  • This issue holds the fixes that belong to no single function, because they change the code that draws every dialog.
  • Pull request 722 (merged, filed under pop_importdata, issue 700): a dialog with a fixed size stacked its rows at the top. The rows now share the height, as supergui does. 49 dialogs across all menus move the same way. In the File menu, 21 of 27 windows are identical before and after.
  • Column widths stay as they are: sizing by the text of the labels is fine, only the vertical layout is corrected (rule 23).
  • A checked box was drawn as a check mark without its square on Linux, and radio buttons had no circle. Fixed in pull request 754 (merged).
  • A disabled list box looked enabled. Fixed in pull request 755 (merged).
  • On the Mac a checkbox row was 26 pixels high against 20 for an edit row, and the box started 2 pixels left of the edit column. Pull request 774 makes the layout use the widget's own rectangle. On Linux nothing changes. With the Mac style 31 dialogs change by a few pixels.
  • A dialog with a width and no height (pop_chanevent) lost its blank rows with pull request 722. Pull request 773 shares the height among the rows only when the height is fixed.
The numbers: same file in both programs
  • None.
Files

Sub-issues

Sub-issues

5 of 6 Issues completed
Loading 6 sub-issues

Activity

  1. added
    function-parity
    on Nov 27, 2026
  2. claude commented on Nov 27, 2026

    @claude
    Contributor

    🤖 Plan:

    Research

    Both remaining Linux items appear to come from _apply_eeglab_style (found by reading the code; not reproduced, since Qt cannot render on this runner). The checkbox indicator is styled only for :unchecked (white fill plus grey border). Qt's stylesheet engine draws that rule itself, but for :checked the rule has nothing to draw, so it falls back to the platform style, which draws a check mark with no matching square. QListWidget has no :disabled rule, while QLineEdit and QComboBox do, so a disabled list keeps the white background and dark text.

    Relevant code

    Proposed Fix

    Disabled list box: add a rule that reuses the existing disabled colours:

    QListWidget:disabled { background: {EEGLAB_CONTROL_DISABLED_BACKGROUND}; color: {EEGLAB_DISABLED_TEXT}; }

    Checkbox: change the :unchecked selector to QCheckBox::indicator so both states get the square. The stylesheet then draws the checked state too, and the platform check mark is lost, so also add QCheckBox::indicator:checked { image: url(<packaged check-mark SVG>); }, with a small SVG under src/eegprep/resources/ that matches the MATLAB check glyph. Together that is about 10 lines in qt.py plus one resource. Someone with a display should capture pop_epoch and pop_runica (checked boxes, list box) before and after, and check them on macOS, which this runner cannot do.

    Neither fix overlaps #722; the macOS check stays open as listed in the issue.

  3. changed the title [-]supergui and inputgui (shared dialog code): graphical parity with EEGLAB[/-] [+]supergui (with inputgui, the shared dialog code): graphical parity with EEGLAB[/+] on Nov 27, 2026
  4. changed the title [-]supergui (with inputgui, the shared dialog code): graphical parity with EEGLAB[/-] [+]supergui (the shared dialog code): graphical parity with EEGLAB[/+] on Nov 27, 2026
  5. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Two points from Arno's feedback of November 29, 2026 that belong to the shared dialog code.

    — orchestrator

  6. added
    maybe-done
    on Nov 29, 2026
  7. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    Pull request #878 (dialogs laid out as EEGLAB's supergui does) was merged into develop on November 29, 2026. EEGPrep's supergui is now a port of the arithmetic of supergui.m, so the graphical parity of the shared dialog code may be reached once all dialogs are moved. It is labeled maybe-done and will be checked in the full rerun of every dialog on jamming, then closed if the captures match EEGLAB.

    — orchestrator

  8. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The supergui port works where it is used, but most dialogs do not use it yet, so this issue stays open and loses the maybe-done label.

    Rerun of every dialog on Linux after pull request #878 was merged (jamming, EEGLAB develop 5e0be870, EEGPrep develop cea86f8, both checkouts pulled before the run). EEGLAB on the left, EEGPrep on the right, same scale.

    Same family of dialog, on the new layout (pop_eegthresh) and on the earlier one (pop_jointprob):

    pop_eegthresh, supergui layout

    pop_jointprob, earlier layout

    Report with one page per function (PDF and Word): https://github.com/adelorme-assistant/project_eegprep/tree/main/reports/all-dialogs-2026-11-29

    — eegprep worker

  9. removed
    maybe-done
    on Nov 29, 2026
  10. arnodelorme commented on Dec 1, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 The pop_runica dialog and native jamming captures are tracked in #1005.

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

    function-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions