platform/core/uifw/dali-toolkit.git
23 months agoMerge "Fix webp&gif issue" into devel/master
sunghyun kim [Fri, 29 Apr 2022 06:58:41 +0000 (06:58 +0000)]
Merge "Fix webp&gif issue" into devel/master

23 months agoMerge "Caching cropToMask in texture manager" into devel/master
sunghyun kim [Fri, 29 Apr 2022 06:58:21 +0000 (06:58 +0000)]
Merge "Caching cropToMask in texture manager" into devel/master

23 months agoMerge changes I7b63ee17,I61bd1ed2 into devel/master
Seungho BAEK [Fri, 29 Apr 2022 06:48:30 +0000 (06:48 +0000)]
Merge changes I7b63ee17,I61bd1ed2 into devel/master

* changes:
  Use default PBR shader to the scene-loader
  Fix Scene3d-View light issue

23 months agoCaching cropToMask in texture manager 67/272467/4
sunghyun kim [Thu, 17 Mar 2022 06:11:41 +0000 (15:11 +0900)]
Caching cropToMask in texture manager

cropToMask need to be cahing,
so i added this patch

Change-Id: I6fecdfd8bc12a0c5d270c50da50340331ce0917f

23 months agoMerge "Add ECORE_IMF_CALLBACK_SELECTION_SET to IMFContext" into devel/master
Bowon Ryu [Thu, 28 Apr 2022 08:51:47 +0000 (08:51 +0000)]
Merge "Add ECORE_IMF_CALLBACK_SELECTION_SET to IMFContext" into devel/master

23 months agoUse default PBR shader to the scene-loader 91/273891/15
seungho [Fri, 15 Apr 2022 08:31:41 +0000 (17:31 +0900)]
Use default PBR shader to the scene-loader

 - glTF uses built-in shader for rendering.
 - glTF features of Emission and Ambient Occlusion are added.

Change-Id: I7b63ee171b8c66c777e1d8a0732860f7a35240e2
Signed-off-by: seungho <sbsh.baek@samsung.com>
23 months ago[AT-SPI] ScrollView: Use child postion for ScrollToChild 92/274392/1
Shinwoo Kim [Wed, 27 Apr 2022 10:44:01 +0000 (19:44 +0900)]
[AT-SPI] ScrollView: Use child postion for ScrollToChild

It was not able to scroll in a child of scroll view if the child is
not a child of the first depth.

(1) [scroll pane],[(class=ScrollView)],[364,199,656,36],[TextSelectionScrollView]
  (2) [table],[(class=TableView)],[364,101,901,134],[]
    (3) [push button],[(class=PushButton)],[364,101,447,134],[Select all]
      (4) [image],[(class=ImageView)(highlight=)],[364,101,447,134],[]
    (5) [unknown],[(class=Control)],[811,107,1,122],[]
    (6) [push button],[(class=PushButton)],[812,101,265,134],[Copy]
    (7) [unknown],[(class=Control)],[1077,107,1,122],[]
    (8) [push button],[(class=PushButton)],[1078,101,187,134],[Cut]

The node (8) was not able to bring in even though it has highlight.
This patch makes node (8) bring in when it grabs highlight.

Change-Id: I862a8adcc2bd6212464ffc833a2a0d0cf0a4480c

23 months agoMerge "If VISIBLE is false, the focus cannot be set and code clean." into devel/master
joogab yun [Wed, 27 Apr 2022 10:29:06 +0000 (10:29 +0000)]
Merge "If VISIBLE is false, the focus cannot be set and code clean." into devel/master

23 months agoIf VISIBLE is false, the focus cannot be set and code clean. 17/274317/4
joogab.yun [Tue, 26 Apr 2022 06:48:04 +0000 (15:48 +0900)]
If VISIBLE is false, the focus cannot be set and code clean.

Change-Id: I92d65ad4ab87368bce3a85d0a112955e306a104a

23 months agoFix Scene3d-View light issue 34/273934/7
seungho [Mon, 18 Apr 2022 09:02:30 +0000 (18:02 +0900)]
Fix Scene3d-View light issue

Change-Id: I61bd1ed2ec4dacec5952e82666ad476480fed774
Signed-off-by: seungho <sbsh.baek@samsung.com>
23 months agoMerge "Resolved incorrect size when call GetTextSize(TextLabel) for one glyph" into...
Bowon Ryu [Tue, 26 Apr 2022 09:49:36 +0000 (09:49 +0000)]
Merge "Resolved incorrect size when call GetTextSize(TextLabel) for one glyph" into devel/master

23 months agoMerge "Enhance texteditor background drawing performance" into devel/master
Bowon Ryu [Tue, 26 Apr 2022 09:38:01 +0000 (09:38 +0000)]
Merge "Enhance texteditor background drawing performance" into devel/master

23 months agoAdd ECORE_IMF_CALLBACK_SELECTION_SET to IMFContext 03/274303/4
Bowon Ryu [Tue, 26 Apr 2022 05:02:47 +0000 (14:02 +0900)]
Add ECORE_IMF_CALLBACK_SELECTION_SET to IMFContext

