-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. remove silent mode. 2. remove post. 3. rename some classes and file names. feat: 1. benchmark. 2. dropbox for backup subscriptions. 3. lifecycle-aware helper. style: 1. deeply disabled content colors. behaviour: 1. disable "about project" and "dropbox" until it is completed. fix: 1. recomposition mistake. 2. Side-Effect mistake.
- Loading branch information
Showing
119 changed files
with
11,401 additions
and
1,792 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
10,069 changes: 10,069 additions & 0 deletions
10,069
...selineProfiles/ComposeActivityBaselineProfileGenerator_profileGenerator-baseline-prof.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
53 changes: 53 additions & 0 deletions
53
androidApp/src/main/java/com/m3u/androidApp/components/AppSnackHost.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.m3u.androidApp.components | ||
|
||
import androidx.compose.animation.AnimatedVisibility | ||
import androidx.compose.animation.fadeIn | ||
import androidx.compose.animation.fadeOut | ||
import androidx.compose.animation.slideInVertically | ||
import androidx.compose.animation.slideOutVertically | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.material3.Card | ||
import androidx.compose.material3.CardDefaults | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.text.style.TextOverflow | ||
import com.m3u.ui.model.LocalSpacing | ||
import com.m3u.ui.model.LocalTheme | ||
|
||
@Composable | ||
fun AppSnackHost( | ||
message: String, | ||
modifier: Modifier = Modifier | ||
) { | ||
val theme = LocalTheme.current | ||
val spacing = LocalSpacing.current | ||
val containerColor = theme.tint | ||
val contentColor = theme.onTint | ||
AnimatedVisibility( | ||
visible = message.isNotEmpty(), | ||
enter = slideInVertically { it } + fadeIn(), | ||
exit = slideOutVertically { it } + fadeOut(), | ||
modifier = modifier | ||
) { | ||
Card( | ||
colors = CardDefaults.cardColors( | ||
containerColor = containerColor, | ||
contentColor = contentColor | ||
) | ||
) { | ||
Text( | ||
text = message, | ||
maxLines = 1, | ||
overflow = TextOverflow.Ellipsis, | ||
style = MaterialTheme.typography.subtitle1, | ||
modifier = Modifier | ||
.padding( | ||
horizontal = spacing.medium, | ||
vertical = spacing.small | ||
) | ||
) | ||
} | ||
} | ||
} |
69 changes: 0 additions & 69 deletions
69
androidApp/src/main/java/com/m3u/androidApp/components/OptimizeBanner.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.