platform/core/uifw/dali-toolkit.git
22 months agoSupport Ellipsis Position Property 60/259560/33
Shrouq Sabah [Wed, 9 Jun 2021 21:39:31 +0000 (00:39 +0300)]
Support Ellipsis Position Property

Added new property Ellipsis to TextEditor
Added new property Ellipsis_Position to TextLabel, TextField and TextEditor

Example:
textLabel.SetProperty(DevelTextLabel::Property::ELLIPSIS_POSITION, DevelText::EllipsisPosition::START);

Handled Ellipsis location for below cases:
Positions: END, START and MIDDLE
TextController: TextLabel, TextField and TextEditor
SingleLine and Muilt-lines with differnat LineWrap modes
Text direction LTR and RTL

END algorithm already exits
START and MIDDLE algorithms added according to END one

Change-Id: If059878f7128141169e95cf237b690ce900c70b3

22 months agoMerge "Add WebView SetTtsFocus" into devel/master
JIYUN YANG [Mon, 12 Jul 2021 11:28:37 +0000 (11:28 +0000)]
Merge "Add WebView SetTtsFocus" into devel/master

22 months agoMerge "Add borderline features at transition effect" into devel/master
Eunki Hong [Mon, 12 Jul 2021 06:46:41 +0000 (06:46 +0000)]
Merge "Add borderline features at transition effect" into devel/master

22 months agoMerge "DALi Version 2.0.34" into devel/master
Adeel Kazmi [Fri, 9 Jul 2021 09:28:11 +0000 (09:28 +0000)]
Merge "DALi Version 2.0.34" into devel/master

22 months agoDALi Version 2.0.34 62/261062/1 dali_2.0.34
Adam Bialogonski [Fri, 9 Jul 2021 08:44:38 +0000 (09:44 +0100)]
DALi Version 2.0.34

Change-Id: I67bc21a7418d5e8cd708326fe74bbcc12ee16704

22 months agoMerge "Makes the LTR/RTL alignment of text follow the system language by default...
joogab yun [Fri, 9 Jul 2021 01:54:24 +0000 (01:54 +0000)]
Merge "Makes the LTR/RTL alignment of text follow the system language by default." into devel/master

22 months agoMerge "Reflection GetSamplers() returns const ref" into devel/master
David Steele [Thu, 8 Jul 2021 09:52:48 +0000 (09:52 +0000)]
Merge "Reflection GetSamplers() returns const ref" into devel/master

22 months agoMerge "Revert "Call SetCurrentFocusActor()"" into devel/master
joogab yun [Thu, 8 Jul 2021 09:25:39 +0000 (09:25 +0000)]
Merge "Revert "Call SetCurrentFocusActor()"" into devel/master

22 months agoRevert "Call SetCurrentFocusActor()" 14/261014/1
Joogab Yun [Thu, 8 Jul 2021 09:28:50 +0000 (18:28 +0900)]
Revert "Call SetCurrentFocusActor()"

Change-Id: I4a3e0a68ae3e93ead855ab21e1ee33067ae2e2c9

22 months agoMerge "Fix corrupted markup background" into devel/master
Bowon Ryu [Thu, 8 Jul 2021 07:25:25 +0000 (07:25 +0000)]
Merge "Fix corrupted markup background" into devel/master

22 months agoMerge "Call SetCurrentFocusActor()" into devel/master
joogab yun [Thu, 8 Jul 2021 06:35:29 +0000 (06:35 +0000)]
Merge "Call SetCurrentFocusActor()" into devel/master

22 months agoFix corrupted markup background 51/260851/12
abdullah [Mon, 5 Jul 2021 13:40:44 +0000 (16:40 +0300)]
Fix corrupted markup background

sometimes(random issue) when markup enabled for label,
the background color is corrupted with random incorrect color pixels.
because the background image was not initialized in some cases.

plus made some code more clear.

Change-Id: Iab93822addb9a790153df45a6f619ae93054ada6

22 months agoCall SetCurrentFocusActor() 36/260936/4
Joogab Yun [Wed, 7 Jul 2021 07:47:29 +0000 (16:47 +0900)]
Call SetCurrentFocusActor()

If the TextField/TextEditor has "Focusable = true",
the focus cannot be moved by the keyboard after tapping.

Fixed this bug.

Change-Id: I395d492bd048a758d25dae28ba3fffec4fae7317

23 months agoReflection GetSamplers() returns const ref 11/260911/3
Adam Bialogonski [Tue, 6 Jul 2021 14:01:10 +0000 (15:01 +0100)]
Reflection GetSamplers() returns const ref

Change-Id: I7425a7669ee8dca344eae7290e8529c30e65c6f8

23 months agoAdd WebView SetTtsFocus 61/260961/5
Jiyun Yang [Wed, 7 Jul 2021 12:28:10 +0000 (21:28 +0900)]
Add WebView SetTtsFocus

Change-Id: I94888109d21797fcf00fefd68843234f19379148
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
23 months agoApply PreMultipliedAlpha on BorderlineColor 69/260969/1
Eunki, Hong [Wed, 7 Jul 2021 13:38:40 +0000 (22:38 +0900)]
Apply PreMultipliedAlpha on BorderlineColor

