@@ -18,10 +18,8 @@ import androidx.compose.ui.Modifier
1818import androidx.compose.ui.draw.clip
1919import androidx.compose.ui.draw.drawWithCache
2020import androidx.compose.ui.geometry.Offset
21- import androidx.compose.ui.graphics.BlendMode
2221import androidx.compose.ui.graphics.Color
2322import androidx.compose.ui.graphics.LinearGradientShader
24- import androidx.compose.ui.graphics.RadialGradientShader
2523import androidx.compose.ui.graphics.ShaderBrush
2624import androidx.compose.ui.res.stringResource
2725import androidx.compose.ui.unit.dp
@@ -39,6 +37,7 @@ import io.element.android.libraries.ui.strings.CommonStrings
3937/* *
4038 * Send button for the message composer.
4139 * Figma: https://www.figma.com/design/G1xy0HDZKJf5TCRFmKb5d5/Compound-Android-Components?node-id=1956-37575&node-type=frame&m=dev
40+ * Temporary Figma : https://www.figma.com/design/Ni6Ii8YKtmXCKYNE90cC67/Timeline-(new)?node-id=2274-39944&m=dev
4241 */
4342@Composable
4443internal fun SendButton (
@@ -105,30 +104,17 @@ private fun buttonBackgroundModifier() = Modifier.drawWithCache {
105104 from = Offset (0f , 0f ),
106105 to = Offset (0f , height),
107106 colors = listOf (
108- Color (0xFF0BC491 ),
109- Color (0xFF0467DD ),
110- )
111- )
112- )
113- val radialGradientBrush = ShaderBrush (
114- RadialGradientShader (
115- center = Offset (height / 2f , height / 2f ),
116- radius = height / 2f ,
117- colors = listOf (
118- Color (0xFF0BC491 ),
119- Color (0xFF0467DD ),
107+ Color (0xFF79DD98 ),
108+ Color (0xFF0DBD8B ),
109+ Color (0xFF128585 ),
110+ Color (0xFF24446B ),
120111 )
121112 )
122113 )
123114 onDrawBehind {
124115 drawRect(
125116 brush = verticalGradientBrush,
126117 )
127- drawRect(
128- brush = radialGradientBrush,
129- alpha = 0.4f ,
130- blendMode = BlendMode .Overlay ,
131- )
132118 }
133119}
134120
0 commit comments