summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungkeun Lee <sngn.lee@samsung.com>2017-04-21 14:04:47 +0900
committerSeungkeun Lee <sngn.lee@samsung.com>2017-06-15 04:42:55 +0000
commit10b777df0d9da7eeab4a13f7edded9dd1ccf07b5 (patch)
tree18197be5199d81ebb64fd7c9d852596454352088
parentdfbe521553e7c25ac72e919bc181b8aa8e071ce6 (diff)
downloadxamarin-forms-10b777df0d9da7eeab4a13f7edded9dd1ccf07b5.tar.gz
xamarin-forms-10b777df0d9da7eeab4a13f7edded9dd1ccf07b5.tar.bz2
xamarin-forms-10b777df0d9da7eeab4a13f7edded9dd1ccf07b5.zip
Update NamedSize of TV profile
- It's come from UX guide Change-Id: I59ab5a51baf31040b46e8ad22e58f091fe0f1d43
-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 7b07a31a..3be1c95a 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: