Skip to content
Discussion options

You must be logged in to vote

Once you change it, it will affect every slider drawn until you change it again. So you can put this line before each slider if you want different sizes, or you can make a type wrapping the slider to add this setting and any others you need, like this:

https://github.com/a-liashenko/TinyPomodoro/blob/06d08df77ef10846910593586dbb44fa7554495c/app/src/app/widgets/styled_slider.rs

Issue #3284 is meant to make this kind of customization simpler so in the future you won't have to do all that, but for now this is the way to do it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@yk0n9
Comment options

@YgorSouza
Comment options

Answer selected by yk0n9
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants