Name: com.samsung.dali-demo
Summary: The OpenGLES Canvas Core Demo
-Version: 2.1.2
+Version: 2.1.3
Release: 1
Group: System/Libraries
License: Apache-2.0
of the capability of the toolkit.
##############################
+# Resources
+##############################
+
+%package resources_mobile
+Summary: Specific resource files for a 720x1280 display on Tizen Mobile
+Requires: %{name} = %{version}-%{release}
+Conflicts: %{name}-resources_rpi
+%description resources_mobile
+dali-demo specific resource files for a 720x1280 display on Tizen Mobile
+Contains style / style images
+
+%package resources_rpi
+Summary: Specific resource files for a 1920x1080 display on Raspberry Pi 4
+Requires: %{name} = %{version}-%{release}
+Conflicts: %{name}-resources_mobile
+%description resources_rpi
+dali-demo specific resource files for a 1920x1080 display on Raspberry Pi 4
+Contains style / style images
+
+##############################
# Preparation
##############################
%prep
cp -f %{_builddir}/%{name}-%{version}/%{name}.rule %{buildroot}%{smack_rule_dir}
%endif
+cp -rf %{_builddir}/%{name}-%{version}/resources/style/rpi %{buildroot}/%{dali_app_res_dir}/style_rpi
##############################
# Post Install
/sbin/ldconfig
exit 0
+%post resources_rpi
+pushd %{dali_app_res_dir}
+rm -rf style
+mv style_rpi style
+popd
+
+##############################
+# Pre Uninstall
+##############################
+
+%preun resources_rpi
+case "$1" in
+ 0)
+ %preun resources_rpi
+ pushd %{dali_app_res_dir}
+ mv style style_rpi
+ popd
+ ;;
+esac
+
##############################
# Post Uninstall
##############################
%{dali_app_res_dir}/models/*
%{dali_app_res_dir}/scripts/*
%{dali_app_res_dir}/shaders/*
-%{dali_app_res_dir}/style/*
-%{dali_app_res_dir}/style/images/*
%{dali_xml_file_dir}/%{name}.xml
%{dali_icon_dir}/*
%{locale_dir}/*
%config %{smack_rule_dir}/%{name}.rule
%endif
%license LICENSE
+
+%files resources_mobile
+%if 0%{?enable_dali_smack_rules}
+%manifest com.samsung.dali-demo.manifest-smack
+%else
+%manifest com.samsung.dali-demo.manifest
+%endif
+%defattr(-,root,root,-)
+%{dali_app_res_dir}/style/*
+%{dali_app_res_dir}/style/images/*
+
+%files resources_rpi
+%if 0%{?enable_dali_smack_rules}
+%manifest com.samsung.dali-demo.manifest-smack
+%else
+%manifest com.samsung.dali-demo.manifest
+%endif
+%defattr(-,root,root,-)
+%{dali_app_res_dir}/style_rpi/*
+%{dali_app_res_dir}/style_rpi/images/*
--- /dev/null
+/*
+ * Copyright (c) 2021 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+{
+ "includes":
+ [
+ "{APPLICATION_RESOURCE_PATH}/style/base-theme.json"
+ ],
+
+ "styles":
+ {
+ "DemoTile":
+ {
+ "styles":[ "DemoTileBase" ]
+ },
+
+ "LauncherBackground":
+ {
+ "background":
+ {
+ "visualType": "GRADIENT",
+ "center": [240, 400],
+ "radius": 932,
+ "units": "USER_SPACE",
+ "stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
+ }
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.3255, 0.3412, 0.6353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.3647, 0.7569, 0.8157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.3804, 0.7412, 0.6510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 1, 1, 0.13 ]
+ }
+
+ }
+}