Skip to content

[GUI] Draw the square of checked boxes and the circle of radio buttons on Linux - #754

Merged
arnodelorme merged 1 commit into
developfrom
agent/issue-752
Nov 27, 2026
Merged

arnodelorme merged 1 commit into
developfrom
agent/issue-752

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

The dialog style sheet gave checkboxes and radio buttons a transparent background, which made their palette transparent, so the Linux style drew a check mark without its square and no circle for radio buttons. The transparent background now applies to labels only. One rule of the shared style sheet, every dialog. The Mac style does not use the palette, so nothing should change there.

Fixes #752
Part of #745

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

🤖 Captures: pop_chanevent (EEGLAB, EEGPrep before, EEGPrep after), then a test window with every state, taken on jamming under a virtual screen.

pop_chanevent window

pop_chanevent window

Test window with every checkbox and radio button state, before and after

Test window with every checkbox and radio button state, before and after

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @arnodelorme's task in 45s —— View job


Code review

  • Overall assessment: Looks good. The fix changes one rule in the shared style sheet in _apply_eeglab_style: background: transparent now applies to QLabel only. Checkboxes and radio buttons still get the text color and the disabled color. They do not fill their own background, so they still show the dialog color behind them. The checkbox and radio palette no longer has a transparent Base color, so the Linux style can draw the square of a checked box and the circle of a radio button. Unchecked boxes looked right before because the QCheckBox::indicator:unchecked rule paints them.
  • Highest-risk area: every dialog uses this shared style sheet. I checked the extra style sheets in pop_newtimef, pop_newcrossf, pop_clust, pop_precomp, pop_study and pop_studydesign. They only set font size and box size, and none of them makes the background transparent again.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. The new test checks the alpha of the palette Base color, which is the color the Linux style draws with. The old rule set that alpha to 0, so the test would fail if the transparent background came back. I was not allowed to run tests in this session, so the new test was not run with or without the fix.

EEGLAB parity notes

None. On Linux, a checked box now shows its square and a radio button shows its circle, as in EEGLAB. Mac does not draw these from the palette.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, tests of the changed behavior, and CLAUDE.md/AGENTS.md compliance.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

supergui: checked boxes and radio buttons are drawn without their square or circle on Linux

1 participant