Skip to content

Commit

Permalink
[Tizen] Implement ProgressColor property in ProgressBarHandlers
Browse files Browse the repository at this point in the history
- Implement ProgressColor property in ProgressBarHandlers (dotnet#600)
  • Loading branch information
rookiejava committed Sep 7, 2021
1 parent 3024bb0 commit a8ddfab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Core/src/Handlers/ProgressBar/ProgressBarHandler.Tizen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ public static void MapProgress(ProgressBarHandler handler, IProgress progress)
{
handler.NativeView?.UpdateProgress(progress);
}

public static void MapProgressColor(ProgressBarHandler handler, IProgress progress)
{
handler.NativeView?.UpdateProgressColor(progress);
}
}
}
5 changes: 5 additions & 0 deletions src/Core/src/Platform/Tizen/ProgressBarExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ public static void UpdateProgress(this ProgressBar nativeProgressBar, IProgress
{
nativeProgressBar.Value = progress.Progress;
}

public static void UpdateProgressColor(this ProgressBar nativeProgressBar, IProgress progress)
{
nativeProgressBar.Color = progress.ProgressColor.ToNativeEFL();
}
}
}

0 comments on commit a8ddfab

Please sign in to comment.