From: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics Date: Tue, 12 Dec 2023 10:24:22 +0000 (+0530) Subject: Updating taskbar UI as per new UX. X-Git-Tag: accepted/tizen/unified/20231214.164936^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88141f12e70a8f42482ee0e027c07e5ce86e439c;p=profile%2Fiot%2Fapps%2Fdotnet%2Ftaskbar.git Updating taskbar UI as per new UX. Fixing JIRA Issues -> [5543], [5544], [5545], [5546], [5547] Change-Id: Id6916a4ac009295b8c85fb1c76837b76cc5e5a78 Signed-off-by: Shivam Varshney/Core S/W Group /SRI-Delhi/Engineer/Samsung Electronics --- diff --git a/TaskBar/Common/Resources.cs b/TaskBar/Common/Resources.cs index acf0d20..2ceb49f 100644 --- a/TaskBar/Common/Resources.cs +++ b/TaskBar/Common/Resources.cs @@ -26,16 +26,14 @@ namespace TaskBar.Common private static bool IsLightTheme => ThemeManager.PlatformThemeId == LightPlatformThemeId; public static Color TaskbarBackgroundColor => IsLightTheme ? new Color("rgba(255, 254, 254, 0.3)") : new Color("rgba(22, 19, 26, 0.3)"); + public static Color DisabledTaskbarBackgroundColor => IsLightTheme ? new Color("rgba(255, 254, 254, 0.15)") : new Color("rgba(22, 19, 26, 0.15)"); public static Color MenuBackgroundColor => IsLightTheme ? new Color("rgba(250, 250, 250, 0.5)") : new Color("rgba(22, 19, 26, 0.5)"); public static Color PopupBackgroundColor => IsLightTheme ? new Color("#FAFAFA") : new Color("#16131A"); public static Color TaskbarTextColor => IsLightTheme ? new Color("#090E21") : new Color("#FDFDFD"); public static Color FillButtonTextColor => IsLightTheme ? new Color("#16131A") : new Color("#FDFDFD"); public static Color FillButtonColor => IsLightTheme ? new Color("#FF6200") : new Color("#FF8A00"); - public static Color DisabledButtonTextColor => IsLightTheme ? new Color("#CACACA") : new Color("#666666"); - public static Color NormalButtonTextColor => IsLightTheme ? new Color("#FF6200") : new Color("#FF8A00"); - public static Color PressedButtonTextColor => IsLightTheme ? new Color("#FFA166") : new Color("#CC6E00"); public static Color NormalMenuItemTextColor => IsLightTheme ? new Color("#090E21") : new Color("#FDFDFD"); - public static Color PressedMenuItemTextColor => new Color("#1473E6"); + public static Color PressedMenuItemTextColor => new Color("#FF6200"); public static Color UninstallMenuItemTextColor => new Color("#A40404"); public static Color DisabledMenuItemTextColor => IsLightTheme ? new Color("#CACACA") : new Color("#666666"); @@ -50,12 +48,9 @@ namespace TaskBar.Common public const int SingleItemCornerRadius = 8; public const int ButtonBorderlineWidth = 2; + public static Size2D MinimumMenuSize = new Size2D(220, 44); public static Size2D PopupButtonSize = new Size2D(252, 48); public static Size2D IndicatorSize = new Size2D(20, 4); - public static Size2D MenuItemSize = new Size2D(220, 44); - - public static readonly Vector4 TopItemCornerRadius = new Vector4(8, 8, 0, 0); - public static readonly Vector4 BottomItemCornerRadius = new Vector4(0, 0, 8, 8); public static string GetImagePath() { diff --git a/TaskBar/Models/AppInfoModel.cs b/TaskBar/Models/AppInfoModel.cs index f700caa..c5aec1c 100644 --- a/TaskBar/Models/AppInfoModel.cs +++ b/TaskBar/Models/AppInfoModel.cs @@ -17,7 +17,6 @@ using System; using System.Collections.Generic; using System.Windows.Input; -using Tizen.NUI; using Tizen.NUI.Binding; using TaskBar.Common; using TaskBar.Core; @@ -26,9 +25,6 @@ namespace TaskBar.Models { class AppInfoModel : PropertyNotifier { - private ImageVisual defaultVisual; - private GradientVisual gradientVisual; - public event Action PinAppClicked; public event Action UnpinAppClicked; public event Action UninstallAppClicked; @@ -77,13 +73,6 @@ namespace TaskBar.Models set => SetProperty(ref isRunning, value); } - private PropertyMap iconBackground; - public PropertyMap IconBackground - { - get => iconBackground; - set => SetProperty(ref iconBackground, value); - } - private ICommand appSelectCommand; public ICommand AppSelectCommand { @@ -146,106 +135,6 @@ namespace TaskBar.Models } } - private void SetDefaultImageVisual() - { - defaultVisual = new ImageVisual() - { - URL = Resources.GetImagePath() + "default_gradient.png", - CornerRadius = new Vector4(12, 12, 12, 12), - }; - } - - private void SetGradientVisual(PropertyArray stopColor) - { - gradientVisual = new GradientVisual() - { - StartPosition = new Vector2(0.0f, -1.0f), - EndPosition = new Vector2(0.0f, 1.0f), - StopColor = stopColor, - SpreadMethod = GradientVisualSpreadMethodType.Pad, - CornerRadius = new Vector4(12, 12, 12, 12), - }; - } - - private PropertyArray GetGradientStopColors(Palette palette) - { - PropertyArray propertyArray = new PropertyArray(); - if (palette == null) - { - Tizen.Log.Error(Resources.LogTag, "Color palette from background is null"); - return propertyArray; - } - - Palette.Swatch lightMutedSwatch = palette.GetLightMutedSwatch(); - Palette.Swatch darkMutedSwatch = palette.GetDarkMutedSwatch(); - if (lightMutedSwatch != null && darkMutedSwatch != null) - { - propertyArray.PushBack(new PropertyValue(lightMutedSwatch.GetRgb())); - propertyArray.PushBack(new PropertyValue(darkMutedSwatch.GetRgb())); - return propertyArray; - } - - Palette.Swatch lightVibrantSwatch = palette.GetLightVibrantSwatch(); - Palette.Swatch darkVibrantSwatch = palette.GetDarkVibrantSwatch(); - if (lightVibrantSwatch != null && darkVibrantSwatch != null) - { - propertyArray.PushBack(new PropertyValue(lightVibrantSwatch.GetRgb())); - propertyArray.PushBack(new PropertyValue(darkVibrantSwatch.GetRgb())); - return propertyArray; - } - - Palette.Swatch mutedSwatch = palette.GetMutedSwatch(); - Palette.Swatch vibrantSwatch = palette.GetVibrantSwatch(); - if (mutedSwatch != null && vibrantSwatch != null) - { - propertyArray.PushBack(new PropertyValue(mutedSwatch.GetRgb())); - propertyArray.PushBack(new PropertyValue(vibrantSwatch.GetRgb())); - return propertyArray; - } - - IReadOnlyCollection swatches = palette.GetSwatches(); - foreach (Palette.Swatch swatch in swatches) - { - if (propertyArray.Count() >= 2) - { - return propertyArray; - } - if (swatch != null) - { - propertyArray.PushBack(new PropertyValue(swatch.GetRgb())); - } - } - return propertyArray; - } - - public void SetExtractedBackground(string path) - { - Tizen.Log.Debug(Resources.LogTag, "Path for the color image thumbnail" + path); - PixelBuffer pixelBuffer = ImageLoader.LoadImageFromFile(path); - Palette palette = null; - try - { - palette = Palette.Generate(pixelBuffer); - } - catch (ArgumentNullException e) - { - Tizen.Log.Error(Resources.LogTag, "ArgumentNullException: " + e.Message); - } - PropertyArray stopColor = GetGradientStopColors(palette); - if (stopColor.Count() < 2) - { - Tizen.Log.Info(Resources.LogTag, "Palette or palatte values not valid, adding default gradient"); - SetDefaultImageVisual(); - IconBackground = defaultVisual.OutputVisualMap; - } - else - { - Tizen.Log.Info(Resources.LogTag, "setting palette color"); - SetGradientVisual(stopColor); - IconBackground = gradientVisual.OutputVisualMap; - } - } - public void CreateUserApplicationsMoreMenu() { List menuItems = new List @@ -257,13 +146,6 @@ namespace TaskBar.Models ~AppInfoModel() { - Tizen.Log.Info(Resources.LogTag, "Clearing NUI PropertyMap resources"); - defaultVisual?.Dispose(); - defaultVisual = null; - gradientVisual?.Dispose(); - gradientVisual = null; - IconBackground?.Dispose(); - IconBackground = null; if (Name == "back") { InputGeneratorBase.FinalizeInputGenerator(); diff --git a/TaskBar/ViewModels/ApplicationsViewModel.cs b/TaskBar/ViewModels/ApplicationsViewModel.cs index 9310531..c4543ee 100644 --- a/TaskBar/ViewModels/ApplicationsViewModel.cs +++ b/TaskBar/ViewModels/ApplicationsViewModel.cs @@ -155,7 +155,6 @@ namespace TaskBar.ViewModels AppInfoModel appInfoModel = new AppInfoModel(appInfo.Label, appId, appInfo.IconPath); appInfoModel.IsRunning = ApplicationManager.IsRunning(appId); appInfoModel.IsPinned = pinnedAppsInfo.ContainsKey(appId); - appInfoModel.SetExtractedBackground(appInfoModel.IconUrl); appInfoModel.CreateUserApplicationsMoreMenu(); appInfoModel.PinAppClicked += () => { diff --git a/TaskBar/Views/AppItemView.cs b/TaskBar/Views/AppItemView.cs index 25638ed..d4a7560 100644 --- a/TaskBar/Views/AppItemView.cs +++ b/TaskBar/Views/AppItemView.cs @@ -14,6 +14,7 @@ * limitations under the License. */ +using System; using System.Collections.Generic; using System.Windows.Input; using Tizen.NUI; @@ -68,6 +69,9 @@ namespace TaskBar.Views }, defaultValueCreator: (bindable) => (bindable as AppItemView).menuItemSelectCommand); + public event Action MoreMenuAdded; + public event Action MoreMenuRemoved; + public AppItemView() : base() { WidthSpecification = IconSize.SpToPx(); @@ -93,7 +97,6 @@ namespace TaskBar.Views { UpdateTheme(); } - private void UpdateTheme() { UpdateMenuTheme(); @@ -110,9 +113,9 @@ namespace TaskBar.Views return; } var menuItems = moreMenu.Items as List; + moreMenu.BackgroundColor = Resources.MenuBackgroundColor; foreach (MenuItem item in menuItems) { - item.BackgroundColor = Resources.MenuBackgroundColor; ColorSelector colors = new ColorSelector() { Pressed = Resources.PressedMenuItemTextColor, @@ -211,10 +214,13 @@ namespace TaskBar.Views { MenuStyle moreMenuStyle = new MenuStyle() { - BackgroundColor = Color.Transparent, + CornerRadius = Resources.SingleItemCornerRadius.SpToPx(), + MinimumSize = Resources.MinimumMenuSize.SpToPx(), }; Tizen.Log.Info(Resources.LogTag, "Custom Menu"); moreMenu = new CustomMenu(moreMenuStyle); + moreMenu.AddedToWindow += (object sender, EventArgs e) => { MoreMenuAdded?.Invoke(this); }; + moreMenu.RemovedFromWindow += (object sender, EventArgs e) => { MoreMenuRemoved?.Invoke(this); }; } moreMenu.Position2D = new Position2D(moreMenuPositionX, moreMenuPositionY); moreMenu.VisibilityChanged += (object sender, VisibilityChangedEventArgs e) => @@ -239,7 +245,7 @@ namespace TaskBar.Views { ButtonStyle buttonStyle = new ButtonStyle() { - Size = Resources.MenuItemSize.SpToPx(), + SizeHeight = Resources.MenuItemHeight.SpToPx(), Padding = new Extents(10, 10, 0, 0).SpToPx(), Text = new TextLabelStyle() { @@ -262,15 +268,6 @@ namespace TaskBar.Views Tizen.Log.Info(Resources.LogTag, "more menu Item: " + menuItemName); } } - if (menuItemsList.Count > 1) - { - menuItemsList[0].CornerRadius = Resources.TopItemCornerRadius; - menuItemsList[^1].CornerRadius = Resources.BottomItemCornerRadius; - } - else if (menuItemsList.Count == 1) - { - menuItemsList[0].CornerRadius = Resources.SingleItemCornerRadius.SpToPx(); - } if (moreMenu != null) { moreMenu.Items = menuItemsList; @@ -298,6 +295,7 @@ namespace TaskBar.Views item.Clicked -= OnItemClicked; } moreMenuList.Clear(); + moreMenu.Items = null; } } diff --git a/TaskBar/Views/ApplicationsView.cs b/TaskBar/Views/ApplicationsView.cs deleted file mode 100644 index c25e5db..0000000 --- a/TaskBar/Views/ApplicationsView.cs +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (c) 2023 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. - */ - -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Binding; -using Tizen.NUI.Components; -using TaskBar.Common; - -namespace TaskBar.Views -{ - class ApplicationsView : BaseView - { - public ApplicationsView() : base() - { - Name = "ApplicationsView"; - Tizen.Log.Info(Resources.LogTag, "ApplicationsView"); - } - - protected override void UpdateApps() - { - if (apps == null) - { - return; - } - - foreach (AppItemView item in apps) - { - item.BindingContext = null; - item.Dispose(); - Remove(item); - } - apps.Clear(); - - foreach (var item in AppList) - { - AppItemView appItemView = new AppItemView(); - Add(appItemView); - apps.Add(appItemView); - appItemView.BindingContext = item; - appItemView.AppIcon.Icon.SetBinding(ImageView.ResourceUrlProperty, "IconUrl"); - appItemView.AppIcon.SetBinding(Control.CommandProperty, "AppSelectCommand"); - appItemView.AppIcon.SetBinding(BackgroundProperty, "IconBackground"); - appItemView.SetBinding(AppItemView.ShowIndicatorProperty, "IsRunning"); - appItemView.SetBinding(AppItemView.MenuItemNamesProperty, "MoreMenuItems"); - appItemView.SetBinding(AppItemView.MenuItemSelectCommandProperty, "MenuItemSelectCommand"); - } - Tizen.Log.Info(Resources.LogTag, "Buttons Added"); - } - } -} diff --git a/TaskBar/Views/BaseView.cs b/TaskBar/Views/BaseView.cs index d2c11ad..9fef9e3 100644 --- a/TaskBar/Views/BaseView.cs +++ b/TaskBar/Views/BaseView.cs @@ -14,16 +14,18 @@ * limitations under the License. */ +using System; using System.Collections; using System.Collections.Generic; using Tizen.NUI; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; +using Tizen.NUI.Components; using TaskBar.Common; namespace TaskBar.Views { - abstract class BaseView : View + class BaseView : View { protected List apps; @@ -46,6 +48,8 @@ namespace TaskBar.Views }, defaultValueCreator: (bindable) => (bindable as BaseView).appList); + public event Action MenuUpdated; + public BaseView() { Name = "BaseView"; @@ -70,6 +74,22 @@ namespace TaskBar.Views } } + public void UpdateOpacity(View selectedItem, bool isMenuAdded) + { + if (apps == null) + { + return; + } + foreach (AppItemView item in apps) + { + if (selectedItem == item) + { + continue; + } + item.Opacity = isMenuAdded ? 0.5f : 1.0f; + } + } + private IEnumerable appList; public IEnumerable AppList { @@ -77,7 +97,37 @@ namespace TaskBar.Views set => SetValue(AppListProperty, value); } - protected abstract void UpdateApps(); + private void UpdateApps() + { + if (apps == null) + { + return; + } + + foreach (AppItemView item in apps) + { + item.BindingContext = null; + item.Dispose(); + Remove(item); + } + apps.Clear(); + + foreach (var item in AppList) + { + AppItemView appItemView = new AppItemView(); + Add(appItemView); + apps.Add(appItemView); + appItemView.BindingContext = item; + appItemView.AppIcon.Icon.SetBinding(ImageView.ResourceUrlProperty, "IconUrl"); + appItemView.AppIcon.SetBinding(Control.CommandProperty, "AppSelectCommand"); + appItemView.SetBinding(AppItemView.ShowIndicatorProperty, "IsRunning"); + appItemView.SetBinding(AppItemView.MenuItemNamesProperty, "MoreMenuItems"); + appItemView.SetBinding(AppItemView.MenuItemSelectCommandProperty, "MenuItemSelectCommand"); + appItemView.MoreMenuAdded += (AppItemView sender) => { MenuUpdated?.Invoke(sender, true); }; + appItemView.MoreMenuRemoved += (AppItemView sender) => { MenuUpdated?.Invoke(sender, false); }; + } + Tizen.Log.Info(Resources.LogTag, "Buttons Added"); + } protected override void Dispose(DisposeTypes type) { diff --git a/TaskBar/Views/CustomMenu.cs b/TaskBar/Views/CustomMenu.cs index beb3b55..986f96b 100644 --- a/TaskBar/Views/CustomMenu.cs +++ b/TaskBar/Views/CustomMenu.cs @@ -14,7 +14,6 @@ * limitations under the License. */ -using Tizen.NUI; using Tizen.NUI.Components; using TaskBar.Common; @@ -39,7 +38,6 @@ namespace TaskBar.Views public void SetScrimAttributes() { - Scrim.BackgroundColor = new Color(0, 0, 0, 0.3f); Scrim.AllowOnlyOwnTouch = true; } } diff --git a/TaskBar/Views/MainView.cs b/TaskBar/Views/MainView.cs index 588fc41..52085ac 100644 --- a/TaskBar/Views/MainView.cs +++ b/TaskBar/Views/MainView.cs @@ -29,7 +29,7 @@ namespace TaskBar.Views { private ApplicationsViewModel applicationsViewModel; private QuickAccessViewModel quickAccessViewModel; - private ApplicationsView applicationsView; + private BaseView applicationsView; private View addPinnedAppsView; private Button addPinnedAppsButton; private CustomMenu addButtonMoreMenu; @@ -38,7 +38,7 @@ namespace TaskBar.Views private int moreMenuPositionX; private int moreMenuPositionY; private LongPressGestureDetector addAppsLongPressDetector; - private QuickAccessView quickAccessView; + private BaseView quickAccessView; private const int AddButtonSize = 48; @@ -56,23 +56,36 @@ namespace TaskBar.Views CellPadding = new Size2D(8, 0).SpToPx(), }; applicationsViewModel = new ApplicationsViewModel(); - applicationsView = new ApplicationsView(); + applicationsView = new BaseView(); Add(applicationsView); applicationsView.BindingContext = applicationsViewModel; + applicationsView.MenuUpdated += OnMenuUpdated; applicationsView.SetBinding(BaseView.AppListProperty, "ButtonsInfo"); CreateAddPinnedAppsView(); Add(addPinnedAppsView); quickAccessViewModel = new QuickAccessViewModel(); - quickAccessView = new QuickAccessView(); + quickAccessView = new BaseView(); Add(quickAccessView); quickAccessView.BindingContext = quickAccessViewModel; + quickAccessView.MenuUpdated += OnMenuUpdated; quickAccessView.SetBinding(BaseView.AppListProperty, "ButtonsInfo"); UpdateTheme(); ThemeManager.ThemeChanged += OnThemeUpdated; } + private void OnMenuUpdated(View sender, bool isMenuAdded) + { + applicationsView.UpdateOpacity(sender, isMenuAdded); + quickAccessView.UpdateOpacity(sender, isMenuAdded); + if (sender != addPinnedAppsButton) + { + addPinnedAppsView.Opacity = isMenuAdded ? 0.5f : 1.0f; + } + BackgroundColor = isMenuAdded ? Resources.DisabledTaskbarBackgroundColor : Resources.TaskbarBackgroundColor; + } + public void UpdateView() { WidthSpecification = DeviceInfo.Instance.DisplayWidth; @@ -105,9 +118,9 @@ namespace TaskBar.Views return; } var menuItems = addButtonMoreMenu.Items as List; + addButtonMoreMenu.BackgroundColor = Resources.MenuBackgroundColor; foreach (MenuItem item in menuItems) { - item.BackgroundColor = Resources.MenuBackgroundColor; ColorSelector colors = new ColorSelector() { Pressed = Resources.PressedMenuItemTextColor, @@ -181,9 +194,12 @@ namespace TaskBar.Views MenuStyle moreMenuStyle = new MenuStyle() { Position = new Position2D(moreMenuPositionX, moreMenuPositionY), - BackgroundColor = Color.Transparent, + MinimumSize = Resources.MinimumMenuSize.SpToPx(), + CornerRadius = Resources.SingleItemCornerRadius.SpToPx(), }; addButtonMoreMenu = new CustomMenu(moreMenuStyle); + addButtonMoreMenu.AddedToWindow += (object sender, System.EventArgs e) => { OnMenuUpdated(addPinnedAppsButton, true); }; + addButtonMoreMenu.RemovedFromWindow += (object sender, System.EventArgs e) => { OnMenuUpdated(addPinnedAppsButton, false); }; } addButtonMoreMenu.VisibilityChanged += (object sender, VisibilityChangedEventArgs e) => { @@ -195,7 +211,7 @@ namespace TaskBar.Views }; ButtonStyle buttonStyle = new ButtonStyle() { - Size = Resources.MenuItemSize.SpToPx(), + SizeHeight = Resources.MenuItemHeight.SpToPx(), Padding = new Extents(10, 10, 0, 0).SpToPx(), Text = new TextLabelStyle() { @@ -205,7 +221,6 @@ namespace TaskBar.Views VerticalAlignment = VerticalAlignment.Center, Text = "Add Apps", }, - CornerRadius = Resources.SingleItemCornerRadius.SpToPx(), IsSelectable = false, }; MenuItem item = new MenuItem(buttonStyle); @@ -247,6 +262,7 @@ namespace TaskBar.Views ThemeManager.ThemeChanged -= OnThemeUpdated; DisposeMoreMenu(); + applicationsView.MenuUpdated -= OnMenuUpdated; applicationsView.BindingContext = null; Remove(applicationsView); applicationsView?.Dispose(); @@ -267,6 +283,7 @@ namespace TaskBar.Views addPinnedAppsView?.Dispose(); addPinnedAppsView = null; + quickAccessView.MenuUpdated -= OnMenuUpdated; quickAccessView.BindingContext = null; Remove(quickAccessView); quickAccessView?.Dispose(); diff --git a/TaskBar/Views/QuickAccessView.cs b/TaskBar/Views/QuickAccessView.cs deleted file mode 100644 index 887a91c..0000000 --- a/TaskBar/Views/QuickAccessView.cs +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2023 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. - */ - -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Binding; -using Tizen.NUI.Components; -using TaskBar.Common; - -namespace TaskBar.Views -{ - class QuickAccessView : BaseView - { - public QuickAccessView() : base() - { - Name = "QuickAccessView"; - Tizen.Log.Info(Resources.LogTag, "QuickAccessView"); - } - - protected override void UpdateApps() - { - if (apps == null) - { - return; - } - - foreach (AppItemView item in apps) - { - item.BindingContext = null; - item.Dispose(); - Remove(item); - } - apps.Clear(); - - foreach (var item in AppList) - { - AppItemView appItemView = new AppItemView(); - Add(appItemView); - apps.Add(appItemView); - appItemView.BindingContext = item; - appItemView.AppIcon.Icon.SetBinding(ImageView.ResourceUrlProperty, "IconUrl"); - appItemView.AppIcon.SetBinding(Control.CommandProperty, "AppSelectCommand"); - appItemView.SetBinding(AppItemView.ShowIndicatorProperty, "IsRunning"); - appItemView.SetBinding(AppItemView.MenuItemNamesProperty, "MoreMenuItems"); - appItemView.SetBinding(AppItemView.MenuItemSelectCommandProperty, "MenuItemSelectCommand"); - } - Tizen.Log.Info(Resources.LogTag, "Buttons Added"); - } - } -} diff --git a/TaskBar/Views/UninstallConfirmationView.cs b/TaskBar/Views/UninstallConfirmationView.cs index 70b1fb1..0ebff45 100644 --- a/TaskBar/Views/UninstallConfirmationView.cs +++ b/TaskBar/Views/UninstallConfirmationView.cs @@ -32,7 +32,6 @@ namespace TaskBar.Views Tizen.Log.Info(Resources.LogTag, "Popup Added"); baseView = new View() { - BackgroundColor = new Color(0, 0, 0, 0.3f), AllowOnlyOwnTouch = true, }; Window.Instance.Add(baseView); diff --git a/packaging/org.tizen.taskbar-1.0.0.tpk b/packaging/org.tizen.taskbar-1.0.0.tpk index aa43efd..d910662 100644 Binary files a/packaging/org.tizen.taskbar-1.0.0.tpk and b/packaging/org.tizen.taskbar-1.0.0.tpk differ