Skip to content

Commit c6fa745

Browse files
RafaGonPGermanIfeelDev
authored andcommitted
added disabled colors for OutlinedTextField and captiontextstyle 12 semibold
1 parent 05a048a commit c6fa745

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

components/src/main/java/com/ifeel/components/ui/components/generic/textfield/OutlinedTextField.kt

+5
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ import androidx.compose.ui.unit.dp
2929
import androidx.compose.ui.unit.sp
3030
import com.ifeel.components.R
3131
import com.ifeel.components.ui.components.common.text.ErrorText
32+
import com.ifeel.components.ui.theme.color_background_7
3233
import com.ifeel.components.ui.theme.color_brand_primary_600
3334
import com.ifeel.components.ui.theme.color_danger_500
35+
import com.ifeel.components.ui.theme.color_text_100
3436
import com.ifeel.components.ui.theme.color_text_300
3537
import com.ifeel.components.ui.theme.color_text_400
3638
import com.ifeel.components.ui.theme.color_text_500
@@ -100,6 +102,9 @@ fun OutlinedTextField(
100102
errorContainerColor = Color.White,
101103
unfocusedContainerColor = Color.White,
102104
focusedContainerColor = Color.White,
105+
disabledTextColor = color_text_300,
106+
disabledBorderColor = color_text_100,
107+
disabledContainerColor = color_background_7,
103108
)
104109
)
105110

components/src/main/java/com/ifeel/components/ui/theme/text/CaptionTextStyle.kt

+13
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,17 @@ sealed class CaptionTextStyle(
3838
fontSize = 12.sp,
3939
lineHeight = 16.sp
4040
)
41+
42+
/**
43+
* @property color [color_text_600].
44+
* @property fontSize 12sp.
45+
* @property lineHeight 16sp.
46+
* @property fontWeight [FontWeight.SemiBold].
47+
*/
48+
data object Caption12Semibold : CaptionTextStyle(
49+
color = color_text_600,
50+
fontSize = 12.sp,
51+
lineHeight = 16.sp,
52+
fontWeight = FontWeight.SemiBold
53+
)
4154
}

0 commit comments

Comments
 (0)