-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/make icon change color in function of nb event #229
Feat/make icon change color in function of nb event #229
Conversation
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.
Thank you for this Pull Request! In terms of UI, your Pull Request is particularly beautiful and the fact that the color are an echo to the logo is really appreciable. It reinforce the overall coherence of the app. On top of that, we have now an easy way to see the park with a lot of event which is good in terms of UX.
I have a few details that I would like to highlight, but otherwise really good job!
@@ -222,3 +252,36 @@ fun MarkerInfoWindowContent(park: Park) { | |||
} | |||
} | |||
} | |||
|
|||
fun gradientColor(startColor: Color, endColor: Color, fraction: Float): Color { |
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.
Docs: the documentation is missing for this function
return Color(r, g, b, a) | ||
} | ||
|
||
fun colorToHue(color: Color): Float { |
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.
Docs: same as the last comment, the documentation is also missing
Quality Gate passedIssues Measures |
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.
Thank you for the update! I approve this Pull Request.
this PR is a cutdown version of PR #226, where i only keep the functionning functionality
Feature
Icon color will go from : blue (0 event) ==> pink (5+ event)
Changes
MapUi
, made so icon change color depending on number of event and 2 helper function for the color gradient of the icongradientColor
andcolorToHue
Change
variable hotPlace
to change the number of event needed for maximum hotnessTesting
ColorTest
in Unite test, map folder. Test the helper function :gradientColor
andcolorToHue