Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NUI] Update Font size scale again based on the updated guide #5394

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,8 @@
// The following values from 'system-settings/libutil/sstu.c'
private const float FontSizeScaleSmall = 0.87f;
private const float FontSizeScaleNormal = 1.0f;
private const float FontSizeScaleLarge = 1.1f;
private const float FontSizeScaleHuge = 1.2f;
private const float FontSizeScaleLarge = 1.13f;
private const float FontSizeScaleHuge = 1.26f;
private const float FontSizeScaleGiant = 1.4f;
#endif

Expand Down Expand Up @@ -1186,7 +1186,7 @@
/// <since_tizen> 9 </since_tizen>
public static string CopyToClipboard(TextEditor textEditor)
{
string copiedText = Interop.TextEditor.CopyText(textEditor.SwigCPtr);

Check warning on line 1189 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'string TextUtils.CopyToClipboard(TextEditor textEditor)', validate parameter 'textEditor' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return copiedText;
}
Expand All @@ -1199,7 +1199,7 @@
/// <since_tizen> 9 </since_tizen>
public static string CopyToClipboard(TextField textField)
{
string copiedText = Interop.TextField.CopyText(textField.SwigCPtr);

Check warning on line 1202 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'string TextUtils.CopyToClipboard(TextField textField)', validate parameter 'textField' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return copiedText;
}
Expand All @@ -1212,7 +1212,7 @@
/// <since_tizen> 9 </since_tizen>
public static string CutToClipboard(TextEditor textEditor)
{
string cutText = Interop.TextEditor.CutText(textEditor.SwigCPtr);

Check warning on line 1215 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'string TextUtils.CutToClipboard(TextEditor textEditor)', validate parameter 'textEditor' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return cutText;
}
Expand All @@ -1225,7 +1225,7 @@
/// <since_tizen> 9 </since_tizen>
public static string CutToClipboard(TextField textField)
{
string cutText = Interop.TextField.CutText(textField.SwigCPtr);

Check warning on line 1228 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'string TextUtils.CutToClipboard(TextField textField)', validate parameter 'textField' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return cutText;
}
Expand All @@ -1242,7 +1242,7 @@
/// <since_tizen> 9 </since_tizen>
public static void PasteTo(TextEditor textEditor)
{
Interop.TextEditor.PasteText(textEditor.SwigCPtr);

Check warning on line 1245 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'void TextUtils.PasteTo(TextEditor textEditor)', validate parameter 'textEditor' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

Expand All @@ -1258,7 +1258,7 @@
/// <since_tizen> 9 </since_tizen>
public static void PasteTo(TextField textField)
{
Interop.TextField.PasteText(textField.SwigCPtr);

Check warning on line 1261 in src/Tizen.NUI/src/public/BaseComponents/TextUtils.cs

View workflow job for this annotation

GitHub Actions / build

In externally visible method 'void TextUtils.PasteTo(TextField textField)', validate parameter 'textField' is non-null before using it. If appropriate, throw an ArgumentNullException when the argument is null or add a Code Contract precondition asserting non-null argument.
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}

Expand Down
Loading