Skip to content

Commit

Permalink
Changing star to bookmark. Fixes #210 (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Oct 1, 2022
1 parent 4389ad3 commit ec00dc9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,10 @@ fun CommentFooterLine(
)
}
ActionBarButton(
icon = Icons.Filled.Star,
icon = if (commentView.saved) { Icons.Default.BookmarkAdded } else {
Icons.Default
.BookmarkAdd
},
onClick = { onSaveClick(commentView) },
contentColor = if (commentView.saved) {
Color.Yellow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ fun BottomAppBarAll(
BottomNavigationItem(
icon = {
Icon(
imageVector = Icons.Default.Star,
imageVector = Icons.Default.Bookmarks,
contentDescription = "TODO"
)
},
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/jerboa/ui/components/home/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fun DrawerItemsMain(
item {
IconAndTextDrawerItem(
text = "Saved",
icon = Icons.Default.Star,
icon = Icons.Default.Bookmarks,
onClick = onClickSaved
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,10 @@ fun PostFooterLine(
account = account
)
ActionBarButton(
icon = Icons.Default.Star,
icon = if (postView.saved) { Icons.Default.BookmarkAdded } else {
Icons.Default
.BookmarkAdd
},
onClick = { onSaveClick(postView) },
contentColor = if (postView.saved) {
Color.Yellow
Expand Down

0 comments on commit ec00dc9

Please sign in to comment.