mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
Fix OutlineButton disabled state
This commit is contained in:
parent
6df63b034c
commit
204993397f
@ -60,6 +60,8 @@ const val oceanLight7 = 0xffFCFFFF
|
||||
val session_accent = Color(0xFF31F196)
|
||||
val ocean_accent = Color(0xff57C9FA)
|
||||
|
||||
val Colors.disabled @Composable get() = onSurface.copy(alpha = ContentAlpha.disabled)
|
||||
|
||||
val oceanLights = arrayOf(oceanLight0, oceanLight1, oceanLight2, oceanLight3, oceanLight4, oceanLight5, oceanLight6, oceanLight7)
|
||||
val oceanDarks = arrayOf(oceanDark0, oceanDark1, oceanDark2, oceanDark3, oceanDark4, oceanDark5, oceanDark6, oceanDark7)
|
||||
val classicLights = arrayOf(classicLight0, classicLight1, classicLight2, classicLight3, classicLight4, classicLight5, classicLight6)
|
||||
|
@ -47,6 +47,7 @@ import org.thoughtcrime.securesms.ui.LocalButtonColor
|
||||
import org.thoughtcrime.securesms.ui.baseBold
|
||||
import org.thoughtcrime.securesms.ui.colorDestructive
|
||||
import org.thoughtcrime.securesms.ui.contentDescription
|
||||
import org.thoughtcrime.securesms.ui.disabled
|
||||
import org.thoughtcrime.securesms.ui.extraSmall
|
||||
|
||||
val LocalButtonSize = staticCompositionLocalOf { mediumButton }
|
||||
@ -103,7 +104,7 @@ fun OutlineButton(
|
||||
enabled = enabled,
|
||||
interactionSource = interactionSource,
|
||||
onClick = onClick,
|
||||
border = BorderStroke(1.dp, LocalButtonColor.current),
|
||||
border = BorderStroke(1.dp, if (enabled) LocalButtonColor.current else MaterialTheme.colors.disabled),
|
||||
colors = ButtonDefaults.outlinedButtonColors(
|
||||
contentColor = if (enabled) LocalButtonColor.current else Color.Unspecified,
|
||||
backgroundColor = Color.Unspecified
|
||||
|
Loading…
x
Reference in New Issue
Block a user