Skip to content
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

Support "contrast scrollbars" in the IDE bridge #558

Open
rock3r opened this issue Aug 23, 2024 · 0 comments
Open

Support "contrast scrollbars" in the IDE bridge #558

rock3r opened this issue Aug 23, 2024 · 0 comments
Assignees
Labels
bridge Something that impacts the Swing LaF bridge consistency Our UI presentation is not consistent with IJ

Comments

@rock3r
Copy link
Collaborator

rock3r commented Aug 23, 2024

The IDE has a "contrast scrollbars" option that boosts the opacity of scrollbars.

This is implemented in com.intellij.ui.components.ScrollBarPainter#getColor() and in updateTransparency(), where, if LoadingState.CONFIGURATION_STORE_INITIALIZED.isOccurred() && UISettings.getInstance().getUseContrastScrollbars():

  1. Any non-thumb colour is left untouched (track, background)
  2. The colour alpha is set to the value of the registry key contrast.scrollbars.alpha.level, if it exists and is positive
  3. If the key is not set, it uses the defaults (LIGHT_ALPHA or DARK_ALPHA, depending if the theme is dark)
@rock3r rock3r added consistency Our UI presentation is not consistent with IJ bridge Something that impacts the Swing LaF bridge labels Aug 23, 2024
@rock3r rock3r self-assigned this Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bridge Something that impacts the Swing LaF bridge consistency Our UI presentation is not consistent with IJ
Projects
None yet
Development

No branches or pull requests

1 participant