Profile Screen -> Update Tracking Media Entries (Disabled) - #742
Merged
Conversation
| data class Tracking( | ||
| val id: Int, | ||
| val coverImage: String?, | ||
| val bannerImage: String?, |
| val id: Int, | ||
| val coverImage: String?, | ||
| val bannerImage: String?, | ||
| val color: String?, |
| val segments: Int?, | ||
| val progress: Int?, | ||
| val score: Score?, | ||
| val status: TrackingStatus, |
| data class NamedTrackingList( | ||
| val name: String?, | ||
| val existingListName: ListNames?, | ||
| val existingListName: TrackingStatus?, |
| } | ||
|
|
||
| enum class ListNames { | ||
| enum class TrackingStatus { |
| contentScale = ContentScale.Crop, | ||
| alignment = Alignment.Center, | ||
| colorFilter = ColorFilter.tint( | ||
| color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent, |
| color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent, | ||
| blendMode = BlendMode.SrcAtop | ||
| ), | ||
| modifier = Modifier.fillMaxWidth().aspectRatio(19f / 4) |
| color = item.color?.toColorInt()?.let { Color(it) }?.copy(alpha = 0.25f) ?: Color.Transparent, | ||
| blendMode = BlendMode.SrcAtop | ||
| ), | ||
| modifier = Modifier.fillMaxWidth().aspectRatio(19f / 4) |
| } | ||
| } | ||
|
|
||
| // TODO: This should be an actual dropdown. |
|
|
||
| // TODO: This should be an actual dropdown. | ||
| @Composable | ||
| fun StatusDropDown( |
| }, | ||
| shapes = when (index) { | ||
| 0 -> ButtonGroupDefaults.connectedLeadingButtonShapes() | ||
| ProfileColor.entries.lastIndex -> ButtonGroupDefaults.connectedTrailingButtonShapes() |
| enabled = useProfileColor, | ||
| colors = ToggleButtonDefaults.toggleButtonColors( | ||
| containerColor = entry.color, | ||
| contentColor = entry.color.darken(4f), |
| contentColor = entry.color.darken(4f), | ||
| checkedContainerColor = entry.color, | ||
| checkedContentColor = entry.color.darken( | ||
| 4f |
| overflow = TextOverflow.Ellipsis | ||
| 2 -> { | ||
| val amplitude by animateFloatAsState( | ||
| if (useExpressiveProgressIndicator) 0.5f else 0f |
| waveSpeed = 15.dp, | ||
| modifier = Modifier | ||
| .fillMaxWidth() | ||
| .graphicsLayer { alpha = 0.6f } |
| thumbContent = { | ||
| if (useProfileColor) { | ||
| Icon( | ||
| imageVector = ImageVector.vectorResource(R.drawable.fill_bucket), |
| Switch( | ||
| checked = useExpressiveProgressIndicator, | ||
| onCheckedChange = { | ||
| viewModel.setUseExpressiveProgressIndicator(!useExpressiveProgressIndicator) |
| private val preferencesRepository: PreferencesRepository, | ||
| ) : ViewModel() { | ||
|
|
||
| val isLoggedIn = preferencesRepository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CONTRIBUTING.md.Made some changes to show a dialog on long click - disabled since we need to properly show the correct score type first.
Summary of changes:
Tested changes:
y