Skip to content

[GUI] Grey a disabled list box - #755

Merged
arnodelorme merged 4 commits into
developfrom
agent/issue-753
Nov 27, 2026
Merged

arnodelorme merged 4 commits into
developfrom
agent/issue-753

Conversation

@arnodelorme

Copy link
Copy Markdown
Collaborator

A disabled list box kept its white background and dark text. The shared style sheet now gives it the colors disabled edit boxes and popup menus already have. Four lines, every dialog.

Fixes #753
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: a test window with an enabled and a disabled list box, before and after, taken on jamming under a virtual screen. The check marks without square in it are the subject of another pull request.

Test window, before and after

Test window, before and after

@claude

claude Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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


Code review

  • Overall assessment: Looks good. The new QListWidget:disabled rule in _apply_eeglab_style uses the same EEGLAB_CONTROL_DISABLED_BACKGROUND / EEGLAB_DISABLED_TEXT pair as QLineEdit:disabled and QComboBox:disabled. No dialog-specific QListWidget rule (in qt.py, pop_runica.py, or the studyfunc dialogs) sets background or color. Those ID-scoped rules therefore don't override the new rule, and every dialog built by inputgui gets the grey. The test renders an enabled and a disabled list box and reads a pixel below the last item, so it checks what the user sees rather than the stylesheet text.
  • Highest-risk area: None identified.
  • Merge recommendation: Safe to merge.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None.

EEGLAB parity notes

None.

I checked for correctness bugs, EEGLAB parity, data structure compatibility, tests for the changed behavior, and CLAUDE.md/AGENTS.md compliance. I did not run the new test because this environment did not allow the command.

@arnodelorme

Copy link
Copy Markdown
Collaborator Author

I traced why test_disabled_list_box_is_greyed failed in the full test suite while passing on its own. In test_listdlg2_selects_one_based_initial_values, build_listdlg2_dialog sets a dialog stylesheet and polishes its buttons without showing the dialog, so when that dialog is freed, Qt's global styleSheetCache still holds the parsed listdlg2 rules (which have no QListWidget:disabled rule and no 74-pixel height cap) under that C++ QDialog* address. When the next QDialog is allocated at the same pointer address and calls dialog.setStyleSheet(...) before being polished, QWidget::setStyleSheet skips repolish and reuses the stale listdlg2 rule cache.

Commit d04f356 calls dialog.style().unpolish(dialog) in _apply_eeglab_style after setting the stylesheet so any stale styleSheetCache entry for a reused QDialog address is evicted, and merges develop. All 82 tests across test_gui_pop_erpimage, test_gui_pop_firfilt, and test_guifunc_primitives now pass together. Left open for your review.

— orchestrator

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: a disabled list box looks enabled

1 participant