diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs index bb7183a9..3fa4e756 100644 --- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs +++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs @@ -79,17 +79,29 @@ namespace Xamarin.Forms.Platform.Tizen public double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes) { + double baseSize = 10; + double baseSizeSpan = 2; + + // TODO: Fix me when TargetIdiom.TV avaialbe on mainline + // In case of TV profile The base named size sholud be lager than mobile profile + if (Device.Idiom == TargetIdiom.Desktop) + { + // TODO: These valuse should be updated when TV profile UX guideline released. + baseSize = 60; + baseSizeSpan = 5; + } + switch (size) { case NamedSize.Micro: - return 10; + return baseSize; case NamedSize.Small: - return 12; + return baseSize + baseSizeSpan; case NamedSize.Default: case NamedSize.Medium: - return 14; + return baseSize + (baseSizeSpan * 2); case NamedSize.Large: - return 18; + return baseSize + (baseSizeSpan * 4); default: throw new ArgumentOutOfRangeException(); } |