Skip to content

Commit

Permalink
fix: app bar text color
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Jun 16, 2024
1 parent e5a2f44 commit b6a05c0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
Expand Down Expand Up @@ -49,6 +50,7 @@ fun AppBarTextField(
)

val mergedTextStyle = LocalTextStyle.current.merge(MaterialTheme.typography.titleMedium)
.merge(color = LocalContentColor.current)

// request focus when this composable is first initialized
// val focusRequester = FocusRequester()
Expand Down

0 comments on commit b6a05c0

Please sign in to comment.