Add theme support for Playing list and fixed playback slider position 28/265028/1
authoraman.jeph <aman.jeph@samsung.com>
Thu, 7 Oct 2021 08:43:34 +0000 (14:13 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Thu, 7 Oct 2021 08:43:34 +0000 (14:13 +0530)
Change-Id: Ic6cad49ef79a0679ab64645d7f365655f5d617d7
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
music-player/Views/PlayerView.cs
music-player/Views/PlayingListView.cs
packaging/org.tizen.MusicPlayer-1.0.0.tpk

index e08fe963623ebc269d76e16b2af5d7eff4f1c184..9e5451191705a6394729f7440e6dd5441868a07e 100755 (executable)
@@ -712,7 +712,7 @@ namespace MusicPlayer.Views
             else
             {
                 sliderView.Size2D = new Size2D(640, 80);
-                sliderView.Position2D = new Position2D(1056, 950);
+                sliderView.Position2D = new Position2D(1120, 950);
                 currentTime.Size2D = new Size2D(180, 32);
                 currentTime.Position2D = new Position2D(0, 48);
                 totalTime.Size2D = new Size2D(180, 32);
index f3f4ef35362b6cebe398e30a2a1790f86c0a1e9d..7a9bcac94b6c2ad69e5cbe1a7d982b55dec32615 100755 (executable)
@@ -20,7 +20,7 @@ namespace MusicPlayer.Views
             this.viewModel = viewModel;
             collectionView = new CollectionView()
             {
-                BackgroundImage = Resources.GetImagePath() + "playing_list_bg.png",
+                BackgroundImage = GetBackgroundImagePath(ThemeManager.PlatformThemeId),
                 ItemsSource = this.viewModel.TrackListVM,
                 ItemsLayouter = new LinearLayouter(),
                 ItemTemplate = new DataTemplate(() =>
@@ -50,5 +50,18 @@ namespace MusicPlayer.Views
         {
             collectionView.ItemsSource = viewModel.TrackListVM;
         }
+
+        private string GetBackgroundImagePath(string platformThemeId)
+        {
+            if (platformThemeId.Equals(AppConstants.DarkPlatformThemeId))
+            {
+                return Resources.GetImagePath() + "dark/list_view_bg.png";
+            }
+            else
+            {
+                return Resources.GetImagePath() + "light/list_view_bg.png";
+            }
+        }
+
     }
 }
index a789bdca5eb25f864ce5726de019fe4c6e34c4c6..cbcc2cc6099b7986d1e5eae5db293ffa793687fa 100755 (executable)
Binary files a/packaging/org.tizen.MusicPlayer-1.0.0.tpk and b/packaging/org.tizen.MusicPlayer-1.0.0.tpk differ