@momo-kits/native-kits 0.89.4 → 0.89.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,6 +38,7 @@ import vn.momo.kits.const.Colors
|
|
|
38
38
|
import vn.momo.kits.const.Spacing
|
|
39
39
|
import vn.momo.kits.const.Typography
|
|
40
40
|
import vn.momo.kits.utils.bottomBorder
|
|
41
|
+
import vn.momo.kits.utils.getPlatformName
|
|
41
42
|
|
|
42
43
|
enum class TitlePosition {
|
|
43
44
|
LEFT, CENTER,
|
|
@@ -92,10 +93,15 @@ fun Header(
|
|
|
92
93
|
tintIconColor = AppTheme.current.colors.text.default
|
|
93
94
|
backgroundButton = Color.Transparent
|
|
94
95
|
}
|
|
96
|
+
val statusBarHeight = if (getPlatformName() == "iOS") {
|
|
97
|
+
WindowInsets.systemBars.asPaddingValues().calculateTopPadding()
|
|
98
|
+
} else {
|
|
99
|
+
AppStatusBar.current
|
|
100
|
+
}
|
|
95
101
|
|
|
96
102
|
if (headerType != HeaderType.NONE) {
|
|
97
103
|
BoxWithConstraints(
|
|
98
|
-
Modifier.height(
|
|
104
|
+
Modifier.height(statusBarHeight + 52.dp)
|
|
99
105
|
.background(backgroundColor)
|
|
100
106
|
.fillMaxWidth()
|
|
101
107
|
.bottomBorder(
|
|
@@ -32,7 +32,7 @@ object Colors {
|
|
|
32
32
|
val pink_07 = Color(0xFFF7ACD5)
|
|
33
33
|
val pink_08 = Color(0xFFFBD5EA)
|
|
34
34
|
val pink_09 = Color(0xFFFDEAF4)
|
|
35
|
-
val pink_10 = Color(
|
|
35
|
+
val pink_10 = Color(0xFFFEF4FA)
|
|
36
36
|
val pink_11 = Color(0xFFFEF8FC)
|
|
37
37
|
val pink_MoMo_Branding = Color(0xFFA50064)
|
|
38
38
|
val violet_01 = Color(0xFF7822C0)
|