Skip to content

Commit 3e94f01

Browse files
Fix regex button's text color when enabled
1 parent 24f6304 commit 3e94f01

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/java/com/dp/logcatapp/ui/common/TopSearchBarForLogs.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,16 @@ fun SearchLogsTopBar(
146146
onClick = onClickRegex,
147147
colors = ButtonDefaults.textButtonColors(
148148
contentColor = if (regexEnabled) {
149-
textButtonColors.contentColor
149+
MaterialTheme.colorScheme.onPrimaryContainer
150150
} else {
151151
textButtonColors.disabledContentColor
152152
},
153153
),
154154
contentPadding = PaddingValues(),
155155
) {
156-
Text(".*")
156+
Text(
157+
text = ".*",
158+
)
157159
}
158160
}
159161
}

0 commit comments

Comments
 (0)