We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b50b7a commit ae14c52Copy full SHA for ae14c52
1 file changed
ānext/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/web/ui/search/SearchSuggestion.ktā
@@ -28,6 +28,7 @@ import androidx.compose.runtime.rememberCoroutineScope
28
import androidx.compose.runtime.setValue
29
import androidx.compose.ui.Alignment
30
import androidx.compose.ui.Modifier
31
+import androidx.compose.ui.draw.alpha
32
import androidx.compose.ui.graphics.Color
33
import androidx.compose.ui.input.pointer.PointerEventType
34
import androidx.compose.ui.input.pointer.pointerInput
@@ -190,6 +191,7 @@ internal fun SearchSuggestion(
190
191
enabled = tab.enabled,
192
icon = { tab.icon() },
193
text = { Text(tab.title) },
194
+ modifier = if (tab.enabled) Modifier else Modifier.alpha(0.6f)
195
)
196
}
197
0 commit comments