Skip to content

Dialogs: about 10% taller, with slightly taller push buttons kept aligned #810

Done

Description

@arnodelorme

Arno finds the EEGPrep dialogs a little cramped next to EEGLAB.

Captures

Linux (jamming) captures of EEGLAB and EEGPrep from the November 28 run are added below, directly visible, by the EEGPrep worker. Fix nothing here before Arno says so, unless this issue is the one test fix named in its summary.

Arno's words

Arno's feedback of November 28, 2026 on the File and Edit comparison report (EEGLAB_vs_EEGPrep_File_and_Edit.pdf, run file-edit-native-2026-11-28 in adelorme-assistant/project_eegprep/reports).

I would push the height of the Python GUI by about 10% to make it a little bit more spacious. Also, the height of the push button should be a little bit more for aesthetics while remaining aligned.

Activity

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

    @claude
    Contributor

    🤖 Plan:

    • Read issue, check actionability and overlapping work
    • Implementation: not started, on hold (see below)

    Why no PR: the issue says "Fix nothing here before Arno says so". Open PR #776 (agent/20261127-fix-775, one row height per platform, sizes dialogs from their rows) also rewrites the same row-height code in qt.py and theme.py. A 10% height change landed now would conflict with #776 and would need re-tuning after it merges. The change also affects every dialog, so it needs visual parity captures. It is not a small, isolated fix.

    Research

    Dialog height comes from the height of each row, plus spec.size pixel heights in the 61 dialogs that rule 26 flags (#745). Push-button height comes from _apply_button_size. When no button_size is given, it fixes only the width (80 px), so buttons get their height from the Qt style's size hint.

    Relevant code

    Proposed Fix

    Do this after #776 merges and Arno approves:

    1. Scale the per-platform row-height constant from [GUI] Size a dialog from its rows, one row height per platform, never shorter than its content #776 by about 1.1. Every dialog that follows rule 26 then grows about 10% through its rows.
    2. Give push buttons a fixed height a few px above the style hint, both in _apply_button_size and for pushbutton widgets inside rows. Keep it no taller than the row so buttons stay centred on their row.
    3. Check the result with the visual parity loop on the File and Edit dialogs.

    Dialogs that still set a pixel height through size (rule 26) will not grow until they are converted under #745.

    Needed to proceed: Arno's go-ahead, and #776 merged or closed.

  3. arnodelorme commented on Nov 29, 2026

    @arnodelorme
    CollaboratorAuthor

    🤖 Ordinary form rows grew from 31 to 34 pixels on Linux. Push buttons grew from 20 to 22 pixels and remain vertically aligned. The row count, font, and content now set the initial height, including scrollable forms and multiline editors.

    Pull request #851.

    Ordinary content rows in the data importer

    The channel editor preserves its labels, columns and spacer

    Preferences with scrollable rows

    The comments editor follows its text

    Editable Word report · PDF report

    On 40 File and Edit windows the median total-height change was +6.45%. Removing old preset heights made Select data 404 → 342 px, Copy dataset 160 → 138 px, and Channel editor 900 → 866 px. The sample comments opened at 456 px instead of 840 px and grow with longer text. A long task-information form grew from 408 to 920 px on the large test display. All 40 before/after measurements · All 120 native captures arranged by dialog.

    Verification

    167 GUI and affected-function tests passed, with one MATLAB-dependent test skipped, 33 deselected and 112 subtests passing. A separate complete dialog/main-window run passed 147 tests. Ruff, ty and pre-commit passed. All 40 corresponding MATLAB windows and both EEGPrep revisions were captured on jamming under Xvfb. The combined #821 renderer passed 18 checks. The test integration with #835 passed 13 checks. The shared minimum and native-font pitch measurements are independent. Comparing the two equivalent row formulas across 200,000 control-height and spacing combinations produced identical pixels. A fresh virtual integration of #835 selected both final source and test files automatically.

    — EEGPrep worker (Codex)

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