added selection callback from IMF for tizen 7.0 new feature support

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

Change-Id: If565fc1061a98b47bfa6040b59ce26b2955a1c24
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoMerge "If the currently focused actor is hidden or disabled, it should lose focus...
joogab yun [Mon, 25 Apr 2022 23:47:58 +0000 (23:47 +0000)]
Merge "If the currently focused actor is hidden or disabled, it should lose focus." into devel/master

23 months agoMerge "Block the changeness of PreMultiplied for some visuals" into devel/master
David Steele [Mon, 25 Apr 2022 15:54:41 +0000 (15:54 +0000)]
Merge "Block the changeness of PreMultiplied for some visuals" into devel/master

23 months agoBlock the changeness of PreMultiplied for some visuals 68/274268/1
Eunki, Hong [Mon, 25 Apr 2022 10:54:04 +0000 (19:54 +0900)]
Block the changeness of PreMultiplied for some visuals

Svg, AnimatedVector, Text, and Gradient Visuals always use
PreMultiplied texture.
But PreMultiplied option is Visual::Base property.

So it was possible to change premultiplied option as false
even It's visual type is not allow it

This patch make some kind of visual that should not change the
PreMultiplied alpha flags don't change it.

Change-Id: I22e8416796493b34d2907f8043f57d31039be587
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
23 months agoMerge "[AT-SPI] Set child's parent in WebViewAccessible" into devel/master
Lukasz Oleksak [Mon, 25 Apr 2022 10:55:32 +0000 (10:55 +0000)]
Merge "[AT-SPI] Set child's parent in WebViewAccessible" into devel/master

23 months agoIf the currently focused actor is hidden or disabled, it should lose focus. 32/273832/9
joogab.yun [Thu, 14 Apr 2022 08:39:56 +0000 (17:39 +0900)]
If the currently focused actor is hidden or disabled, it should lose focus.

Change-Id: I9ccc144a266982085b4aae43cbd87bd1e3d2391e

23 months agoMerge "fix incorrect selection highlight position with postive line spacing" into...
Bowon Ryu [Mon, 25 Apr 2022 05:56:04 +0000 (05:56 +0000)]
Merge "fix incorrect selection highlight position with postive line spacing" into devel/master

23 months agoadd theme to TextSelectionPopup according to 7.0 UX 19/274219/1
Bowon Ryu [Fri, 22 Apr 2022 06:05:43 +0000 (15:05 +0900)]
add theme to TextSelectionPopup according to 7.0 UX

Change-Id: Ia39f62cb8183109be4bd5c6046b488aeed3f682b
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months ago[AT-SPI] Set child's parent in WebViewAccessible 99/273899/5
Artur Świgoń [Fri, 15 Apr 2022 12:47:39 +0000 (14:47 +0200)]
[AT-SPI] Set child's parent in WebViewAccessible

A related dali-adaptor patch makes ProxyAccessible's parent settable.

Change-Id: Ifff884b6b20302617720ca25eedf16bdf275ef0e

23 months agoMerge "DALi Version 2.1.19" into devel/master
David Steele [Fri, 22 Apr 2022 13:10:07 +0000 (13:10 +0000)]
Merge "DALi Version 2.1.19" into devel/master

23 months agoDALi Version 2.1.19 86/274186/1 dali_2.1.19
Adeel Kazmi [Fri, 22 Apr 2022 12:54:28 +0000 (13:54 +0100)]
DALi Version 2.1.19

Change-Id: I69bbfe529b1d2bd2589bbb12517d3a7b5cd1d1ff

23 months agoMerge "Ambient occlusion support in DLI model" into devel/master
David Steele [Fri, 22 Apr 2022 12:15:08 +0000 (12:15 +0000)]
Merge "Ambient occlusion support in DLI model" into devel/master

23 months agoAmbient occlusion support in DLI model 20/274120/3
Richard Huang [Thu, 21 Apr 2022 12:52:56 +0000 (13:52 +0100)]
Ambient occlusion support in DLI model

Change-Id: If4378a8ecffbc37755b711805cc0f241dbd6e592

23 months agoCreate visual's border property map for only valid type 60/274160/2
Eunki, Hong [Fri, 22 Apr 2022 08:44:06 +0000 (17:44 +0900)]
Create visual's border property map for only valid type

Now we don't insert property map when it's type is not valid
Something like NPatch, Text, Mesh

Change-Id: I95935dd2afa4332063cf474ac47ee234754055b3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
23 months agoResolved incorrect size when call GetTextSize(TextLabel) for one glyph 18/274118/1
ssabah [Wed, 20 Apr 2022 09:03:48 +0000 (12:03 +0300)]
Resolved incorrect size when call GetTextSize(TextLabel) for one glyph

GetTextSize(TextLabel) for one glyph return zero size with ellipsis end.
But it works fine with GetTextSize(TextEditor).

