@@ -3,17 +3,19 @@ package com.ifeel.components.ui.components.common.button
3
3
import androidx.compose.foundation.BorderStroke
4
4
import androidx.compose.foundation.Image
5
5
import androidx.compose.foundation.background
6
+ import androidx.compose.foundation.border
6
7
import androidx.compose.foundation.layout.size
7
8
import androidx.compose.foundation.shape.RoundedCornerShape
8
9
import androidx.compose.material3.OutlinedIconButton
9
10
import androidx.compose.runtime.Composable
10
11
import androidx.compose.ui.Modifier
12
+ import androidx.compose.ui.draw.clip
13
+ import androidx.compose.ui.graphics.Color
11
14
import androidx.compose.ui.tooling.preview.Preview
12
15
import androidx.compose.ui.unit.dp
13
16
import coil.compose.rememberAsyncImagePainter
14
17
import com.ifeel.components.ui.theme.IfeelComponentsTheme
15
18
import com.ifeel.components.ui.theme.color_text_400
16
- import com.ifeel.components.ui.theme.color_white
17
19
18
20
@Composable
19
21
fun LocaleButton (
@@ -23,10 +25,15 @@ fun LocaleButton(
23
25
) {
24
26
OutlinedIconButton (
25
27
onClick = onClick,
26
- shape = RoundedCornerShape (6 .dp),
27
- border = BorderStroke (1 .dp, color_text_400),
28
+ border = BorderStroke (0 .dp, Color .Transparent ),
28
29
modifier = modifier
29
- .background(color_white, RoundedCornerShape (6 .dp))
30
+ .border(
31
+ width = 1 .dp,
32
+ color = color_text_400,
33
+ shape = RoundedCornerShape (6 .dp)
34
+ )
35
+ .clip(shape = RoundedCornerShape (6 .dp))
36
+ .background(color = Color .White )
30
37
.size(height = 44 .dp, width = 48 .dp)
31
38
) {
32
39
Image (
0 commit comments