Commit Graph

13 Commits

Author SHA1 Message Date
Doug 02eb4b35e2 Add SwiftFormat to the project. (#129)
* Run swiftformat for whitespace.
* Run swiftformat with some rules.
2022-07-06 14:49:05 +01:00
ismailgulek 36c34503fc Plain timeline styler (#94)
* #92 Create `TimelineStyle` and store it in user defaults

* #92 Create `TimelineStyler` observable environment object

* #92 Use timeline list row insets from the styler

* #92 remove sender view, move header into the styler views

* #92 Add timeline style option in settings

* #92 Add changelog

* #92 refactor some code duplications

* #92 Fix `TimelineStyle`targets

* #92 Fix `TimelineStyle` targets

* #92 Fix PR remarks

* #92 Fix inline PR comments

* #92 Fix UI tests

* #92 Rename bubbled to bubbles
2022-06-27 13:27:09 +03:00
ismailgulek b6b8b4be26 Room screen: timeline message bubbles (#91)
* #34 Create `TimelineItemStylerView`

* #34 Add styler view into different type of cells

* #34 Use placeholder avatar image on room list

* #34 Add `isOutgoing` param to event based timeline item

* #34 Compute `isOutgoing` for timeline items

* #34 Update sender info view in timeline

* #34 Update mock timeline items

* #34 Rename `EventBasedTimelineView` to `EventBasedTimelineSenderView`

* #34 Change padding on timeline cells

* #34 Create `TimelineItemStylerView` to move content into a bubble if needed

* #34 Use styler view in all of the timeline item views

* #34 Make timestamp more readable on images

* #34 Little layout tweaks

* #34 Add changelog

* #34 Fix code smells

* #34 Set text colors on timeline items

* #34 Fix background color of the timeline

* #34 Fix PR remarks

* #34 Set background colors explicitly on remaining screens

* #34 Reduce min bubble width and make it a scaled metric

* #34 Refactor `PlaceholderAvatarImage` to accept a text only

* #34 Fix code smell

* #34 Fix further comments
2022-06-23 14:54:29 +03:00
Doug 272fc5000b Use .element.accent instead of elementGreen colour asset. (#79)
Remove local copy of Element Green
2022-06-13 08:38:28 +01:00
Stefan Ceriu e11b09de3d Cleanup various animations 2022-05-31 16:16:01 +03:00
Stefan Ceriu 6c7dd6f6b0 Add swiftgen build script for generating image and color assets. 2022-04-14 09:25:26 +03:00
Gil Eluard def0683328 Fix build issues for xcode 13.3 2022-04-13 13:54:01 +03:00
Stefan Ceriu e20c699298 Enable encryption and add support for loading encrypted images. 2022-04-07 17:07:42 +03:00
Stefan Ceriu 8d50d4fd25 Added blurhash and correct sizes to timeline images and animations throughout the app. 2022-04-05 15:09:04 +03:00
Stefan Ceriu 49f7678ce8 Caching the room proxies and their messages. Improved performance throughout. 2022-03-31 17:45:41 +03:00
Stefan Ceriu 6243973e36 Added more timeline view SwiftUI previews. 2022-03-31 11:22:26 +03:00
Stefan Ceriu d330950ed3 Removed extra trailing new line from the generated string builder components. Fixed blockquote rendering. 2022-03-30 16:34:43 +03:00
Stefan Ceriu 1bbc38c03e Moved timeline views to the room screen folder. Extracted timeline code into its own component. Added more preview providers. 2022-03-30 16:33:57 +03:00