HomoArk / Homogram

Homogram is a 3rd-party Telegram client for HarmonyOS 5, driven by ArkTS/ArkUI (UI-layer) and Rust (native-layer).
Apache License 2.0
48 stars 5 forks source link

Refactor all image components to ImageKnife and image-preview #8

Open xymeng16 opened 1 month ago

xymeng16 commented 1 month ago

ImageKnife is a more flexible and powerful image rendering components than the builtin Image component. It's internal caching mechanism can enhance the performance of Homogram, especially when facing tons of profile images.

image-preview can monitor the click event of the image components and to open a fullscreen view of it. Using this to provide the best image viewing experience.

xymeng16 commented 2 weeks ago

https://github.com/HomoArk/Homogram/commit/8adc2a4398d74345b692356c37951f04251dcfb3 has initially replaced Image component with image-preview, but the onClick method is buggy. It responds to clicks but nothing will be shown. Still need to debug.