主权项 |
1. A computer-implemented method for dynamically adjusting one or more portions of a user interface (UI) element, comprising:
detecting, by a processor, content color data describing the color of content that is overlaid by a UI element on a display of a user device, the UI element including one or more components and a UI element background; determining, by the processor, component color data describing the color of the one or more components of the UI element, the component color data fixed such that one or more components of the UI element are displayed as specified by the component color data; dynamically determining, by the processor, transparency data for the UI element background using the content color data and the component color data; displaying the UI element in accordance with the transparency data and the component color data; and responsive to detecting change in content color data,
dynamically determining, by the processor, adjusted transparency data for the UI element background using the change in the content color data and the component color data, the adjusted transparency data controlling a transparency level of the UI element background, the transparency level selected from a plurality of transparency levels ranging from transparent to opaque, anddisplaying the UI element in accordance with the adjusted transparency data and the component color data. |