private void DoColorSwatchAndEyedropper()
{
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
if (GUILayout.Button(ColorPicker.styles.eyeDropper, GUIStyle.none, new GUILayoutOption[]
{
GUILayout.Width(40f),
GUILayout.ExpandWidth(false)
}))
{
EyeDropper.Start(this.m_Parent);
this.m_ColorBoxMode = ColorPicker.ColorBoxMode.EyeDropper;
GUIUtility.ExitGUI();
}
Color color = new Color(this.m_R, this.m_G, this.m_B, this.m_A);
Rect rect = GUILayoutUtility.GetRect(20f, 20f, 20f, 20f, ColorPicker.styles.colorPickerBox, new GUILayoutOption[]
{
GUILayout.ExpandWidth(true)
});
EditorGUIUtility.DrawColorSwatch(rect, color, this.m_ShowAlpha);
if (Event.current.type == EventType.Repaint)
{
ColorPicker.styles.pickerBox.Draw(rect, GUIContent.none, false, false, false, false);
}
GUILayout.EndHorizontal();
}