To check it:
===========================================================
    Window window = application.GetWindow();
    window.SetBackgroundColor(Color::WHITE);

    textLabel = TextLabel::New();
    textLabel.SetProperty(TextLabel::Property::POINT_SIZE, 7.f);
    textLabel.SetProperty(Actor::Property::SIZE, Vector2(200.f, 200.f));
    textLabel.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT);
    textLabel.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
    textLabel.SetProperty(TextLabel::Property::TEXT, "H");
    window.Add(textLabel);

...

    Vector<Vector2> sizesList = DevelTextLabel::GetTextSize(textLabel, 0u, 0u);
===========================================================

Change-Id: I38f6177c46f7485663412d55d95a5ffc318341f9

23 months agofix incorrect selection highlight position with postive line spacing 11/274111/2
Abdulleh Ghujeh [Thu, 21 Apr 2022 07:40:26 +0000 (10:40 +0300)]
fix incorrect selection highlight position with postive line spacing

Change-Id: I411127b55c2bbbf0a1b5a6a1cdeb95d32ae8a429

23 months agoMerge "Transfer uploadOnly flag to the core and update manager" into devel/master
Seungho BAEK [Thu, 21 Apr 2022 05:13:50 +0000 (05:13 +0000)]
Merge "Transfer uploadOnly flag to the core and update manager" into devel/master

23 months agoTransfer uploadOnly flag to the core and update manager 32/273932/2
seungho [Mon, 18 Apr 2022 07:16:26 +0000 (16:16 +0900)]
Transfer uploadOnly flag to the core and update manager

Change-Id: I096fc8b2bac265e1aa78f5a45b439ec16d1d1b8e
Signed-off-by: seungho <sbsh.baek@samsung.com>
23 months agoFix webp&gif issue 30/274030/2
sunghyun kim [Tue, 22 Feb 2022 05:13:01 +0000 (14:13 +0900)]
Fix webp&gif issue

1. Change Fitting mode
- animated image visual use FIT_KEEP_ASPECT_RATIO by default, but image visual use FILL.
  i think we need to use same fitting mode by default.

2. use npatch in webp and gif
- if webp and gif use npatch, it need to be change regular type

Change-Id: Ib29234e86d5d2efaa38dce9ef391a79a1065dd5d

23 months agoFix incorrect calc of GetHeightForWidth in TextLabel 88/273988/3
Bowon Ryu [Tue, 19 Apr 2022 15:05:20 +0000 (00:05 +0900)]
Fix incorrect calc of GetHeightForWidth in TextLabel

the recent change of CalculateLayoutSizeOnRequiredControllerSize()
causes compatibility issues in TextLabel.

avoiding backup/restore of visual-model fields after GetNaturalSize/GetHeightForWidth is
usually to resolve broken index of editable controls.

this patch DoRelayout() with minimal operation when non-editable case.
it's almost like legacy code.

Change-Id: Ib918c96ad45fc3567941bec17dffe910b8b45134
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoMerge "Add CHROMINANCE pixel format" into devel/master
Heeyong Song [Tue, 19 Apr 2022 03:16:09 +0000 (03:16 +0000)]
Merge "Add CHROMINANCE pixel format" into devel/master

2 years agoEnhance texteditor background drawing performance 36/273736/2
Abdulleh Ghujeh [Wed, 13 Apr 2022 06:02:35 +0000 (09:02 +0300)]
Enhance texteditor background drawing performance

Change-Id: Ib2e2bce28431e4845adcfc0328844765bc8df1a7

2 years agoMerge "Call ResourceReady callback even image loading failed." into devel/master
David Steele [Thu, 14 Apr 2022 11:24:42 +0000 (11:24 +0000)]
Merge "Call ResourceReady callback even image loading failed." into devel/master

2 years agoDALi Version 2.1.18 42/273842/1 dali_2.1.18
Richard Huang [Thu, 14 Apr 2022 10:35:10 +0000 (11:35 +0100)]
DALi Version 2.1.18

Change-Id: I1736c18ac5e0ea69ef9657703f63aa0292ff5c94

2 years agoAdd CHROMINANCE pixel format 37/273837/1
Heeyong Song [Thu, 14 Apr 2022 10:03:34 +0000 (19:03 +0900)]
Add CHROMINANCE pixel format

Change-Id: I4ec7df3e842a957007dd224ab8a78e3bcd5bd228

2 years agoCall ResourceReady callback even image loading failed. 81/273281/8
Eunki, Hong [Fri, 1 Apr 2022 12:14:10 +0000 (21:14 +0900)]
Call ResourceReady callback even image loading failed.

image-visual and svg-visual and npatch-visual call ResourceReady callback even
they fail to load image.

But when animated image load faild, it doesn't call ResourceReady.

This patch make both image-used visuals call ResourceReady callback
even if load state is failed.

Change-Id: I7f0a267b7103d0d4df0753236cc90b2e467c707d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoMerge "Make broken alpha mask image show image" into devel/master
David Steele [Wed, 13 Apr 2022 17:03:46 +0000 (17:03 +0000)]
Merge "Make broken alpha mask image show image" into devel/master

