-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8075916: The regression-swing case failed as colored text is not shown on disabled checkbox and radio button with Nimbus LAF #10177
Conversation
…n on disabled checkbox and radio button with Nimbus LAF
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
Its open now |
Does this fix the issue in GTK LAF also? I see a comment in JBS that same issue is with GTK LAF. |
Closed test case mentioned in JBS runs only in Default LAF. We need to explicitly specify LAF.
Its better to add separate regression test to verify this fix. |
I dont see this problem. In my mac BigSur, default LAF passed and Nimbus L&F fails without the fix. |
I have Monterey. I think its better to have open test case which verifies the behavior specific to Nimbus LAF(and may be GTK LAF if that is also getting fixed under this bug) |
I tested on Monterey also and there also I didn't see this problem. |
Okay. I have new M1 machine may be it is machine specific issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix tested and verified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide the regression test which iterates over all Look-and-Feels to make sure the setting is always honoured.
Test added |
@prsadhuk This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 324 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit f3a44a4.
Your commit was automatically rebased without conflicts. |
The spec for the changed method mention that the "getColorForState" should be called for the component if the app did not specify the color explicetly. Should the fix do the same instead of direct call of "UIManager.getColor"? And if it does not work should we updated the skin to include these props? |
CheckBox.disabledText and RadioButton.disabledText color UIProperty is not honoured by Nimbus L&F when disabled text is drawn for JCheckBox and JRadioButton, so disabled text color was rendered incorrectly.
Fix is to honour these UIProperty color if they are set by user, else use the color from the component or via getColorForState().
Closed test as mentioned in JBS is used to check the fix.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10177/head:pull/10177
$ git checkout pull/10177
Update a local copy of the PR:
$ git checkout pull/10177
$ git pull https://git.openjdk.org/jdk pull/10177/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10177
View PR using the GUI difftool:
$ git pr show -t 10177
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10177.diff