-
Notifications
You must be signed in to change notification settings - Fork 201
8248: [Accessibility] Low Contrast in High Contrast mode on Stacktrace View #580
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
Conversation
…e View Co-authored By: Marcus Hirt <hirt@openjdk.org>
|
👋 Welcome back schaturvedi! A progress list of the required criteria for merging this PR into |
|
@Suchitainf 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
| } | ||
|
|
||
| private static final String HELP_CONTEXT_ID = FlightRecorderUI.PLUGIN_ID + ".StacktraceView"; //$NON-NLS-1$ | ||
| private static final Boolean IS_DARK_MODE = ThemeUtils.isDarkMode(); |
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.
question: I would avoid the static final there, I think the themes can be dynamic, i.e. change without restarting ? If that's not the case maybe it can be in the future.
See the the comment on ThemeUtils to see a different approach.
...ation/org.openjdk.jmc.ui.common/src/main/java/org/openjdk/jmc/ui/common/util/ThemeUtils.java
Show resolved
Hide resolved
|
/contributor add @thegreystone |
|
@Suchitainf |
aptmac
left a comment
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.
Brice has a good point here, applying themes can be dynamic so IS_DARK_MODE needs to be able to be updated.
|
Hi @bric3 & @aptmac , I have implemented the suggested change. I have also added the property listener in the static block. There is no issue with the eclipse development environment. I have tried to build JMC outside also and the build is working perfectly fine. But seems like spotbugs is not happy with updating static variable isCurrentThemeDark from the listener. Hence, there are test failures due to that. Please have a look at the changes and let me know if I am missing something. Hope I understood the suggestion clearly and implemented accordingly. |
...ation/org.openjdk.jmc.ui.common/src/main/java/org/openjdk/jmc/ui/common/util/ThemeUtils.java
Outdated
Show resolved
Hide resolved
|
|
...ation/org.openjdk.jmc.ui.common/src/main/java/org/openjdk/jmc/ui/common/util/ThemeUtils.java
Outdated
Show resolved
Hide resolved
|
/integrate |
|
Going to push as commit 8c67664. |
|
@Suchitainf Pushed as commit 8c67664. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR is to fix the accessibility issue for High Contrast mode. Stracktrace View was not readable at all in dark mode.
Before the fix:

After the fix:

Progress
Issue
Reviewers
Contributors
<hirt@openjdk.org>Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jmc.git pull/580/head:pull/580$ git checkout pull/580Update a local copy of the PR:
$ git checkout pull/580$ git pull https://git.openjdk.org/jmc.git pull/580/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 580View PR using the GUI difftool:
$ git pr show -t 580Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jmc/pull/580.diff
Webrev
Link to Webrev Comment