Change-Id: I707d8c5c7ee3f3ccd058efad6709795374b5f1c0

23 months agoMerge "BorderlineColor allow Actor's OPACITY & MIX_COLOR" into devel/master
Eunki Hong [Wed, 7 Jul 2021 11:54:49 +0000 (11:54 +0000)]
Merge "BorderlineColor allow Actor's OPACITY & MIX_COLOR" into devel/master

23 months agoMerge "[ATSPI][SVACE] Fixes use of v variable after it was freed by eldbus_service_in...
Seoyeon Kim [Wed, 7 Jul 2021 07:01:46 +0000 (07:01 +0000)]
Merge "[ATSPI][SVACE] Fixes use of v variable after it was freed by eldbus_service_interface_unregister()" into devel/master

23 months agoBorderlineColor allow Actor's OPACITY & MIX_COLOR 08/260908/2
Eunki, Hong [Tue, 6 Jul 2021 13:04:11 +0000 (22:04 +0900)]
BorderlineColor allow Actor's OPACITY & MIX_COLOR

Fix shader that borderline allow mix_color.

TRICK)
If you want to make contnet to be transperent and draw borderline only,
1. check OPACITY is bigger than 0.01f
2. make borderlineColor's alpha value bigger than 1.0f

Change-Id: I424c1af86d6dad64b19c8cf57bb3f5979a3e5b58
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
23 months agoUpdate ATSPI code according to DALi coding rule 82/260282/11
Seoyeon Kim [Wed, 23 Jun 2021 06:13:40 +0000 (15:13 +0900)]
Update ATSPI code according to DALi coding rule

- Updated accessibility and bridge code, such as description or coding style.
- Changed 'Caret' to 'Cursor' for dali text style.

The patches below should be applied together.
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/260281/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/260322/

Change-Id: Id29163ab035efdcea6a06314bfcbf2826b2f09f2
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
23 months agoMakes the LTR/RTL alignment of text follow the system language by default. 58/259858/17
Joogab Yun [Wed, 16 Jun 2021 05:19:35 +0000 (14:19 +0900)]
Makes the LTR/RTL alignment of text follow the system language by default.

The MATCH_SYSTEM_LANGUAGE_DIRECTION property defaults to true.

When the layout direction of TextLabel, TextField, or TextEditor is changed,
LTR/RTL alignment of text follows the layout direction of each control.

If you set MATCH_SYSTEM_LANGUAGE_DIRECTION to false
As before, LTR/RTL is determined according to the language of the text.

Change-Id: Ie97654a2309ffd4c30bec2c1b95d6337d8f4c674

23 months agoMerge "Add APIs for showing/hiding context menu." into devel/master
JIYUN YANG [Mon, 5 Jul 2021 09:33:51 +0000 (09:33 +0000)]
Merge "Add APIs for showing/hiding context menu." into devel/master

23 months agoMerge "Fix behaviour when PreeditStyle is REVERSE" into devel/master
Bowon Ryu [Mon, 5 Jul 2021 05:13:57 +0000 (05:13 +0000)]
Merge "Fix behaviour when PreeditStyle is REVERSE" into devel/master

23 months agoAdd APIs for showing/hiding context menu. 43/260243/6
huayong.xu [Tue, 22 Jun 2021 08:56:45 +0000 (16:56 +0800)]
Add APIs for showing/hiding context menu.

1) Remove APIs for customizing context menu and selecting some menu
   item.
2) Rename some APIs in web context.

Change-Id: I89adad1a891f4eb077e06d3dfaa83982a7247095

23 months agoMerge "WebView create a visual when it got a first frame" into devel/master
JIYUN YANG [Mon, 5 Jul 2021 01:49:53 +0000 (01:49 +0000)]
Merge "WebView create a visual when it got a first frame" into devel/master

23 months agoWebView create a visual when it got a first frame 50/260750/3
Jiyun Yang [Fri, 2 Jul 2021 06:35:20 +0000 (15:35 +0900)]
WebView create a visual when it got a first frame

Change-Id: I609647abec9c89bf5f421632f6036298ac1f9e61
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
23 months agoMerge "DALi Version 2.0.33" into devel/master
David Steele [Fri, 2 Jul 2021 16:44:15 +0000 (16:44 +0000)]
Merge "DALi Version 2.0.33" into devel/master

23 months agoDALi Version 2.0.33 90/260790/1 dali_2.0.33
Adeel Kazmi [Fri, 2 Jul 2021 16:41:22 +0000 (17:41 +0100)]
DALi Version 2.0.33

Change-Id: I77555fd7a69e72b2a1d74675244f58194e193d26

23 months ago[ATSPI][SVACE] Fixes use of v variable after it was freed by eldbus_service_interface... 86/260786/2
Lukasz Oleksak [Fri, 2 Jul 2021 16:01:26 +0000 (18:01 +0200)]
[ATSPI][SVACE] Fixes use of v variable after it was freed by eldbus_service_interface_unregister()

Change-Id: I44d89ab5532243ba79d212f0cb6ddd13289b34a8

23 months ago[AT-SPI] Set CanvasView non-highlightable by default 31/260031/5
Maria Bialota [Thu, 17 Jun 2021 19:20:24 +0000 (21:20 +0200)]
[AT-SPI] Set CanvasView non-highlightable by default

