mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Dimming images for dark mode
This commit is contained in:
@ -83,11 +83,9 @@ const AttachmentAudio: React.FC<Props> = ({ total, index, sensitiveShown, audio
|
||||
<>
|
||||
{audio.preview_url ? (
|
||||
<GracefullyImage
|
||||
uri={{
|
||||
original: audio.preview_url,
|
||||
remote: audio.preview_remote_url
|
||||
}}
|
||||
uri={{ original: audio.preview_url, remote: audio.preview_remote_url }}
|
||||
style={styles.background}
|
||||
dim
|
||||
/>
|
||||
) : null}
|
||||
<Button
|
||||
|
@ -39,6 +39,7 @@ const AttachmentImage = ({
|
||||
blurhash={image.blurhash}
|
||||
onPress={() => navigateToImagesViewer(image.id)}
|
||||
style={{ aspectRatio: aspectRatio({ total, index, ...image.meta?.original }) }}
|
||||
dim
|
||||
/>
|
||||
</View>
|
||||
<AttachmentAltText sensitiveShown={sensitiveShown} text={image.description} />
|
||||
|
@ -31,8 +31,7 @@ const TimelineAvatar: React.FC<Props> = ({ account }) => {
|
||||
})
|
||||
})}
|
||||
onPress={() =>
|
||||
!disableOnPress &&
|
||||
navigation.push('Tab-Shared-Account', { account: actualAccount })
|
||||
!disableOnPress && navigation.push('Tab-Shared-Account', { account: actualAccount })
|
||||
}
|
||||
uri={{ original: actualAccount.avatar, static: actualAccount.avatar_static }}
|
||||
dimension={
|
||||
@ -51,6 +50,7 @@ const TimelineAvatar: React.FC<Props> = ({ account }) => {
|
||||
overflow: 'hidden',
|
||||
marginRight: StyleConstants.Spacing.S
|
||||
}}
|
||||
dim
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
@ -86,6 +86,7 @@ const TimelineCard: React.FC = () => {
|
||||
blurhash={status.card.blurhash}
|
||||
style={{ flexBasis: StyleConstants.Font.LineHeight.M * 5 }}
|
||||
imageStyle={{ borderTopLeftRadius: 6, borderBottomLeftRadius: 6 }}
|
||||
dim
|
||||
/>
|
||||
) : null}
|
||||
<View style={{ flex: 1, padding: StyleConstants.Spacing.S }}>
|
||||
|
Reference in New Issue
Block a user