summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-06-20 23:48:36 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-06-20 23:48:36 +0000
commitad6119fae342c15da4f6351ef73bc4f359d35202 (patch)
treeaee41e8c4c5c04e1ca39d9492743a09883e85daa
parent8e83751f877a8a8b4c5101cf4c0afe60b65dc160 (diff)
parent10b777df0d9da7eeab4a13f7edded9dd1ccf07b5 (diff)
downloadxamarin-forms-ad6119fae342c15da4f6351ef73bc4f359d35202.tar.gz
xamarin-forms-ad6119fae342c15da4f6351ef73bc4f359d35202.tar.bz2
xamarin-forms-ad6119fae342c15da4f6351ef73bc4f359d35202.zip
Merge "Update NamedSize of TV profile" into tizen
-rw-r--r--Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs23
1 files changed, 17 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs b/Xamarin.Forms.Platform.Tizen/TizenPlatformServices.cs
index e59a24ab..449b0938 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: