-
Notifications
You must be signed in to change notification settings - Fork 206
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
Feature/546 apply the correct icon for floormap #620
Feature/546 apply the correct icon for floormap #620
Conversation
@@ -84,40 +85,45 @@ fun MainScreen( | |||
) | |||
} | |||
|
|||
sealed class IconRepresentation { |
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.
Implement the selectedIcon of MainScreenTab to make it work with drawable.
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.
👍
label = MainStrings.Timetable.asString(), | ||
contentDescription = MainStrings.Timetable.asString(), | ||
), | ||
FloorMap( | ||
icon = Icons.Outlined.Map, | ||
selectedIcon = Icons.Filled.Map, | ||
selectedIcon = IconRepresentation.Drawable(drawableId = R.drawable.icon_map_fill), |
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.
Since Icons.Filled.Map did not align with the Figma design, I added the map_fill SVG to display.
Snapshot diff report
|
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.
Looks great! Thank you for finding the way to apply the icon!
Issue
Overview (Required)
Links
Screenshot