Removed the line setting ACCESSIBILITY_HIGHLIGHTABLE property to true.

Until now the highlightability of the CanvasView was overrided by an
AT-SPI IMAGE Role check in dali-adaptor, so the line removed has been
already a dead code. Now the Role check has been removed and we want
CanvasView to be non-highlightable by default.

From now on if we want to turn on highlightability for certain
instances of CanvasView we can set the ACCESSIBILITY_HIGHLIGHTABLE
property in runtime.

Change-Id: Ie6d695c6aa61f77e34029481e46ccd3b7fea7ac0

23 months agoFix behaviour when PreeditStyle is REVERSE 15/260515/7
Bowon Ryu [Mon, 28 Jun 2021 05:31:57 +0000 (14:31 +0900)]
Fix behaviour when PreeditStyle is REVERSE

In REVERSE case, TextColor uses text's background color.
but in most cases, there is no text's background color
and the the default alpha value is 0.
So in this case, the text is not visible. (text color's alpah value becomes 0)

To solve this, if there is no text's background, the control's color is used.
And if there is no control's color, set white or black according to the contrast.
In this case, the color is determined based on W3C recommendations.
(https://www.w3.org/TR/WCAG20/)

Change-Id: I251ec3283d761e08bb8214f4e53b0da05ad9ba4f
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoAdd borderline features at transition effect 75/259775/3
Eunki, Hong [Mon, 14 Jun 2021 23:55:47 +0000 (08:55 +0900)]
Add borderline features at transition effect

Now BORDERLINE_XXX can be used at transition.

Change-Id: Ib5eb83ce61379dc25f8820e3140be0db811cf575
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
23 months ago[ATSPI] I18N of name, description, action name and role name 55/259355/8
Lukasz Oleksak [Fri, 4 Jun 2021 18:00:09 +0000 (20:00 +0200)]
[ATSPI] I18N of name, description, action name and role name

Change-Id: I3b98689239bdf7b7a3f289f8ad561fdc2b59f5ac

23 months agoMerge "Fix to use world color for the Fade Transition." into devel/master
Seungho BAEK [Wed, 30 Jun 2021 01:16:15 +0000 (01:16 +0000)]
Merge "Fix to use world color for the Fade Transition." into devel/master

23 months agoMerge "(Vector) Fix random tc failure" into devel/master
Adeel Kazmi [Tue, 29 Jun 2021 09:45:09 +0000 (09:45 +0000)]
Merge "(Vector) Fix random tc failure" into devel/master

23 months ago(Vector) Fix random tc failure 81/260581/1
Heeyong Song [Tue, 29 Jun 2021 08:48:59 +0000 (17:48 +0900)]
(Vector) Fix random tc failure

Change-Id: Ie1bfd1aa3c745bc445b4b1c1bcd7cbf6af8cb10b

23 months agoFix to use world color for the Fade Transition. 32/260532/2
seungho [Mon, 28 Jun 2021 09:45:22 +0000 (18:45 +0900)]
Fix to use world color for the Fade Transition.

 - In the current Fade transition implementation, set mOpacity and current property of target control
   for the transition animation.
 - It could create wrong value, for example,
   for the fade out transition the input mOpacity could be larger than
   the value of target opacity.

Change-Id: I7a55fdb7775a4a9f183360c0eddfb3ca88076287
Signed-off-by: seungho <sbsh.baek@samsung.com>
23 months agoMerge "[AT-SPI] Set ImageView non-highlightable by default" into devel/master
Seoyeon Kim [Tue, 29 Jun 2021 03:30:02 +0000 (03:30 +0000)]
Merge "[AT-SPI] Set ImageView non-highlightable by default" into devel/master

23 months agoMerge "Add InputFilter to TextField, TextEditor" into devel/master
Bowon Ryu [Tue, 29 Jun 2021 02:14:11 +0000 (02:14 +0000)]
Merge "Add InputFilter to TextField, TextEditor" into devel/master

23 months agoReduce unnecessary calc in CalculateVerticalOffset() 34/260234/2
Bowon Ryu [Tue, 22 Jun 2021 08:23:53 +0000 (17:23 +0900)]
Reduce unnecessary calc in CalculateVerticalOffset()

The calculation for offsetY is only needed when the placeholder is show.
This patch adds that condition, reducing unnecessary calculations.

Change-Id: I264671de296236f069971081999063524105897b
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoMerge "Add support for span tag" into devel/master
Bowon Ryu [Mon, 28 Jun 2021 07:47:56 +0000 (07:47 +0000)]
Merge "Add support for span tag" into devel/master

23 months agoAdd InputFilter to TextField, TextEditor 75/258375/14
Bowon Ryu [Fri, 14 May 2021 07:50:39 +0000 (16:50 +0900)]
Add InputFilter to TextField, TextEditor

Text input filter based on regular expressions.

// example
Property::Map filter;
filter[InputFilter::Property::ACCEPTED] = "[\\d]";
filter[InputFilter::Property::REJECTED] = "[0-5]";

field.SetProperty(DevelTextField::Property::INPUT_FILTER, filter);

DevelTextField::InputFilteredSignal(field).Connect(this, &OnInputFiltered);

```

void OnInputFiltered(TextField field, InputFilter::Property::Type type)
{
  Property::Map filter = field.GetProperty<Property::Map>(DevelTextField::Property::INPUT_FILTER);
  if (type == InputFilter::Property::ACCEPTED)
  {
    std::cout << "only follow character set is accepted " << filter[type] << std::endl;
  }
  else if (type == InputFilter::Property::REJECTED)
  {
    std::cout << "follow character set is rejected " << filter[type] << std::endl;
  }
}

Change-Id: Ia512438c9cb8aeb28c81f38e7b0220544a0751f0
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoMerge "DALi Version 2.0.32" into devel/master
Adeel Kazmi [Fri, 25 Jun 2021 10:57:55 +0000 (10:57 +0000)]
Merge "DALi Version 2.0.32" into devel/master

23 months agoDALi Version 2.0.32 83/260483/1 dali_2.0.32
Richard Huang [Fri, 25 Jun 2021 10:17:26 +0000 (11:17 +0100)]
DALi Version 2.0.32

Change-Id: Ief016646c0845e75882c4a559113398e3eccea8a

23 months agoRevert "visual: Implements rive animation" 69/260069/2
Heeyong Song [Fri, 18 Jun 2021 05:39:10 +0000 (14:39 +0900)]
Revert "visual: Implements rive animation"

This reverts commit ef1f2122e3825ec5fa1d2d3b568caec69ecd3d0c.

Change-Id: Iea2dcb4faf48c7af5226fc6820f207a998abdec9

23 months agoMerge "Fix initialization of singleton variable in Transition-lifecycle-controller...
Seungho BAEK [Fri, 25 Jun 2021 01:54:48 +0000 (01:54 +0000)]
Merge "Fix initialization of singleton variable in Transition-lifecycle-controller" into devel/master

23 months ago[AT-SPI] Set ImageView non-highlightable by default 31/259931/3
Maria Bialota [Wed, 16 Jun 2021 11:48:47 +0000 (13:48 +0200)]
[AT-SPI] Set ImageView non-highlightable by default

Removed the line setting ACCESSIBILITY_HIGHLIGHTABLE property to true.

Until now the highlightability of the ImageView was overrided by an
AT-SPI Role check in dali-adaptor, so the line removed has been already
a dead code. Now the Role check has been removed and we want ImageView
to be non-highlightable by default.

From now on if we want to turn on highlightability for certain
instances of ImageView we can set the ACCESSIBILITY_HIGHLIGHTABLE
property in runtime.

Change-Id: Ide151a114d970f856217b34945d4c7e9cbbecda0

23 months agoAdd support for span tag 86/257786/12
abdullah [Sun, 2 May 2021 07:08:25 +0000 (10:08 +0300)]
Add support for span tag

support span tag to be used for grouping font properties & text color.
for example :
Hello <span font-size='50' text-color='blue'>World</span>

using namespace Dali;
using namespace Dali::Toolkit;

class SimpleApp : public ConnectionTracker
{
public:
  SimpleApp(Application& application)
  : mApplication(application)
  {
    mApplication.InitSignal().Connect(this, &SimpleApp::Create);
  }

  void Create(Application& application)
  {
    Window window = mApplication.GetWindow();
    mEditor = TextEditor::New();
    mEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::POSITION, Vector3(0.f, 0.0f, 0.f));
    mEditor.SetProperty(Actor::Property::SIZE, Vector2(300, 300.0f));
    window.SetBackgroundColor(Vector4(0.04f, 0.345f, 0.392f, 1.0f));
    mEditor.SetProperty(TextEditor::Property::POINT_SIZE, 26.f);
    mEditor.SetProperty(TextEditor::Property::ENABLE_MARKUP, true);
    mEditor.SetProperty(TextEditor::Property::TEXT, "Hello <span font-size='50' text-color='blue'>World</span>");
    window.Add(mEditor);
  }

private:
  Application& mApplication;
  TextEditor mEditor;
};

int DALI_EXPORT_API main(int argc, char** argv)
{
  Application application = Application::New(&argc, &argv);
  SimpleApp test(application);
  application.MainLoop();

  return 0;
}

Change-Id: Ie1be3e9d980dbca8ee4f0154000f94defd517a7c

23 months agoMerge "Change MatchSystemLanguageDirection is true." into devel/master
joogab yun [Thu, 24 Jun 2021 09:34:15 +0000 (09:34 +0000)]
Merge "Change MatchSystemLanguageDirection is true." into devel/master

23 months agoFix underline issue when PreeditStyle is REVERSE, HIGHLIGHT 16/260416/1
Bowon Ryu [Thu, 24 Jun 2021 08:20:09 +0000 (17:20 +0900)]
Fix underline issue when PreeditStyle is REVERSE, HIGHLIGHT

Even if it is PreeditStyle without underline,
need to do UnderlineRuns for any markup underlines that may exist in text.

Change-Id: I6920dde2c7be93583eef4adfa5c026a671fcbbf6
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoadd support for background markup tag 73/259073/11
abdullah [Mon, 31 May 2021 14:38:06 +0000 (17:38 +0300)]
add support for background markup tag

using namespace Dali;
using namespace Dali::Toolkit;

class SimpleApp : public ConnectionTracker
{
public:
  SimpleApp(Application& application)
  : mApplication(application)
  {
    mApplication.InitSignal().Connect(this, &SimpleApp::Create);
  }

  void Create(Application& application)
  {
    Window window = mApplication.GetWindow();
    mEditor = TextEditor::New();
    mEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::POSITION, Vector3(0.f, 0.0f, 0.f));
    mEditor.SetProperty(Actor::Property::SIZE, Vector2(300, 300.0f));
    window.SetBackgroundColor(Vector4(0.04f, 0.345f, 0.392f, 1.0f));
    mEditor.SetProperty(TextEditor::Property::POINT_SIZE, 26.f);
    mEditor.SetProperty(TextEditor::Property::ENABLE_MARKUP, true);
    mEditor.SetProperty(TextEditor::Property::TEXT, "<background color='red'>W</background><background color='blue'>oo</background>d");
    window.Add(mEditor);
  }

private:
  Application& mApplication;
  TextEditor mEditor;
};

int DALI_EXPORT_API main(int argc, char** argv)
{
  Application application = Application::New(&argc, &argv);
  SimpleApp test(application);
  application.MainLoop();

  return 0;
}

Change-Id: Ib3259932cb1bf0efc3f8690e7bdcdd8ca37423fd

23 months agoChange FocusFinder to a method 23/259523/4
Heeyong Song [Wed, 9 Jun 2021 08:21:43 +0000 (17:21 +0900)]
Change FocusFinder to a method

Change-Id: I7513ef3142fe649ad3d2c614b76b863b6d6c0c1a

23 months ago(ImageView) Fix some SVACE issues in Transition 81/260181/1
Adeel Kazmi [Mon, 21 Jun 2021 15:47:41 +0000 (16:47 +0100)]
(ImageView) Fix some SVACE issues in Transition

Change-Id: Ia4b4f5c2a74dfa4a5d53dc105c6dcd8ebda5036a

23 months ago(Control) Fix some SVACE issues in Transition 59/260159/1
Adeel Kazmi [Mon, 21 Jun 2021 10:38:25 +0000 (11:38 +0100)]
(Control) Fix some SVACE issues in Transition

Change-Id: Iea4054b9942f3b2b27a2f7cf1110d89f47673561

23 months agoMerge "Fix invalid update to TextUpdateInfo in SELECTING state." into devel/master
Bowon Ryu [Mon, 21 Jun 2021 02:51:21 +0000 (02:51 +0000)]
Merge "Fix invalid update to TextUpdateInfo in SELECTING state." into devel/master

23 months agoMerge "Discard fragments out of corner radius" into devel/master
Adeel Kazmi [Fri, 18 Jun 2021 14:33:35 +0000 (14:33 +0000)]
Merge "Discard fragments out of corner radius" into devel/master

23 months agoMerge "Add Fade Transition" into devel/master
Adeel Kazmi [Fri, 18 Jun 2021 12:53:50 +0000 (12:53 +0000)]
Merge "Add Fade Transition" into devel/master

23 months agoDALi Version 2.0.31 95/260095/1 dali_2.0.31
David Steele [Fri, 18 Jun 2021 10:38:05 +0000 (11:38 +0100)]
DALi Version 2.0.31

Change-Id: Id3c7b95f84e162dafbcc09b0a8b9a8735ff782ec

23 months agoFix invalid update to TextUpdateInfo in SELECTING state. 84/260084/2
Bowon Ryu [Fri, 18 Jun 2021 07:42:57 +0000 (16:42 +0900)]
Fix invalid update to TextUpdateInfo in SELECTING state.

mTextUpdateInfo is updated even if no selecting state in SetInputColor().
This causes a crash in some cases.
(When TextColor, InputColor is changed by the user in TextChanged callback)

This patch prevents invalid update of TextUpdateInfo.
Most of the known Text Crash issues are fixed by this patch.

Change-Id: I16488d3a9f9f063c441834f622afbe33b3ea7a74
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
23 months agoChange MatchSystemLanguageDirection is true. 10/259910/5
Joogab Yun [Wed, 16 Jun 2021 10:01:05 +0000 (19:01 +0900)]
Change MatchSystemLanguageDirection is true.

Default text LTR/RTL direction follows the system language direction.

And check DALI_MATCH_SYSTEM_LANGUAGE_DIRECTION environment.

If you set export DALI_MATCH_SYSTEM_LANGUAGE_DIRECTION=0 then MatchSystemLanguageDirection is false.

Change-Id: Ic9c1516a8cdcf45a5ec187097509e7d996d374ff

23 months agoFix initialization of singleton variable in Transition-lifecycle-controller 59/259959/1
Seungho Baek [Thu, 17 Jun 2021 03:02:28 +0000 (12:02 +0900)]
Fix initialization of singleton variable in Transition-lifecycle-controller

Change-Id: I6bd2c7c40e02a40775510f7950e865f67df65700
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
23 months agoDiscard fragments out of corner radius 33/259833/3
Eunki, Hong [Wed, 16 Jun 2021 05:33:34 +0000 (14:33 +0900)]
Discard fragments out of corner radius

discard of some fragments so we can clip rounded corner when ClippingMode::CLIP_CHILDREN.

Note : This patch doesn't decrease performance.
Below table show average FPS of perf-scroll.example + corner radius

       | Ubuntu | NikeM2 | TM1    | Meson  |
before | 44.241 | 54.549 | 27.113 | 48.442 |
after  | 44.414 | 54.953 | 27.207 | 48.315 |

Change-Id: I01f18f9d7025c629ee46f57e02361d24eaf76280
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
23 months agoAdd Fade Transition 14/259214/9
seungho [Wed, 2 Jun 2021 09:38:35 +0000 (18:38 +0900)]
Add Fade Transition

Change-Id: Ic906ebf56b3cd21e3cf1877da54039f3e0550049
Signed-off-by: seungho <sbsh.baek@samsung.com>
23 months agoMerge "Add TOUCH_FOCUSABLE property" into devel/master
joogab yun [Tue, 15 Jun 2021 05:35:22 +0000 (05:35 +0000)]
Merge "Add TOUCH_FOCUSABLE property" into devel/master

23 months agoMerge "DALi Version 2.0.30" into devel/master
David Steele [Fri, 11 Jun 2021 10:45:45 +0000 (10:45 +0000)]
Merge "DALi Version 2.0.30" into devel/master

23 months agoMerge "Adds transition effect" into devel/master
Seungho BAEK [Fri, 11 Jun 2021 10:36:36 +0000 (10:36 +0000)]
Merge "Adds transition effect" into devel/master

23 months agoDALi Version 2.0.30 28/259728/1 dali_2.0.30
Adeel Kazmi [Fri, 11 Jun 2021 10:35:41 +0000 (11:35 +0100)]
DALi Version 2.0.30

Change-Id: Ie73de85e2403ba74960726545d23561f5b667d47

23 months agoFix svace issues on WebView 78/259578/1
Jiyun Yang [Thu, 10 Jun 2021 02:11:20 +0000 (11:11 +0900)]
Fix svace issues on WebView

Change-Id: I4fad33a155c0e59ae77b1e2f1767255ebf5151c9
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
23 months agoMerge "Fixed SVACE error in animated-image-visual.cpp" into devel/master
Adeel Kazmi [Wed, 9 Jun 2021 07:58:35 +0000 (07:58 +0000)]
Merge "Fixed SVACE error in animated-image-visual.cpp" into devel/master

23 months agoAdds transition effect 67/251367/46
Seungho Baek [Wed, 13 Jan 2021 05:58:54 +0000 (14:58 +0900)]
Adds transition effect

Change-Id: Ie32632d0d8d0b91fe840de56f7bab4a4fed1557f
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
23 months agoFixed SVACE error in animated-image-visual.cpp 79/259479/1
Adeel Kazmi [Tue, 8 Jun 2021 17:16:02 +0000 (18:16 +0100)]
Fixed SVACE error in animated-image-visual.cpp

Change-Id: Iddf37fd1f0be4c25d60a6f7fdb451621dd488abe

23 months ago[AT-SPI] Add AccessibleImpl::ScrollToChild() 98/255698/12
Artur Świgoń [Mon, 22 Mar 2021 16:07:15 +0000 (17:07 +0100)]
[AT-SPI] Add AccessibleImpl::ScrollToChild()

This replaces two virtual methods:
 * EnsureSelfVisible() - redundant, replaced by a simple loop
 * EnsureChildVisible() - renamed to ScrollToChild() to reflect
   that this concerns scrollable containers

Change-Id: I38f7be0a1117dc93ce70b496913b62a400c4432a

2 years agoMerge "Add borderline property for visual + Integrate some shaders in one" into devel...
Eunki Hong [Mon, 7 Jun 2021 03:08:48 +0000 (03:08 +0000)]
Merge "Add borderline property for visual + Integrate some shaders in one" into devel/master

2 years agoAdd TOUCH_FOCUSABLE property 56/259256/7
Joogab Yun [Thu, 3 Jun 2021 06:42:30 +0000 (15:42 +0900)]
Add TOUCH_FOCUSABLE property

This is a property that allows you to have focus even when touched.

It works only when KEYBOARD_FOCUSABLE is set to true.

KEYBOARD_FOCUSABLE :  whether the view can have focus or not
TOUCH_FOCUSABLE    :  Whether the user can focus by touch

Change-Id: Ie308c75931df2cf74f45d851bc76e662c055635a

2 years agoFix the LineCount issue when text is changed. 57/259357/2
Shrouq Sabah [Sun, 6 Jun 2021 12:51:36 +0000 (15:51 +0300)]
Fix the LineCount issue when text is changed.

There is an issue with LineCount of TextLabel and TextEditor.
The issue is that if you set Text in TextLabel and do GetLineCount, an incorrect LineCount is returned.
This issue related to GetHeightForWidth which called in Controller::GetLineCount(float width).

Change-Id: Ia0cc5737432080fbd925bc6e655062f023a1c133

2 years agoAdd borderline property for visual + Integrate some shaders in one 26/254026/27
Eunki, Hong [Mon, 22 Feb 2021 09:37:36 +0000 (18:37 +0900)]
Add borderline property for visual + Integrate some shaders in one

Add borderline properies for visual
 - BORDERLINE_WIDTH "borderlineWidth" (float, default = 0.0)
   : Width of the borderline
 - BORDERLINE_COLOR "borderlineColor" (Vector4, default = Color::BLACK)
   : Color of the borderline
 - BORDERLINE_OFFSET "borderlineOffset" (float, default = 0.0)
   : Relative position offset from 'Real' borderline of visual.
     == 0.0f then half is inside, and half is outside of visual.
     == -1.0f then all borderline will be rendered inside of visual.
     == 1.0f then all borderline will be rendered outside of visual.

These three properties are animatable

Also, I integrate image / color / gradient visual shaders in one file.
Cause If I add above feature, the shader files need so many.

Change-Id: Ieeea3c1fd4703c5f446018ceffb46a7b715b36f1
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years agoMerge "DALi Version 2.0.29" into devel/master
David Steele [Fri, 4 Jun 2021 13:02:54 +0000 (13:02 +0000)]
Merge "DALi Version 2.0.29" into devel/master

2 years agoDALi Version 2.0.29 25/259325/1 dali_2.0.29
Adam Bialogonski [Fri, 4 Jun 2021 08:56:52 +0000 (09:56 +0100)]
DALi Version 2.0.29

Change-Id: I72024b28a4b6b7e1a9928d9818c8f4ed59ff72ce

2 years agoAdd SpaceEvenly to flex justification 52/259252/3
Jaehyun Cho [Thu, 3 Jun 2021 06:05:10 +0000 (15:05 +0900)]
Add SpaceEvenly to flex justification

Flex justification uses Yoga Layout's justify-content.
Up to now, SpaceEvenly of Yoga Layout's justify-content has not been
added to flex justification.

SpaceAround distributes the equal space to before, and after each item.
Therefore, the space between adjacent items is twice bigger than the
space between the beginning edge and the first item.

To distribute the equal space to before, between, and after each item,
SpaceEvenly is added to flex justification.

Change-Id: Icb4e1f1aa74f52a5cfe8f1399e9f42457c8c081f

2 years agoMerge "[AT-SPI] Add SetTextContents, InsertText and DeleteText" into devel/master
Seoyeon Kim [Tue, 1 Jun 2021 09:35:42 +0000 (09:35 +0000)]
Merge "[AT-SPI] Add SetTextContents, InsertText and DeleteText" into devel/master

2 years agoMerge "Add InputMethodSettings property to TextEditor." into devel/master
Bowon Ryu [Tue, 1 Jun 2021 03:15:25 +0000 (03:15 +0000)]
Merge "Add InputMethodSettings property to TextEditor." into devel/master

2 years agoMerge "Set Gesture Propagation" into devel/master
joogab yun [Tue, 1 Jun 2021 03:09:11 +0000 (03:09 +0000)]
Merge "Set Gesture Propagation" into devel/master

2 years agoMerge "Fixed invalid text selection behaviour" into devel/master
Bowon Ryu [Tue, 1 Jun 2021 03:04:23 +0000 (03:04 +0000)]
Merge "Fixed invalid text selection behaviour" into devel/master

2 years ago[AT-SPI] Remove AccessibilityRegister() 70/259070/3
Artur Świgoń [Mon, 31 May 2021 13:53:14 +0000 (15:53 +0200)]
[AT-SPI] Remove AccessibilityRegister()

With this change, component developers and application developers will
need to manually notify any AT clients about changes in widget
visibility. This includes, but is not limited to, scrollable
containers, paginated containers, navigators etc.

Change-Id: I1505a763054b7343ea33ce249bdf1df4c7847d7e

2 years ago[AT-SPI] Do not emit BoundsChanged for all actors 89/258789/2
Artur Świgoń [Tue, 25 May 2021 14:46:30 +0000 (16:46 +0200)]
[AT-SPI] Do not emit BoundsChanged for all actors

This patch also removes the ACCESSIBILITY_ANIMATED property (not to be
confused with AT-SPI state ANIMATED). This property was used to control
automatic emission of the BoundsChanged event (and it had only one user,
the highlight frame actor). However, we no longer emit this event, so
this property serves no purpose.

Change-Id: I8df8b9e7fb75951c9f88d5aec944f9d52f10bf06

2 years agoSet Gesture Propagation 06/258806/5
Joogab Yun [Wed, 26 May 2021 04:33:43 +0000 (13:33 +0900)]
Set Gesture Propagation

Change-Id: I521bccb522b01b4d667dd4e399d4d705ed7160a9

2 years agoMerge "Fixed an issue where the multi-tap did not work properly. (https://review...
joogab yun [Mon, 31 May 2021 05:44:16 +0000 (05:44 +0000)]
Merge "Fixed an issue where the multi-tap did not work properly. (https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-core/+/258466/)" into devel/master

2 years agoMerge "(Vector) Fix deadlock issue: remove lock" into devel/master
Heeyong Song [Mon, 31 May 2021 01:37:34 +0000 (01:37 +0000)]
Merge "(Vector) Fix deadlock issue: remove lock" into devel/master

2 years ago[AT-SPI] Add SetTextContents, InsertText and DeleteText 57/256957/7
Bartlomiej Grzelewski [Thu, 15 Apr 2021 09:27:12 +0000 (11:27 +0200)]
[AT-SPI] Add SetTextContents, InsertText and DeleteText

Extend at-spi implementation for EditableText widgets.

Change-Id: I9669eb4f9fb4c34c3d0a1cd8ed5e751066ce98d7

2 years agoDALi Version 2.0.28 68/258968/1 dali_2.0.28
Richard Huang [Fri, 28 May 2021 09:51:08 +0000 (10:51 +0100)]
DALi Version 2.0.28

Change-Id: If2ec72fd64956a6973fc9856b0a9ddc315604453

2 years agoFixed invalid text selection behaviour 59/258959/1
Bowon Ryu [Fri, 28 May 2021 08:17:00 +0000 (17:17 +0900)]
Fixed invalid text selection behaviour

This patch fixes an issue where selection handles are not updated.
(issue of visual update, not value)

// test case
textField.SetProperty(DevelTextField::Property::PRIMARY_CURSOR_POSITION, 5);
textField.SetProperty(DevelTextField::Property::SELECTED_TEXT_START, 5);
textField.SetProperty(DevelTextField::Property::SELECTED_TEXT_END, 10);

In the test case above, the selection handle is not updated.

* Internal flag status when PRIMARY_CURSOR_POSITION is set :
in SetPrimaryCursorPosition(),

mUpdateCursorPosition = true;

* Internal flag status when SELECTED_TEXT_START, SELECTED_TEXT_END is set :
in SetTextSelectionRange(),

mUpdateHighlightBox = true;
mUpdateLeftSelectionPosition = true;
mUpdateRightSelectionPosition = true;

By the way,
the actual updates such as cursor, selection, grab handle, are handled at once
in ProcessInputEvents() based on the flags above.

In the test case, since mUpdateCursorPosition is true, "else" can not be reached.
That's why the selection handle doesn't update.
This issue is solved by fixing conditional statement.

Also due to this patch,
Issues arising from mPrimaryCursorPosition inside SetTextSelectionRange() are also resolved.

Change-Id: I77890fd3744406a885325e53e2354c1ac9d454d6
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoFixed SVACE errors in Test Graphics 01/258901/1
Adeel Kazmi [Thu, 27 May 2021 09:43:24 +0000 (10:43 +0100)]
Fixed SVACE errors in Test Graphics

Change-Id: I67fb0f6d7eddbde198a2d68519afd35f8a9eb667

2 years ago(Vector) Fix deadlock issue: remove lock 84/258884/1
Heeyong Song [Thu, 27 May 2021 05:55:05 +0000 (14:55 +0900)]
(Vector) Fix deadlock issue: remove lock

Change-Id: I145d138f6a6a16e425dae577d2ecc88fd2dbfcbb

2 years agoRemove DevelColorVisual::Property::RENDER_IF_TRANSPARENT 76/258776/3
Heeyong Song [Tue, 25 May 2021 11:32:27 +0000 (20:32 +0900)]
Remove DevelColorVisual::Property::RENDER_IF_TRANSPARENT

Change-Id: I985ae68c61246dec81360e94c827f236d9e27a4e

2 years agoMerge "Merge branch 'devel/master' into devel/graphics" into devel/master
David Steele [Wed, 26 May 2021 12:27:08 +0000 (12:27 +0000)]
Merge "Merge branch 'devel/master' into devel/graphics" into devel/master

2 years agoMerge branch 'devel/master' into devel/graphics 95/258795/2
David Steele [Tue, 25 May 2021 23:28:35 +0000 (00:28 +0100)]
Merge branch 'devel/master' into devel/graphics

Change-Id: I51fef49392010ab166900229c74b05bb0520fcd3

2 years agoAdd ACCESSIBILITY_HIGHLIGHTABLE for ATSPI 99/258799/1
Joogab Yun [Wed, 26 May 2021 02:22:31 +0000 (11:22 +0900)]
Add ACCESSIBILITY_HIGHLIGHTABLE for ATSPI

Change-Id: Iff574b2342ac6a1d55d5618eee24119c7475b6b0

2 years agoManaged Unified Uniform Buffer 30/258430/2 devel/graphics
Adam Bialogonski [Mon, 17 May 2021 16:45:05 +0000 (17:45 +0100)]
Managed Unified Uniform Buffer

Test harness update

Change-Id: Ie65fb2564dc7d7be8c946b14c870062211af745c

2 years agoAdd InputMethodSettings property to TextEditor. 49/258649/2
Bowon Ryu [Fri, 21 May 2021 09:53:23 +0000 (18:53 +0900)]
Add InputMethodSettings property to TextEditor.

This property is provided in TextField.
TextEditor also needs a property that controls the options of the input method.

Change-Id: Idc0d8252180f547e84072981fb5ff9bd4bebf00b
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years agoMerge "DALi Version 2.0.27" into devel/master
Adeel Kazmi [Fri, 21 May 2021 09:26:13 +0000 (09:26 +0000)]
Merge "DALi Version 2.0.27" into devel/master