Commit Graph

11 Commits

Author SHA1 Message Date
Pascal Precht 4bb4708528 refactor: move `SearchBox` to ui/shared/controls 2021-10-14 12:51:27 -04:00
Pascal Precht 322a071aa3 refactor: move `SVGImage` to ui/shared/panels 2021-10-14 12:51:27 -04:00
Alexandra Betouni 4ee21ada05 feat(desktop) Added image function in Style
Introduced Style.svg() Style.png() Style.emoji() and
Style.icon() in Style.qml. Those should be used to
set the source in Images instead of using relative
paths. Usage:
Image {
   source: Style.svg("check)
   ....

Also moved all Singletons inside a new "utils"
folder and made it a QML module, to use
import utils 1.0 instead of relative paths

Closes #3678
2021-09-28 15:28:00 -04:00
Eric Mastro 3dcf9cc38c fix(chat): GIF widget UI bugs
Fixes: #3564.

Several UI bug fixes have been made for the gif widget:

1. Star now only appears once the gif is hovered
2. Default hover star colour is “grey”
3. Once the star is hovered, the star turns yellow
4. If the gif is favourited, the star fills in yellow
5. Removed square border around the gif
6. Added invisible padding around the star to increase the mouse surface area for hover/click
7. Added tooltip to the star for adding/removing from favourites

NOTE:
1. An initial attempt at changing star state based on gif thumb hover and star hover proved unsuccessful. Changing visibility of the star had to depend on both the hover state of the thumb AND the star — relying on only the thumb hover caused a flicker.
2. Relying on the local hover state of the star and the thumb hover state caused inconsistencies where the hover state of the star would become true after not being hovered. I’m still unsure as to why this was happening. A workaround was to create a signal to a HOC as to the last hovered gif id. From there, we could rely on matching `model.id` to the last hovered gif id in the HOC.
2021-09-23 15:33:07 -04:00
Anthony Laibe 14c4ee6047 fix(@desktop/chat): Reopening gif popup open trending
fixes #3491
2021-09-20 12:11:54 -04:00
Anthony Laibe c5fb6d4853 fix(@desktop/gif): fix background color on dark mode
fixes #3563
2021-09-20 10:41:10 -04:00
Anthony Laibe 5f95a1fb4f feat(@desktop/chat): Allow to retry when query fail
fixes #3487
2021-09-20 10:21:55 -04:00
Anthony Laibe ee84818c06 feat(@desktop/chat): Save favorites and recents gif 2021-08-10 15:31:19 +02:00
Anthony Laibe b21e1d87c0 feat(@desktop/chat): Style gif widget component 2021-08-03 16:42:05 -04:00
Anthony Laibe c5051d4d4f feat(@desktop/chat): display gif with 3 columns 2021-08-03 16:42:05 -04:00
Anthony Laibe 58506fbd97 feat(@desktop/chat): Display gif popup next to emoji 2021-07-23 15:27:56 -04:00