</ItemGroup>
</Target>
+ <ItemGroup>
+ <None Update="res\*.png;res\*.svg">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
+ </ItemGroup>
+
</Project>
\ No newline at end of file
propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).cursorWidth = (int?)newValue,
defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).cursorWidth);
+ /// <summary> The bindable property of GrabHandleColor. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ internal static readonly BindableProperty GrabHandleColorProperty = BindableProperty.Create(nameof(GrabHandleColor), typeof(Color), typeof(TextEditorStyle), null,
+ propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).grabHandleColor = (Color)newValue,
+ defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).grabHandleColor);
+
/// <summary> The bindable property of GrabHandleImage. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
internal static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextEditorStyle), String.Empty,
internal static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextEditorStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).grabHandlePressedImage = (string)newValue,
defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).grabHandlePressedImage);
+ /// <summary> The bindable property of SelectionHandleImageLeft. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ internal static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextEditorStyle), null,
+ propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).selectionHandleImageLeft = (PropertyMap)newValue,
+ defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).selectionHandleImageLeft);
+
+ /// <summary> The bindable property of SelectionHandleImageRight. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ internal static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextEditorStyle), null,
+ propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).selectionHandleImageRight = (PropertyMap)newValue,
+ defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).selectionHandleImageRight);
+
/// <summary> The bindable property of ScrollThreshold. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
internal static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float?), typeof(TextEditorStyle), null,
propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).matchSystemLanguageDirection = (bool?)newValue,
defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).matchSystemLanguageDirection);
+ /// <summary> The bindable property of FontStyleProperty. </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextEditorStyle), null,
+ propertyChanged: (bindable, oldValue, newValue) => ((TextEditorStyle)bindable).fontStyle = (PropertyMap)newValue,
+ defaultValueCreator: (bindable) => ((TextEditorStyle)bindable).fontStyle);
+
private HorizontalAlignment? horizontalAlignment;
private Vector4 secondaryCursorColor;
private bool? enableCursorBlink;
private float? cursorBlinkInterval;
private float? cursorBlinkDuration;
private int? cursorWidth;
+ private Color grabHandleColor;
private string grabHandleImage;
private string grabHandlePressedImage;
+ private PropertyMap selectionHandleImageLeft;
+ private PropertyMap selectionHandleImageRight;
private float? scrollThreshold;
private float? scrollSpeed;
private Vector4 selectionHighlightColor;
private float? pointSize;
private Color placeholderTextColor;
private Vector4 primaryCursorColor;
+ private PropertyMap fontStyle;
static TextEditorStyle() { }
}
/// <summary>
+ /// The GrabHandleColor property.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Color GrabHandleColor
+ {
+ get => (Color)GetValue(GrabHandleColorProperty);
+ set => SetValue(GrabHandleColorProperty, value);
+ }
+
+ /// <summary>
/// The GrabHandleImage property.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
}
/// <summary>
+ /// The SelectionHandleImageLeft property.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap SelectionHandleImageLeft
+ {
+ get => (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
+ set => SetValue(SelectionHandleImageLeftProperty, value);
+ }
+
+ /// <summary>
+ /// The SelectionHandleImageRight property.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap SelectionHandleImageRight
+ {
+ get => (PropertyMap)GetValue(SelectionHandleImageRightProperty);
+ set => SetValue(SelectionHandleImageRightProperty, value);
+ }
+
+ /// <summary>
/// The ScrollThreshold property.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
get => (Vector4)GetValue(PrimaryCursorColorProperty);
set => SetValue(PrimaryCursorColorProperty, value);
}
+
+ /// <summary>
+ /// The FontStyle property.
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap FontStyle
+ {
+ get => (PropertyMap)GetValue(FontStyleProperty);
+ set => SetValue(FontStyleProperty, value);
+ }
}
}
var textFieldStyle = (TextFieldStyle)bindable;
return textFieldStyle.cursorWidth;
});
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty GrabHandleColorProperty = BindableProperty.Create(nameof(GrabHandleColor), typeof(Color), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ textFieldStyle.grabHandleColor = (Color)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ return textFieldStyle.grabHandleColor;
+ });
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
var textFieldStyle = (TextFieldStyle)bindable;
return textFieldStyle.grabHandlePressedImage;
});
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create(nameof(SelectionHandleImageLeft), typeof(PropertyMap), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ textFieldStyle.selectionHandleImageLeft = (PropertyMap)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ return textFieldStyle.selectionHandleImageLeft;
+ });
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create(nameof(SelectionHandleImageRight), typeof(PropertyMap), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ textFieldStyle.selectionHandleImageRight = (PropertyMap)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ return textFieldStyle.selectionHandleImageRight;
+ });
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
var textFieldStyle = (TextFieldStyle)bindable;
return textFieldStyle.matchSystemLanguageDirection;
});
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ textFieldStyle.fontStyle = (PropertyMap)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textFieldStyle = (TextFieldStyle)bindable;
+ return textFieldStyle.fontStyle;
+ });
private string placeholderText;
private string placeholderTextFocused;
private float? cursorBlinkInterval;
private float? cursorBlinkDuration;
private int? cursorWidth;
+ private Color grabHandleColor;
private string grabHandleImage;
private string grabHandlePressedImage;
+ private PropertyMap selectionHandleImageLeft;
+ private PropertyMap selectionHandleImageRight;
private float? scrollThreshold;
private float? scrollSpeed;
private Vector4 selectionHighlightColor;
private Selector<float?> pointSizeSelector;
private Selector<Vector4> placeholderTextColorSelector;
private Selector<Vector4> primaryCursorColorSelector;
+ private PropertyMap fontStyle;
static TextFieldStyle() { }
set => SetValue(CursorWidthProperty, value);
}
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public Color GrabHandleColor
+ {
+ get => (Color)GetValue(GrabHandleColorProperty);
+ set => SetValue(GrabHandleColorProperty, value);
+ }
+
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public string GrabHandleImage
get => (string)GetValue(GrabHandlePressedImageProperty);
set => SetValue(GrabHandlePressedImageProperty, value);
}
-
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap SelectionHandleImageLeft
+ {
+ get => (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
+ set => SetValue(SelectionHandleImageLeftProperty, value);
+ }
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap SelectionHandleImageRight
+ {
+ get => (PropertyMap)GetValue(SelectionHandleImageRightProperty);
+ set => SetValue(SelectionHandleImageRightProperty, value);
+ }
/// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
public float? ScrollThreshold
}
set => SetValue(PrimaryCursorColorSelectorProperty, value);
}
+
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap FontStyle
+ {
+ get => (PropertyMap)GetValue(FontStyleProperty);
+ set => SetValue(FontStyleProperty, value);
+ }
}
}
{
return ((TextLabelStyle)bindable).textShadow;
});
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static readonly BindableProperty FontStyleProperty = BindableProperty.Create(nameof(FontStyle), typeof(PropertyMap), typeof(TextLabelStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
+ {
+ var textLabelStyle = (TextLabelStyle)bindable;
+ textLabelStyle.fontStyle = (PropertyMap)newValue;
+ },
+ defaultValueCreator: (bindable) =>
+ {
+ var textLabelStyle = (TextLabelStyle)bindable;
+ return textLabelStyle.fontStyle;
+ });
private bool? multiLine;
private HorizontalAlignment? horizontalAlignment;
private Selector<Color> textColorSelector;
private Selector<float?> pointSizeSelector;
private Selector<TextShadow> textShadow;
+ private PropertyMap fontStyle;
static TextLabelStyle() { }
get => (Selector<TextShadow>)GetValue(TextShadowProperty);
set => SetValue(TextShadowProperty, value);
}
+
+ /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public PropertyMap FontStyle
+ {
+ get => (PropertyMap)GetValue(FontStyleProperty);
+ set => SetValue(FontStyleProperty, value);
+ }
}
}
Version = DefaultVersion,
};
- // // TODO Add a TextLabelStyle style to the theme if need.
- // // This is an example of text label style.
- // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextLabel", new TextLabelStyle()
- // {
- // PixelSize = 10,
- // TextColor = Color.Red,
- // });
+ // TextLabel style.
+ theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextLabel", new TextLabelStyle()
+ {
+ FontFamily = "BreezeSans",
+ PixelSize = 32,
+ TextColor = new Color(0.00f, 0.05f, 0.17f, 1),
+ FontStyle = new PropertyMap().Add("weight", new PropertyValue("light")),
+ });
- // // TODO Add a TextFieldStyle to the theme if need.
- // // This is an example of text filed style.
- // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextField", new TextFieldStyle()
- // {
- // //...
- // });
+ // TextField style.
+ theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextField", new TextFieldStyle()
+ {
+ FontFamily = "BreezeSans",
+ PixelSize = 32,
+ TextColor = new Color(0.00f, 0.05f, 0.17f, 1),
+ FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
+ PrimaryCursorColor = new Vector4(0.08f, 0.45f, 0.90f, 1),
+ SecondaryCursorColor = new Vector4(0.08f, 0.45f, 0.90f, 1),
+ CursorWidth = 3,
+ SelectionHighlightColor = new Vector4(0.17f, 0.37f, 0.72f, 0.20f),
+ GrabHandleColor = new Color(0.08f, 0.45f, 0.90f, 1),
+ GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
+ SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
+ SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),
+ });
- // // TODO Add a TextEditorStyle to the theme if need.
- // // This is an example of text filed style.
- // theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextEditor", new TextEditorStyle()
- // {
- // //...
- // });
+ // TextEditor style.
+ theme.AddStyleWithoutClone("Tizen.NUI.BaseComponents.TextEditor", new TextEditorStyle()
+ {
+ FontFamily = "BreezeSans",
+ PixelSize = 32,
+ TextColor = new Color(0.00f, 0.05f, 0.17f, 1),
+ FontStyle = new PropertyMap().Add("weight", new PropertyValue("regular")),
+ PrimaryCursorColor = new Vector4(0.08f, 0.45f, 0.90f, 1),
+ SecondaryCursorColor = new Vector4(0.08f, 0.45f, 0.90f, 1),
+ CursorWidth = 3,
+ SelectionHighlightColor = new Vector4(0.17f, 0.37f, 0.72f, 0.20f),
+ GrabHandleColor = new Color(0.08f, 0.45f, 0.90f, 1),
+ GrabHandleImage = FrameworkInformation.ResourcePath + "IoT_handler_center_downW.png",
+ SelectionHandleImageLeft = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downleftW.png")),
+ SelectionHandleImageRight = new PropertyMap().Add("filename", new PropertyValue(FrameworkInformation.ResourcePath + "IoT_handler_downrightW.png")),
+ });
return theme;
}