@momo-kits/native-kits 0.113.1-beta.11 → 0.113.1-beta.13
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.
|
@@ -94,14 +94,14 @@ fun Screen(
|
|
|
94
94
|
|
|
95
95
|
Box(
|
|
96
96
|
Modifier.fillMaxSize()
|
|
97
|
-
.background(
|
|
97
|
+
.background(AppTheme.current.colors.background.surface)
|
|
98
98
|
) {
|
|
99
99
|
|
|
100
100
|
if (animatedHeader === null) {
|
|
101
101
|
HeaderBackground(
|
|
102
102
|
headerType = headerType,
|
|
103
103
|
scrollState = scrollState.value,
|
|
104
|
-
inputSearchProps= inputSearchProps,
|
|
104
|
+
inputSearchProps = inputSearchProps,
|
|
105
105
|
useAnimationSearch = useAnimationSearch
|
|
106
106
|
)
|
|
107
107
|
} else {
|
|
@@ -114,7 +114,7 @@ fun Screen(
|
|
|
114
114
|
isBack = isBack,
|
|
115
115
|
headerType = headerType,
|
|
116
116
|
scrollState = scrollState.value,
|
|
117
|
-
inputSearchProps= inputSearchProps,
|
|
117
|
+
inputSearchProps = inputSearchProps,
|
|
118
118
|
useAnimationSearch = useAnimationSearch
|
|
119
119
|
)
|
|
120
120
|
}
|
|
@@ -155,7 +155,11 @@ fun Screen(
|
|
|
155
155
|
verticalArrangement = verticalArrangement,
|
|
156
156
|
horizontalAlignment = horizontalAlignment
|
|
157
157
|
) {
|
|
158
|
-
Box
|
|
158
|
+
Box(
|
|
159
|
+
modifier = Modifier.background(
|
|
160
|
+
backgroundColor ?: AppTheme.current.colors.background.default
|
|
161
|
+
)
|
|
162
|
+
) {
|
|
159
163
|
headerAnimated()
|
|
160
164
|
Column {
|
|
161
165
|
if (animatedHeader !== null) {
|
|
@@ -43,9 +43,9 @@ public struct PopupDisplay: View {
|
|
|
43
43
|
Image(systemName: "xmark.circle.fill")
|
|
44
44
|
.resizable()
|
|
45
45
|
.frame(width: 22, height: 22)
|
|
46
|
-
.overlay(RoundedRectangle(cornerRadius: Radius.
|
|
46
|
+
.overlay(RoundedRectangle(cornerRadius: Radius.L).stroke(Colors.black01, lineWidth: 1))
|
|
47
47
|
}.foregroundColor(Colors.black20)
|
|
48
|
-
.background(Colors.black01.cornerRadius(
|
|
48
|
+
.background(Colors.black01.cornerRadius(15))
|
|
49
49
|
.offset(x: 6, y: -6)
|
|
50
50
|
.zIndex(1)
|
|
51
51
|
|
|
@@ -66,7 +66,7 @@ public struct PopupDisplay: View {
|
|
|
66
66
|
VStack(alignment: .leading) {
|
|
67
67
|
Text(title)
|
|
68
68
|
.foregroundColor(.black)
|
|
69
|
-
.font(.
|
|
69
|
+
.font(.header_default_semibold)
|
|
70
70
|
.padding(.top, 16)
|
|
71
71
|
.padding(.bottom, 8)
|
|
72
72
|
.lineLimit(2)
|
|
@@ -2,13 +2,14 @@ import SwiftUI
|
|
|
2
2
|
|
|
3
3
|
public extension Font {
|
|
4
4
|
static func appFont(size: CGFloat) -> Font {
|
|
5
|
-
return Font.
|
|
5
|
+
return Font.system(size: size)
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// New supported typography styles
|
|
9
9
|
static let headline_default_bold = appFont(size: 24).weight(.bold)
|
|
10
10
|
static let header_m_bold = appFont(size: 18).weight(.bold)
|
|
11
11
|
static let header_default_bold = appFont(size: 16).weight(.bold)
|
|
12
|
+
static let header_default_semibold = appFont(size: 16).weight(.semibold)
|
|
12
13
|
static let header_s_semibold = appFont(size: 14).weight(.semibold)
|
|
13
14
|
static let header_xs_semibold = appFont(size: 12).weight(.semibold)
|
|
14
15
|
static let body_default_regular = appFont(size: 14).weight(.regular)
|