feat: 样式调整

This commit is contained in:
jinyaqiu 2025-08-22 09:53:01 +08:00
parent 12bcc46f45
commit c786c3192a
4 changed files with 21 additions and 3 deletions

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

View File

@ -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)
}

View File

@ -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: [