Skip to content

Commit

Permalink
Apply AppTheme to AboutDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusRodCosta committed Oct 11, 2024
1 parent cc11d18 commit 2406c5a
Showing 1 changed file with 22 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import androidx.compose.ui.window.Dialog
import com.mateusrodcosta.apps.share2storage.BuildConfig
import com.mateusrodcosta.apps.share2storage.R
import com.mateusrodcosta.apps.share2storage.screens.shared.ListItemWithURL
import com.mateusrodcosta.apps.share2storage.ui.theme.AppTheme

@Preview(apiLevel = 34)
@Composable
Expand All @@ -56,25 +57,27 @@ fun AboutDialog(onDismissRequest: () -> Unit) {

@Composable
fun AboutDialogContent() {
Card {
Column {
AppInfo()
ListItemWithURL(
stringResource(R.string.about_developer),
linkPlacement = "Mateus Rodrigues Costa",
url = stringResource(R.string.github_profile_url),
)
ListItemWithURL(
stringResource(R.string.about_icon_credits),
linkPlacement = "@swyzera",
url = stringResource(R.string.swy_website_url)
)
ListItemWithURL(
stringResource(R.string.about_github),
linkPlacement = "%s",
url = stringResource(R.string.source_code_url),
replaceWithUrl = true
)
AppTheme {
Card {
Column {
AppInfo()
ListItemWithURL(
stringResource(R.string.about_developer),
linkPlacement = "Mateus Rodrigues Costa",
url = stringResource(R.string.github_profile_url),
)
ListItemWithURL(
stringResource(R.string.about_icon_credits),
linkPlacement = "@swyzera",
url = stringResource(R.string.swy_website_url)
)
ListItemWithURL(
stringResource(R.string.about_github),
linkPlacement = "%s",
url = stringResource(R.string.source_code_url),
replaceWithUrl = true
)
}
}
}
}
Expand Down

0 comments on commit 2406c5a

Please sign in to comment.