2 years agoRefactoring npatch-loader so it works well both sync-async loading 29/273429/15
Eunki, Hong [Tue, 5 Apr 2022 14:00:04 +0000 (23:00 +0900)]
Refactoring npatch-loader so it works well both sync-async loading

Make async loading always call LoadComplete when we try to load n-patch image.
+
Releative with both sync-async case,
Fix minor reference count issue for NPatchData.
Previous logic only control refrence count as Observer. It was not good.
+
Fix minor caching issue with border.
Previous code logic have problem when we use same Url and different border.

Change-Id: Ic54dd522e44f5db64f3e9d08aa44db224ab4d506
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoMake broken alpha mask image show image 68/273368/7
Eunki, Hong [Tue, 5 Apr 2022 03:32:45 +0000 (12:32 +0900)]
Make broken alpha mask image show image

Previous code only assume that ALPHA_MASK_URL load success.
When we use alpha mask image invalid, the result become strange ;
Most of image view not showing anything, but somtimes 1~2 image show broken.

This patch make when we use that maskTextureId is load failed case.

Change-Id: Ifd157d8b3a74c3a813d13ed3072c945d8ae8cda8
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoMerge "Refactoring Animated image visual" into devel/master
Seungho BAEK [Tue, 12 Apr 2022 12:48:25 +0000 (12:48 +0000)]
Merge "Refactoring Animated image visual" into devel/master

2 years agoMerge "Test harness sync" into devel/master
David Steele [Mon, 11 Apr 2022 14:20:19 +0000 (14:20 +0000)]
Merge "Test harness sync" into devel/master

2 years agoMerge "Refactored text selection popup to reduce loc" into devel/master
Bowon Ryu [Mon, 11 Apr 2022 02:07:24 +0000 (02:07 +0000)]
Merge "Refactored text selection popup to reduce loc" into devel/master

2 years agoTest harness sync 21/273621/1
David Steele [Fri, 8 Apr 2022 16:18:19 +0000 (17:18 +0100)]
Test harness sync

Change-Id: I6799eccd1e813351c87446dda4c379162e1b4f4d

2 years agoMerge "GlView using DirectRendering" into devel/master
Adeel Kazmi [Fri, 8 Apr 2022 14:00:44 +0000 (14:00 +0000)]
Merge "GlView using DirectRendering" into devel/master

2 years agoRefactored text selection popup to reduce loc 14/273614/2
Bowon Ryu [Fri, 8 Apr 2022 12:19:36 +0000 (21:19 +0900)]
Refactored text selection popup to reduce loc

- refactored property setters/getters

- I plan to bind the TextSelectionPopup to NUI.
before that, I will reduce loc with some refactoring.

Change-Id: I7f790153ed845a50a68591c97211d240b662e77e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoMerge "DALi Version 2.1.17" into devel/master
David Steele [Fri, 8 Apr 2022 12:01:40 +0000 (12:01 +0000)]
Merge "DALi Version 2.1.17" into devel/master

2 years agoDALi Version 2.1.17 04/273604/1 dali_2.1.17
David Steele [Fri, 8 Apr 2022 11:54:46 +0000 (12:54 +0100)]
DALi Version 2.1.17

Change-Id: Id2ddb789190bb060330ac6c0ff263cdf79ade17b

2 years agoGlView using DirectRendering 13/273213/11
Adam Bialogonski [Thu, 31 Mar 2022 15:25:46 +0000 (16:25 +0100)]
GlView using DirectRendering

Added GlView::BackendMode enum

The backend mode can be changed only upon the GlView creation. There is no way to change the backend after that.

Change-Id: I0e6c072e9b9b03c65324177ba1c2df9f6cf8d458

2 years agoMerge "Add vertical alignment for text editor" into devel/master
Bowon Ryu [Fri, 8 Apr 2022 04:50:14 +0000 (04:50 +0000)]
Merge "Add vertical alignment for text editor" into devel/master

2 years agoAdd vertical alignment for text editor 39/273039/6
Bowon Ryu [Wed, 30 Mar 2022 03:07:15 +0000 (12:07 +0900)]
Add vertical alignment for text editor

- Support VerticalAlignment for TextEditor
- If the layout size is bigger than control size,
  there is no meaning in calculating the vertical offset.
- But when the text is empty,
  the cursor position should be updated according to the vertical alignment.

Change-Id: I219abf970ff4cb3ce0540244a3f6fd4ed41d24e8
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoAdjust node scale for avatar models generated by glTF Tools for M-Renderer 19/273419/6
Richard Huang [Tue, 5 Apr 2022 09:31:38 +0000 (10:31 +0100)]
Adjust node scale for avatar models generated by glTF Tools for M-Renderer

Change-Id: I4bbfd455aafd4772e8b0433e469f07e981bcf9d4

2 years agoRefactoring Animated image visual 77/266977/34
seungho [Tue, 23 Nov 2021 08:46:41 +0000 (17:46 +0900)]
Refactoring Animated image visual

 - Animated image file will be opened when the visual is on scene.
 - Only the first frame is cached to cache single frame image as the image visual do.
 - Pause timer when next frame is not cached yet. And resume it after the frame is ready.
 - Load policy and release policy is now supported.

Change-Id: I39a1d93396865f56d6c7e0b54b9d9fffecdc88ef
Signed-off-by: seungho <sbsh.baek@samsung.com>
2 years agoFix NPatch Auxiliary UTC 22/273422/6
Eunki, Hong [Tue, 5 Apr 2022 11:58:11 +0000 (20:58 +0900)]
Fix NPatch Auxiliary UTC

Change-Id: I8aa5907f50375933d4f8f54dd2fb3bdc71345283
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoMake n-patch image show broken image 83/273283/5
Eunki, Hong [Fri, 1 Apr 2022 13:27:23 +0000 (22:27 +0900)]
Make n-patch image show broken image

Due to the visual-factory-cache.cpp's UpdateBorkenImageRenderer assumed that
inputed renderer is normal image's renderer,
n-patch visual didn't show broken image well.

This patch re-create renderer when we use not-image-renderer.

Change-Id: I93ee8e7c87901e0bed5c843adb38066b8c184342
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoRefactoring and documenting the markup tags and attributes 69/272869/5
ssabah [Sun, 27 Mar 2022 21:23:46 +0000 (00:23 +0300)]
Refactoring and documenting the markup tags and attributes

Moved all tags and attributes to separate file.
Added doxygen description for each tag and attribute.

To check doxygen documentation:
   1) Build dali-toolkit
   2)Generate the internal documentation for DALi Toolkit
     https://github.com/dalihub/dali-toolkit/tree/master/docs/generated-internal
   3) Goto: Files > File List > dali-toolkit > internal > text > markup-tags-and-attributes.h

Change-Id: I42693d0c1ce1169614ccad9391ef4f60a04b3f66

2 years agoMerge "DALi Version 2.1.16" into devel/master
David Steele [Fri, 1 Apr 2022 12:07:53 +0000 (12:07 +0000)]
Merge "DALi Version 2.1.16" into devel/master

2 years agoDALi Version 2.1.16 70/273270/1 dali_2.1.16
Adam Bialogonski [Fri, 1 Apr 2022 11:51:39 +0000 (12:51 +0100)]
DALi Version 2.1.16

Change-Id: I7bb3200279a1572562c27eac1ad8007441164919

2 years agoMerge "fix issue in negative line spacing with key arrow down" into devel/master
Bowon Ryu [Fri, 1 Apr 2022 10:12:20 +0000 (10:12 +0000)]
Merge "fix issue in negative line spacing with key arrow down" into devel/master

2 years agoMerge "Support paragraph attribute: relative line height" into devel/master
Bowon Ryu [Fri, 1 Apr 2022 10:04:30 +0000 (10:04 +0000)]
Merge "Support paragraph attribute: relative line height" into devel/master

2 years agoMerge "fix linespacing calculation in TextLabel" into devel/master
Bowon Ryu [Fri, 1 Apr 2022 10:04:07 +0000 (10:04 +0000)]
Merge "fix linespacing calculation in TextLabel" into devel/master

2 years agoMerge "Supports USER_INTERACTION_ENABLED for text components" into devel/master
Bowon Ryu [Fri, 1 Apr 2022 08:33:19 +0000 (08:33 +0000)]
Merge "Supports USER_INTERACTION_ENABLED for text components" into devel/master

2 years agoSupports USER_INTERACTION_ENABLED for text components 41/273041/5
Bowon Ryu [Wed, 30 Mar 2022 03:41:35 +0000 (12:41 +0900)]
Supports USER_INTERACTION_ENABLED for text components

Handles the behaviour of text components according to USER_INTERACTION_ENABLED.

Fixed the following bug :
If editable is false, all decorators should be disabled.
The prev behaviour is that some decorators are not disabled.

Change-Id: I7aeef2b2c238903723eec83e92b5945b06d0f6df
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoIf USER_INTERACTION_ENABLED is disabled, it shouldn't even be focused. 28/273228/4
joogab.yun [Fri, 1 Apr 2022 01:52:16 +0000 (10:52 +0900)]
If USER_INTERACTION_ENABLED is disabled, it shouldn't even be focused.

Change-Id: If9fd87747511bf6926bd5d7de19f951bb2b9596a

2 years agoMerge "Changed to not always clearFocus when a touch occurs." into devel/master
joogab yun [Fri, 1 Apr 2022 07:11:50 +0000 (07:11 +0000)]
Merge "Changed to not always clearFocus when a touch occurs." into devel/master

2 years agoIf the Focusable of TextField and TextEditor is set to true, it is modified so that... 67/272967/13
joogab.yun [Tue, 29 Mar 2022 01:02:33 +0000 (10:02 +0900)]
If the Focusable of TextField and TextEditor is set to true, it is modified so that it works well.

Change-Id: Ie3264a8caec3caeba3903d2467017c48f1436c8c

2 years agofix issue in negative line spacing with key arrow down 00/273200/3
Abdulleh Ghujeh [Thu, 31 Mar 2022 11:16:13 +0000 (14:16 +0300)]
fix issue in negative line spacing with key arrow down

when setting negative line spacing property with multiline text.
using arrow down to move the main cursor will skip some line.

Change-Id: Ia69d008203348776c860d5a8e7d1e5833a0e5f30

2 years agoChanged to not always clearFocus when a touch occurs. 53/272953/8
joogab.yun [Mon, 28 Mar 2022 10:13:28 +0000 (19:13 +0900)]
Changed to not always clearFocus when a touch occurs.

Do ClearFocus when focus movement is possible.

Otherwise, only the FocusIndicator is cleared.

Change-Id: I7e482e78e0af590304d066549a554d4fa39d3613

2 years agoChanged the style of the buttons 18/273018/1
Adeel Kazmi [Tue, 29 Mar 2022 18:48:29 +0000 (19:48 +0100)]
Changed the style of the buttons

Change-Id: Icf485af242a836825778bcf033aa68bd83ed73fd

2 years agoMerge "[AT-SPI] Introduce WebView::WebViewAccessible" into devel/master
Lukasz Oleksak [Tue, 29 Mar 2022 08:55:48 +0000 (08:55 +0000)]
Merge "[AT-SPI] Introduce WebView::WebViewAccessible" into devel/master

2 years agoMerge "FocusChanged callback should be called after Focus has changed." into devel...
joogab yun [Tue, 29 Mar 2022 02:57:03 +0000 (02:57 +0000)]
Merge "FocusChanged callback should be called after Focus has changed." into devel/master

2 years agoFocusChanged callback should be called after Focus has changed. 22/272922/4
joogab.yun [Mon, 28 Mar 2022 04:14:36 +0000 (13:14 +0900)]
FocusChanged callback should be called after Focus has changed.

It is now called before Focus is changed.

So calling GetCurrentFocusActor() inside the FocusChanged callback returns the prvious actor.

This is a problem.

So, change the FocusChanged callback to be called after the Focus is changed.

Change-Id: Ie270822ac01196e0bf9a18c2e9ab58326fcb745b

2 years agotext: Fix checking NULL after dereferencing 64/272964/2
Shinwoo Kim [Tue, 29 Mar 2022 00:13:57 +0000 (09:13 +0900)]
text: Fix checking NULL after dereferencing

This was detected by static analysis tool.

Change-Id: I4a4566b5537e905c61cc16e38e54fe7d15fdae17

2 years ago[AT-SPI] Introduce WebView::WebViewAccessible 13/263113/12
Artur Świgoń [Thu, 17 Mar 2022 10:58:17 +0000 (11:58 +0100)]
[AT-SPI] Introduce WebView::WebViewAccessible

This class handles automatic embedding and un-embedding of the AT-SPI
tree created by Chromium as a subtree in a DALi application.

Change-Id: If0875c1106a3d95bd026ee1d24f9d504be2d1ff2

2 years agoSupport paragraph attribute: relative line height 13/272113/4
abdullah [Wed, 9 Mar 2022 10:27:50 +0000 (13:27 +0300)]
Support paragraph attribute: relative line height

<p rel-line-height=2.0>Hello</p>World

Change-Id: I3824dd0d39021222a94e3122c4d88d94da5bc0b2

2 years agofix linespacing calculation in TextLabel 59/272959/2
Abdulleh Ghujeh [Mon, 28 Mar 2022 12:29:35 +0000 (15:29 +0300)]
fix linespacing calculation in TextLabel

line spacing for current line should affect next line not the current one
Change-Id: I0a650dc34aad2aa8d41b85bee7d0912553e8faa5

2 years agoMerge "TTrace enable always in tizen" into devel/master
Eunki Hong [Mon, 28 Mar 2022 10:35:30 +0000 (10:35 +0000)]
Merge "TTrace enable always in tizen" into devel/master

2 years agoMerge "Handle Emoji clustering for cursor handling" into devel/master
Bowon Ryu [Mon, 28 Mar 2022 10:14:24 +0000 (10:14 +0000)]
Merge "Handle Emoji clustering for cursor handling" into devel/master

2 years agoTTrace enable always in tizen 48/272748/3
Eunki, Hong [Wed, 23 Mar 2022 13:55:59 +0000 (22:55 +0900)]
TTrace enable always in tizen

Make ttrace enable always in tizen. Other platform keep current policy

Change-Id: I6c7ffc31be9e0aeb5e139afca18a306bdd1e3afe
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoSupport character-spacing in span tag 16/272016/6
ssabah [Sun, 6 Mar 2022 11:04:49 +0000 (14:04 +0300)]
Support character-spacing in span tag

Add Character-Spacing value attribute "char-space-value" to span tag.

How to apply it in TextEditor:

   textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT,
                           "<span font-size='20' font-family='DejaVu Sans' font-width='condensed' font-slant='italic' text-color='blue' >ABC EF\n</span>"
                           "<span font-size='20' font-family='DejaVu Sans' font-width='condensed' font-slant='italic' text-color='red' char-space-value='-5.0f'>ABC EF\n</span>"
                           "<span font-size='20' font-family='DejaVu Sans' font-width='condensed' font-slant='italic' text-color='green' char-space-value='10.0f'>ABC EF\n</span>");
   textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true);

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/271789

Change-Id: I203c6e1f3a116ae557ffbc84859a121739e6b6c6

2 years agoSupport character-spacing tag in markup 89/271789/11
ssabah [Mon, 28 Feb 2022 21:45:57 +0000 (00:45 +0300)]
Support character-spacing tag in markup

How to apply it in TextEditor:

    textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT,
                           "Hello <char-spacing value='-3.0f'>Hello </char-spacing>"
                           "<char-spacing value='3.0f'>Hello </char-spacing>"
                           "<char-spacing value='-6.0f'>Hello </char-spacing>"
                           "<char-spacing value='6.0f'>Hello </char-spacing>"
                           "<char-spacing value='0.0f'>Hello </char-spacing>");
    textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true);

Change-Id: Ic24b6cd7e0b88fba175fdc008345956a8fa7980f

2 years agoHandle Emoji clustering for cursor handling 32/272432/9
ssabah [Wed, 16 Mar 2022 14:32:21 +0000 (17:32 +0300)]
Handle Emoji clustering for cursor handling

Checked cases:
  - cursor movement (arrows): it works fine
  - line-breaking: it works fine
Resolved cases:
  - deletion: this patch handled delete cases when the cursor is before or after Emoji
    :: Before: when use delete key and cursor is before Emoji
    :: After: when use backspace key and cursor is after Emoji
  - Emoji layoutted at the end of line: this patch handle the below scenario
    1) When there is Emoji contains multi unicodes and it is layoutted at the end of line (LineWrap case , is not new line case)
    2) Try to click at the center or at the end of Emoji then the cursor appears inside Emoji
    3) Example:"FamilyManWomanGirlBoy &#x1F468;&#x200D;&#x1F469;&#x200D;&#x1F467;&#x200D;&#x1F466;"

 Sample code to test:
 ============================================================================
    TextEditor textEditor = TextEditor::New();
    textEditor.SetBackgroundColor(Dali::Color::GRAY);
    textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT, "AB&#x1F468;&#x200D;&#x1F469;&#x200D;&#x1F467;&#x200D;&#x1F466;AB&#x1F469;&#x1F3FB;&#x200D;&#x1F52C;B&#x1F468;&#x200D;&#x1F469;&#x200D;&#x1F467;&#x200D;&#x1F466;AA&#x262a;&#xfe0e;B&#x262a;&#xfe0f;AB");
    textEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT);
    textEditor.SetProperty(Dali::Actor::Property::POSITION, Vector2(10, 30));
    textEditor.SetProperty(Dali::Actor::Property::SIZE, Vector2(100, 100));
    textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true);
    textEditor.SetProperty(Dali::Toolkit::DevelTextEditor::Property::LINE_WRAP_MODE, Dali::Toolkit::DevelText::LineWrap::WORD);

 ============================================================================

Change-Id: I6d142c58c5cdef5e900404cca8b777a02c8488d1

2 years agoDALi Version 2.1.15 49/272849/1 dali_2.1.15
Adeel Kazmi [Fri, 25 Mar 2022 10:57:04 +0000 (10:57 +0000)]
DALi Version 2.1.15

Change-Id: I67b275b0f105029b534e8e6d97e08eae0d8769aa

2 years agoHandled nested tags in strikethrough 18/272318/4
ssabah [Mon, 14 Mar 2022 12:05:12 +0000 (15:05 +0300)]
Handled nested tags in strikethrough

The inner tag inherit the attributes of the outer tag and override them when defined in the inner tag
Example:
"<s height='5.0f' color='blue'> outer tag before  <s color='green'> inner tag </s> outer tag after </s>"
"outer tag before" and  "outer tag after" have height = 5.0f and color = 'blue'
"inner tag" has height = 5.0f and color = 'green'

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/272264

Change-Id: I7426507b14c73f09aca67b9a22173e8ee5c0db29

2 years agoSupport Strikethrough with Height attribute in markup 64/272264/5
ssabah [Sun, 13 Mar 2022 21:48:55 +0000 (00:48 +0300)]
Support Strikethrough with Height attribute in markup

The attribute of strikethrough in <s> tag :
  - height

The attribute of strikethrough in <span> tag :
  - s-height

How to apply it in TextEditor:

  textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT, "<span s-color='blue' s-height='5.0f' > hello world span tag</span>nothing<s color='green' height='2.0f' > hello world s tag </s> ");
  textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true);

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/272017

Change-Id: I3332531528f53e9bc87c6bf194fb6c58d131a269

2 years agoSupport the strikethrough and its attribute in span tag 17/272017/9
ssabah [Sun, 6 Mar 2022 15:14:19 +0000 (18:14 +0300)]
Support the strikethrough and its attribute in span tag

The attributes of strikethrough :
  - s-color

How to apply it in TextEditor:

  textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::TEXT, "<span s-color='blue'> hello world span tag </span>nothing<s color='green'> hello world s tag </s> ");
  textEditor.SetProperty(Dali::Toolkit::TextEditor::Property::ENABLE_MARKUP, true);

This patch should be preceded by the patch below:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/272018

Change-Id: I87bdf96565a22d90d9f1d1000cb719fbfd6dbc84

2 years agoMerge "Resolve cases for strikethrough when using multiple <s> tags" into devel/master
Bowon Ryu [Wed, 23 Mar 2022 05:48:55 +0000 (05:48 +0000)]
Merge "Resolve cases for strikethrough when using multiple <s> tags" into devel/master

2 years agoSupport span tag: background 63/272263/2
abdullah [Sun, 13 Mar 2022 13:33:05 +0000 (16:33 +0300)]
Support span tag: background

Change-Id: I20cedebe0f9b07b51afedd8c5481409db80c888d

2 years agoMerge "Fix text markup background incorrect position with negative line spacing"...
Bowon Ryu [Tue, 22 Mar 2022 01:09:20 +0000 (01:09 +0000)]
Merge "Fix text markup background incorrect position with negative line spacing" into devel/master

2 years agoFix text markup background incorrect position with negative line spacing 62/272262/4
abdullah [Sun, 13 Mar 2022 13:03:33 +0000 (16:03 +0300)]
Fix text markup background incorrect position with negative line spacing

the issue appear in TextEditor when using different markup text background in different lines with negative line spacing
Change-Id: I4cab4460ef3073dfe74c69b7071fa304d18b3b74

2 years agoFix cursor visible issue on text editing 04/272604/1
Bowon Ryu [Mon, 21 Mar 2022 11:10:37 +0000 (20:10 +0900)]
Fix cursor visible issue on text editing

I made a prev patch to ensure that the cursor layer is on top.
16ef097a0b2d3945a5045db7bb2f3896ed5a5a95

But cursor layer in clippingDecorationActors(in RednerText) is processed only once.

Therefore, if user edit while the background is present, the cursor still invisible.

This patch passes the cursor layer actor as an argument to RenderText(),
so that the cursor is always on top.

Change-Id: I27e3334f74dbca34aaae18089082125c871935fa
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoFix cursor visible issue on text background 86/272586/1
Bowon Ryu [Mon, 21 Mar 2022 07:12:35 +0000 (16:12 +0900)]
Fix cursor visible issue on text background

In some cases, the cursor layer actor is not visible.
Because the text background actor is positioned above the cursor layer actor.
This patch ensures that the cursor layer actor is always on the top.

Change-Id: I1f601e9e648e2983a2703bda03c82cd92bcff16f
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoMerge "Fix issue of applying ellipsis with negative line spacing" into devel/master
Bowon Ryu [Mon, 21 Mar 2022 04:43:45 +0000 (04:43 +0000)]
Merge "Fix issue of applying ellipsis with negative line spacing" into devel/master

2 years agoMerge "Add clockwise and counter clockwise direction type and movefocus" into devel...
joogab yun [Mon, 21 Mar 2022 00:57:40 +0000 (00:57 +0000)]
Merge "Add clockwise and counter clockwise direction type and movefocus" into devel/master

2 years agoMerge "Add deviceName to GetNextFocusableView() in CustomFocusAlgorithm." into devel...
joogab yun [Mon, 21 Mar 2022 00:57:21 +0000 (00:57 +0000)]
Merge "Add deviceName to GetNextFocusableView() in CustomFocusAlgorithm." into devel/master

2 years agoDirectRendering: 85/272385/4
Adam Bialogonski [Tue, 15 Mar 2022 10:55:18 +0000 (10:55 +0000)]
DirectRendering:

- Test harness changes

Change-Id: I7dce30ebec907fdb1e5ec182216927c0107c44fa

2 years agoDALi Version 2.1.14 43/272543/1 dali_2.1.14
Richard Huang [Fri, 18 Mar 2022 11:23:29 +0000 (11:23 +0000)]
DALi Version 2.1.14

Change-Id: I3bbbf6faeadcfefb06bd42e49ca899d2e1645d2e

2 years agoMerge "[AT-SPI] fix a crash on scroll-view" into devel/master
Shinwoo Kim [Fri, 18 Mar 2022 01:01:00 +0000 (01:01 +0000)]
Merge "[AT-SPI] fix a crash on scroll-view" into devel/master

2 years agoMerge changes I6399a6ca,Iae5f8784,I40eb6797,I8ba65736 into devel/master
Lukasz Oleksak [Thu, 17 Mar 2022 09:34:49 +0000 (09:34 +0000)]
Merge changes I6399a6ca,Iae5f8784,I40eb6797,I8ba65736 into devel/master

* changes:
  [AT-SPI] Remove SetAccessibilityConstructor()
  [AT-SPI] Require ControlAccessible for Control
  [AT-SPI] Introduce TextControlAccessible
  [AT-SPI] Rename AccessibleImpl to <Control>Accessible