Commit Graph

751 Commits

Author SHA1 Message Date
Michał 2c43dbb207
feat(StatusMessage): add 'hideMessage' property to allow hiding main message text (#916) 2022-09-21 10:30:21 +02:00
Lukáš Tinkl 3202294a11 fix(StatusChatInfoButton): fix vertical title alignment
do not display the subtitle when it's empty
2022-09-20 11:49:42 +02:00
Michał d892a84227
fix(StatusBaseButton): font family and weight fixed (#908) 2022-09-19 22:08:49 +02:00
MishkaRogachev ea5c83710b hotfix(StatusSectionLayout): fix notificationCount availability 2022-09-19 17:59:27 +03:00
Michal Iskierko a94d9338bf fix(StatusMessageSenderDetails): Simplify StatusMessageSenderDetails
StatusMessageSenderDetails contains only displayName and secondaryName.
Correct values are delivered by a model.

Issue #7241
2022-09-19 11:22:52 +02:00
Lukáš Tinkl 7d96b2d4c1 fix(StatusPinMessageDetails): correct spacing
Fixes status-im/status-desktop#7305
2022-09-16 11:40:08 +02:00
Patryk Osmaczko 9135b90ada fix(StatusBaseButton): align text to horizontal center 2022-09-16 09:44:53 +02:00
Lukáš Tinkl fa3ba834e2
fix(StatusListItem): unbreak vertical alignment 2022-09-16 09:40:58 +02:00
Lukáš Tinkl 27acdd959b
hotfix: fix broken notification-muted icon 2022-09-15 14:54:57 +02:00
Alexandra Betouni f79cf81db2
fix(StatusChartPanel): updated left spacing (#907) 2022-09-14 18:43:42 +03:00
Alexandra Betouni 865fee22b8 fix(StatusChartPanel): fix #893 PR comments 2022-09-14 17:08:22 +02:00
Igor Sirotin d02fea1cd3
fix(StatusColorRadioButton): Fixed size as per design (#732) 2022-09-14 16:11:30 +03:00
Alexandra Betouni 524a86b0cc
feat(StatusChart): Adding chart component (#893)
Needed for https://github.com/status-im/status-desktop/issues/6490
2022-09-14 14:21:59 +03:00
Sale Djenic 1dc5592636 feat(StatusPinInput): additional spacing for every N-th digit
Two new props exposed so we can sed an extra spacing for every N-th item.
- `additionalSpacingOnEveryNItems` - determines for which item to add an extra space
- `additionalSpacing` - determines the value of extra space which will be added
2022-09-14 13:13:14 +02:00
Michał ef5f8746d5
chore(StatusItemSelector): allow of using icons (#897) 2022-09-14 13:03:49 +02:00
Lukáš Tinkl 9a24d59ea8 fix(StatusChatInfoButton): pinned messages counter
- fix the "pinned messages" counter, add plural handling (Fixes #899)
- modernize using layouts (Fixes #898)
- add some more examples
2022-09-14 09:24:30 +02:00
PavelS e17088304b
fix(StatusMessage): adjust text alignment (#901)
Fixes https://github.com/status-im/status-desktop/issues/7301
2022-09-13 16:33:32 +03:00
Lukáš Tinkl 1381b1bd15 hotfix: unbreak "pointing hand" cursor
turns out we can indeed have only one MouseArea to handle both the cursor
and intercepting the event in the "loading" state
2022-09-13 10:07:29 +02:00
Alexandra Betouni f89b0a8c6f feat(StatusBaseButton)!: Converting to QQC2 Button
Closes #782
2022-09-12 19:19:07 +02:00
Patryk Osmaczko b1025fabd7 feat(StatusChatListItem): add online badge 2022-09-12 10:17:45 +02:00
Igor Sirotin efc5be38bd
fix(StatusMessageEmojiReactions): Fixed emoji reactions appearance (#889) 2022-09-10 11:22:12 +08:00
Khushboo-dev-cpp c3bbb396ec
fix(StatusExpandableItem): Added new padding for Tertitary type expandable item, a flag to set separator to visible true or false (#896) 2022-09-09 19:29:05 +02:00
Pascal Precht 21f1c4ce52 feat(StatusMessage): add support for `messageAttachments`
Prior to this commit, a `StatusMessage` can hold only a single
`messageImage`.

There will be scenarios where messages can have multiple attachments.
This is the case when importing messages from discord.
Hence, this commit introduces a new `messageAttachments` property which
is a whitespace separated list of attachment URLs (very analogous to the
already existing `linkUrls` property).

For now, we can safely assume these URLs will resolve to image content.
In future versions however, we might want to support additional content
types to handle any byte stream.
We will then change `messageAttachments` from `string` to a list model
that holds `attachment`s where we also have access to its `contentType`.
This will allow us to decide at runtime which component should be used
to view/play the attachment.
2022-09-09 10:35:30 +02:00
Khushboo-dev-cpp 7108ac87cf
feat(StatusListItem): Added new properties to handle inline tags needed in the wallet section (#879) 2022-09-09 00:03:28 +02:00
Lukáš Tinkl 384924ce58 fix: StatusDateGroupLabel doesn't support i18n and has no year
- fix evaluating "Today" and "Yesterday"; can't just compare the two Date
objects, the timestamp will always differ so need to compare
year/month/day only
- best attempt to have the month translated, and year added if they
differ (until Qt6 at least, left a TODO)

Closes #843
2022-09-08 13:21:01 +02:00
Sale Djenic 8c683bf83c feat(Controls): introduce `StatusPasswordInput`
`StatusPasswordInput` is a wrapper around  `TextField` with an option
to display signing phrase.
2022-09-08 13:03:04 +02:00
Michał f6424328d8
feat(StatusItemSelector): improved reusablity, addItem and popup handling removed (#887)
Additionally:
- minor positioning fixes in StatusListItem and StatusListItemTag
- StatusItemSelectorPage updated and added to main.qml
2022-09-08 11:06:25 +02:00
PavelS 60137c39b5
fix(StatusListItem): adjust placement of title icons (#888)
Needed for https://github.com/status-im/status-desktop/issues/6972
2022-09-07 19:28:52 +03:00
Pascal Precht 4d16ac17a8 fix(StatusBaseButton): fix wrong id usage 2022-09-07 15:15:05 +02:00
Pascal Precht 504053a6bf fix(StatusBaseButton): keep `MouseArea` enabled when in `loading` state
`StatusBaseButton` comes with a `MouseArea` that is disabled when the
button is set to being disabled. Prior to this commit it's *also* disabled
when the button is in `loading` state.

This makes sense because a button that is in `loading` state shouldn't
not emit any click signals or trigger hover indications.

There's a scenario though in which we want render a tooltip on top of
the button which is in `loading` state. For the tooltip to show, the
`MouseArea` of the button needs to be enabled.

Hence, this commit adjust `StatusBaseButton`'s behaviour to *not*
disable the `MouseArea` when it's `loading`. Mouse events are already
prevented via the `loading` flag. So the only thing left to do is to
ensure the button doesn't trigger any hover indication when in `loading`
state.
2022-09-07 13:49:18 +02:00
Pascal Precht fc10a0d43d feat(StatusMessageReply): introduce `profileClickable` property
This is analogue to `profileClickable` available on `StatusMessage`,
preventing users to activate a reply-to-message's profile avatar.

At the time of this commit, this is only the case for imported messages.
So we can derive that, if `StatusMessage.profileClickable` is false, then
`StatusMessageReply.profileClickable` is also false.

Hence, we don't need to expose this property to higher level APIs.
2022-09-06 11:24:19 +02:00
Stefan 3b6a6067af fix(StatusSelect): set implicitWidth to the content size 2022-09-05 12:14:56 +02:00
Patryk Osmaczko f1d7bdb069 fix(StatusTagSelector): forbid removing readonly tags 2022-09-05 12:06:28 +02:00
Lukáš Tinkl 32db0bb023 fix(StatusRadioButton): StatusRadioButton can't be fully clicked
- fix the control's width (don't have to be explicit, the QQC2 Control
takes care of calculating the implicitWidth/Height automatically based on
contents)
- while at it, fix the metrics to be able to support RTL
languages too (it was off for Arabic)
- some smaller cleanups too
2022-09-05 09:35:20 +02:00
Lukáš Tinkl 9688113d7f fix: remove duplicate entries 2022-09-05 09:35:20 +02:00
Alexandra Betouni 98d0d2163e
feat(StatusQ): Merging Icon, Background and Image Settings (#788)
Closes #781
2022-09-02 18:40:30 +03:00
Alexandra Betouni e146ccaed4
fix(StatusScrollBar): Fixed visibilty when policy always on (#878)
Needed for https://github.com/status-im/status-desktop/issues/6262
2022-09-02 15:49:08 +03:00
PavelS 5e7a0d8251
fix(StatusSelectableText): add missing Utils import (#880) 2022-09-02 14:51:16 +03:00
Alexandra Betouni ecc44cfae0
feat(StatusQ/Layout)!: Cleaning up Layouts for consistency (#836)
- Created StatusMainLayout to be used as the apps' main
  layout
- Created StatusSectionLayout to be used for all sections as
  their base
  - Created StatusToolBar as part of StatusAppLayout with
    standard component the ActivityButton and posibility to
    add custom implementation components

Needed for https://github.com/status-im/status-desktop/issues/6635
2022-09-02 10:25:43 +03:00
Pascal Precht ad8bc322d1 feat(StatusMessage): introduce `profileClickable` property
This property allows for enabling/disabling whether or not the profile
picture and display name of a message is clickable and also dictates the
cursor type accordingly.

The reason this is being introduced is that, with imported messages from
other systems (e.g. discord, telegram etc), we don't want the user to
trigger the popup menu for more profile information because we don't
know any profile information of messages coming from such systems.

Such messages are signed by the community.

Closes https://github.com/status-im/status-desktop/issues/6680
2022-09-01 14:40:25 +02:00
PavelS 80a9cc9b3f
feat(Icons): add quote icon (#876)
Needed for https://github.com/status-im/status-desktop/issues/6988
2022-08-31 17:43:12 +03:00
Michał 803a7637bf
fix(StatusImageCropPanel): display SizeAllCursor cursor when over image (#864) 2022-08-31 15:36:23 +02:00
MishkaRogachev 4d9cec541f fix(StatusChatListCategory): Add alias to category item for squish tests 2022-08-31 14:29:35 +03:00
PavelS 4d73c25c7a
feat(StatusScrollView): add ensureVisible function to Utils (#868)
Replace local ensureVisible with ensureVisible function from Utils

Required for https://github.com/status-im/status-desktop/issues/7093
2022-08-31 11:19:20 +03:00
Michał 8646daa401
chore(StatusAppNavBar): List views' bounds behavior refined (#866)
- outer list: not draggable
- communities list: not draggable when sufficient space,
  drag and overshot otherwise
2022-08-26 18:04:17 +02:00
Noelia db0f8e9fb5 feat(StatusItemPicker): Added `radioButtonSize` property
Added properties `namePixelSize` and `radioButtonSize`.
Some fixes when shortName is undefined.
2022-08-26 17:27:02 +02:00
Noelia 9d6cea7051 feat(StatusRadioButton): Added size variant `Large` and `Small` 2022-08-26 17:27:02 +02:00
Pascal Precht 780ade987d feat(StatusMessage): add `messageOriginInfo` property
This is a property that allows for adding information about the origin
of a message (e.g. "Imported from discord").

This will most likely be only useful for messages that have been
imported from any other platform.

Because importing from other platforms requires those message to be
signed by a Status Account, it's undesirable to render the public key of
the account that signed imported messages.

Hence, when there's a `messageOriginInfo`, we don't render the elided
public key.
2022-08-26 13:11:19 +02:00
Igor Sirotin fd6d735df8
test(StatusMessage): Added objectName to `StatusTextMessage` (#869) 2022-08-25 23:30:05 +03:00
Jonathan Rainville 4d63af303c test(StatusChatInfoButton): add objectName to pin text for tests 2022-08-24 10:08:17 -04:00