# US 2022/0284844 A1 · Dark mode display interface processing method, electronic device, and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284844 A1
- Document ID: US20220284844A1
- Status: Published application
- Kind: A1
- Application number: 17/631,344
- Filed: 2020-08-05
- Published: 2022-09-08
- Earliest claimed: 2019-08-09
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yundie ZHANG; Mengdi LIU; Aibing LIU
- Web page: https://patentgrep.com/patent/US20220284844A1

## CPC

- G06F 9/451: Execution arrangements for user interfaces
- G09G 3/20: for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix {no fixed position being assigned to or needed to be assigned to the individual characters or partial characters}
- G09G 2320/0613: The adjustment depending on the type of the information to be displayed
- G09G 2320/066: for control of contrast
- G09G 2320/0666: for control of colour parameters, e.g. colour temperature
- G09G 2320/0686: with two or more screen areas displaying information with different brightness or colours
- G09G 2340/12: Overlay of images, i.e. displayed pixel being the result of switching between the corresponding input pixels
- G09G 2340/14: Solving problems related to the presentation of information to be displayed
- G09G 2354/00: Aspects of interface with display user
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G09G: ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION (arrangements for transferring data between digital computers and displays G06F3/14; static indicating arrangements comprising an association of a number of separate sources or light control cells G09F9/00; static indicating arrangements comprising integral associations of a number of light sources H01J, H01K, H10H, H05B33/12; scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission, details thereof H04N1/00)

## Abstract

A method for: obtaining a first display interface including a plurality of elements, which includes a first background element and a first element displayed on it through superimposing; determining a target processing manner corresponding to each of the plurality of elements, which is used to adjust at least one of brightness, chrominance, and contrast of the element; processing each of the plurality of elements in the target processing manner, to obtain a rendering parameter of each element; and rendering each of the plurality of elements, to display a second display interface, wherein a second background element in the second display interface corresponds to the first background element, a second element in the second display interface corresponds to the first element, black contrast of the second element is different from that of the second background element, and brightness of the second element is greater than brightness of the second background element.

## Claims

### Claim 1

A dark mode display interface processing method, comprising:
obtaining a to-be-displayed first display interface, wherein the first display interface comprises a plurality of elements, the plurality of elements comprise a first background element and a first element displayed on the first background element through superimposing, the first background element includes at least one of a graphic and an image, and the first element includes at least one of a text, a graphic, and an image;
determining a target processing manner corresponding to each of the plurality of elements, wherein the target processing manner is used to adjust at least one of brightness, chrominance, and contrast of the element, the target processing manner is associated with attribute information of the element, and the attribute information comprises at least one of type information, color information, size information, layer information, and location information;
processing each of the plurality of elements in the target processing manner, to obtain a rendering parameter of each element; and
rendering each of the plurality of elements based on the rendering parameter to display a second display interface, wherein a second background element in the second display interface corresponds to the first background element, a second element in the second display interface corresponds to the first element, black contrast of the second element is different from black contrast of the second background element, and brightness of the second element is greater than brightness of the second background element.

### Claim 2 (depends on 1)

The method according to claim 1, wherein a processing manner of the element comprises foreground color processing, background color processing, sub-backboard processing, backboard processing, foreground picture processing, or background picture processing.

### Claim 3 (depends on 1)

The method according to claim 1, wherein
the type information is used to indicate a type of the element;
the color information is used to indicate color composition of the element;
the size information is used to indicate a size of the element;
the layer information is used to indicate whether the element is located at a top layer of display layers; and
the location information is used to indicate whether the element extends from the top or the bottom in an opposite direction.

### Claim 4 (depends on 1)

The method according to claim 1, wherein
the brightness of the second element is [30, 70]; and
the brightness of the second background element is less than or equal to 30.

### Claim 5 (depends on 1)

The method according to claim 1, wherein in the second display interface, the black contrast of the second element is 2.2:1 to 15.7:1.

