Commit Graph

629 Commits

Author SHA1 Message Date
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
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
Jonathan Rainville 1e12636abd test(StatusTextMessage): add objectName for test 2022-08-22 13:48:24 -04:00
Michał 89049fd56b
fix(StatusTabButton): display hand cursor on hover when enabled (#859)
Needed for https://github.com/status-im/status-desktop/issues/6787
2022-08-22 14:35:36 +02:00
Michal Iskierko be24401a50 fix(Theme): Adding additional green color
Issue #6279
2022-08-22 13:44:40 +02:00
Stefan 8214e64684 fix(StatusChatListCategory): Clicking on a category should toggle it
The culprit here is at the very bottom, in StatusListItem: the toplevel
item was a MouseArea handling the clicks and this causes problems as any
extra buttons placed on top of it get their mouseClick events delivered
in wrong order (after StatusListItem). Fix this by having a MouseArea
handling click events behind the actual toplevel item as a last resort,
catch all handler  plus the actual "sensor" being just a MouseArea that
handles merely the hover events

- drop unneeded onPressed/onReleased handlers in StatusChatListCategoryItem
- fix some warnings (typos, unreachable code, shadowed variables)

Fixes: #6733
2022-08-22 12:29:24 +02:00
Igor Sirotin 6c107b5760
fix(StatusMessage): Design update and minor improvements (#752) 2022-08-20 03:01:28 +03:00
Sale Djenic a9c0c88101 feat: added missing icons
The following icons added:
- `key_pair_prvate_key.svg`
- `key_pair_seed_phrase.svg`
2022-08-18 16:40:58 +02:00
Sale Djenic b59295d56b feat(StatusListItem): scroll feature added if list of tags exceeds component width 2022-08-18 16:40:58 +02:00
Jonathan Rainville b9882c6ff6 test(StatusSearchPopup): add object name for tests 2022-08-18 09:12:11 -04:00
Igor Sirotin 72750ef60c
fix(StatusComboBox): Pointing hand cursor on hover (#862) 2022-08-18 15:07:16 +03:00
PavelS 9f6f9905e9
fix(StatusInput)!: trigger errors bindings (#858)
Change valid to false by default

Fixes https://github.com/status-im/status-desktop/issues/6825

BREAKING CHANGE: StatusInput now emits signal for errors change and is
invalid by default
2022-08-18 14:45:38 +03:00
Anthony Laibe a22d8252b1
feat(@StatusComboBox): expose inner objectName property (#850) 2022-08-18 10:55:09 +02:00
Jonathan Rainville 02bb67a266 test(StatusSearchPopup): add object names for tests 2022-08-16 09:35:19 -04:00
Stefan f15b0d4de4 fix(StatusChatListAndCategories): duplicate objectName
Due to repository automerge.
2022-08-16 11:47:47 +02:00
Stefan 8f06729c1a tests(StatusChatListAndCategories.qml) add object names for testing 2022-08-16 11:30:06 +02:00
MishkaRogachev c721a67c70 test(StatusChatListAndCategories): Add object names 2022-08-15 18:10:24 +04:00
PavelS b2e8a0e282
fix(StatusPopupMenu): update popup content to support big margins (#853)
Needed for https://github.com/status-im/status-desktop/issues/6822
2022-08-15 16:48:58 +03:00
PavelS 76cc5fda22
fix(StatusMenuItemDelegate): adjust menu item height (#852)
Needed for https://github.com/status-im/status-desktop/issues/6830
2022-08-15 12:53:44 +03:00
Sale Djenic e1d8d934b3 feat(StatusCheckbox): introduced new `leftSide` prop
- `leftSide` determines whether to display check box on the left or right
side, defaulted to left
2022-08-11 13:20:17 +02:00
Khushboo-dev-cpp 9fa6fb2324
fix(StatusColorSelectorGrid): Expose the Color Repeater for Squish testing (#847) 2022-08-11 12:58:09 +02:00
Patryk Osmaczko ce22d8759c fix(StatusIconTextButton): make icon invisible when no icon is loaded
Otherwise this button has invisible left padding when no icon is set
2022-08-10 14:43:28 +02:00
Patryk Osmaczko 91cafca41f fix(StatusToolTip): remove contentItem by id usage
Otherwise contentItem can't be safely overriden by the clients
2022-08-10 14:43:28 +02:00
Patryk Osmaczko 151097e466 feat: add social link icons 2022-08-10 14:43:28 +02:00
PavelS 7fc207f75f
fix(StatusImageCropPanel) add margins to crop area (#848)
Needed for status-im/status-desktop#6835

Required by status-im/status-desktop#6872
2022-08-10 13:58:52 +03:00
MishkaRogachev caaa2fc53b fix(StatusCommunityTags): fix width calculation 2022-08-10 12:07:32 +03:00
PavelS 98aa6a4b27
fix(StatusTabButton) adjust tab button height (#842)
Needed by https://github.com/status-im/status-desktop/issues/6786
2022-08-09 18:27:15 +03:00