-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Left and right colors for slider rails #1643
Conversation
The rail having 2 vertical colors is on purpose! It's meant to allow creating a rail with a subtle shadow. Having different rail colors for left and right makes complete sense, however. |
oh it was lol. didn't event occur to me haha |
1767fbe
to
de51bc3
Compare
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.
Looks great! Thanks 🥳
I made some minor changes:
- Simplified the drawing logic in 45cfce3. We can draw the rail behind the handle. No need to subtract its width everywhere.
- Removed
border_width
support in c2cc9a8. I believe it could lead to weird-looking results with thick borders. - Changed the rail
border_radius
for the built-in theme to2.0
in 6e6804c. It looks nice! - Renamed
Rail::size
towidth
in 9b39a17. The way I see it, the width of a rail is similar to the width of a stroke.
We can wrap this up and merge! 🚢
Bug fixs
the rail color is vertical not horizontal
before:
after:
features added
added rail height and border radius to style
discussions
you can currently set the slider height but i think the height should be determined off the size of the handle or raildecided at this point i wont do this may make the changes at a later date. as i can see some advantages to having the height separate.
todo
need to fix vertical slider as well