### Claim 6 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates that the element is a text, determining that the target processing manner of the element is foreground color processing.

### Claim 7 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates that the element is a first-type graphic, determining a first size interval to which a size of the first-type graphic belongs, and determining, as the target processing manner of the first-type graphic, a processing manner corresponding to the first size interval; or
when type information of the element indicates that the element is a second-type graphic, determining a second size interval to which a size of the second-type graphic belongs, and determining, as the target processing manner of the second-type graphic, a processing manner corresponding to the second size interval, wherein
the first-type graphic comprises a line and a rectangle, the second-type graphic comprises a circle, an arc, a point, and a path, and a range of the first size interval is not exactly the same as a range of the second size interval; and
the target processing manner comprises foreground color processing, background color processing, sub-backboard processing, or backboard processing.

### Claim 8 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates that the element is an image, color information of the element indicates that the element consists of a single color, and a size of the element belongs to a third size interval, determining that the target processing manner of the element is foreground color processing;
when type information of the element indicates that the element is an image, color information of the element indicates that the element consists of at least two colors, and a size of the element belongs to the third size interval, determining that the target processing manner of the element is foreground picture processing;
when type information of the element indicates that the element is an image, location information of the element indicates that the element extends from the top or the bottom in an opposite direction, and a size of the element belongs to a fourth size interval, determining that the target processing manner of the element is sub-backboard processing;
when type information of the element indicates that the element is an image, location information of the element indicates that the element does not extend from the top or the bottom in an opposite direction, and a size of the element belongs to the fourth size interval, determining that the target processing manner of the element is backboard processing;
when type information of the element indicates that the element is an image, color information of the element indicates that the element consists of a single color, and a size of the element belongs to neither the third size interval nor the fourth size interval, determining that the target processing manner of the element is foreground picture processing; or
when type information of the element indicates that the element is an image, color information of the element indicates that the element consists of at least two colors, and a size of the element belongs to neither the third size interval nor the fourth size interval, determining that the target processing manner of the element is background picture processing, wherein
the fourth size interval is greater than the third size interval.

### Claim 9 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates the element is a third-type graphic, and layer information of the element indicates that the element is located at the top layer of the display layers, determining that the target processing manner of the element is foreground color processing; or
when type information of the element indicates the element is a third-type graphic, and layer information of the element indicates that the element is located at a non-top layer of the display layers, determining that the target processing manner of the element is background color processing, wherein
the third-type graphic comprises a circle and an arc.

### Claim 10 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates the element is a fourth-type graphic, and layer information of the element indicates that the element is located at the top layer of the display layers, determining a fifth size interval to which a size of the element belongs, and determining, as the target processing manner, a processing manner corresponding to the fifth size interval and location information, wherein a processing manner corresponding to the fifth size interval comprises foreground color processing, background color processing, sub-backboard processing, or backboard processing; or
when type information of the element indicates the element is a fourth-type graphic, and layer information of the element indicates that the element is located at a non-top layer of the display layers, determining a sixth size interval to which a size of the element belongs, and determining, as the target processing manner, a processing manner corresponding to the sixth size interval and location information, wherein a processing manner corresponding to the sixth size interval comprises background color processing, sub-backboard processing, or backboard processing, wherein
the fourth-type graphic comprises a line, a rectangle, a point, and a path.

### Claim 11 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when type information of the element indicates the element is an image, and layer information of the element indicates that the element is located at the top layer of the display layers, determining a seventh size interval to which a size of the element belongs, and determining, as the target processing manner, a processing manner corresponding to the seventh size interval and location information, wherein a processing manner corresponding to the seventh size interval comprises foreground picture processing, background picture processing, sub-backboard processing, or backboard processing; or
when if type information of the element indicates the element is an image, and layer information of the element indicates that the element is located at a non-top layer of the display layers, determining an eighth size interval to which a size of the element belongs, and determining, as the target processing manner, a processing manner corresponding to the eighth size interval and location information, wherein a processing manner corresponding to the eighth size interval comprises background picture processing, sub-backboard processing, or backboard processing.

### Claim 12 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when color information of the element indicates that the element is displayed in a black transparency gradient, and endpoint transparency of the element is not 0, determining that the target processing manner is keeping a rendering parameter of the element unchanged.

### Claim 13 (depends on 1)

The method according to claim 1, wherein for any one of the plurality of elements, determining a target processing manner of the element comprises:
when color information of the element indicates that the element is displayed in a white transparency gradient, and endpoint transparency of the element is not 0, determining that the target processing manner is transparent processing, wherein
the transparent processing is used to display the element in full transparency.

### Claim 14 (depends on 1)

The method according to claim 1, wherein if the target processing manner of any one of the plurality of elements is foreground color processing, processing the element in the target processing manner to obtain a rendering parameter of the element comprises:
when an element color of the element is a gray-tone color, obtaining white contrast of the element color, wherein the white contrast is contrast of any color relative to white; and
when the white contrast is greater than or equal to a preset first contrast threshold, performing complementary mapping on the element color to obtain the rendering parameter, wherein black contrast is contrast of any color relative to black; or
when the white contrast is less than the first contrast threshold, reducing brightness of the element color to obtain the rendering parameter.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the first contrast threshold is 1.1:1.

### Claim 16 (depends on 1)

The method according to claim 1, wherein when the target processing manner of any one of the plurality of elements is foreground color processing, processing the element in the target processing manner to obtain a rendering parameter of the element comprises:
when an element color of the element is a bright color, obtaining black contrast of the element color; and
when the black contrast is less than a preset second contrast threshold, enhancing the black contrast of the element color to obtain the rendering parameter;
when the black contrast is greater than a preset third contrast threshold, reducing brightness of the element color to obtain the rendering parameter; or
when the black contrast falls between the second contrast threshold and the third contrast threshold, obtaining a color value of the element as the rendering parameter, wherein
the third contrast threshold is greater than the second contrast threshold.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the reducing brightness of the element color comprises:
when the black contrast is greater than a preset fourth contrast threshold, reducing the brightness of the element color based on preset amplitude; or
when the black contrast falls between the third contrast threshold and the fourth contrast threshold, adjusting the brightness of the element color to a preset range, wherein
when fourth contrast threshold is greater than the third contrast threshold.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the second contrast threshold is 8.9:1, the third contrast threshold is 15.7:1, and the fourth contrast threshold is 19:1; and
the preset amplitude is 9, and the preset range is a dark level before 15.7:1.

### Claim 19 (depends on 1)

The method according to claim 1, wherein
when the target processing manner of any one of the plurality of elements is foreground color processing, processing the element in the target processing manner to obtain a rendering parameter of the element comprises:
when a color of the element is a gradient color of at least one color, processing an endpoint color of the element in the foreground color processing manner, to obtain the rendering parameter of the element; or
when the element comprises a plurality of colors, using the element as a foreground picture for processing.

### Claim 20 (depends on 1)

The method according to claim 1, wherein when the target processing manner of any one of the plurality of elements is background color processing, processing the element in the target processing manner to obtain a rendering parameter of the element comprises:
when chrominance carried in color information of the element is greater than a preset first chrominance threshold, obtaining black contrast of a color of the element; and
when the black contrast is greater than a preset fifth contrast threshold, reducing the black contrast of the color of the element to obtain the rendering parameter;
when the black contrast is less than a preset sixth contrast threshold, enhancing the black contrast of the color of the element to obtain the rendering parameter; or
when the black contrast falls between the fifth contrast threshold and the sixth contrast threshold, obtaining a color value of the element as the rendering parameter, wherein
the fifth contrast threshold is greater than the sixth contrast threshold.

### Claim at position 21

21-39. (canceled)
