Add: Bookmark(ed) StateActions

This commit is contained in:
machiav3lli 2022-06-23 00:28:24 +02:00
parent 2708b618b9
commit bed6c203a1
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@ import androidx.compose.material.icons.rounded.ArrowDropUp
import androidx.compose.material.icons.rounded.Close import androidx.compose.material.icons.rounded.Close
import androidx.compose.material.icons.rounded.Delete import androidx.compose.material.icons.rounded.Delete
import androidx.compose.material.icons.rounded.Download import androidx.compose.material.icons.rounded.Download
import androidx.compose.material.icons.rounded.Favorite
import androidx.compose.material.icons.rounded.FavoriteBorder
import androidx.compose.material.icons.rounded.Launch import androidx.compose.material.icons.rounded.Launch
import androidx.compose.material.icons.rounded.Share import androidx.compose.material.icons.rounded.Share
import androidx.compose.material.icons.rounded.Tune import androidx.compose.material.icons.rounded.Tune
@ -124,6 +126,8 @@ sealed class ActionState(
object NoAction : ActionState(R.string.no_action_possible, Icons.Rounded.Close) object NoAction : ActionState(R.string.no_action_possible, Icons.Rounded.Close)
object Expand : ActionState(R.string.show_more, Icons.Rounded.ArrowDropDown) object Expand : ActionState(R.string.show_more, Icons.Rounded.ArrowDropDown)
object Retract : ActionState(R.string.show_less, Icons.Rounded.ArrowDropUp) object Retract : ActionState(R.string.show_less, Icons.Rounded.ArrowDropUp)
object Bookmark : ActionState(R.string.favorite_add, Icons.Rounded.FavoriteBorder)
object Bookmarked : ActionState(R.string.favorite_remove, Icons.Rounded.Favorite)
} }
open class LinkType( open class LinkType(

View File

@ -201,4 +201,6 @@
<string name="no_action_possible">No Action Possible</string> <string name="no_action_possible">No Action Possible</string>
<string name="show_screenshots">Show screenshots</string> <string name="show_screenshots">Show screenshots</string>
<string name="show_screenshots_description">Display screenshots in the app page.</string> <string name="show_screenshots_description">Display screenshots in the app page.</string>
<string name="favorite_remove">Remove from favorites</string>
<string name="favorite_add">Add to favorites</string>
</resources> </resources>