feat: add seek_handle_border options#662
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Initially I thought just editing |
|
Hmm, if you draw a border like that on a shape would it cause any artifacts or blurriness though? |
|
I genuinely have no idea. In theory, it should be fine, since it works on ass drawn elements (icons, indicators and such) Like I said though, I have never done something like this, so my information is basically all theory. |
|
Making the handle its own element would be a huge refactor since the handle depends on the slider's state and has to move in sync every frame. Probably not worth it to go that route. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
refactor: add seek_handle_border_color to colors chore: add various comments
9f6d3fe to
2b2a4d3
Compare
|
I added a few comments to clarify a bit, and updated docs. Hopefully should be good to go. |
|
Beautiful, thank you so much for your effort. If you don't mind:
Or is that just me? (Be honest, I'm often wrong) For example, Firefox: (from ontop in top bar PR)
Their method is "make the seekhandle match the seekbar's left and right side" ie: ranges/cache I'm not saying we should absolutely do it like that, but it's a thought to process. Then again, I remember when nekoxuee showed us Screenbox player: Which follows what you applied (Windows' UI) I have no idea to be honest lol. Other possible references:
I honestly couldn't find any other references, because 90% of what I found is exactly what we're using now. It was surprising the lack of variety in slider styles (pre 2015 there is A LOT, but look ancient) |
|
The Firefox look is perfectly suitable (used to be a fan of the browser for many years) and I don't mind applying it at all. What you're asking should be feasible with what we have now, right? Can you send me your desired colors etc. and I can apply it. |
|
Also you can delay the merge for as long as you need. |
|
It does tie very nicely into the orange theme. Let me sleep on it and try a few options. |
|
I genuinely trust your sense of aesthetic, it was you that suggested the orange palette in the first place. Can't wait. |
|
Sounds good, consistency always wins. |
Slider backgrounds always renders fully opaque. Seekbar stays opaque when disabled. Cache ranges now render over the bg portion only.
|
The cache rendering over the foreground seemed unusual and affected the color, so I made it render over background only. I'm not sure if we still want seekrangealpha in this case or we could make it opaque in the future. Let me know if that's okay |
|
I don't mind at all, I think the original idea was to give a visual hint of back cache, hence the transparency. Though it's not that important, as long as forward cache is visible like before. |
|
Before you do more work, I have to ask, is all this worth the effort just for a slider handle border? Genuinely asking, not rejecting. It seems like such a huge refactor for a small visual outcome. It's probably why most don't add border. Edit: |
Agreed, customization is always nice.
Beautiful. I will not hinder progress on this anymore as I honestly doubt my own opinion when it comes to aesthetics. cc @nekoxuee @clivedc Apologies for the bother. Could you help us decide on default color option for this new slider look please? Only if it's not a bother. |
|
@Keith94 to not delay anything further, by all means make all the changes you think will be good. I trust your instinct. Once it's merge ready, let me know. Take all the time you need. If you need any help, don't hesitate to let me know. |
ce675dd to
fe361d7
Compare
|
I made default colors a bit darker and changed alpha to 75%. Seems good enough. |
|
Indeed, his pick (personal setup) looks very nice. |
|
Ah, should I apply that here? Not sure if you want specific parts or whole thing exactly. The new orange shade is from Windows Media Player. |
|
Like I said, I trust your instinct. If they turn out to be good, yay, if not, we'll make you feel bad about it. It's a win win for us. Joking aside, it really does look nice, we can adjust whatever if need be. |
fe361d7 to
a024057
Compare
|
Pushed another adjustment. For some reason, picking the default colors is way too stressful for me. >.< |
a024057 to
583b889
Compare
|
I like both! Your example seems like a safer option. Stands out against all backgrounds. Will change in a bit. |
|
Like I said, I didn't mean to impose an opinion. Which do you think would be the best default? Ignore my suggestion, my opinion is just there to brainstorm, not to decide over others. Or if you have an alternative to both suggestions. As you pointed out, the reason I "feel" it's not right is because the border disappears a lot, making the middle circle seem out of place. Unfortunately, we don't get direct feedback a lot, only passive indicators (ie: stars count) So the burden of deciding what would be good is entirely on us. |
|
I prefer yours for the reason I mentioned. It's always visible even with a dark video. I don't forsee many complaints because it's all customizable. |
|
Alright. When you make the change, let me know when it's merge ready please or if you'd like me to wait. There is no rush at all. Thanks for all your efforts and indulging me through my annoying process. |
583b889 to
0402d91
Compare
|
Rebased and updated colors. Seems good on my end. |
|
Much appreciated. ❤️ Merging. |










Adds a border to seekbar handle with related options for color, thickness, and hover thickness expressed as a ratio.
Changed slider_hover_size default value to 100 with toggle removed. Slightly increased handle sizes.
If accepted, will update docs later.