platform/core/uifw/dali-toolkit.git
3 years ago[ATSPI] Fix for DefaultLabel 23/267323/8
Lukasz Oleksak [Wed, 1 Dec 2021 11:51:36 +0000 (12:51 +0100)]
[ATSPI] Fix for DefaultLabel

This patch:

* replaces usage of existing API AddPopup()/RemovePopup() by RegisterDefaultLabel()/UnregisterDefaultLabel() which has wider applicability (not only for popups)
* extends test utils to allow write tests that emit window:activate / window:deactivate events

Related patches:
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/267321/

Change-Id: Ibae793c10d2f29fdd4af32fc69d518e247b54633

3 years agoMerge "Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the...
Bowon Ryu [Wed, 15 Dec 2021 09:04:49 +0000 (09:04 +0000)]
Merge "Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup/restore of fields in visual-model." into devel/master

3 years agoFix svace issue on text-geometry (unsigned int < 0) 20/268020/1
Eunki, Hong [Wed, 15 Dec 2021 02:48:46 +0000 (11:48 +0900)]
Fix svace issue on text-geometry (unsigned int < 0)

CharacterIndex type is unsigned int. So it cannot be negative

Change-Id: I9f9c6868f103ee45695a4fd87dc4cafd0819f471
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoDoAction can chage CornerRadius/Borderline/BlurRadius 25/267825/5
Eunki, Hong [Fri, 10 Dec 2021 06:45:14 +0000 (15:45 +0900)]
DoAction can chage CornerRadius/Borderline/BlurRadius

we can update properies by DoAction(DevelVisual::Action::UPDATE_PROPERTY).
It is not an usual case, but we may need to prepare of NUI code fix.
(There is some related issue at NUI ImageView)

Here, I update some properies that need to update shader.
We don't want to change the shader many times.
(ex : DoAction with CornerRadius = 1.0f, and DoAction 0.0f after that, and repeat.)
So if someone update properies by DoAction API, turn on
mAlwaysUseXXX = true so shader will not be previous shader anymore.
(This is same logic when these properies are animated.)

Change-Id: I963930f261982d50bd647e4ba7ed4e476dd8898d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoFix const table size bug in button + Erase annoying message 87/267587/2
Eunki, Hong [Tue, 7 Dec 2021 11:37:48 +0000 (20:37 +0900)]
Fix const table size bug in button + Erase annoying message

Fix unmatched const static table value in button-impl.cpp
+
Remove annoying error message when we change button visual

Change-Id: I97acc25b73395799bef46a03a09739a6708359da
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoMerge "Add support for text geometry" into devel/master
Bowon Ryu [Mon, 13 Dec 2021 03:49:30 +0000 (03:49 +0000)]
Merge "Add support for text geometry" into devel/master

3 years agoMerge "Cache for the synchronous loading." into devel/master
Seungho BAEK [Fri, 10 Dec 2021 13:26:41 +0000 (13:26 +0000)]
Merge "Cache for the synchronous loading." into devel/master

3 years agoDALi Version 2.1.2 52/267852/1 dali_2.1.2
Richard Huang [Fri, 10 Dec 2021 11:58:43 +0000 (11:58 +0000)]
DALi Version 2.1.2

Change-Id: Ie5ce75faddc5f04c4d1a13c326deb160281d6343

3 years agoCache for the synchronous loading. 41/267041/24
seungho [Wed, 24 Nov 2021 11:06:06 +0000 (20:06 +0900)]
Cache for the synchronous loading.

Change-Id: Id793b3bcb72639d3c7a163196e29bdcf7d94718e
Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years agoAdd support for text geometry 91/266891/17
abdullah [Mon, 22 Nov 2021 07:10:51 +0000 (09:10 +0200)]
Add support for text geometry

Added the following requested API's for text  geometry :

GetTextSize();
GetTextPosition();

above API's could return a list of values in case of :
1-multiline, each line in a separate value.
2-mixed text of LTR & RTL, each contiguous block of the same direction has a separate value.

note that above API's returns values based on the current rendered text position/size.

Change-Id: I1ee9d26954d529bb81c72647dbc9f09ccc8e35ac

3 years agoSet FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup... 55/264455/8
Shrouq Sabah [Mon, 20 Sep 2021 11:17:14 +0000 (14:17 +0300)]
Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup/restore of fields in visual-model.

This solved some issues happen after calling GetNaturalSize/GetHeightForWidth or after initialization when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE

1) Fixing the issue where characters were being drawn at the same location whenever GetNaturalSize was called.
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/253286
2) Side effect on Scrolling, LineWrap and Invalid position of cursor in TextEditor after calling GetNaturalSize or GetHeightForWidth.
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/255379
3) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor then insert/remove characters from 2nd line in it after initialization
4) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor and select_text at initialization then cut it after initialization
5) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor then double enter in it after initialization
6) Incorrect NaturalSize after the second call for GetNaturalSize. This issue in TextLabel when call GetNaturalSize, then set MULTI_LINE, then re-call GetNaturalSize with Text has break-line

Change-Id: Ieea984f41a218c62e016baa60156b51e985f2fc0

3 years agoMerge "DALi Version 2.1.1" into devel/master
David Steele [Fri, 3 Dec 2021 14:04:01 +0000 (14:04 +0000)]
Merge "DALi Version 2.1.1" into devel/master

3 years agoDALi Version 2.1.1 39/267439/1 dali_2.1.1
David Steele [Fri, 3 Dec 2021 13:57:36 +0000 (13:57 +0000)]
DALi Version 2.1.1

Change-Id: Ib2820c8760eba1bb69c38390c0850712b77bcff5

3 years agoMerge "Fix svace issue at control/text-anchor-impl" into devel/master
David Steele [Fri, 3 Dec 2021 11:40:59 +0000 (11:40 +0000)]
Merge "Fix svace issue at control/text-anchor-impl" into devel/master

3 years agoScaledown image when visual is bigger than n-patch fixed length 26/267326/3
Eunki, Hong [Wed, 1 Dec 2021 12:02:20 +0000 (21:02 +0900)]
Scaledown image when visual is bigger than n-patch fixed length

When n-patch image's fixed length is bigger than visual size,
the visual's geometry breakdown.

This patch calculate good scales in vertex shader.

NOTE : We scaledown same rates both width and height. This action follow up CSS current action.

Change-Id: Ief2c6e6e2deb04dac36a1b9575e7bd620697d81d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoFix svace issue at control/text-anchor-impl 31/267431/2
Eunki, Hong [Fri, 3 Dec 2021 10:07:30 +0000 (19:07 +0900)]
Fix svace issue at control/text-anchor-impl

Initialize member value as zero.

Change-Id: If7b3073e6b75417bbb3b8c25764acb484ddefe2d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years ago[AT-SPI] Follow-up on mAccessibilityRelations 63/267163/6
Artur Świgoń [Fri, 26 Nov 2021 11:47:53 +0000 (12:47 +0100)]
[AT-SPI] Follow-up on mAccessibilityRelations

The previous implementation used an `std::vector` (the outer one) as a
map, with the `RelationType` key working as the index to that vector.
However, relations are rare in practice, and every `Control::Impl`
having a 23-element vector or vectors, most, if not all of which are
empty, feels like a waste of memory.

This patch also changes the inner vector to a set, which resolves the
previously unaddressed issue of duplicate elements.

Change-Id: I639082fe49e0f6107213cda5b142a09882a3be39

3 years agoFix text relayouter update issue 24/267224/1
Bowon Ryu [Tue, 30 Nov 2021 03:07:36 +0000 (12:07 +0900)]
Fix text relayouter update issue

When the size of the text control is 0,
there is a issue that the mRequestedNumberOfCharacters becomes 0
even if the actural text exists.

This patch avoids this issue by updating mNumberOfCharactersToAdd
in textUpdateInfo in that situation.

Change-Id: I440b39f846aa7c9c410a1d121dae7b8a63b811ae
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years agoMerge "[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations" into devel...
Seoyeon Kim [Mon, 29 Nov 2021 01:48:30 +0000 (01:48 +0000)]
Merge "[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations" into devel/master

