Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SES-337] Add rounded corners to thumbnail in QuoteView #1285

Merged
merged 8 commits into from
Jun 30, 2024

Conversation

bemusementpark
Copy link

@bemusementpark bemusementpark commented Jul 31, 2023

Corner Radius was not set on one codepath to setting images in ThumbnailView

Screen Shot 2023-08-01 at 1 01 24 am

Utilised in some other classes, but hopefully an improvement if any change at all. If there's any unintentional rounding, we just need to set radius to 0.

MediaGalleryAdapter.java
AlbumThumbnailView.kt
LinkPreviewDraftView.kt
LinkPreviewView.kt

@bemusementpark bemusementpark changed the title Add rounded corners to thumbnail in QuoteView [SES-337] Add rounded corners to thumbnail in QuoteView Jul 31, 2023
@ThomasSession
Copy link
Collaborator

I tweaked the code to make sure the whole ThumbnailView was clipped to rounded corners when setting them. This fixes the issue mentioned in the ticket where the background wasn't rounded like the image.
Also cleaned up other usage of ThumbnailView where the corners were not applied properly.

@ThomasSession ThomasSession merged commit 1d80bb0 into oxen-io:dev Jun 30, 2024
1 check passed
@bemusementpark bemusementpark deleted the quote-corners branch July 1, 2024 00:45
ThomasSession added a commit that referenced this pull request Jul 9, 2024
* fix: Authenticate all Open Group API calls

* Use unblinded authentication when we have `capabilities` data for the open group server we are sending the request to but don't have the `blind` capability
* Use blinded authentication when we haven't gotten any `capabilities` for an open group server, or if we have `capabilities` and the server has the `blind` capability

* Hide send button when message contains only whitespace

* Fix bug displaying user ID when quoting own message

* Fix notification update for incoming unsend request

* Improve check if author is own user when quoting messages

* Fixed video call auto rotate, when auto rotate is disabled

* refactor: simplify comparison

* Stop playing message if deleted

* Accidental change

* Accidental change

* Comments

* Feedback

* Comments

* Import

* Fix delete message for everyone doesn't stop the audio playing

* Correct the usage of flowOn

* Import

* Optimise XML

* Remove unused file

* Remove view pools

* Remove the use of executor in ThreadUtils

* Using trim and empty to capture semantic concept of nothing being in there

* Remove config checks (PR 1294)

Refactor: remove checks for whether new config is enabled throughout config factory generation.
First commit from PR 1294.

* [SES-2162] - Remove wrapping of config message (#1517)

* Remove wrapping of config message

* Addresses feedback

* Merged in ThreadUtils fix

* JDK installation

* Revert JDK change

---------

Co-authored-by: fanchao <[email protected]>

* Update libsession

* [SES-337] Add rounded corners to thumbnail in QuoteView (#1285)

* Add rounded corners to thumbnail in QuoteView

* Simplify ThumbnailView

* Cleanup ThumbnailView

* Removed include custom attributes

The custom attributes are not passed to the view.
I added the radius programatically instead.

* Clipping whole thumbnail view instead of just the image requests

---------

Co-authored-by: AL-Session <[email protected]>
Co-authored-by: ThomasSession <[email protected]>

* Highlight @you mentions (#985)

* Highlight @you mentions

* fix: resolve merge conflicts

* Setting the proper design rules for mentions

* New RoundedBackgroundSpan, applied to "you"  mentions

The rounded background highlighter can take padding, so there is no need to add those extra spaces at the start and end.

* Better mention highlight logic

Some mention highlight should only format the text and not apply any styling.
Also making sure we cater for all cases properly

* Updated the text color logic based on design rules

* Fine tuning the color rules

* Removing usage of Resources.getSystem()

Only making the db call if there actually is a mention

* Moving color definition outside the loop to avoid repetitions

---------

Co-authored-by: charles <[email protected]>
Co-authored-by: 0x330a <[email protected]>
Co-authored-by: ThomasSession <[email protected]>

* [SES-2018] Refactor mention  (#1510)

* Refactor mention

* Fixes robolectric test problem

* Fixes tests

* Naming and comments

* Naming

* Dispatcher

---------

Co-authored-by: fanchao <[email protected]>

* [SES-1966] Attachment batch download and tidy-up (#1507)

* Attachment batch download

* Addressed feedback and test issues

* Feedback fixes

* timedWindow for flow

* Feedback

* Dispatchers

* Remove `flowOn`

* New implementation of timedBuffer

* Organise import

* Feedback

* Fix test

* Tidied up logic around `eligibleForDownload`

* Updated comment

---------

Co-authored-by: fanchao <[email protected]>

* Fix issue with span being the full length (#1528)

* Proper display of unresolved names in mentions (#1530)

* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is

* Testnet build (#1532)

Co-authored-by: fanchao <[email protected]>

* Allow "public.loki.foundation" to be accessed by http (#1534)

Co-authored-by: fanchao <[email protected]>

* Bumping the version code and name

* Reverting temporary change

---------

Co-authored-by: charles <[email protected]>
Co-authored-by: andrew <[email protected]>
Co-authored-by: aaronkerckhoff <[email protected]>
Co-authored-by: Rugved Darwhekar <[email protected]>
Co-authored-by: 0x330a <[email protected]>
Co-authored-by: fanchao <[email protected]>
Co-authored-by: Fanchao Liu <[email protected]>
Co-authored-by: AL-Session <[email protected]>
Co-authored-by: ceokot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants