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 mode for scrollbar arrow buttons to show only on mouse hover #418
Comments
Hmm, not sure about that 😉
The only system that I know that does this is Windows 11. |
Our application has lots of tables, and the mouse wheel moves many rows at once. The arrows are a convenient way of moving row by row, keeping a full row at the top (whereas grabbing the scrollbar to move up or down ends up with misaligned rows). This is important e.g. when comparing data between several screens (you align chunks and switch back and forth).
I did on Windows 11. I think I saw it somewhere else but I don't remember where. |
In fact, Windows 10 has such behavior in areas with modern design, like the start menu or the settings screen. |
I would love to see that as well, maybe even with an option to have a transparent track. |
Scroll bar arrows are useful but they add visual clutter when not needed. Modern systems that still show arrow buttons generally hide them unless the scroll bar is hovered. It would be great if FlatLaf supported this: a mode where the buttons only appear when the mouse is over.
One could configure this mode e.g.:
UIManager.getDefaults().put("ScrollBar.showButtons", "auto");
Internally, it is as if the scrollbar that is hovered off/on switched the above property false/true state.
Simple test code to show 2 scrollbars:
The text was updated successfully, but these errors were encountered: