Skip to content

Conversation

pmavridis
Copy link
Contributor

@pmavridis pmavridis commented Dec 17, 2020

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1299750/
The markers in light intensity sliders did not perfectly align with the icon changes. This was because the marker placement was not taking into account the size of the slider's knob (value zero corresponds to the middle of the knob when it is placed at the left corner and not the left corner itself).

I did not adjust the markers at the edges (normalized position 0 or 1) to avoid having a small gap, where the horizontal line of the slider would extend after the marker. There is no transition happening there so this is not a problem and looks better.


Testing status

I have placed the knob exactly at the boundary of a range. In this case 80000 Lux intensity.
Before:
image
After:
image
(tip: placing the mouse on the horizontal slider line reveals the marker even when it is covered by the knob).
I have also verified (with Gimp) that the marked is exactly at the middle of the knob, because I was not sure just by looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants