1. A method for operating a device comprising a screen, comprising: obtaining, by the device, a first background image of an environment behind the screen; obtaining, by the device, an electronic document (ED) comprising a text character with an initial text color; identifying, by the device, a pixel in the first background image associated with the text character; determining, by the device, a first final text color based on the initial text color and the pixel in the first background image; and displaying, by the device and on the screen, the ED with the text character in the first final text color.