mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android: Fixed conflics (#1225)
* ios: use transparent background for images without text and quote (#1224)
* android: Some small fixes (#1221)
* android: Some small fixes
* Alpha in preview image
* ImageView width limitation for portrait images
* Sharing files with a text
* Do not create new link on orientation change
* Skipping quoted item when applying transparent background
* Commented out sharing a text of image message
* Revert "ImageView width limitation for portrait images"
This reverts commit b1f20b51da.
* White color
Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
cf67c951fc
commit
1f8bfbe3f5
@@ -207,8 +207,17 @@ private struct MetaColorPreferenceKey: PreferenceKey {
|
||||
}
|
||||
}
|
||||
|
||||
func onlyImage(_ ci: ChatItem) -> Bool {
|
||||
if case let .image(text, _) = ci.content.msgContent {
|
||||
return ci.quotedItem == nil && text == ""
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func chatItemFrameColor(_ ci: ChatItem, _ colorScheme: ColorScheme) -> Color {
|
||||
ci.chatDir.sent
|
||||
onlyImage(ci)
|
||||
? Color.clear
|
||||
: ci.chatDir.sent
|
||||
? (colorScheme == .light ? sentColorLight : sentColorDark)
|
||||
: Color(uiColor: .tertiarySystemGroupedBackground)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user