Skip to content

Commit

Permalink
Fix text color in About dialog (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxkr authored Jul 22, 2024
1 parent 4a4d348 commit aa04820
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringArrayResource
import androidx.compose.ui.res.stringResource
Expand Down Expand Up @@ -84,6 +85,7 @@ fun GlobalSettings(viewModel: ManageWidgetsViewModel = viewModel()) {
)
if (dialogVisible) {
val licenseString = stringResource(R.string.licenses)
val textColor = MaterialTheme.colors.onSurface
Dialog(
onDismissRequest = { dialogVisible = false }
) {
Expand All @@ -102,6 +104,7 @@ fun GlobalSettings(viewModel: ManageWidgetsViewModel = viewModel()) {
TextView.BufferType.SPANNABLE
)
it.movementMethod = LinkMovementMethod.getInstance()
it.setTextColor(textColor.toArgb())
}
)
}
Expand Down

0 comments on commit aa04820

Please sign in to comment.