JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
710 stars 38 forks source link

Scrollbars should have different appearances on macOS vs Windows & Linux #98

Closed rock3r closed 2 months ago

rock3r commented 1 year ago

Scrollbars are rounded and flat, resembling the macOS' native ones on that OS, but they are rectangular and with a border on Windows and Linux. They also behave differently in terms of animations and show/hide behaviour. They also have "thin" variants.

  macOS Win/Linux
Normal com.intellij.ui.components.MacScrollBarUI com.intellij.ui.components.DefaultScrollBarUI
Thin com.intellij.ui.components.ThinMacScrollBarUI com.intellij.ui.components.ThinScrollBarUI
rock3r commented 1 year ago

Further note: scrollbars can look different when they are on transparent or non-transparent backgrounds. They also have a border in non-macOS OSes, but theoretically could also have it on macOS (they have the LaF properties to).

image image

rock3r commented 1 year ago

Another note: the scrollbars (at least on macOS) go immediately to the "fully opaque" state, and then animate back to translucent. The built-in scrollbars in Compose Desktop simply don't allow us to do that. They also don't provide a way to customise behaviour when clicking on the track. Lastly, Swing scrollbars only make the thumb opaque when it's directly hovered, not when the track is hovered.

rock3r commented 9 months ago

Also see #80 for other issues with platform consistency

rock3r commented 9 months ago

Marking as blocked externally until we can see if there are changes in 241