using System; using UnityEngine; namespace UnityEditor.Localization.Plugins.Google { /// /// Contains settings for any newly created Google Sheet. /// [Serializable] public class NewSheetProperties { [SerializeField] Color m_HeaderForegroundColor = new Color(0.8941177f, 0.8941177f, 0.8941177f); [SerializeField] Color m_HeaderBackgroundColor = new Color(0.2196079f, 0.2196079f, 0.2196079f); [SerializeField] Color m_DuplicateKeyColor = new Color(0.8745098f, 0.2240707f, 0.1921569f); [SerializeField] bool m_HighlightDuplicateKeys = true; [SerializeField] bool m_FreezeTitleRowAndKeyColumn = true; /// /// The color to use for the header row foreground. /// public Color HeaderForegroundColor { get => m_HeaderForegroundColor; set => m_HeaderForegroundColor = value; } /// /// The color to use for the header row background. /// public Color HeaderBackgroundColor { get => m_HeaderBackgroundColor; set => m_HeaderBackgroundColor = value; } /// /// The color to use when highlighting duplicate keys. See also /// public Color DuplicateKeyColor { get => m_DuplicateKeyColor; set => m_DuplicateKeyColor = value; } /// /// Should duplicate keys be highlighted with in the sheet? /// public bool HighlightDuplicateKeys { get => m_HighlightDuplicateKeys; set => m_HighlightDuplicateKeys = value; } /// /// Freeze the top row and first column which are typically the column title row and key column. /// public bool FreezeTitleRowAndKeyColumn { get => m_FreezeTitleRowAndKeyColumn; set => m_FreezeTitleRowAndKeyColumn = value; } } }