Repository navigation
Fix group icon picker colors in dark mode - #17920
Conversation
PR Summary by QodoFix group icon picker colors in dark mode
AI Description
Merge Risk
|
Code Review by QodoResolved findings 1.
|
|
Remove the test please. Too much ai slop. |
koppor
left a comment
There was a problem hiding this comment.
As carl said: remov the tests - the other things look good
|
Successfully created backport PR for |
Summary
The group icon picker kept a white popup background and black cell borders in dark mode. It now uses the active theme's background and border colors, so the popup matches the rest of the Group Editor. The styles apply only to this picker.
Steps to test
Select dark mode in JabRef, open the Group Editor, and click the picker next to the Icon field. The popup should have a dark background with readable icons and subtle borders.
*Dark-mode capture:
Search for
account, then choose an icon. The icon field should update and the popup should close.Switch to light mode and reopen the picker. Its background and borders should follow the light theme. Switch back to dark mode and check again.
**Light-mode capture:
**
Validation
:jabgui:compileTestJavaand:jabgui:checkstyleTestcompleted successfully.SpecialFieldAction.java. Its checklist item remains open because that limits the check.Related issues and pull requests
Closes #17887
AI usage
OpenAI GPT-6 assisted with the implementation. I ran local verification. I manually reviewed and verified the code
AI CHECKLIST.md walkthrough
Code checklist
1. Code self-review
Read your own diff once, top to bottom, and confirm each point.
Nullability and control flow
== null/!= nullchecks — JSpecify annotations (@NullMarked,@Nullable,@NonNull) used instead.Objects.requireNonNull(...)— nullability expressed via JSpecify annotations.@NullMarked(org.jspecify.annotations.NullMarked).@NullMarked(org.jspecify.annotations.NullMarked).Optionalconsumed withifPresent/ifPresentOrElse/map/orElseThrow— neverorElse(unusedValue)nor anisPresent()+get()block.StringUtil.isBlank(...)used instead ofs == null || s.isBlank().Exceptions
catch (Exception e)— only specific exceptions are caught.throw new RuntimeException(...)/IllegalStateException(...)— these tear down the whole application.LOGGER.info("...", e)), not concatenated into the message string.Style and idioms
BibEntryobjects built with withers (withField, notsetField).List.of()/Map.of()/Set.of(),Path.of(),SequencedCollection/SequencedSet, text blocks.Pattern.compile(...)constant, notString.matches(...).org.jabref.logic.util.BackgroundTask, notnew Thread().///) uses Markdown syntax, not JavaDoc inline tags:`code`instead of{@code},[ClassName]instead of{@link}.User-facing text
Localization.langin Java,%prefix in FXML).!; labels do not end with:."...: %0"), not string concatenation.Security
text/htmlresponse — including exception/error messages, not just the success body (XSS).Tests
org.jabref.model/org.jabref.logichave added or updated tests.assertEquals), use plain JUnit asserts (not AssertJ), have no@DisplayName, do not catch exceptions (let them propagate so JUnit reports setup/teardown failures directly), and use@TempDirinstead of manual temp directories.2. Verification commands
Run in this order — cheapest first. Each must pass.
./gradlew :jablib:check(or./gradlew checkfor all modules)../gradlew checkstyleMain checkstyleTest checkstyleJmh../gradlew modernizer../gradlew --no-configuration-cache :rewriteDryRunreports no changes (run./gradlew rewriteRunto fix)../gradlew javadoc.npx markdownlint-cli2 "docs/**/*.md" "*.md"(only if Markdown changed).npm ci && npm run textlintreports no misspellings (only if Markdown changed).rewriteRun:docker run -v $(pwd):/github/workspace ghcr.io/leventebajczi/intellij-format:master "*.java" "" ".idea/codeStyles/Project.xml".3. Documentation
CHANGELOG.mdentry added if the change is visible to the user (end-user wording, no extra blank lines, sorted in next to existing entries about the same component/feature). Link the issue if one exists; link the PR only when no issue exists. UseTODOas the placeholder when neither is known yet — never a fake number. No entry for fixes to changes that were themselves introduced after the last release (feature only in## [Unreleased]) — update the existing unreleased entry instead if needed.TODO(nocloses/fixesfor merely-similar issues).docs/requirements/<area>.mdif the change is a new feature or significant bug fix (skip for refactors, minor fixes, and internal changes).docs/updated if behavior or architecture changed.4. Pull request
.github/PULL_REQUEST_TEMPLATE.md, every section filled.[x],[ ], or[/].gh pr create --body-file <file>(not--body).CHANGELOG.mdused aTODOplaceholder (no issue confidently identified yet — an existing issue link always stays), the PR was opened as draft, the placeholder was replaced with the real PR-number link after PR creation, committed and pushed, and only then was the PR marked ready for review. If an issue is identified or created later, the link is switched to the issue.Notes: Related issues were searched in both repositories; #17887 is the confirmed match. OpenRewrite's limitations are recorded above.
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)