+++ /dev/null
-using SettingCore.Views;
-using Tizen.NUI;
-using Tizen.NUI.BaseComponents;
-using Tizen.NUI.Components;
-
-namespace SettingAccessibility
-{
- internal class SpeechRateRow : SettingCore.Views.BaseComponent
- {
- private readonly ThemeColor TrackColors = new ThemeColor(new Color("#FF6200"), new Color("#FF8A00"), Color.Transparent, Color.Transparent, new Color("#CACACA"), new Color("#CACACA"));
- private readonly ThemeColor BgTrackColors = new ThemeColor(new Color(1.0f, 0.37f, 0.0f, 0.1f), new Color(1.0f, 0.37f, 0.0f, 0.1f), Color.Transparent, Color.Transparent);
- private readonly ThemeColor TextColors = new ThemeColor(new Color("#090E21"), new Color("#FDFDFD"), Color.Transparent, Color.Transparent, new Color("#CACACA"), new Color("#666666"));
-
- private ImageView leftIcon;
- private ImageView rightIcon;
- private TextLabel primary;
-
- public Slider Slider { get; private set; }
-
- public SpeechRateRow(string primaryText, string leftIconPath, string rightIconPath)
- {
- Layout = new LinearLayout()
- {
- LinearOrientation = LinearLayout.Orientation.Vertical,
- };
-
- primary = new TextLabel
- {
- AccessibilityHidden = true,
- ThemeChangeSensitive = true,
- Text = primaryText,
- Margin = new Extents(16, 0, 16, 0).SpToPx(),
- PixelSize = 24.SpToPx(),
- };
-
- var sliderView = new View
- {
- WidthSpecification = LayoutParamPolicies.MatchParent,
- Margin = new Extents(16, 16, 16, 16).SpToPx(),
- Layout = new LinearLayout()
- {
- LinearOrientation = LinearLayout.Orientation.Horizontal,
- VerticalAlignment = VerticalAlignment.Center,
- },
- };
-
- leftIcon = new ImageView(leftIconPath)
- {
- Size2D = new Size2D(48, 48).SpToPx(),
- Margin = new Extents(16, 0, 8, 8).SpToPx(),
- };
-
- rightIcon = new ImageView(rightIconPath)
- {
- Size2D = new Size2D(48, 48).SpToPx(),
- Margin = new Extents(0, 16, 8, 8).SpToPx(),
- };
-
- Slider = new Slider()
- {
- WidthResizePolicy = ResizePolicyType.FillToParent,
- Direction = Slider.DirectionType.Horizontal,
- TrackThickness = (uint)8.SpToPx(),
- ThumbSize = new Size(24, 24).SpToPx(),
- BgTrackColor = BgTrackColors.Normal,
- SlidedTrackColor = TrackColors.Normal,
-
- IsDiscrete = true,
- DiscreteValue = 1,
- };
-
- sliderView.Add(leftIcon);
- sliderView.Add(Slider);
- sliderView.Add(rightIcon);
-
- Add(primary);
- Add(sliderView);
-
- ThemeManager.ThemeChanged += ThemeManager_ThemeChanged;
- }
-
- private void ThemeManager_ThemeChanged(object sender, ThemeChangedEventArgs e)
- {
- primary.TextColor = TextColors.Normal;
-
- Slider.BgTrackColor = BgTrackColors.Normal;
- Slider.SlidedTrackColor = TrackColors.Normal;
- }
-
- protected override string AccessibilityGetName()
- {
- return $"{primary.Text}, {(int)(Slider.CurrentValue / Slider.MaxValue * 100)} %";
- }
- }
-}
--- /dev/null
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace SettingAccessibility.TextResources {
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SettingAccessibility.TextResources.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to While Screen reader is enabled, your phone will provide voice feedback. For example, Screen reader will tell you what you can interact with on each screen. Tap items to select them and hear what they are, and double tap items to perform the telated action. .
+ /// </summary>
+ public static string IDS_ACCS_BODY_WHILE_SCREEN_READER_IS_ENABLED_YOUR_PHONE_WILL_PROVIDE_VOICE_FEEDBACK_FOR_EXAMPLE_SCREEN_READER_WILL_MSG {
+ get {
+ return ResourceManager.GetString("IDS_ACCS_BODY_WHILE_SCREEN_READER_IS_ENABLED_YOUR_PHONE_WILL_PROVIDE_VOICE_FEEDBA" +
+ "CK_FOR_EXAMPLE_SCREEN_READER_WILL_MSG", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Accessibility.
+ /// </summary>
+ public static string IDS_ST_BODY_ACCESSIBILITY {
+ get {
+ return ResourceManager.GetString("IDS_ST_BODY_ACCESSIBILITY", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Talk Back.
+ /// </summary>
+ public static string IDS_ST_HEADER_TALK_BACK {
+ get {
+ return ResourceManager.GetString("IDS_ST_HEADER_TALK_BACK", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Screen Reader (TTS).
+ /// </summary>
+ public static string IDS_ST_SCREEN_READER_TTS {
+ get {
+ return ResourceManager.GetString("IDS_ST_SCREEN_READER_TTS", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Keyboard feedback.
+ /// </summary>
+ public static string IDS_ST_TTS_KEYBOARD_FEEDBACK {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_KEYBOARD_FEEDBACK", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Always read keyboard input aload.
+ /// </summary>
+ public static string IDS_ST_TTS_KEYBOARD_INPUT_ALOAD {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_KEYBOARD_INPUT_ALOAD", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Read usage hints aloud.
+ /// </summary>
+ public static string IDS_ST_TTS_READ_USAGE_HINTS_ALOAD {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_READ_USAGE_HINTS_ALOAD", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Sound feedback.
+ /// </summary>
+ public static string IDS_ST_TTS_SOUND_FEEDBACK {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_SOUND_FEEDBACK", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Speech rate.
+ /// </summary>
+ public static string IDS_ST_TTS_SPEECH_RATE {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_SPEECH_RATE", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Status bar information.
+ /// </summary>
+ public static string IDS_ST_TTS_STATUS_BAR_INFO {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_STATUS_BAR_INFO", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Select which information from indicators shown on the status bar will be read aloud when you triple tap the screen with two fingers, for example, the time and date, the device’s signal strength, Wi-Fi and Bluetooth connections, and the battery power..
+ /// </summary>
+ public static string IDS_ST_TTS_STATUS_BAR_INFO_DESCRIPTION {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_STATUS_BAR_INFO_DESCRIPTION", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Vibration feedback.
+ /// </summary>
+ public static string IDS_ST_TTS_VIBRATION_FEEDBACK {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VIBRATION_FEEDBACK", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Auto.
+ /// </summary>
+ public static string IDS_ST_TTS_VOICE_AUTO {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VOICE_AUTO", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Child.
+ /// </summary>
+ public static string IDS_ST_TTS_VOICE_CHILD {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VOICE_CHILD", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Female.
+ /// </summary>
+ public static string IDS_ST_TTS_VOICE_FEMALE {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VOICE_FEMALE", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Male.
+ /// </summary>
+ public static string IDS_ST_TTS_VOICE_MALE {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VOICE_MALE", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Volume.
+ /// </summary>
+ public static string IDS_ST_TTS_VOICE_VOLUME {
+ get {
+ return ResourceManager.GetString("IDS_ST_TTS_VOICE_VOLUME", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Voice Type & Language.
+ /// </summary>
+ public static string IDS_ST_VOICE_TYPE_AND_LANGUAGE {
+ get {
+ return ResourceManager.GetString("IDS_ST_VOICE_TYPE_AND_LANGUAGE", resourceCulture);
+ }
+ }
+ }
+}