mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 20:45:49 +00:00
rework shadow
This commit is contained in:
@@ -33,7 +33,11 @@ struct ComposeFileView: View {
|
||||
.padding(.vertical, 1)
|
||||
.padding(.trailing, 12)
|
||||
.frame(height: 50)
|
||||
.background(theme.appColors.sentMessage)
|
||||
.background(
|
||||
theme.appColors.sentMessage
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
@@ -45,7 +45,11 @@ struct ComposeImageView: View {
|
||||
}
|
||||
.padding(.vertical, 1)
|
||||
.padding(.trailing, 12)
|
||||
.background(theme.appColors.sentMessage)
|
||||
.background(
|
||||
theme.appColors.sentMessage
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
@@ -62,7 +62,11 @@ struct ComposeLinkView: View {
|
||||
}
|
||||
.padding(.vertical, 1)
|
||||
.padding(.trailing, 12)
|
||||
.background(theme.appColors.sentMessage)
|
||||
.background(
|
||||
theme.appColors.sentMessage
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
@@ -664,7 +664,11 @@ struct ComposeView: View {
|
||||
.padding(12)
|
||||
.frame(minHeight: 50)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Color(uiColor: .tertiarySystemGroupedBackground))
|
||||
.background(
|
||||
Color(uiColor: .tertiarySystemGroupedBackground)
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,11 @@ struct ComposeVoiceView: View {
|
||||
}
|
||||
.padding(.vertical, 1)
|
||||
.frame(height: ComposeVoiceView.previewHeight)
|
||||
.background(theme.appColors.sentMessage)
|
||||
.background(
|
||||
theme.appColors.sentMessage
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.frame(maxWidth: .infinity)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
@@ -20,7 +20,11 @@ struct ContextInvitingContactMemberView: View {
|
||||
.padding(12)
|
||||
.frame(minHeight: 50)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(theme.appColors.sentMessage)
|
||||
.background(
|
||||
theme.appColors.sentMessage
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,11 @@ struct ContextItemView: View {
|
||||
.padding(12)
|
||||
.frame(minHeight: 50)
|
||||
.frame(maxWidth: .infinity)
|
||||
.background(chatItemFrameColor(contextItem, theme))
|
||||
.background(
|
||||
chatItemFrameColor(contextItem, theme)
|
||||
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
||||
.mask(Rectangle().padding(.bottom, -8))
|
||||
)
|
||||
.padding(.top, 8)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user