From: Seungkeun Lee Date: Fri, 21 Apr 2017 05:04:47 +0000 (+0900) Subject: Update NamedSize of TV profile X-Git-Tag: accepted/tizen/4.0/unified/20170816.011313~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d571a00c7e4a4ebbf54745255077e26cfe519ea2;p=platform%2Fupstream%2Fxamarin-forms.git Update NamedSize of TV profile - It's come from UX guide Change-Id: I59ab5a51baf31040b46e8ad22e58f091fe0f1d43 --- diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs index 7b07a31..3be1c95 100644 --- a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs +++ b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs @@ -50,17 +50,28 @@ namespace Xamarin.Forms.Platform.Tizen public double GetNamedSize(NamedSize size, Type targetElementType, bool useOldSizes) { - double baseSize = Forms.ConvertToDPFont(19); - double baseSizeSpan = 3; - // In case of TV profile The base named size sholud be lager than mobile profile if (Device.Idiom != TargetIdiom.Phone) { - // TODO: These valuse should be updated when TV profile UX guideline released. - baseSize = 50; - baseSizeSpan = 12; + switch (size) + { + case NamedSize.Micro: + return Forms.ConvertToDPFont(24); + case NamedSize.Small: + return Forms.ConvertToDPFont(26); + case NamedSize.Default: + case NamedSize.Medium: + return Forms.ConvertToDPFont(28); + case NamedSize.Large: + return Forms.ConvertToDPFont(84); + default: + throw new ArgumentOutOfRangeException(); + } + } + double baseSize = Forms.ConvertToDPFont(19); + double baseSizeSpan = 3; switch (size) { case NamedSize.Micro: