Esempio n. 1
0
        public void OnGUI(Rect rect, Colors.NoteColorCollection colors)
        {
            var headerRect = GetHeaderRect(rect);

            StickiesGUI.ColorRect(headerRect, colors.header, Color.clear);

            DrawDeleteButton(headerRect);
            DrawColorPickerButton(headerRect);
        }
        public void OnGUI(Rect rect, Colors.NoteColorCollection colors)
        {
            var colorPickerRect = new Rect(rect.x, rect.y, rect.width, ColorPickerHeaderHeight);

            StickiesGUI.ColorRect(colorPickerRect, colors.header, Color.clear);

            var newColor = ColorChooser(colorPickerRect);

            if (newColor != NoteColor.None)
            {
                _onColorSelected(newColor);
            }
        }
Esempio n. 3
0
 void DrawNoteBackground(Rect rect, Color backgroundColor)
 {
     StickiesGUI.ColorRect(rect, backgroundColor, Color.clear);
 }