IP Library › Granted Patent US 12,198,659
Granted Patent B2
US 12,198,659 · App. 17/622,542 · Granted Jan 14, 2025

Method for adjusting display attribute, and related device

Inventors: Liwei Huang (Shenzhen, CN); Mengdi Liu (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G09G5/30G06F3/147G09G5/02G09G2320/0606G09G2320/066G09G2320/0686G09G2320/08
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,198,659
App. No.
17/622,542
Granted
Jan 14, 2025
Kind
B2
Abstract

A method for adjusting a display attribute, and a related device, to make a display effect of an element on a page more prominent. The method includes obtaining a first luminance and a second luminance on a page, where the first luminance is a luminance of an element on the page, and the second luminance is a luminance of a background region in which the element is displayed; determining a first contrast ratio between the element and the background region based on the first luminance and the second luminance; and adjusting a display attribute of the element when the first contrast ratio is less than a preset contrast ratio.

Claims (55)

1. A display method implemented by a terminal device, the display method comprising:

displaying, according to a user-configurable first setting for an interface display, a first interface comprising a first element having a first luminance and a first line thickness value, and a background having a second luminance;

determining a first contrast ratio based on the first luminance and second luminance;

adjusting the line thickness value of the first element when the first contrast ratio is less than a preset contrast ratio by more than a predetermined value, the adjusting being in discrete levels in accordance with a predetermined arrangement of levels and differences in ratios between first and preset contrast values;

adjusting the luminance of the first element when the first contrast ratio is less than the preset contrast ratio; and

displaying, according to a user-configurable second setting for the interface display, a second interface comprising a second background having a third luminance and a second text element having a fourth luminance and a second line thickness.

2. The display method of claim 1 , wherein:

the second luminance is brighter than the fourth luminance;

the second line thickness is bigger than the first line thickness; and

the first luminance is darker than the third luminance.

3. The display method of claim 1 , further comprising:

displaying a first shadow for the first element in the first interface, wherein a first color of the first shadow is different from a second color of the first element; or

displaying a second shadow for the second element in the second interface, wherein a third color of the second shadow is different from a fourth color of the second element.

4. The display method of claim 1 further comprising displaying the first interface and the second interface while the terminal device is locked.

5. The display method of claim 1 , further comprising displaying a first shadow for the first element in the first interface, wherein a first color of the first shadow is different from a second color of the first element.

6. The display method of claim 5 , further comprising displaying the first interface and the second interface while the terminal device is locked.

7. The display method of claim 1 , further comprising displaying a second shadow for the second element in the second interface, wherein a third color of the second shadow is different from a fourth color of the second element.

8. The display method of claim 7 , further comprising displaying the second interface while the terminal device is locked.

9. The display method of claim 1 , wherein when the value of the first luminance is 0, luminance of the first element is pure dark.

10. An electronic device, comprising:

one or more processors; and

one or more memories coupled to the one or more processors and configured to store instructions that, when executed by the one or more processors, cause the electronic device to:

display, according to a user-configurable first setting for an interface display, a first interface comprising a first element having a first line thickness value, and a background having a second luminance;

determining a first contrast ratio based on the first luminance and second luminance;

adjust the line thickness value of the first element when the first contrast ratio is less than a preset contrast ratio by more than a predetermined value, the adjusting being in discrete levels in accordance with a predetermined arrangement of levels and differences in ratios between first and preset contrast values;

adjusting the luminance of the first element when the first contrast ratio is less than the preset contrast ratio; and

display, according to a user-configurable second setting for the interface display, a second interface comprising a second background having a third luminance and a second text having a fourth luminance and a second line thickness.

11. The electronic device of claim 10 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to:

display the second luminance brighter than the fourth luminance;

display the second line thickness bigger than the first line thickness; and

display the first luminance darker than the third luminance.

12. The electronic device of claim 11 , wherein when the value of the first luminance is 0, luminance of the first element is pure dark.

13. The electronic device of claim 10 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to:

display a first shadow for the first text in the first interface, wherein a first color of the first shadow is different from a second color of the first element; or

display a second shadow for the second text in the second interface, wherein a third color of the second shadow is different from a fourth color of the second element.

14. The electronic device of claim 13 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to display a first shadow for the first element in the first interface, and wherein a first color of the first shadow is different from a second color of the first element.

15. The electronic device of claim 14 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to display a second shadow for the second element in the second interface, and a third color of the second shadow is different from a fourth color of the second element.

16. The electronic device according to claim 13 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to display the first interface and the second interface while the terminal device is locked.

17. The electronic device according to claim 10 , wherein the instructions, when executed by the one or more processors, further cause the electronic device to display the first interface and the second interface while the terminal device is locked.

18. A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by one or more processors, cause an electronic device to:

display, according to a user-configurable first setting for an interface display, a first interface comprising a first element having a first line thickness value and a background having a second luminance;

determine a first contrast ratio based on the first luminance and second luminance;

adjust the line thickness value of the first element when the first contrast ratio is less than a preset contrast ratio by more than a predetermined value, the adjusting being in discrete levels in accordance with a predetermined arrangement of levels and differences in ratios between first and preset contrast values;

adjusting the luminance of the first element when the first contrast ratio is less than the preset contrast ratio; and

display, according to a user-configurable second setting for an interface display, a second interface comprising a second background having a third luminance and a second element having a fourth luminance and a second line thickness.

19. The computer program product of claim 18 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the electronic device to:

display the second luminance brighter than the fourth luminance;

display the second line thickness bigger than the first line thickness; and

display the first luminance darker than the third luminance.

20. The computer program product of claim 19 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the electronic device to:

display a first shadow for the first element in the first interface, wherein a first color of the first shadow is different from a second color of the first element; or

display a second shadow for the second element in the second interface, wherein a third color of the second shadow is different from a fourth color of the second element.

21. The computer program product of claim 20 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the electronic device to display the first interface and the second interface while the terminal device is locked.

22. The computer program product of claim 18 , wherein the computer-executable instructions, when executed by the one or more processors, further cause the electronic device to display the first interface and the second interface while the terminal device is locked.

23. The computer program product of claim 18 , wherein when the value of the first luminance is 0, luminance of the first element is pure dark.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2023
From: HUANG, LIWEI; LIU, MENGDI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 065577/0048 →
Priority Claims (1)
CN 201910568981.2 · Jun 27, 2019 · national
Continuity (1)
Related Publication 20220398997A1 · Dec 15, 2022
References Cited (42)
US 7002593B2 · Milch · 2006 [cited by examiner]
US 9858895B2 · Li et al. · 2018 [cited by applicant]
US 20030076326A1 · Tezuka et al. · 2003 [cited by applicant]
US 20070065012A1 · Yamakado et al. · 2007 [cited by applicant]
US 20100201709A1 · Yang et al. · 2010 [cited by applicant]
US 20110115807A1 · Kim · 2011 [cited by applicant]
US 20110208389A1 · Tarte · 2011 [cited by applicant]
US 20140085524A1 · Berglund et al. · 2014 [cited by applicant]
US 20140368525A1 · Faaborg et al. · 2014 [cited by applicant]
US 20150091934A1 · Jung et al. · 2015 [cited by applicant]
US 20160246475A1 · Garcia et al. · 2016 [cited by applicant]
US 20180150978A1 · Li · 2018 [cited by applicant]
US 20190172419A1 · Hwang et al. · 2019 [cited by applicant]
CN 1933541A · 2007 [cited by applicant]
CN 101243487A · 2008 [cited by applicant]
CN 102567300A · 2012 [cited by applicant]
CN 103137103A · 2013 [cited by applicant]
CN 104778047A · 2015 [cited by applicant]
CN 105005461A · 2015 [cited by applicant]
CN 105159874A · 2015 [cited by applicant]
CN 105204807A · 2015 [cited by applicant]
CN 105824496A · 2016 [cited by applicant]
CN 105912321A · 2016 [cited by applicant]
CN 105957125A · 2016 [cited by applicant]
CN 106775548A · 2017 [cited by applicant]
CN 107016978A · 2017 [cited by applicant]
CN 107527374A · 2017 [cited by applicant]
CN 109189281A · 2019 [cited by applicant]
CN 110442313A · 2019 [cited by applicant]
EP 2770403A1 · 2014 [cited by applicant]
EP 3174306A1 · 2017 [cited by applicant]
EP 3968141A1 · 2020 [cited by applicant]
JP H02264298A · 1990 [cited by applicant]
JP 2002140044A · 2002 [cited by applicant]
KR 20150033786A · 2015 [cited by applicant]
WO 2015180035A1 · 2015 [cited by applicant]
WO WO2016066250A1 · 2016 [cited by examiner]
WO 2018012926A1 · 2018 [cited by applicant]
WO 2018204030A1 · 2018 [cited by applicant]
Tony Leung, “Visually Lossless Compression of Windowed Images,” 2013, Data Compression Conference, 1 pages. [cited by applicant]
Zhang Qi, “Application of Visual Communication Design in History Classroom Teaching,” Master's Thesis: Yangzhou University, Jun. 2016, with an English Abstract, total 80 pages. [cited by applicant]
Chen yawen, Comparison and Optimization in Digital Reading Interface Visual Design, Sep. 2018, 4 pages. [cited by applicant]