mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-23 19:32:16 +00:00
Add: Bookmark(ed) StateActions
This commit is contained in:
parent
2708b618b9
commit
bed6c203a1
@ -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(
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user