feat: 样式调整
This commit is contained in:
parent
12bcc46f45
commit
c786c3192a
Binary file not shown.
9
wake/Assets/Svg/IP.svg
Normal file
9
wake/Assets/Svg/IP.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 184 KiB |
@ -28,13 +28,22 @@ public struct AvatarPicker: View {
|
||||
.frame(width: isKeyboardVisible ? 125 : 225,
|
||||
height: isKeyboardVisible ? 125 : 225)
|
||||
.clipShape(RoundedRectangle(cornerRadius: 20))
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 20)
|
||||
.stroke(Color.themePrimary, lineWidth: 4)
|
||||
)
|
||||
.animation(.spring(response: 0.4, dampingFraction: 1), value: isKeyboardVisible)
|
||||
} else {
|
||||
// Default SVG avatar
|
||||
SVGImage(svgName: "Avatar")
|
||||
SVGImage(svgName: "IP")
|
||||
.frame(width: isKeyboardVisible ? 125 : 225,
|
||||
height: isKeyboardVisible ? 125 : 225)
|
||||
.contentShape(Rectangle())
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 20)
|
||||
.stroke(style: StrokeStyle(lineWidth: 4, lineCap: .round, dash: [12, 8]))
|
||||
.foregroundColor(Color.themePrimary)
|
||||
)
|
||||
.animation(.spring(response: 0.4, dampingFraction: 1), value: isKeyboardVisible)
|
||||
}
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ struct UserInfo: View {
|
||||
.foregroundColor(.black)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.lineLimit(1)
|
||||
.padding(.vertical, 10)
|
||||
.padding(6)
|
||||
.background(
|
||||
LinearGradient(
|
||||
gradient: Gradient(colors: [
|
||||
@ -86,7 +86,7 @@ struct UserInfo: View {
|
||||
.foregroundColor(.black)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.lineLimit(2)
|
||||
.padding(.vertical, 10)
|
||||
.padding(6)
|
||||
.background(
|
||||
LinearGradient(
|
||||
gradient: Gradient(colors: [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user