Skip to content

Commit adb8e0b

Browse files
authored
Merge pull request #96 from YAPP-Github/BOOK-206-feature/#95
feat: 그래픽 및 UI/UX 변경사항 적용
2 parents 1e0643d + 5786f67 commit adb8e0b

File tree

16 files changed

+83
-51
lines changed

16 files changed

+83
-51
lines changed

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/EmotionTag.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import com.ninecraft.booket.core.designsystem.theme.WarmthBgColor
1111
import com.ninecraft.booket.core.designsystem.theme.WarmthTextColor
1212

1313
enum class EmotionTag(val label: String, val bgColor: Color, val textColor: Color, val graphic: Int) {
14-
WARMTH("따뜻함", WarmthBgColor, WarmthTextColor, 0),
15-
JOY("즐거움", JoyBgColor, JoyTextColor, 0),
16-
TENSION("긴장감", TensionBgColor, TensionTextColor, 0),
17-
SADNESS("슬픔", SadnessBgColor, SadnessTextColor, 0),
14+
WARMTH("따뜻함", WarmthBgColor, WarmthTextColor, R.drawable.img_emotion_warmth),
15+
JOY("즐거움", JoyBgColor, JoyTextColor, R.drawable.img_emotion_joy),
16+
TENSION("긴장감", TensionBgColor, TensionTextColor, R.drawable.img_emotion_tension),
17+
SADNESS("슬픔", SadnessBgColor, SadnessTextColor, R.drawable.img_emotion_sadness),
1818
}

core/designsystem/src/main/kotlin/com/ninecraft/booket/core/designsystem/component/button/ButtonColorStyle.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ import com.ninecraft.booket.core.designsystem.theme.Kakao
77
import com.ninecraft.booket.core.designsystem.theme.ReedTheme
88

