# Define options to CMake
OPTION(ENABLE_EXPORTALL "Enable Export all symbols" OFF)
OPTION(ENABLE_DEBUG "Enable Debug" OFF)
+OPTION(ENABLE_TRACE "Enable Trace" OFF)
OPTION(ENABLE_PKG_CONFIGURE "Use pkgconfig" ON)
OPTION(INTERNATIONALIZATION "Internationalization demo string names" ON)
SET(DALI_DEMO_CFLAGS "${DALI_DEMO_CFLAGS} -DDEBUG_ENABLED")
ENDIF()
+IF( ENABLE_TRACE )
+ SET(DALI_DEMO_CFLAGS "${DALI_DEMO_CFLAGS} -DTRACE_ENABLED")
+ENDIF()
+
IF( ENABLE_SCENE_LOADER )
SET(DALI_DEMO_CFLAGS "${DALI_DEMO_CFLAGS} -DDALI_SCENE_LOADER_AVAILABLE")
ENDIF()
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace
{
-const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-gradient.jpg";
+const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-default.png";
const char* const TOOLBAR_IMAGE = DEMO_IMAGE_DIR "top-bar.png";
const char* const TOOLBAR_TITLE = "Buttons";
const char* const ENABLED_IMAGE = DEMO_IMAGE_DIR "item-select-check.png";
-const Vector4 BACKGROUND_COLOUR(1.0f, 1.0f, 1.0f, 0.15f);
+const Vector4 BACKGROUND_COLOUR(0.25f, 0.25f, 0.25f, 0.15f);
// Layout sizes
-const int RADIO_LABEL_THUMBNAIL_SIZE = 60;
+const int RADIO_LABEL_THUMBNAIL_SIZE = 50;
const int RADIO_LABEL_THUMBNAIL_SIZE_SMALL = 40;
const int RADIO_IMAGE_SPACING = 8;
const int BUTTON_HEIGHT = 48;
const int MARGIN_SIZE = 10;
const int TOP_MARGIN = 85;
-const int GROUP2_HEIGHT = 238;
-const int GROUP1_HEIGHT = 120;
-const int GROUP3_HEIGHT = 190;
-const int GROUP4_HEIGHT = BUTTON_HEIGHT + MARGIN_SIZE * 2;
} // namespace
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace
{
-const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-gradient.jpg";
+const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-default.png";
const char* const TOOLBAR_IMAGE = DEMO_IMAGE_DIR "top-bar.png";
const char* const TOOLBAR_TITLE = "Popup";
/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace
{
-const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-gradient.jpg";
+const char* const BACKGROUND_IMAGE = DEMO_IMAGE_DIR "background-default.png";
const char* const TOOLBAR_IMAGE = DEMO_IMAGE_DIR "top-bar.png";
const char* const IMAGE = DEMO_IMAGE_DIR "background-magnifier.jpg";
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
mBorder.SetProperty(Actor::Property::VISIBLE, false);
mGrabCorner.RaiseToTop();
- mHueAngleIndex = mLabel.RegisterProperty("hue", 0.0f);
- Renderer bgRenderer = mLabel.GetRendererAt(0);
- mOverrideMixColorIndex = bgRenderer.GetPropertyIndex(ColorVisual::Property::MIX_COLOR);
+ mHueAngleIndex = mLabel.RegisterProperty("hue", 0.0f);
+ Renderer bgRenderer = mLabel.GetRendererAt(0);
- Constraint constraint = Constraint::New<Vector3>(bgRenderer, mOverrideMixColorIndex, HSVColorConstraint(0.0f, 0.5f, 0.8f));
+ Constraint constraint = Constraint::New<Vector3>(bgRenderer, VisualRenderer::Property::VISUAL_MIX_COLOR, HSVColorConstraint(0.0f, 0.5f, 0.8f));
constraint.AddSource(Source(mLabel, mHueAngleIndex));
constraint.SetRemoveAction(Constraint::DISCARD);
constraint.Apply();
Name: com.samsung.dali-demo
Summary: The OpenGLES Canvas Core Demo
-Version: 2.1.15
+Version: 2.1.16
Release: 1
Group: System/Libraries
License: Apache-2.0
%if 0%{?enable_debug}
-DCMAKE_BUILD_TYPE=Debug \
%endif
+ -DENABLE_TRACE:BOOL=ON \
-DLOCAL_STYLE_DIR=%{local_style_dir} \
-DINTERNATIONALIZATION:BOOL=OFF \
-DTIZEN:BOOL=ON \