Skip to content

Commit

Permalink
Remove unused color
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Jul 15, 2024
1 parent 14d3171 commit 04c1d70
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,46 +130,40 @@ enum class MainScreenTab(
val label: String,
val contentDescription: String,
val testTag: String = "mainScreenTab:$label",
val color: Color,
) {
Timetable(
icon = IconRepresentation.Vector(Icons.Outlined.CalendarMonth),
selectedIcon = IconRepresentation.Vector(Icons.Outlined.CalendarMonth),
label = MainStrings.Timetable.asString(),
contentDescription = MainStrings.Timetable.asString(),
color = Color(0xFF67FF8D),
contentDescription = MainStrings.Timetable.asString()
),

EventMap(
icon = IconRepresentation.Vector(Icons.Outlined.Map),
selectedIcon = IconRepresentation.Vector(Icons.Outlined.Map),
label = MainStrings.EventMap.asString(),
contentDescription = MainStrings.EventMap.asString(),
color = Color(0xFF67FF8D),
contentDescription = MainStrings.EventMap.asString()
),

Favorite(
icon = IconRepresentation.Vector(Icons.Outlined.Favorite),
selectedIcon = IconRepresentation.Vector(Icons.Outlined.Favorite),
label = MainStrings.EventMap.asString(),
contentDescription = MainStrings.EventMap.asString(),
color = Color(0xFF67FF8D),
contentDescription = MainStrings.EventMap.asString()
),

About(
icon = IconRepresentation.Vector(Icons.Outlined.Info),
selectedIcon = IconRepresentation.Vector(Icons.Filled.Info),
label = MainStrings.About.asString(),
contentDescription = MainStrings.About.asString(),
color = Color(0xFF67FF8D),
contentDescription = MainStrings.About.asString()
),

ProfileCard(
icon = IconRepresentation.Vector(Icons.Outlined.People),
selectedIcon = IconRepresentation.Vector(Icons.Outlined.People),
label = MainStrings.ProfileCard.asString(),
contentDescription = MainStrings.ProfileCard.asString(),
color = Color(0xFF67FF8D),
contentDescription = MainStrings.ProfileCard.asString()
),
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ fun GlassLikeBottomNavigation(
)

val animatedColor by animateColorAsState(
targetValue = MainScreenTab.fromIndex(selectedTabIndex).color,
// FIXME: apply theme
targetValue = Color(0xFF67FF8D),
label = "animatedColor",
animationSpec =
spring(
Expand Down

0 comments on commit 04c1d70

Please sign in to comment.