3 years ago[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations 09/267109/2
Artur Świgoń [Thu, 25 Nov 2021 13:38:45 +0000 (14:38 +0100)]
[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations

This patch changes the relation's target type from
`Accessibility::Address` to `Accessibility::Accessible*`.
`AppendAccessibilityRelation()` does not allow to specify a remote
object anyway, because the parameter types are `Actor`s.

Moreover, the `Address` may be incomplete (specifically the
DBus-dependent part) if the above API is called too early. With this
change, the `Accessible::GetAddress()` call is postponed until the
relations are queried over DBus.

Change-Id: I881d7fb90eba79b6ba9752e913d113272485e29a

3 years agoDALi Version 2.1.0 46/267146/1 dali_2.1.0
Adam Bialogonski [Fri, 26 Nov 2021 08:41:08 +0000 (08:41 +0000)]
DALi Version 2.1.0

Change-Id: Iaa4df4a2e739ed89a6634c4943fdb98ce0ad2473

3 years agoRemoved some redundant methods from TextController & Moved some code to other files 50/267050/2
Adeel Kazmi [Wed, 24 Nov 2021 13:23:03 +0000 (13:23 +0000)]
Removed some redundant methods from TextController & Moved some code to other files

Change-Id: Ib57da54aa520a15f346e24be93e35a18caa0315b

3 years agoMerge "Fix svace issue at text-controller-impl.h" into devel/master
Eunki Hong [Wed, 24 Nov 2021 13:07:45 +0000 (13:07 +0000)]
Merge "Fix svace issue at text-controller-impl.h" into devel/master

3 years agoMerge "[ATSPI] Check parents to define SHOWING state" into devel/master
Shinwoo Kim [Wed, 24 Nov 2021 12:52:27 +0000 (12:52 +0000)]
Merge "[ATSPI] Check parents to define SHOWING state" into devel/master

3 years agoFix svace issue at text-controller-impl.h 20/267020/2
Eunki, Hong [Wed, 24 Nov 2021 07:46:14 +0000 (16:46 +0900)]
Fix svace issue at text-controller-impl.h

Minor fix

Change-Id: I25efe7abd36bc61303fe6ddbddd86a6b6c55a44a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoMerge "Remove return; statement at fragment shader" into devel/master
Adeel Kazmi [Tue, 23 Nov 2021 16:06:40 +0000 (16:06 +0000)]
Merge "Remove return; statement at fragment shader" into devel/master

3 years agoMerge "[ATSPI] Implementation of Hypertext and Hyperlink in text controls" into devel...
Seoyeon Kim [Tue, 23 Nov 2021 08:59:25 +0000 (08:59 +0000)]
Merge "[ATSPI] Implementation of Hypertext and Hyperlink in text controls" into devel/master

3 years ago[ATSPI] Check parents to define SHOWING state 78/266578/9
Shinwoo Kim [Mon, 15 Nov 2021 11:19:47 +0000 (20:19 +0900)]
[ATSPI] Check parents to define SHOWING state

It will not be SHOWING if an accessible has invisible parent in its ascendant.

This is necessary for the following case.
The NUI navigator has more than 2 pages, and the below page's controls have
SHOWING state without this patch.

Change-Id: I27a7a998154267a14c2aa295a48b48b9e2896520

3 years agoMerge "[ATSPI] do not send ROLE property changed event" into devel/master
Shinwoo Kim [Tue, 23 Nov 2021 07:31:42 +0000 (07:31 +0000)]
Merge "[ATSPI] do not send ROLE property changed event" into devel/master

3 years agoAdded appropriate @SINCE & @DEPRECATED aliases for DALi's 2.1 release & Tizen's 6... 27/266927/1
Adeel Kazmi [Mon, 22 Nov 2021 17:09:52 +0000 (17:09 +0000)]
Added appropriate @SINCE & @DEPRECATED aliases for DALi's 2.1 release & Tizen's 6.5 release

Change-Id: Icc5d8ce08b5967eb60afdc2654e17454876667d4

3 years ago[ATSPI] Implementation of Hypertext and Hyperlink in text controls 29/265529/20
Lukasz Oleksak [Thu, 30 Sep 2021 12:24:44 +0000 (14:24 +0200)]
[ATSPI] Implementation of Hypertext and Hyperlink in text controls

This patch exposes on dbus ATSPI Hypertext interface
for the following text controls: TextEditor, TextField and TextLabel.
Also it brings new class TextAnchor inheriting from Control which marks
the geometry of an anchor inside the text controls mentioned above and
which exposes on dbus ATSPI Hyperlink interface.

Change-Id: Ic46bcf7a3ddfe49b1723ebf8025fba6779fda05d

3 years agoRemove return; statement at fragment shader 94/266894/1
Eunki, Hong [Mon, 22 Nov 2021 07:42:19 +0000 (16:42 +0900)]
Remove return; statement at fragment shader

Some graphic driver doesn't support return statement at fragment shader's main.
This patch just above that case with same logic

Change-Id: I8011c722946aeac2611908020cd73bc7b6f9cf56
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years ago[ATSPI] do not send ROLE property changed event 92/266892/1
Shinwoo Kim [Mon, 22 Nov 2021 07:14:37 +0000 (16:14 +0900)]
[ATSPI] do not send ROLE property changed event

This patch is following the decision of the patch
https://review.tizen.org/gerrit/#/c/platform/upstream/elementary/+/79631/4/src/lib/elm_interface_atspi_accessible.c

To prevent unnecessary event.
No one is interest in this event.

Change-Id: I044ddeaf58db3010da827606f6fa83050050ec41

3 years agoMerge "Add a callback to get textfitted font size." into devel/master
joogab yun [Mon, 22 Nov 2021 06:40:15 +0000 (06:40 +0000)]
Merge "Add a callback to get textfitted font size." into devel/master

3 years agoMerge "[AT-SPI] Support for hidden text added" into devel/master
Seoyeon Kim [Mon, 22 Nov 2021 05:17:43 +0000 (05:17 +0000)]
Merge "[AT-SPI] Support for hidden text added" into devel/master

3 years ago(TextController/ScrollView) Reduced LOC 50/266850/5
Adeel Kazmi [Fri, 19 Nov 2021 12:20:32 +0000 (12:20 +0000)]
(TextController/ScrollView) Reduced LOC

 - TextController - Moved some methods to the Impl class
 - TextControllerImpl - Moved a lot of functionality outside of the class
 - ScrollView - Added a class which handles the properties

Change-Id: I69127a9bc3dbd3e892f1fe0019cac9ad41fc2f3e

3 years agoRefactoring ImageVisualShaderFactory::GetShader 96/265996/8
Eunki, Hong [Wed, 3 Nov 2021 13:02:00 +0000 (22:02 +0900)]
Refactoring ImageVisualShaderFactory::GetShader

There are two Intention this patch
1. Clean up GetShader params
2. Allow that native image also use visual features (a.k.a. RoundedCorner + Borderline)

Change-Id: I8b0cbd0a4c7c622268c90d3cbbbd345ae83dfa07
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoMerge "(Text Controller) Moved some input properties into a different class & some...
Adeel Kazmi [Thu, 18 Nov 2021 18:32:21 +0000 (18:32 +0000)]
Merge "(Text Controller) Moved some input properties into a different class & some functionality into impl" into devel/master

3 years agoMerge "DALi Version 2.0.53" into devel/master
Adeel Kazmi [Thu, 18 Nov 2021 14:15:20 +0000 (14:15 +0000)]
Merge "DALi Version 2.0.53" into devel/master

3 years agoDALi Version 2.0.53 77/266777/1 dali_2.0.53
Richard [Thu, 18 Nov 2021 12:00:02 +0000 (12:00 +0000)]
DALi Version 2.0.53

Change-Id: I48308ed392eb944d51206b5b31307f0b99beb178

3 years ago(Text Controller) Moved some input properties into a different class & some functiona... 40/266340/2
Adeel Kazmi [Wed, 10 Nov 2021 21:17:38 +0000 (21:17 +0000)]
(Text Controller) Moved some input properties into a different class & some functionality into impl

Change-Id: I4d2cbd392d305ccd2ee31972df132713ff5cc19c

3 years agoMerge "Fix alignment issues with field and editor." into devel/master
joogab yun [Thu, 18 Nov 2021 06:21:55 +0000 (06:21 +0000)]
Merge "Fix alignment issues with field and editor." into devel/master

3 years agoMerge "Support Emoji sequences" into devel/master
Bowon Ryu [Thu, 18 Nov 2021 06:11:55 +0000 (06:11 +0000)]
Merge "Support Emoji sequences" into devel/master

3 years agoFix alignment issues with field and editor. 39/266739/2
joogab.yun [Thu, 18 Nov 2021 05:30:46 +0000 (14:30 +0900)]
Fix alignment issues with field and editor.

Change-Id: I4bf0c7dbad30ff74b6c5ed455db2f6b6f75b108d

3 years agoSupport Emoji sequences 47/266047/17
Shrouq Sabah [Wed, 3 Nov 2021 07:43:33 +0000 (09:43 +0200)]
Support Emoji sequences

This is a common solution that handles emoji sequences:
  :: text presentation sequence and selector
  :: emoji presentation sequence and selector
  :: emoji modifier sequence like skin tone
  :: emoji keycap sequence
  :: emoji flag sequence
  :: emoji tag sequence like England flag
  :: more cases in emoji zwj sequence like Rainbow Flag

This patch handle display cases.
The editing cases will be handled in another patch.

This patch depends on the dali-adaptor patch:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-adaptor/+/266046

Change-Id: I1bc7aed8a73b1d396019b2ef0a7fab5ea187d39f

3 years agoAdd a callback to get textfitted font size. 56/266656/3
joogab.yun [Mon, 15 Nov 2021 02:21:54 +0000 (11:21 +0900)]
Add a callback to get textfitted font size.

Change-Id: I1aea1a5d5b03a27c89feb709d4877369c29290bb

3 years ago[AT-SPI] Support for hidden text added 66/265666/34
Maria Bialota [Tue, 26 Oct 2021 17:43:01 +0000 (19:43 +0200)]
[AT-SPI] Support for hidden text added

- Modified AT-SPI API to not disclose the hidden text in returned values.
- Values returned instead are either empty string or replacement characters.

Change-Id: I6736a30ad70a45b77b0b4ac4b54c2a2c0072df25

3 years agoMerge "Fix: The last line of the text overlaps with the text-editor's border/edge...
Bowon Ryu [Tue, 16 Nov 2021 09:27:48 +0000 (09:27 +0000)]
Merge "Fix: The last line of the text overlaps with the text-editor's border/edge" into devel/master

3 years agofixed ellipsis position with multi line 93/266593/2
joogab.yun [Mon, 15 Nov 2021 06:45:05 +0000 (15:45 +0900)]
fixed ellipsis position with multi line

Change-Id: I2b2e47c307dab38770717bf483e302097ddbcf38

3 years agoMerge "[ATSPI] make ScrollToChild use descendant" into devel/master
Shinwoo Kim [Mon, 15 Nov 2021 11:40:56 +0000 (11:40 +0000)]
Merge "[ATSPI] make ScrollToChild use descendant" into devel/master

3 years agoDALi Version 2.0.52 79/266479/1 dali_2.0.52
Adeel Kazmi [Fri, 12 Nov 2021 10:48:36 +0000 (10:48 +0000)]
DALi Version 2.0.52

Change-Id: I263b610f85720c5f22ce490a17d4b05081f494df

3 years ago[ATSPI] make ScrollToChild use descendant 14/266414/2
Shinwoo Kim [Fri, 12 Nov 2021 01:46:10 +0000 (10:46 +0900)]
[ATSPI] make ScrollToChild use descendant

It is not make a child visible if the child is 1st generation child.
Usually the 1st generation child is content container.
So we need to use descendant.

This patch makes the CollectionView work with following change;
https://github.com/Samsung/TizenFX/pull/3726

We need to enhance this part and related places later.

Change-Id: I9e88312b7b1936909dc350cc1154f2a18e900748

3 years agoMerge "[ATSPI] Update accessibility-test-utils files" into devel/master
Seoyeon Kim [Wed, 10 Nov 2021 07:17:09 +0000 (07:17 +0000)]
Merge "[ATSPI] Update accessibility-test-utils files" into devel/master

3 years agoMerge "Adding theme for Raspberry Pi" into devel/master
David Steele [Tue, 9 Nov 2021 10:30:45 +0000 (10:30 +0000)]
Merge "Adding theme for Raspberry Pi" into devel/master

3 years agoAdding theme for Raspberry Pi 64/266164/1
David Steele [Mon, 8 Nov 2021 15:22:02 +0000 (15:22 +0000)]
Adding theme for Raspberry Pi

Change-Id: I9abb4298532e3184e976fe4869598b5fd05c5d69

3 years agoFix alignment issues in backgroundActor. 59/266159/1
joogab.yun [Mon, 8 Nov 2021 10:35:45 +0000 (19:35 +0900)]
Fix alignment issues in backgroundActor.

Change-Id: I7fd58d1437a1118ab60568567e3613adcf0ab0c4

3 years agoMerge "CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer" into devel...
junsu choi [Mon, 8 Nov 2021 05:45:50 +0000 (05:45 +0000)]
Merge "CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer" into devel/master

3 years agoMerge "Support multiple transitions for a Control." into devel/master
Seungho BAEK [Mon, 8 Nov 2021 02:47:39 +0000 (02:47 +0000)]
Merge "Support multiple transitions for a Control." into devel/master

3 years ago[ATSPI] Update accessibility-test-utils files 79/265679/5
Seoyeon Kim [Wed, 27 Oct 2021 06:10:47 +0000 (15:10 +0900)]
[ATSPI] Update accessibility-test-utils files

- Set 'true' to Accessibility::Accessible::Get() for the first time

- This patch should be merged together with dali-adaptor one :
  https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/264762/

Change-Id: I95034fce30d391942d24d3a0be10d21f04bb64b6
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
3 years agoSupport multiple transitions for a Control. 22/265822/6
seungho [Fri, 29 Oct 2021 07:04:54 +0000 (16:04 +0900)]
Support multiple transitions for a Control.

 - If a Control has multiple transitions, the Control must be hidden durring only the minimum delay of the transitions.
 - During delay time, the transitioned property of the Control will be set to the source value.

Change-Id: If158d01511b373edaad59b5e288bc33e5adde9bb
Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years agoMerge "DALi Version 2.0.51" into devel/master
Adeel Kazmi [Fri, 5 Nov 2021 10:49:37 +0000 (10:49 +0000)]
Merge "DALi Version 2.0.51" into devel/master

3 years agoDALi Version 2.0.51 82/266082/1 dali_2.0.51
Adeel Kazmi [Fri, 5 Nov 2021 10:44:12 +0000 (10:44 +0000)]
DALi Version 2.0.51

Change-Id: I657554cccea1b9c262bdd8dd60a04a459a523947

3 years agoMerge "Move ModelUpdating method outside of Text::Controller::Impl class to reduce...
Adeel Kazmi [Fri, 5 Nov 2021 09:57:57 +0000 (09:57 +0000)]
Merge "Move ModelUpdating method outside of Text::Controller::Impl class to reduce LOC" into devel/master

3 years agoMove ModelUpdating method outside of Text::Controller::Impl class to reduce LOC 48/266048/1
Adeel Kazmi [Thu, 4 Nov 2021 18:19:06 +0000 (18:19 +0000)]
Move ModelUpdating method outside of Text::Controller::Impl class to reduce LOC

Change-Id: Id4e4c47793b3e37ef999b0014403d3d30f2b77e8

3 years agoFix text visual issue 04/266004/3
Heeyong Song [Thu, 4 Nov 2021 02:21:04 +0000 (11:21 +0900)]
Fix text visual issue

uTextColorAnimatable property should always be registered.

Change-Id: I3ffbccc896f6abe4665a6f133b5be22df64df043

3 years agoMerge "Fix text constraint issue" into devel/master
Heeyong Song [Wed, 3 Nov 2021 05:27:34 +0000 (05:27 +0000)]
Merge "Fix text constraint issue" into devel/master

3 years agoCanvasView: Do ApplyNativeFragmentShader for NativeImage buffer 74/265874/3
JunsuChoi [Mon, 1 Nov 2021 06:52:20 +0000 (15:52 +0900)]
CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer

Change-Id: I916af0c85333a53d8c22063522c53c010d503b21

3 years agoFix text constraint issue 65/265865/2
Heeyong Song [Mon, 1 Nov 2021 05:54:57 +0000 (14:54 +0900)]
Fix text constraint issue

Not to create new Constraints when the visual is added to the Scene again

Change-Id: I19d30064d9f8cd08ca500a5ad2dee17b4b775b5a

3 years agoRefactored text editor/field to reduce loc 46/265846/1
David Steele [Fri, 29 Oct 2021 13:18:26 +0000 (14:18 +0100)]
Refactored text editor/field to reduce loc

Change-Id: I408f8931071c6c4464ba3dafb00e36311d01379c
Signed-off-by: David Steele <david.steele@samsung.com>
3 years agoRefactored text field/editor property getters/setters 96/265796/2
David Steele [Thu, 28 Oct 2021 18:18:58 +0000 (19:18 +0100)]
Refactored text field/editor property getters/setters

Change-Id: Iab27acf2f198af060d3eee398b9874116ff7e562

3 years agoDALi Version 2.0.50 30/265830/1 dali_2.0.50
David Steele [Fri, 29 Oct 2021 09:06:01 +0000 (10:06 +0100)]
DALi Version 2.0.50

Change-Id: I7a4514833e041b15e4f638009762739f913e187a

3 years agoCanvasView: Refactoring to get rasterized buffer 19/265519/7
JunsuChoi [Thu, 21 Oct 2021 08:46:12 +0000 (17:46 +0900)]
CanvasView: Refactoring to get rasterized buffer

When the rasterized buffer is fetched after the task is rasterized,
it is received as a texture, not as pixel data.
This makes the buffer in dali-adaptor not dependent on whether
to use NativeImageQueue's tbm_surface or PixelData.

Change-Id: I80338ea2454847ce88a8f79fa67e38a842cf67f2

3 years agoMerge "(TextController) Reformatted to reduce LOC" into devel/master
Adeel Kazmi [Tue, 26 Oct 2021 18:53:23 +0000 (18:53 +0000)]
Merge "(TextController) Reformatted to reduce LOC" into devel/master

3 years agoMerge "Fix numeric error on BLUR_RADIUS" into devel/master
Adeel Kazmi [Tue, 26 Oct 2021 15:11:18 +0000 (15:11 +0000)]
Merge "Fix numeric error on BLUR_RADIUS" into devel/master

3 years ago(TextController) Reformatted to reduce LOC 47/265547/3
Adeel Kazmi [Thu, 21 Oct 2021 22:32:31 +0000 (23:32 +0100)]
(TextController) Reformatted to reduce LOC

Change-Id: Idaf7745fb13fa60864fa6f1dd39c1558a8d942f1

3 years agoFix numeric error on BLUR_RADIUS 55/265655/2
Eunki, Hong [Tue, 26 Oct 2021 09:14:26 +0000 (18:14 +0900)]
Fix numeric error on BLUR_RADIUS

Some device cannot calculate 1.0 / (sqrt(D) + B);
So we make mediump to highp.

Change-Id: I5c50a70fdef748daca6452333ced8e21c7e66e19
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoMake to use Size of source for transition. 18/265618/2
seungho [Mon, 25 Oct 2021 08:46:37 +0000 (17:46 +0900)]
Make to use Size of source for transition.

 - currently GetCurrentProperty is used to get size of source.
 - but, when source is a control to be transitioned, it could be 0, 0, 0.

Change-Id: Ic91c83afa7ee08a9acfb152b5078af115667ae9b
Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years agoMake transition select target control during pair transition 11/264711/33
Seungho Baek [Tue, 28 Sep 2021 07:29:26 +0000 (16:29 +0900)]
Make transition select target control during pair transition

Change-Id: I87c868572b67dab4ad3289299599ebb3d25104da
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
3 years agoMerge "DALi Version 2.0.49" into devel/master
Adeel Kazmi [Fri, 22 Oct 2021 11:25:44 +0000 (11:25 +0000)]
Merge "DALi Version 2.0.49" into devel/master

3 years agoDALi Version 2.0.49 81/265581/1 dali_2.0.49
Adam Bialogonski [Fri, 22 Oct 2021 10:25:04 +0000 (11:25 +0100)]
DALi Version 2.0.49

Change-Id: Ic7ad4811047b1e2577b4d3ad6dcdaa1f2aef0d63

3 years agoFix LogMessage format to print Filename / Functioname / Line 40/265540/3
Eunki, Hong [Thu, 21 Oct 2021 13:39:23 +0000 (22:39 +0900)]
Fix LogMessage format to print Filename / Functioname / Line

Add LogMessageDlogFormat macro to apply these informations :
Filename: Function(Line#) > "messages"

Previous LogMessage function always print like this
logging-tizen.cpp: LogMessage(38) > "messages"
So we fix to print actual informations

Default LogMessage(~~) will be used when someone don't need to follow up
Dlog format. (like ttrace and perfomance logger)

Change-Id: Ifa77b921bcb189165114c5b1e08a18175abd939d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years ago(ScrollView) Inlined one line Getters/Setters 42/265542/2
Adeel Kazmi [Thu, 21 Oct 2021 13:56:34 +0000 (14:56 +0100)]
(ScrollView) Inlined one line Getters/Setters

Change-Id: I3cc366fd1b54942dcc3293f79302ed150288e83b

3 years ago(ScrollView) Moved constraint related behaviour into a new class 41/265541/3
Adeel Kazmi [Thu, 21 Oct 2021 13:46:01 +0000 (14:46 +0100)]
(ScrollView) Moved constraint related behaviour into a new class

Change-Id: Id55340b53b62f895a4a48bc53674ba3bbd85d986

3 years agoRefactoring scroll-view-impl.cpp to reduce loc 46/265546/1
David Steele [Thu, 21 Oct 2021 16:53:19 +0000 (17:53 +0100)]
Refactoring scroll-view-impl.cpp to reduce loc

Change-Id: I7699976711d4a9ab24092ca8f07106e524409b63

3 years agoFix: The last line of the text overlaps with the text-editor's border/edge 78/265378/3
Shrouq Sabah [Sun, 17 Oct 2021 14:09:35 +0000 (17:09 +0300)]
Fix: The last line of the text overlaps with the text-editor's border/edge

This issue appears when ellipsis with start position is used with a large font.

textEditor.SetProperty(TextEditor::Property::POINT_SIZE, 25);
textEditor.SetProperty(Dali::Toolkit::DevelTextEditor::Property::ELLIPSIS, true);
textEditor.SetProperty(Dali::Toolkit::DevelTextEditor::Property::ELLIPSIS_POSITION, Dali::Toolkit::DevelText::EllipsisPosition::START);

Solution: Fixed early exit of loop that shift lines to up if ellipsis and multi lines and set ellipses of first line to true.

Change-Id: Ib08ee17309058bc006c0bd3867c00a10745407bc

3 years agoMerge "Change RegisterGlCallback function name of GlView" into devel/master
Adeel Kazmi [Wed, 20 Oct 2021 08:03:19 +0000 (08:03 +0000)]
Merge "Change RegisterGlCallback function name of GlView" into devel/master

3 years agoMerge "Refactoring VisualActions" into devel/master
Seungho BAEK [Wed, 20 Oct 2021 05:56:02 +0000 (05:56 +0000)]
Merge "Refactoring VisualActions" into devel/master

3 years agoChange RegisterGlCallback function name of GlView 26/265426/1
Daekwang Ryu [Tue, 19 Oct 2021 05:54:59 +0000 (14:54 +0900)]
Change RegisterGlCallback function name of GlView

It is changed to RegisterGlCallbacks because the function registers 3
callbacks.

Change-Id: If326d9f325a5a861db2efd3a1f3d50262d678eae

3 years agoMerge "Sync test-application" into devel/master
Heeyong Song [Tue, 19 Oct 2021 00:50:50 +0000 (00:50 +0000)]
Merge "Sync test-application" into devel/master

3 years agoMerge "Fix ZWJ, ZWNJ issues" into devel/master
joogab yun [Tue, 19 Oct 2021 00:46:29 +0000 (00:46 +0000)]
Merge "Fix ZWJ, ZWNJ issues" into devel/master

3 years agoRefactoring VisualActions 88/265388/2
seungho [Mon, 18 Oct 2021 04:56:26 +0000 (13:56 +0900)]
Refactoring VisualActions

Change-Id: Id56e3a5e5910b2fbbb8428abd96897d7bcd10ae1
Signed-off-by: seungho <sbsh.baek@samsung.com>
3 years agoSync test-application 68/265268/2
Heeyong Song [Wed, 13 Oct 2021 10:28:08 +0000 (19:28 +0900)]
Sync test-application

Change-Id: If0e522e99b8d2050c2a526756793f893dc3d085c

3 years agoDALi Version 2.0.48 52/265352/1 dali_2.0.48
Richard Huang [Fri, 15 Oct 2021 09:44:01 +0000 (10:44 +0100)]
DALi Version 2.0.48

Change-Id: I31df501854f9ec2f2d8e74cb0febcc73f480d6c4

3 years agoSupport to use NPatchImage in brokenImage 72/260572/28
Sunghyun Kim [Tue, 29 Jun 2021 07:38:09 +0000 (16:38 +0900)]
Support to use NPatchImage in brokenImage

Support to use NpatchImage in broken Image.
Application can use custom broken image from this patch.
when they set 3 type of broken image(small,normal,large),
dali show the proper broken image considering size.

Change-Id: I7e2be85d4715d07356fd2782be2d011931fde5c2

3 years agoFix ZWJ, ZWNJ issues 45/264845/10
Bowon Ryu [Fri, 1 Oct 2021 04:20:55 +0000 (13:20 +0900)]
Fix ZWJ, ZWNJ issues

Current font load logic classifies ZWJ, ZWNJ as COMMON script.
This interrupts them from being combined into one emoji in the EMOJI + ZWJ + EMOJI case.

This patch treats ZWJ, ZWNJ as EMOJI script in this case,
so that they can be loaded with the same color emoji font.

Please refer the example below.
The expected result is to be combined into one emoji character due to ZWJ.
But the actual result is 3 characters rendered.

// example
TextLabel label = TextLabel::New("&#x1f469;&#x200d;&#x1f52c;");

Change-Id: Ic8e921ffcb63c27638afe781527b5c6b90aa92b1
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
3 years agoMerge "Syncing test files for photoshop blend modes" into devel/master
Adeel Kazmi [Fri, 8 Oct 2021 17:46:07 +0000 (17:46 +0000)]
Merge "Syncing test files for photoshop blend modes" into devel/master

3 years agoDALi Version 2.0.47 96/265096/1 dali_2.0.47
David Steele [Fri, 8 Oct 2021 13:54:32 +0000 (14:54 +0100)]
DALi Version 2.0.47

Change-Id: I33082c990826297bcc59106599f64598c17fc2a1

3 years agoSyncing test files for photoshop blend modes 48/265048/1
David Steele [Thu, 7 Oct 2021 17:18:04 +0000 (18:18 +0100)]
Syncing test files for photoshop blend modes

Change-Id: Ia05a321d1a1938c395895e61b201b6a034706f61

3 years agoResolve visual defect when BorderlineWidth=0.0f 38/265038/1
Eunki, Hong [Thu, 7 Oct 2021 10:16:37 +0000 (19:16 +0900)]
Resolve visual defect when BorderlineWidth=0.0f

Normally, Set borderlineWidth=0.0f directly doesn't make visual defect.
But when we animate the borderlineWidth,
we can se borderlineColor near 0.5pixel!

This visual defect occured cause we did hand-made anti-alias.
Now, we just multiply the borderline's with into the borderline's opacity.

This mechanisme is comes from what we draw borderline
when borderlineWidth is less then 1 pixel.

Change-Id: Ic8ef7b451d66ef0a625ad9c8392824d1f6cc6d9a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
3 years agoExact calculation when borderline is trasluency 05/264705/5
Eunki, Hong [Tue, 28 Sep 2021 10:24:11 +0000 (19:24 +0900)]
Exact calculation when borderline is trasluency

Update exact formula when borderline is transluency.
This patch will fix so many visual defects

TODO : If there is a good way to calculate result without division, change it.
TODO : Visual defect occur when BorderlineWidth is 0.0f.
       Not related with this patch but anyway we need to fix some other patch.

Change-Id: Ic14f18eb508dc488a95cdb8f0eff4f615a78629b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>