99
enum class ReedButtonColorStyle {
10-
PRIMARY, PRIMARY_INVERSE_TEXT, SECONDARY, TERTIARY, STROKE, KAKAO;
10+
PRIMARY, SECONDARY, TERTIARY, STROKE, KAKAO;
1111

1212
@Composable
1313
fun containerColor(isPressed: Boolean) = when (this) {
1414
PRIMARY -> if (isPressed) ReedTheme.colors.bgPrimaryPressed else ReedTheme.colors.bgPrimary
15-
PRIMARY_INVERSE_TEXT -> if (isPressed) ReedTheme.colors.bgPrimaryPressed else ReedTheme.colors.bgPrimary
1615
SECONDARY -> if (isPressed) ReedTheme.colors.bgSecondaryPressed else ReedTheme.colors.bgSecondary
1716
TERTIARY -> if (isPressed) ReedTheme.colors.bgTertiaryPressed else ReedTheme.colors.bgTertiary
1817
STROKE -> if (isPressed) ReedTheme.colors.basePrimary else ReedTheme.colors.basePrimary
@@ -22,7 +21,6 @@ enum class ReedButtonColorStyle {
2221
@Composable
2322
fun contentColor() = when (this) {
2423
PRIMARY -> ReedTheme.colors.contentInverse
25-
PRIMARY_INVERSE_TEXT -> ReedTheme.colors.contentInverse
2624
SECONDARY -> ReedTheme.colors.contentPrimary
2725
TERTIARY -> ReedTheme.colors.contentBrand
2826
STROKE -> ReedTheme.colors.contentBrand
@@ -33,7 +31,7 @@ enum class ReedButtonColorStyle {
3331
fun disabledContainerColor() = ReedTheme.colors.bgDisabled
3432

3533
@Composable
36-
fun disabledContentColor() = if (this == PRIMARY_INVERSE_TEXT) ReedTheme.colors.contentInverse else ReedTheme.colors.contentDisabled
34+
fun disabledContentColor() = ReedTheme.colors.contentDisabled
3735

3836
@Composable
3937
fun borderStroke() = when (this) {
628 KB
Loading
619 KB
Loading
577 KB
Loading
623 KB
Loading

feature/home/src/main/kotlin/com/ninecraft/booket/feature/home/component/HomeBanner.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import androidx.compose.ui.res.vectorResource
1919
import androidx.compose.ui.unit.dp
2020
import com.ninecraft.booket.core.common.extensions.clickableSingle
2121
import com.ninecraft.booket.core.designsystem.ComponentPreview
22+
import com.ninecraft.booket.core.designsystem.component.ResourceImage
2223
import com.ninecraft.booket.core.designsystem.R as designR
2324
import com.ninecraft.booket.core.designsystem.theme.HomeBg
2425
import com.ninecraft.booket.core.designsystem.theme.ReedTheme
@@ -65,6 +66,12 @@ fun HomeBanner(
6566
)
6667
}
6768
}
69+
ResourceImage(
70+
imageRes = R.drawable.img_home_seed,
71+
contentDescription = "Home Seed Image",
72+
modifier = Modifier
73+
.align(Alignment.BottomEnd),
74+
)
6875
}
6976
}
7077

110 KB
Loading

feature/main/src/main/res/drawable/ic_library.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
android:viewportWidth="25"
55
android:viewportHeight="24">
66
<path
7-
android:pathData="M2.25,6.143V16.857C2.25,18.041 3.245,19 4.472,19H20.028C21.255,19 22.25,18.041 22.25,16.857V8.286C22.25,7.102 21.255,6.143 20.028,6.143H13.361L11.139,4H4.472C3.245,4 2.25,4.959 2.25,6.143Z"
7+
android:pathData="M13.15,21.384C14.649,20.349 16.428,19.797 18.25,19.8C19.08,19.799 19.906,19.913 20.705,20.138C20.839,20.176 20.98,20.183 21.117,20.157C21.253,20.131 21.382,20.074 21.493,19.99C21.604,19.906 21.694,19.798 21.756,19.673C21.818,19.548 21.85,19.411 21.85,19.272V6.072C21.85,5.876 21.786,5.686 21.667,5.53C21.549,5.373 21.383,5.26 21.195,5.207C20.237,4.936 19.246,4.799 18.25,4.8C16.471,4.797 14.718,5.237 13.15,6.078V21.384ZM11.35,6.078C9.782,5.237 8.03,4.797 6.25,4.8C5.254,4.799 4.263,4.936 3.305,5.207C3.117,5.26 2.951,5.373 2.833,5.53C2.714,5.686 2.65,5.876 2.65,6.072V19.272C2.65,19.411 2.682,19.548 2.744,19.673C2.806,19.797 2.896,19.905 3.007,19.989C3.118,20.073 3.247,20.13 3.384,20.156C3.52,20.181 3.661,20.175 3.795,20.137C4.594,19.912 5.42,19.799 6.25,19.8C8.145,19.8 9.9,20.384 11.35,21.384V6.078Z"
88
android:fillColor="#E5E5E5"/>
99
</vector>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2-
android:width="25dp"
2+
android:width="24dp"
33
android:height="24dp"
4-
android:viewportWidth="25"
4+
android:viewportWidth="24"
55
android:viewportHeight="24">
66
<path
7-
android:pathData="M2.25,6.143V16.857C2.25,18.041 3.245,19 4.472,19H20.028C21.255,19 22.25,18.041 22.25,16.857V8.286C22.25,7.102 21.255,6.143 20.028,6.143H13.361L11.139,4H4.472C3.245,4 2.25,4.959 2.25,6.143Z"
8-
android:fillColor="#262626"/>
7+
android:pathData="M12.9,21.384C14.399,20.349 16.178,19.797 18,19.8C18.83,19.799 19.656,19.913 20.455,20.138C20.589,20.176 20.73,20.183 20.867,20.157C21.003,20.131 21.132,20.074 21.243,19.99C21.354,19.906 21.444,19.798 21.506,19.673C21.568,19.548 21.6,19.411 21.6,19.272V6.072C21.6,5.876 21.536,5.686 21.417,5.53C21.299,5.373 21.133,5.26 20.945,5.207C19.987,4.936 18.996,4.799 18,4.8C16.221,4.797 14.468,5.237 12.9,6.078V21.384ZM11.1,6.078C9.532,5.237 7.78,4.797 6,4.8C5.004,4.799 4.013,4.936 3.055,5.207C2.867,5.26 2.701,5.373 2.583,5.53C2.464,5.686 2.4,5.876 2.4,6.072V19.272C2.4,19.411 2.432,19.548 2.494,19.673C2.556,19.797 2.646,19.905 2.757,19.989C2.868,20.073 2.997,20.13 3.134,20.156C3.27,20.181 3.411,20.175 3.545,20.137C4.344,19.912 5.17,19.799 6,19.8C7.895,19.8 9.65,20.384 11.1,21.384V6.078Z"
8+
android:fillColor="#181D27"/>
99
</vector>

0 commit comments

Comments
 (0)