Unrefactor the color scale editor

Change-Id: I191eb845e8809494302570c0cae799a3de860fda