Example #1
0
        private void SetColor(string colorCode)
        {
            Color newColor = ColorConverter.HexToColor(colorCode);

            NameTextMesh.color    = newColor;
            TotalTextMesh.color   = newColor;
            ColorPatchImage.color = newColor;
        }
Example #2
0
        private void SetColor(string colorCode)
        {
            Color newColor = ColorConverter.HexToColor(colorCode);

            NameTextMesh.color    = newColor;
            DateTextMesh.color    = newColor;
            ExpenseTextMesh.color = newColor;
        }
 public void UpdateView(CatagoryModel Model, float width)
 {
     BarRect.sizeDelta   = new Vector2(width, BarRect.sizeDelta.y);
     ColorBarImage.color = ColorConverter.HexToColor(Model.ColorCode);
 }