CPC G06T 11/001 (2013.01) [G06F 1/3265 (2013.01); G06F 3/147 (2013.01)] | 20 Claims |
1. A method of displaying a page of a third party application, comprising:
obtaining a background color and a foreground color in scripts of the third party application, in response to an activation command of activating the third party application and in response to an electronic device entering a power saving mode;
adjusting the background color to a first color and adjusting the foreground color to a second color, wherein a brightness value of the first color is less than a first brightness threshold, a brightness value of the second color is greater than a second brightness threshold, and the first brightness threshold is less than or equal to the second brightness threshold;
taking the first color to render a background region of the third party application, and taking the second color to render a foreground region of the third party application, to obtain a page of the third party application; and
displaying the rendered page of the third party application;
wherein, the adjusting the background color to a first color and adjusting the foreground color to a second color, comprises:
obtaining a third brightness threshold, comparing the brightness value of the background color to the third brightness threshold, comparing the brightness value of the foreground color to the third brightness threshold;
adjusting a part of the background color having a brightness value greater than or equal to the third brightness threshold to the first color, and adjusting a part of the foreground color having a brightness value less than the third brightness threshold to the second color; wherein the rest part of the background color having a brightness value less than the third brightness threshold remains unchanged, and the rest part of the foreground color having a brightness value greater than or equal to the third brightness threshold remains unchanged.
|