A method for adjusting a display screen of an electronic device is disclosed. The method includes obtaining a pupil image of a user of the electronic device. An eye condition of the user is determined by analyzing the pupil image. The proportions between a red channel, a green channel, and a blue channel (RGB) of a display screen of the electronic device is adjusted according to the eye condition.