trophy-place / community

Public repository for community additions to trophy.place
https://my.trophy.place
1 stars 0 forks source link

Make Profile Game borders change color based on type of completion #15

Open TheYuriG opened 1 year ago

TheYuriG commented 1 year ago

For games where the platinum was earned, paint the border blue (we can use the same blue of the platinums themselves: DodgerBlue) and green for when it's a 100% title completion.

Something else that would be nice to have is making the gradient for 100% titles only change from yellow to green. It's a bit harder to notice which gradient type you have prior to 70%+. Making the gradients different would make that distinguishing process much easier on the eyes.

INTERNAL: And while we are at it, since we would essentially have 3 gradients at that point (ryg for trophies, ryb for platinum games and yg for 100% games), this would be a good moment to refactor the gradient function and separate it into 3 separate functions. That way, if we ever need to change just one of the gradients, we can easily do so without affecting the others.

For consideration: if the yg gradient looks good on its own, consider discontinuing the ryg gradient for trophies altogether and using that instead.