Skip to content

[GTK4] Show the box of unchecked check menu items - #3584

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:gtk4-menu-checkbox-visible
Sep 11, 2026
Merged

akurtakov merged 1 commit into
eclipse-platform:masterfrom
akurtakov:gtk4-menu-checkbox-visible

Conversation

@akurtakov

Copy link
Copy Markdown
Member

GTK themes draw the box of a check menu item only once it is checked, showing a bare checkmark otherwise, while radio menu items always show their circle. A CHECK MenuItem that is not selected therefore appears as a blank row on GTK4, with no hint that it is a toggle.

Give the check indicator of popover menus a visible outline in SWT's GTK4 theming fixes, so an unchecked check menu item still shows its checkbox. The outline uses currentColor to follow the menu's text color, keeping it correct in both light and dark themes - this file must not carry a hard-coded color (see Device.overrideThemeValues).

Assisted-by: Anthropic Claude Code (claude-opus-4-8)

GTK themes draw the box of a check menu item only once it is checked,
showing a bare checkmark otherwise, while radio menu items always show
their circle. A CHECK MenuItem that is not selected therefore appears
as a blank row on GTK4, with no hint that it is a toggle.

Give the check indicator of popover menus a visible outline in SWT's
GTK4 theming fixes, so an unchecked check menu item still shows its
checkbox. The outline uses currentColor to follow the menu's text
color, keeping it correct in both light and dark themes - this file
must not carry a hard-coded color (see Device.overrideThemeValues).

Assisted-by: Anthropic Claude Code (claude-opus-4-8)
@akurtakov

Copy link
Copy Markdown
Member Author

Before:
Screenshot From 2026-09-11 10-38-05

After:
Screenshot From 2026-09-11 10-37-18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The focused CSS change correctly addresses the visual issue without hard-coded theme colors.

Pull request overview

Adds a GTK4 theming fix so unchecked check menu items retain a visible checkbox outline.

Changes:

  • Styles popover-menu check borders using theme-aware currentColor.
  • Documents the rationale and color constraint.
File summaries
File Description
swt_theming_fixes_gtk_4_0_0.css Adds the GTK4 checkbox outline rule.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Test Results (linux)

  109 files  ±0    109 suites  ±0   14m 41s ⏱️ +31s
4 626 tests ±0  4 393 ✅ ±0  233 💤 ±0  0 ❌ ±0 
3 452 runs  ±0  3 368 ✅ ±0   84 💤 ±0  0 ❌ ±0 

Results for commit ae1469e. ± Comparison against base commit 1f55dec.

@akurtakov
akurtakov merged commit 27f51e7 into eclipse-platform:master Sep 11, 2026
19 checks passed
@akurtakov
akurtakov deleted the gtk4-menu-checkbox-visible branch September 11, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants