摘要:
A user interface adaptation module identifies a dominant color of a frame of a video and, based on the dominant color, generates colors for components of a user interface in which the video is displayed. The colors of the user interface components are set based upon the generated colors and upon context information such as a playing state of the video. The setting of the component colors in this way allows the user interface to adjust to complement both the played content of the video and the video's context. In one embodiment, the dominant color is identified by partitioning individual pixels of the frame based on their respective colors. In one embodiment, a set of primary color variants is generated based on the dominant color, and different colors are generated for each type of user interface component based on the different primary color variants.