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,
|
.frame(width: isKeyboardVisible ? 125 : 225,
|
||||||
height: isKeyboardVisible ? 125 : 225)
|
height: isKeyboardVisible ? 125 : 225)
|
||||||
.clipShape(RoundedRectangle(cornerRadius: 20))
|
.clipShape(RoundedRectangle(cornerRadius: 20))
|
||||||
|
.overlay(
|
||||||
|
RoundedRectangle(cornerRadius: 20)
|
||||||
|
.stroke(Color.themePrimary, lineWidth: 4)
|
||||||
|
)
|
||||||
.animation(.spring(response: 0.4, dampingFraction: 1), value: isKeyboardVisible)
|
.animation(.spring(response: 0.4, dampingFraction: 1), value: isKeyboardVisible)
|
||||||
} else {
|
} else {
|
||||||
// Default SVG avatar
|
// Default SVG avatar
|
||||||
SVGImage(svgName: "Avatar")
|
SVGImage(svgName: "IP")
|
||||||
.frame(width: isKeyboardVisible ? 125 : 225,
|
.frame(width: isKeyboardVisible ? 125 : 225,
|
||||||
height: isKeyboardVisible ? 125 : 225)
|
height: isKeyboardVisible ? 125 : 225)
|
||||||
.contentShape(Rectangle())
|
.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)
|
.animation(.spring(response: 0.4, dampingFraction: 1), value: isKeyboardVisible)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ struct UserInfo: View {
|
|||||||
.foregroundColor(.black)
|
.foregroundColor(.black)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.padding(.vertical, 10)
|
.padding(6)
|
||||||
.background(
|
.background(
|
||||||
LinearGradient(
|
LinearGradient(
|
||||||
gradient: Gradient(colors: [
|
gradient: Gradient(colors: [
|
||||||
@ -86,7 +86,7 @@ struct UserInfo: View {
|
|||||||
.foregroundColor(.black)
|
.foregroundColor(.black)
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
.lineLimit(2)
|
.lineLimit(2)
|
||||||
.padding(.vertical, 10)
|
.padding(6)
|
||||||
.background(
|
.background(
|
||||||
LinearGradient(
|
LinearGradient(
|
||||||
gradient: Gradient(colors: [
|
gradient: Gradient(colors: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user