Skip to content

Commit

Permalink
update compose ios style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Nov 20, 2024
1 parent 60a380a commit e0a488b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ fun AboutScreenContent(
style = MaterialTheme.typography.bodySmall,
modifier =
Modifier
// .alpha(MediumAlpha)
.padding(horizontal = 16.dp),
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
Text(
text = version,
style = MaterialTheme.typography.bodySmall,
// modifier = Modifier.alpha(MediumAlpha),
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
ListItem(
headlineContent = {
Expand All @@ -76,7 +76,6 @@ fun AboutScreenContent(
supportingContent = {
Text(
text = "https://github.com/DimensionDev/Flare",
// modifier = Modifier.alpha(MediumAlpha),
)
},
modifier =
Expand All @@ -98,7 +97,6 @@ fun AboutScreenContent(
supportingContent = {
Text(
text = stringResource(resource = Res.string.settings_about_telegram_description),
// modifier = Modifier.alpha(MediumAlpha),
)
},
modifier =
Expand All @@ -120,7 +118,6 @@ fun AboutScreenContent(
supportingContent = {
Text(
text = stringResource(resource = Res.string.settings_about_localization_description),
// modifier = Modifier.alpha(MediumAlpha),
)
},
modifier =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ private class IOSIndication(
override fun ContentDrawScope.draw() {
drawContent()
if (isPressed) {
drawRect(color = color.copy(alpha = 0.15f), size = size)
} else if (isHovered || isFocused) {
drawRect(color = color.copy(alpha = 0.05f), size = size)
} else if (isHovered || isFocused) {
drawRect(color = color.copy(alpha = 0.025f), size = size)
}
}
}
Expand Down

0 comments on commit e0a488b

Please sign in to comment.