status-desktop/ui
Pascal Precht c6c9bc6a32 feat(StatusPopupMenu): add support for letter identicons, identicons and images
This extends the popup menu to accept image or icon configurations a la `StatusIconSettings`
and `StatusImageSettings` in menu items, as well as nested menus.

Usage:

```qml
StatusPopupMenu {

    StatusMenuItem {
        text: "Custom Image icon"
        image.source: // image source
    }

    StatusMenuItem {
        text: "Custom identicon icon"
        image.source: // identicon source
        image.isIdenticon: true
    }

    StatusMenuItem {
        text: "Custom letter identicon"
        iconSettings.isLetterIdenticon: true
        iconSettings.background.color: "red"
    }
}
```

Few things to note:

- Because `StatusMenuItem` is an `Action` type, we can't extend its `icon` property,
  so we have to introduce our own (`iconSettings`) which can be of type `StatusIconSettings`
- Where possible, `StatusPopupMenu` will prefer `iconSettings.[...]` over `icon.[...]`,
  which means, both would work: `icon.name` and `iconSettings.name`.
  This is for consistency's sake. Consumers can switch completely to `iconSettings` if desired.
- When `isLetterIdenticon` is true, `iconSettings.background.color` must be set, similar
  to how it work in any other StatusQ component that makes use of this configuration type.

Closes #263
2022-09-21 18:20:03 +02:00
..
StatusQ feat(StatusPopupMenu): add support for letter identicons, identicons and images 2022-09-21 18:20:03 +02:00
app fix(Createchat/EditGroupChat view): fixed spacing all over 2022-09-21 17:39:51 +03:00
fonts fix(cpp): make libraries which are not dynamically loaded static 2022-08-02 15:30:08 +02:00
i18n chore(translations): update translations 2022-09-13 12:51:33 +02:00
imports feat(PinnedMessagesPopup): enable Unpin context menu entry 2022-09-21 10:48:20 +02:00
shared/status refactor(@desktop/general): qml code referring to the old code base commented out 2022-02-01 11:42:42 +01:00
generate-rcc.go chore(CPP): foundation for user onboarding 2022-07-07 23:23:09 +02:00
main.qml fix(@desktop/onboarding): use system theme while onboarding 2022-09-02 16:17:43 +03:00
nim-status-client.pro feat(CreateCommunityPopup): Add Community Banner to Create Community Modal 2022-08-18 10:15:04 +02:00