WO2020259517A1 - 一种显示属性调整方法以及相关设备 - Google Patents

一种显示属性调整方法以及相关设备 Download PDF

Info

Publication number
WO2020259517A1
WO2020259517A1 PCT/CN2020/097829 CN2020097829W WO2020259517A1 WO 2020259517 A1 WO2020259517 A1 WO 2020259517A1 CN 2020097829 W CN2020097829 W CN 2020097829W WO 2020259517 A1 WO2020259517 A1 WO 2020259517A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness
contrast
terminal device
preset
display attribute
Prior art date
Application number
PCT/CN2020/097829
Other languages
English (en)
French (fr)
Inventor
黄丽薇
刘梦迪
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP20833643.8A priority Critical patent/EP3968141A4/en
Priority to US17/622,542 priority patent/US20220398997A1/en
Publication of WO2020259517A1 publication Critical patent/WO2020259517A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes 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
    • G09G3/2003Display of colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/30Control of display attribute
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • G09G5/26Generation of individual character patterns for modifying the character dimensions, e.g. double width, double height
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0606Manual adjustment
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/066Adjustment of display parameters for control of contrast
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0686Adjustment of display parameters with two or more screen areas displaying information with different brightness or colours
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/08Arrangements within a display terminal for setting, manually or automatically, display parameters of the display terminal

Definitions

  • the embodiments of the present application relate to the field of terminal devices, and in particular, to a display attribute adjustment method and related devices.
  • Contrast refers to the range of difference in different brightness levels between the brightest white and the darkest black in the bright and dark areas of an image. Generally, the smaller the difference range, the smaller the contrast.
  • the display attribute of the element displayed on the page by the terminal device and the display attribute of the background area where the element is displayed are relatively independent.
  • the contrast between the element and the background area may decrease, which may result in the display effect of the element under the background Not significant, which may reduce the user's reading experience.
  • the embodiment of the present application provides a display attribute adjustment method and related equipment, which are used to make the display effect of elements in a page more prominent and improve the user's reading experience.
  • an embodiment of the present application provides a display attribute adjustment method, including: a terminal device obtains a first brightness and a second brightness in a page, where the first brightness is the brightness of an element in the page The second brightness is the brightness of the background area where the element is displayed. Then, the terminal device determines the first contrast between the element and the background area according to the first brightness and the second brightness, and, when the first contrast is less than the preset contrast, adjusts the display attribute of the element .
  • the terminal device may determine the first contrast between the element and the background area according to the brightness of the element and the brightness of the background area, and when the first contrast is less than the preset contrast, adjust the element Display attributes. Therefore, the display attribute of the element can change with the change of the display attribute of the background area of the element. Therefore, the display effect of the element under the background can be reduced due to the decrease of the contrast between the element and the background area. Significant chance, which can improve the user's reading experience.
  • the element in the first implementation manner of the first aspect of the embodiments of the present application, includes a text or an icon.
  • the display attribute of the element includes the line thickness value of the element.
  • the display attribute of the element is clarified, and the terminal device can adjust the line thickness value of the element, so that the element can be displayed on the page more prominently.
  • the adjusting the display attribute of the element includes: adjusting the element’s display attribute according to the first contrast according to a preset corresponding relationship.
  • the line thickness value, the preset corresponding relationship is the corresponding relationship between the first contrast and the line thickness value of the element.
  • the specific implementation method for adjusting the line thickness value is clarified.
  • the terminal device can adjust the line thickness value according to the first contrast, so that the element corresponding to the adjusted line thickness value can be displayed prominently. In this page, the user's reading experience can be improved.
  • the display attribute of the element also includes the brightness of the element;
  • the method further includes: adjusting the brightness of the element to a first target brightness, and the second contrast between the first target brightness and the brightness of the background area is greater than the preset Contrast.
  • the terminal device in addition to adjusting the line thickness value of the element, can also adjust the first brightness, that is, adjust the brightness of the element, so that the line of the element becomes thicker at the same time. Can become brighter or darker.
  • the element The display attribute also includes the shadow of the element; when the first contrast is less than the preset contrast, the method further includes: setting the shadow of the element, and the color of the shadow is different from the color of the element.
  • the terminal device in addition to adjusting the line thickness value of the element and the brightness of the element, the terminal device can also set a shadow for the element, so that the element can be prominently displayed on the page , Which can improve the user's reading experience.
  • the method when the When a contrast is less than a preset contrast, the method further includes adjusting the brightness of the background area to a second target brightness, and the third contrast between the second target brightness and the element's brightness is greater than the preset contrast.
  • the terminal device in addition to adjusting the line thickness value of the element, the brightness of the element, and setting the shadow, the terminal device can also adjust the brightness of the background area so that the element can be displayed prominently In this page, the user's reading experience can be improved.
  • an embodiment of the present application provides a terminal device, including: an acquisition module, configured to acquire a first brightness and a second brightness in a page, where the first brightness is the value of an element in the page The brightness, the second brightness is the brightness of the background area where the element is displayed.
  • the determining module is used to determine the first contrast between the element and the background area according to the first brightness and the second brightness.
  • the adjustment module is used to adjust the display attribute of the element when the first contrast is less than the preset contrast.
  • the terminal device may determine the first contrast between the element and the background area according to the brightness of the element and the brightness of the background area, and when the first contrast is less than the preset contrast, adjust the element Display attributes. Therefore, the display attribute of the element can change with the change of the display attribute of the background area of the element. Therefore, the display effect of the element under the background can be reduced due to the decrease of the contrast between the element and the background area. Significant chance, which can improve the user's reading experience.
  • the element in the first implementation manner of the second aspect of the embodiments of the present application, includes a text or an icon.
  • the display attribute of the element includes the line thickness value of the element.
  • the display attribute of the element is clarified, and the terminal device can adjust the line thickness value of the element, so that the element can be displayed on the page more prominently.
  • the adjustment module is specifically configured to adjust the line thickness value of the element according to the preset correspondence relationship according to the first contrast .
  • the preset correspondence is the correspondence between the first contrast and the line thickness value of the element.
  • the specific implementation method for adjusting the line thickness value is clarified.
  • the terminal device can adjust the line thickness value according to the first contrast, so that the element corresponding to the adjusted line thickness value can be displayed prominently. In this page, the user's reading experience can be improved.
  • the display attribute of the element further includes the brightness and darkness of the element;
  • the adjustment module is further configured to adjust the brightness of the element to the first target brightness, and the second contrast between the first target brightness and the brightness of the background area is greater than the preset contrast.
  • the terminal device in addition to adjusting the line thickness value of the element, can also adjust the first brightness, that is, adjust the brightness of the element, so that the line of the element becomes thicker at the same time. Can become brighter or darker.
  • the element The display attribute also includes the shadow of the element; the adjustment module is also used to set the shadow of the element, and the color of the shadow is different from the color of the element.
  • the terminal device in addition to adjusting the line thickness value of the element and the brightness of the element, the terminal device can also set a shadow for the element, so that the element can be prominently displayed on the page , Which can improve the user's reading experience.
  • the adjustment module Is also used to adjust the brightness of the background area to the second target brightness, and the third contrast between the second target brightness and the element's brightness is greater than the preset contrast.
  • the terminal device in addition to adjusting the line thickness value of the element, the brightness of the element, and setting the shadow, the terminal device can also adjust the brightness of the background area so that the element can be displayed prominently In this page, the user's reading experience can be improved.
  • the embodiments of the present application provide a terminal device.
  • the terminal device may be a mobile terminal device including a display device or a chip in the mobile terminal device.
  • the terminal device may include a processing module and a transceiver module.
  • the processing module may be a processor; the terminal device may also include a storage module, and the storage module may be a memory; the storage module is used to store instructions, and the processing module executes The instructions stored by the storage module are used to make the terminal device execute the method in the first aspect or any one of the implementation manners of the first aspect.
  • the processing module may be a processor, and the transceiver module may be an input/output interface, a pin or a circuit, etc.; the processing module executes the instructions stored in the storage module to make the
  • the car networking terminal device executes the method in the first aspect or any one of the implementations of the first aspect.
  • the storage module may be a storage module in the chip (for example, a register, a cache, etc.), or a storage module (for example, read only memory, random access memory, etc.) located outside the chip in the car networking terminal device .
  • the embodiments of the present application provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the method described in the foregoing first aspect and any one of the first aspects. .
  • the embodiments of the present application provide a computer-readable storage medium, including instructions, when the instructions are run on a computer, so that the computer executes any one of the foregoing first aspect and the first aspect.
  • the terminal device may determine the first contrast between the element and the background area according to the brightness of the element and the brightness of the background area, and when the first contrast is less than the preset contrast, adjust the element Display attributes. Therefore, the display attribute of the element can change with the change of the display attribute of the background area of the element. Therefore, the display effect of the element under the background can be reduced due to the decrease of the contrast between the element and the background area. Significant chance, which can improve the user's reading experience.
  • FIG. 1 is a schematic diagram of an application scenario of a display attribute adjustment method in an embodiment of this application
  • FIG. 2 is a flowchart of a display attribute adjustment method in an embodiment of the application
  • 3A is a schematic diagram of an embodiment of a display attribute adjustment method in an embodiment of this application.
  • 3B is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 3C is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 3D is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 4A is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of this application.
  • 4B is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 4C is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 4D is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of the application.
  • 4E is a schematic diagram of another embodiment of a display attribute adjustment method in an embodiment of this application.
  • Figure 5 is a schematic diagram of an embodiment of a terminal device in an embodiment of the application.
  • Fig. 6 is a schematic diagram of another embodiment of a terminal device in an embodiment of the application.
  • the embodiment of the present application provides a display attribute adjustment method and related equipment, which are used to make the display effect of elements in a page more prominent and improve the user's reading experience.
  • users can set the background of the page displayed by the terminal device according to their own preferences.
  • the user can set the lock screen interface.
  • the user can switch the background on the left side of Figure 1 to the background on the right side of Figure 1.
  • the user only sets the background of the page, but does not set the elements displayed on the page.
  • the combination of the background on the right side of FIG. 1 and the elements of the page may not have obvious contrast, resulting in that the element is not prominently displayed in the background of the page.
  • the terminal device can use the method proposed in the embodiment of the application to adjust the page, so that while retaining the background set by the user, the element can be prominently displayed on the background, thereby improving The user’s reading experience.
  • the terminal device refers to a device with a display device
  • the display device may be a black-and-white display device or a color display device, which is not limited here.
  • the terminal device may be a mobile phone, a tablet computer, and other devices with a display device. In this embodiment and subsequent embodiments, only the terminal device is taken as an example for introduction.
  • the terminal device will perform the following steps:
  • the first brightness is the brightness of the element on the page
  • the second brightness is the brightness of the background area where the element is displayed
  • the brightness refers to the brightness and darkness of the page
  • the brightness is the same as that of the page.
  • the color is irrelevant.
  • the figure divides the brightness into 12 levels, gradually darkening from 50 to 900. When it reaches the darkest, the area is displayed as black, when it reaches the brightest, the area is displayed as white.
  • the terminal device divides the brightness into 12 levels as shown in FIG. 3A
  • the first brightness and the second brightness may fall into one or two of the 12 levels. Levels.
  • the terminal device can also be divided into more brightness levels, which are not specifically limited here.
  • the element includes text or icons.
  • the element can be a text, for example, a number shown in 301 and a Chinese character shown in 302; the element can also be an icon, for example, an icon representing a fingerprint shown in 303. In actual applications, the element may also be other text or icons, which is not specifically limited here.
  • the “06:00” in the dotted area shown in 301 is the element, and the brightness of the pixel that displays the stroke of “06:00” is the first brightness.
  • the brightness of pixels other than "06:00" in the dotted area shown in 301 is the second brightness.
  • the terminal device after the terminal device obtains the first brightness and the second brightness, the terminal device will perform step 202.
  • the terminal device may determine the first brightness between the element and the background area according to the first brightness and the second brightness
  • One contrast refers to the difference in different brightness levels between the brightest white and the darkest black in the light and dark areas of the page. The greater the difference, the greater the contrast, and the smaller the difference, the smaller the contrast.
  • the terminal device may calculate the first contrast through multiple algorithms, which is not specifically limited here.
  • the first contrast is determined by the ratio of brightness to darkness.
  • the terminal device can calculate the ratio of the value of the second brightness to the value of the first brightness to obtain the first contrast.
  • the terminal device can compare the first contrast with the preset contrast.
  • the preset contrast may be the contrast preset during the production of the terminal device, or may be the contrast set by the user according to usage habits, which is not specifically limited here. Generally, the preset contrast can be set to 4.5:1. When the first contrast is less than the preset contrast, the terminal device will perform step 203.
  • the display attribute of the element includes the line thickness value of the element.
  • the line thickness value of the element represents the thickness of the stroke of the text.
  • the text shown in Figure 3C can be divided into 12 values from 25JF to 105JF.
  • the line thickness value of the element indicates the line thickness of the icon.
  • the thickness value of the icon keeps getting larger, and the line of the icon keeps getting thicker.
  • the terminal device when the first contrast is less than the preset contrast, can adjust the line thickness value of the element. Specifically, the terminal device may adjust the line thickness value of the element according to a preset correspondence relationship according to the first contrast, and the preset correspondence relationship is a correspondence relationship between the first contrast and the line thickness value of the element. More specifically, the terminal device may determine the number of adjustment thickness levels according to the difference between the preset contrast and the first contrast.
  • the introduction is given in conjunction with the examples shown in Table 1.
  • the terminal device can calculate the difference between the preset contrast and the first contrast, And adjust the line thickness value of the element according to the corresponding relationship between the difference in Table 1 and the number of adjustment thickness levels. For example, when the difference between the preset contrast and the first contrast is 1.5, the line thickness of the element is increased by three levels. Assuming that the initial line thickness level of the element is 55S as shown in FIG. 3C, the line thickness of the element is adjusted to 70S.
  • the terminal device may also calculate the thickness value according to the first brightness and the second brightness.
  • the following formula is used as an example to introduce.
  • the second brightness is the darkest (ie pure black)
  • the value of the second brightness is 0
  • the second brightness is the brightest (ie pure white and black)
  • the second brightness The value of is 1000
  • the median value of the shade is 570.
  • the preset line thickness values of the element are S 0 , S 1000 , S 570
  • the line thickness value s l of the element is:
  • calculation formula may be different due to different application scenarios, and the specifics are not limited here.
  • the display effect of the page can refer to Figure 4A, where the left side of Figure 4A is the unadjusted element, and the right side of Figure 4A is the adjusted line thickness.
  • the element of the value At this time, the line of the element on the page becomes thicker, which can make it easier for the user to distinguish the element and the background for displaying the element when reading, and therefore, the user's reading experience can be appropriately improved.
  • Step 204 is an optional step, and there is no clear time sequence limitation between step 204 and the aforementioned step 203.
  • the terminal device When the first contrast is less than the preset contrast, the terminal device will adjust the brightness of the element, and the element is a text or an icon. Specifically, the terminal device may adjust the brightness of the element to the first target brightness, and the second contrast between the first target brightness and the brightness of the background area is greater than the preset contrast.
  • the first brightness is less than the second brightness
  • the first brightness is 100
  • the first brightness is 300.
  • the ratio of the second brightness to the first brightness is 3:1
  • the 3:1 is less than 4.5:1. Therefore, the terminal device adjusts the first brightness to the first target brightness, and the first target brightness is less than 100.
  • the element 301 shown in FIG. 3B is still taken as an example to demonstrate the adjustment effect.
  • the display effect of the page can refer to FIG. 4B, where the left side of FIG. 4B is the unadjusted element, and the right side of FIG. 4B is the adjusted brightness element.
  • the lines of the elements on the page become brighter, which can make it easier for the user to distinguish the element and the background on which the element is displayed when reading. Therefore, the user's reading experience can be appropriately improved.
  • Step 205 is an optional step, and there is no clear time sequence limitation between step 205 and the aforementioned steps 203 to 204.
  • the terminal device may set a shadow of the element, and the color of the shadow is different from the color of the element.
  • the element 301 shown in FIG. 3B is still taken as an example to show the adjustment effect.
  • the display effect of the page can refer to Figure 4C and Figure 4D, where the left side of Figure 4C and the left side of Figure 4D are elements that have not been adjusted, and the right of Figure 4C The side is the scene where the shadow and the text overlap.
  • the shadow constitutes the outer edge of the text; the right side of Figure 4D is the scene where the shadow and the text are not completely overlapped.
  • the light source on the left is illuminating the text. effect.
  • the terminal device can also set other types of shadow effects to meet the preferences of different users.
  • Step 206 is an optional step, and there is no clear time sequence limitation between step 206 and the aforementioned steps 203 to 205.
  • the terminal device when the first contrast is less than the preset contrast, can adjust the brightness of the background area to the second target brightness, which is between the second target brightness and the element's brightness
  • the third contrast is greater than the preset contrast.
  • the following is introduced with specific examples. Suppose that the first brightness is less than the second brightness, the first brightness is 100, and the second brightness is 300. At this time, the ratio of the second brightness to the first brightness is 3:1 , The 3:1 is less than 4.5:1. Therefore, the terminal device adjusts the second brightness to the second target brightness, and the second target brightness is less than 100.
  • the element 301 shown in FIG. 3B is still taken as an example to demonstrate the adjustment effect.
  • the display effect of the page can refer to Figure 4E, where the left side of Figure 4E is the unadjusted element, and the right side of Figure 4E is the adjusted background The effect of shading.
  • the background area becomes darker, the lines of the elements on the page become brighter, which can make it easier for the user to distinguish the element and the background of the element when reading. Therefore, the user's reading can be appropriately improved Experience.
  • the terminal device 50 includes:
  • the obtaining module 501 is used to obtain the first brightness and the second brightness of the page, where the first brightness is the brightness of the element in the page, and the second brightness is the value of the background area displaying the element Shading.
  • the determining module 502 is configured to determine the first contrast between the element and the background area according to the first brightness and the second brightness.
  • the adjustment module 503 is configured to adjust the display attribute of the element when the first contrast is less than the preset contrast.
  • the terminal device may determine the first contrast between the element and the background area according to the brightness of the element and the brightness of the background area, and when the first contrast is less than the preset contrast, adjust the element Display attributes. Therefore, the display attribute of the element can change with the change of the display attribute of the background area of the element. Therefore, the display effect of the element under the background can be reduced due to the decrease of the contrast between the element and the background area. Significant chance, which can improve the user's reading experience.
  • the element includes text or icons.
  • the specific implementation manner of the element is clarified, which can be a text or an icon.
  • the display attribute of the element includes the line thickness value of the element.
  • the display attribute of the element is clarified, and the terminal device can adjust the line thickness value of the element, so that the element can be displayed on the page more prominently.
  • the adjustment module 503 is specifically configured to adjust the line thickness value of the element according to a preset corresponding relationship according to the first contrast, and the preset corresponding relationship is the first contrast and the line of the element Correspondence of thickness value.
  • the specific implementation manner of adjusting the line thickness value is clarified.
  • the terminal device can adjust the line thickness value according to the first contrast, so that the element corresponding to the adjusted line thickness value can be significantly Displayed on this page, which in turn can enhance the user's reading experience.
  • the display attribute of the element further includes the brightness of the element; the adjustment module 503 is also used to adjust the brightness of the element to the first target brightness, and the first target brightness The second contrast with the brightness of the background area is greater than the preset contrast.
  • the terminal device may also adjust the first brightness, that is, adjust the brightness of the element to make the line of the element thicker. Can become brighter or darker at the same time.
  • the display attribute of the element also includes the shadow of the element; the adjustment module 503 is also used to set the shadow of the element, and the color of the shadow is different from the color of the element.
  • the terminal device in addition to adjusting the line thickness value of the element and the brightness of the element, can also set a shadow for the element, so that the element can be prominently displayed on the page Among them, the reading experience of users can be improved.
  • the adjustment module 503 is further configured to adjust the brightness of the background area to the second target brightness, and the third contrast between the second target brightness and the element's brightness Greater than the preset contrast.
  • the terminal device in addition to adjusting the line thickness value of the element, the brightness of the element, and setting the shadow, the terminal device can also adjust the brightness of the background area, so that the element can be prominent. Is displayed on the page, which can enhance the user’s reading experience.
  • the terminal device 60 may be a mobile terminal device with a display device, or a chip or a system on a chip located on the mobile terminal device.
  • the terminal device 60 includes a processor 601 and a memory 602.
  • the memory 602 is used to store programs, and the processor 601 is used to execute the programs in the memory 602 to implement the functions of the terminal devices in the method embodiments of the present application.
  • the processor 601 may include one or more processors, and the memory 602 may include one or more storage media (for example, one or one storage device with a large amount of storage).
  • the terminal device 60 further includes an input/output interface 603, and the input/output interface 603 can be used for the terminal device 60 to communicate with other devices.
  • all steps performed by the terminal device may be based on the structure of the terminal device 60 shown in FIG. 6.
  • the embodiments of the present application also provide a computer program product containing instructions, which when the foregoing instructions run on a computer, cause the computer to perform the functions of the foregoing various communication devices.
  • the embodiments of the present application provide a computer-readable storage medium, where the computer-readable storage medium is used to store the foregoing instructions, so that the computer can run the instructions to realize the functions of the foregoing various communication devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

本申请实施例公开了一种显示属性调整方法以及相关设备,用于使元素在页面中的显示效果更显著,提高用户的阅读体验。本申请实施例方法包括:获取页面中的第一明暗度和第二明暗度,所述第一明暗度为所述页面中的元素的明暗度,所述第二明暗度为显示所述元素的背景区域的明暗度;根据所述第一明暗度和所述第二明暗度确定所述元素与所述背景区域之间的第一对比度;当所述第一对比度小于预设对比度时,调整所述元素的显示属性。

Description

一种显示属性调整方法以及相关设备
本申请要求在2019年6月27日提交中国国家知识产权局、申请号为201910568981.2的中国专利申请的优先权,发明名称为“一种显示属性调整方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端设备领域,尤其涉及一种显示属性调整方法以及相关设备。
背景技术
对比度指一幅图像中明暗区域最亮的白和最暗的黑之间不同亮度层级的差异范围。一般地,差异范围越小则对比度越小。
现有技术中,终端设备在页面中显示的元素的显示属性和显示该元素的背景区域的显示属性是相对独立的。在这样的方案中,当该页面中的显示该元素的背景区域的显示属性发生变化时,将可能导致该元素与该背景区域的对比度减小,于是可能导致该元素在该背景下的显示效果不显著,从而可能降低用户的阅读体验。
发明内容
本申请实施例提供了一种显示属性调整方法以及相关设备,用于使元素在页面中的显示效果更显著,提高用户的阅读体验。
第一方面,本申请实施例提供了一种显示属性调整方法,包括:终端设备获取页面中的第一明暗度和第二明暗度,其中,该第一明暗度为该页面中的元素的明暗度,该第二明暗度为显示该元素的背景区域的明暗度。然后,该终端设备根据该第一明暗度和该第二明暗度确定该元素与该背景区域之间的第一对比度,并且,当该第一对比度小于预设对比度时,调整该元素的显示属性。
本申请实施例中,该终端设备可以根据元素的明暗度和背景区域的明暗度确定该元素与该背景区域的第一对比度,并且,当该第一对比度小于预设对比度时,调整该元素的显示属性。因此,该元素的显示属性可以随着该元素的背景区域的显示属性的变化而变化,于是,可以降低因该元素与该背景区域的对比度减小而导致该元素在该背景下的显示效果不显著的几率,从而可以提升用户的阅读体验。
根据第一方面,本申请实施例第一方面的第一种实施方式中,该元素包括文字或图标。
本实施方式中,明确了元素的具体实现方式,可以为文字,也可以为图标。
根据第一方面的第一种实施方式,本申请实施例第一方面的第二种实施方式中,该元素的显示属性包括该元素的线条粗细值。
本实施方式中,明确了该元素的显示属性,该终端设备可以对该元素的线条粗细值进行调整,以使得该元素能够较为显著地显示于该页面。
根据第一方面的第二种实施方式,本申请实施例第一方面的第三种实施方式中,该调 整该元素的显示属性,包括:根据该第一对比度按照预设对应关系调整该元素的线条粗细值,该预设对应关系为该第一对比度与该元素的线条粗细值的对应关系。
本实施方式中,明确了调整线条粗细值的具体实现方式,该终端设备可以根据该第一对比度对该线条粗细值进行调整,可以使调整后的线条粗细值所对应的元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
根据第一方面的第二种实施方式或第一方面的第三种实施方式,本申请实施例第一方面的第四种实施方式中,该元素的显示属性还包括该元素的明暗度;当该第一对比度小于预设对比度时,该方法还包括:调整该元素的明暗度为第一目标明暗度,该第一目标明暗度与该背景区域的明暗度之间的第二对比度大于预设对比度。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值之外,该终端设备还可以调整该第一明暗度,即调整该元素的明暗度,以使得该元素的线条***的同时能够变得更加明亮或更加黑暗。
根据第一方面、第一方面的第一种实施方式至第一方面的第四种实施方式中的任意一种实施方式,本申请实施例第一方面的第五种实施方式中,该元素的显示属性还包括该元素的阴影;当该第一对比度小于预设对比度时,该方法还包括:设置该元素的阴影,该阴影的颜色与该元素的颜色不同。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值和该元素的明暗度之外,该终端设备还可以为该元素设置阴影,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
根据第一方面、第一方面的第一种实施方式至第一方面的第四种实施方式中的任意一种实施方式,本申请实施例第一方面的第六种实施方式中,当该第一对比度小于预设对比度时,该方法还包括:调整该背景区域的明暗度为第二目标明暗度,该第二目标明暗度与该元素的明暗度的之间第三对比度大于预设对比度。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值、该元素的明暗度和设置阴影之外,该终端设备还可以调整该背景区域的明暗度,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
第二方面,本申请实施例提供了一种终端设备,包括:获取模块,用于获取页面中的第一明暗度和第二明暗度,其中,该第一明暗度为该页面中的元素的明暗度,该第二明暗度为显示该元素的背景区域的明暗度。确定模块,用于根据该第一明暗度和该第二明暗度确定该元素与该背景区域之间的第一对比度。调整模块,用于当该第一对比度小于预设对比度时,调整该元素的显示属性。
本申请实施例中,该终端设备可以根据元素的明暗度和背景区域的明暗度确定该元素与该背景区域的第一对比度,并且,当该第一对比度小于预设对比度时,调整该元素的显示属性。因此,该元素的显示属性可以随着该元素的背景区域的显示属性的变化而变化,于是,可以降低因该元素与该背景区域的对比度减小而导致该元素在该背景下的显示效果不显著的几率,从而可以提升用户的阅读体验。
根据第二方面,本申请实施例第二方面的第一种实施方式中,该元素包括文字或图标。
本实施方式中,明确了元素的具体实现方式,可以为文字,也可以为图标。
根据第二方面的第一种实施方式,本申请实施例第二方面的第二种实施方式中,该元素的显示属性包括该元素的线条粗细值。
本实施方式中,明确了该元素的显示属性,该终端设备可以对该元素的线条粗细值进行调整,以使得该元素能够较为显著地显示于该页面。
根据第二方面的第二种实施方式,本申请实施例第二方面的第三种实施方式中,该调整模块,具体用于根据该第一对比度按照预设对应关系调整该元素的线条粗细值,该预设对应关系为该第一对比度与该元素的线条粗细值的对应关系。
本实施方式中,明确了调整线条粗细值的具体实现方式,该终端设备可以根据该第一对比度对该线条粗细值进行调整,可以使调整后的线条粗细值所对应的元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
根据第二方面的第二种实施方式或第二方面的第三种实施方式,本申请实施例第二方面的第四种实施方式中,该元素的显示属性还包括该元素的明暗度;该调整模块,还用于调整该元素的明暗度为第一目标明暗度,该第一目标明暗度与该背景区域的明暗度之间的第二对比度大于预设对比度。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值之外,该终端设备还可以调整该第一明暗度,即调整该元素的明暗度,以使得该元素的线条***的同时能够变得更加明亮或更加黑暗。
根据第二方面、第二方面的第一种实施方式至第二方面的第四种实施方式中的任意一种实施方式,本申请实施例第二方面的第五种实施方式中,该元素的显示属性还包括该元素的阴影;该调整模块,还用于设置该元素的阴影,该阴影的颜色与该元素的颜色不同。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值和该元素的明暗度之外,该终端设备还可以为该元素设置阴影,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
根据第二方面、第二方面的第一种实施方式至第二方面的第四种实施方式中的任意一种实施方式,本申请实施例第二方面的第六种实施方式中,该调整模块,还用于调整该背景区域的明暗度为第二目标明暗度,该第二目标明暗度与该元素的明暗度的之间第三对比度大于预设对比度。
本实施方式中,该终端设备除了可以调整该元素的线条粗细值、该元素的明暗度和设置阴影之外,该终端设备还可以调整该背景区域的明暗度,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
第三方面,本申请实施例提供了一种终端设备,该终端设备可以是包含显示装置的移动终端设备,也可以是移动终端设备内的芯片。该终端设备可以包括处理模块和收发模块。当该终端设备是包含显示装置的移动终端设备时,该处理模块可以是处理器;该终端设备还可以包括存储模块,该存储模块可以是存储器;该存储模块用于存储指令,该处理模块执行该存储模块所存储的指令,以使该终端设备执行第一方面或第一方面的任一种实施方式中的方法。当该通信设备是终端设备内的芯片时,该处理模块可以是处理器,该收发模块可以是输入/输出接口、管脚或电路等;该处理模块执行存储模块所存储的指令,以使该车联网终端设备执行第一方面或第一方面的任一种实施方式中的方法。该存储模块可以 是该芯片内的存储模块(例如,寄存器、缓存等),也可以是该车联网终端设备内的位于该芯片外部的存储模块(例如,只读存储器、随机存取存储器等)。
第四方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得该计算机执行如前述第一方面以及第一方面中任意一种实施方式所介绍的方法。
第五方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当该指令在计算机上运行时,以使得计算机执行如前述第一方面以及第一方面中任意一种实施方式或第二方面以及第二方面中任意一种实施方式所介绍的方法。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请实施例中,该终端设备可以根据元素的明暗度和背景区域的明暗度确定该元素与该背景区域的第一对比度,并且,当该第一对比度小于预设对比度时,调整该元素的显示属性。因此,该元素的显示属性可以随着该元素的背景区域的显示属性的变化而变化,于是,可以降低因该元素与该背景区域的对比度减小而导致该元素在该背景下的显示效果不显著的几率,从而可以提升用户的阅读体验。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。
图1为本申请实施例中显示属性调整方法的一个应用场景示意图;
图2为本申请实施例中显示属性调整方法的一个流程图;
图3A为本申请实施例中显示属性调整方法的一个实施例示意图;
图3B为本申请实施例中显示属性调整方法的另一个实施例示意图;
图3C为本申请实施例中显示属性调整方法的另一个实施例示意图;
图3D为本申请实施例中显示属性调整方法的另一个实施例示意图;
图4A为本申请实施例中显示属性调整方法的另一个实施例示意图;
图4B为本申请实施例中显示属性调整方法的另一个实施例示意图;
图4C为本申请实施例中显示属性调整方法的另一个实施例示意图;
图4D为本申请实施例中显示属性调整方法的另一个实施例示意图;
图4E为本申请实施例中显示属性调整方法的另一个实施例示意图;
图5为本申请实施例中终端设备的一个实施例示意图;
图6为本申请实施例中终端设备的另一个实施例示意图。
具体实施方式
本申请实施例提供了一种显示属性调整方法以及相关设备,用于使元素在页面中的显示效果更显著,提高用户的阅读体验。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在 这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为便于理解,下面先对本申请实施例所涉及的应用场景进行介绍:
一般地,用户可以根据自己的喜好对终端设备所显示的页面的背景进行设置。例如,用户可以对锁屏界面进行设置,如图1所示,用户可以将该图1左侧的背景切换为图1右侧的背景。在此过程中,该用户仅对该页面的背景进行了设置,而并未对该页面的上显示的元素进行设置。此时,图1右侧的背景与该页面的元素的组合可能出现对比不明显的情况,导致该元素在该页面的背景下显示不显著。此时,该终端设备可以采用本申请实施例所提出的方法对该页面进行调整,以使得在保留该用户设置的背景的同时又能够使该元素显著地显示于该背景之上,从而可以提升用户的阅读体验。
本实施例中,该终端设备指带有显示装置的设备,该显示装置可以为黑白显示装置,也可以为彩色显示装置,此处不做限定。具体地,该终端设备可以为手机、平板电脑以及其他带有显示装置的设备。在本实施例以及后续实施例中,仅以终端设备为例进行介绍。
为便于理解,下面结合前述应用场景对该显示属性调整方法的流程进行介绍,具体如图2所示,该终端设备将执行如下步骤:
201、获取页面中的第一明暗度和第二明暗度。
其中,该第一明暗度为该页面中的元素的明暗度,该第二明暗度为显示该元素的背景区域的明暗度,该明暗度指页面的明亮和黑暗的程度,该明暗度与页面的颜色无关。以图3A为例,该图中将明暗度划分为12个等级,从50到900逐渐变暗。当达到最暗,该区域显示为黑色,当达到最明时,该区域显示为白色。在实际应用中,若该终端设备将明暗度划分为如图3A所示的12个等级,则该第一明暗度和该第二明暗度可能落在该12个等级之中的某一个或两个等级。当然,因实际应用需求的差异,该终端设备还可以划分更多的明暗度等级,具体此处不做限定。
此外,该元素包括文字或者图标。为便于理解,下面结合图3B进行介绍。如图3B所示,该元素可以是文字,例如,301所示的数字和302所示的汉字;该元素还可以是图标,例如,303所示的表示指纹的图标。在实际应用中,该元素还可以是其他文字或图标,具体此处不做限定。
具体地,以图3B中的301所示的区域为例。该301所示的虚线区域中的“06:00”即为元素,显示该“06:00”的笔画的像素点的明暗度为第一明暗度。该301所示的虚线区域中的除了“06:00”之外的像素点的明暗度为第二明暗度。
本实施例中,该终端设备在获取了第一明暗度和第二明暗之后,该终端设备将执行步骤202。
202、根据该第一明暗度和该第二明暗度确定该元素与该背景区域之间的第一对比度。
本实施例中,该终端设备获取了该第一明暗度和该第二明暗度之后,该终端设备可以根据该第一明暗度和该第二明暗度确定该元素与该背景区域之间的第一对比度。其中,该对比度指页面中明暗区域最亮的白和最暗的黑之间不同亮度层级的差异,该差异越大则对 比度越大,该差异越小则对比越小。
具体地,该终端设备可以通过多种算法计算该第一对比度,具体此处不做限定。在本实施例以及后续实施例中,以明暗度的比值确定该第一对比度。为便于理解,下面结合具体示例进行介绍。假设,该第一明暗度的值小于该第二明暗度的值,此时,该终端设备可以计算该第二明暗度的值与该第一明暗度的值的比值,得到该第一对比度。此时,该终端设备可以将该第一对比度与预设对比度进行比较。该预设对比度可以为该终端设备在生产时预设的对比度,也可以为用户根据使用习惯设置的对比度,具体此处不做限定。一般地,该预设对比度可以设置为4.5:1。当该第一对比度小于该预设对比度时,该终端设备将执行步骤203。
203、调整该元素的线条的粗细值。
本实施例中,元素的显示属性包括该元素的线条粗细值。一般地,该线条粗细值越大,该线条越粗。
具体地,当该元素为文字时,该元素的线条粗细值表示该文字的笔画的粗细。例如图3C所示的文字,该文字可以被划分为25JF到105JF一共12个值。
此外,当该元素为图标时,该元素的线条粗细值表示该图标的线条的粗细。例如图3D所示的图标,从左到右,该图标的粗细值在不断地变大,该图标的线条也在不断***。
本实施例中,当该第一对比度小于预设对比度时,该终端设备可以调整该元素的线条粗细值。具体地,该终端设备可以根据该第一对比度按照预设对应关系调整该元素的线条粗细值,该预设对应关系为该第一对比度与该元素的线条粗细值的对应关系。更具体地,该终端设备可以根据该预设对比度与该第一对比度的差值确定调整粗细等级的个数。为便于理解,结合表1所示的例子进行介绍。
表1
Figure PCTCN2020097829-appb-000001
当该第一对比度为3:1,该预设对比度为4.5:1时,由于该第一对比度小于该预设对比度,则该终端设备可以计算该预设对比度与该第一对比度的差值,并按照表1中的差值与该调整粗细等级个数的对应关系调整该元素的线条粗细值。例如,当该预设对比度与该第一对比度的差值为1.5时,将该元素的线条的粗细值调大三个等级。假设,该元素初始的线条粗细等级为图3C所示的55S,则将该元素的线条粗细调整为70S。
本实施例中,除了根据上述预设粗细等级调整该元素的线条的粗细值以外,该终端设备还可以根据该第一明暗度和第二明暗度计算该粗细值。为便于理解,以下述公式为例进行介绍。假设,当该第二明暗度为最暗(即纯黑)时,该第二明暗度的值为0;当该第二 明暗度为最明(即纯白黑)时,该第二明暗度的值为1000;选取明暗度的中值为570。预设的元素的线条的粗细值为S 0、S 1000、S 570,则该第二明暗度发生变化时,该元素的线条的粗细值s l为:
Figure PCTCN2020097829-appb-000002
具体地,在实际应用中,该计算公式可以因应用场景的不同而有所差异,具体此处不做限定。
本实施例中,为便于理解,仅以该图3B所示的元素301为例以展示调整效果。当该终端设备采用前述方式调整该元素的线条粗细值之后,该页面的显示效果可以参考图4A,其中,该图4A左侧是未经过调整的元素,该图4A右侧是调整了线条粗细值的元素。此时,该页面中的元素的线条***,可以使用户在阅读时更易区分该元素和显示该元素的背景,因此,可以适当的提高用户的阅读体验。
204、调整该元素的明暗度。
步骤204为可选的步骤,并且,步骤204与前述步骤203无明确的时间先后顺序的限定。
当该第一对比度小于预设对比度时,该终端设备将调整该元素的明暗度,该元素为文字或图标。具体地,该终端设备可以调整该元素的明暗度为第一目标明暗度,该第一目标明暗度与该背景区域的明暗度之间的第二对比度大于预设对比度。为便于理解,下面结合具体示例进行介绍。假设,该第一明暗度小于该第二明暗度,该第一明暗度为100,该第一明暗度为300,此时,该第二明暗度与该第一明暗度的比值为3:1,该3:1小于4.5:1。于是,该终端设备调整该第一明暗度为第一目标明暗度,该第一目标明暗度小于100即可。
本实施例中,为便于理解,仍然以该图3B所示的元素301为例以展示调整效果。当该终端设备采用前述方式调整该元素的明暗度之后,该页面的显示效果可以参考图4B,其中,该图4B左侧是未经过调整的元素,该图4B右侧是调整了明暗度的元素。此时,该页面中的元素的线条变得更加明亮,可以使用户在阅读时更易区分该元素和显示该元素的背景,因此,可以适当的提高用户的阅读体验。
205、设置该元素的阴影。
步骤205为可选的步骤,并且,步骤205与前述步骤203至步骤204之间无明确的时间先后顺序的限定。
当该第一对比度小于预设对比度时,该终端设备可以设置该元素的阴影,该阴影的颜色与该元素的颜色不同。为便于理解,本实施例中,仍然以该图3B所示的元素301为例以展示调整效果。当该终端设备采用前述方式调整该元素的阴影之后,该页面的显示效果可以参考图4C和图4D,其中,该图4C左侧和图4D左侧是未经过调整的元素,该图4C右侧是阴影与文字重合的场景,此时,该阴影构成了该文字的外边线;该图4D右侧是阴影 与文字未完全重合的场景,此时,呈现出左侧光源照向该文字的效果。在实际应用中,该终端设备还可以设置其他类型的阴影效果,以满足不同用户的喜好需求。
206、调整该背景区域的明暗度。
步骤206为可选的步骤,并且,步骤206与前述步骤203至步骤205之间无明确的时间先后顺序的限定。
本实施例中,当该第一对比度小于预设对比度时,该终端设备可以调整该背景区域的明暗度为第二目标明暗度,该第二目标明暗度与该元素的明暗度的之间的第三对比度大于预设对比度。为便于理解,下面结合具体示例进行介绍。假设,该第一明暗度小于该第二明暗度,该第一明暗度为100,该第二明暗度为300,此时,该第二明暗度与该第一明暗度的比值为3:1,该3:1小于4.5:1。于是,该终端设备调整该第二明暗度为第二目标明暗度,该第二目标明暗度小于100即可。
本实施例中,仍然以该图3B所示的元素301为例以展示调整效果。当该终端设备采用前述方式调整背景区域的明暗度之后,该页面的显示效果可以参考图4E,其中,该图4E左侧是未经过调整的元素,该图4E右侧是调整了背景区域的明暗度的效果。此时,由于该背景区域变暗,因此,该页面中的元素的线条变得更加明亮,可以使用户在阅读时更易区分该元素和显示该元素的背景,因此,可以适当的提高用户的阅读体验。
上面对本申请实施例中的显示属性调整方法进行了介绍,下面将对该显示属性调整方法所涉及的终端设备进行介绍,具体如图5所示,该终端设备50包括:
获取模块501,用于获取页面中的第一明暗度和第二明暗度,其中,该第一明暗度为该页面中的元素的明暗度,该第二明暗度为显示该元素的背景区域的明暗度。
确定模块502,用于根据该第一明暗度和该第二明暗度确定该元素与该背景区域之间的第一对比度。
调整模块503,用于当该第一对比度小于预设对比度时,调整该元素的显示属性。
本申请实施例中,该终端设备可以根据元素的明暗度和背景区域的明暗度确定该元素与该背景区域的第一对比度,并且,当该第一对比度小于预设对比度时,调整该元素的显示属性。因此,该元素的显示属性可以随着该元素的背景区域的显示属性的变化而变化,于是,可以降低因该元素与该背景区域的对比度减小而导致该元素在该背景下的显示效果不显著的几率,从而可以提升用户的阅读体验。
可选的,该元素包括文字或图标。在这样的实施方式中,明确了元素的具体实现方式,可以为文字,也可以为图标。
可选的,该元素的显示属性包括该元素的线条粗细值。在这样的实施方式中,明确了该元素的显示属性,该终端设备可以对该元素的线条粗细值进行调整,以使得该元素能够较为显著地显示于该页面。
在一种可行的实施方式中,该调整模块503,具体用于根据该第一对比度按照预设对应关系调整该元素的线条粗细值,该预设对应关系为该第一对比度与该元素的线条粗细值的对应关系。在这样的实施方式中,明确了调整线条粗细值的具体实现方式,该终端设备可以根据该第一对比度对该线条粗细值进行调整,可以使调整后的线条粗细值所对应的元 素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
在另一种可行的实施方式中,该元素的显示属性还包括该元素的明暗度;该调整模块503,还用于调整该元素的明暗度为第一目标明暗度,该第一目标明暗度与该背景区域的明暗度之间的第二对比度大于预设对比度。在这样的实施方式中,该终端设备除了可以调整该元素的线条粗细值之外,该终端设备还可以调整该第一明暗度,即调整该元素的明暗度,以使得该元素的线条***的同时能够变得更加明亮或更加黑暗。
在另一种可行的实施方式中,该元素的显示属性还包括该元素的阴影;该调整模块503,还用于设置该元素的阴影,该阴影的颜色与该元素的颜色不同。在这样的实施方式中,该终端设备除了可以调整该元素的线条粗细值和该元素的明暗度之外,该终端设备还可以为该元素设置阴影,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
在另一种可行的实施方式中,该调整模块503,还用于调整该背景区域的明暗度为第二目标明暗度,该第二目标明暗度与该元素的明暗度的之间第三对比度大于预设对比度。在这样的实施方式中,该终端设备除了可以调整该元素的线条粗细值、该元素的明暗度和设置阴影之外,该终端设备还可以调整该背景区域的明暗度,以使得该元素可以显著的显示于该页面之中,进而可以提升用户的阅读体验。
本实施例提供了另一种终端设备60的结构示意图。该终端设备60可以为带有显示装置的移动终端设备,也可以为位于移动终端设备上的芯片或片上***。
终端设备60包括处理器601和存储器602。存储器602用于存储程序,处理器601用于执行存储器602中的程序,以实现本申请各方法实施例中终端设备的功能。
其中,处理器601可以包括一个或一个以上的处理器,存储器602可以包括一个或一个以上的存储介质(例如一个或一个以上海量存储设备)。
可选地,该终端设备60还包括输入/输出接口603,输入/输出接口603可以用于终端设备60与其它设备进行通信。
还应理解,上述图2所对应的方法实施例中,该终端设备所执行的步骤均可以基于该图6所示的终端设备60结构。
本申请实施例还提供了一种包含指令的计算机程序产品,当前述指令在计算机上运行时,使得该计算机执行如前述各种通信设备的功能。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质用于存储前述指令,以使得该计算机可以运行该指令以实现前述各种通信设备的功能。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***,设备、模块或单元的具体工作过程,可以参考前述方法实施例中的对应过程,具体此处不再赘述。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所 记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (10)

  1. 一种显示属性调整方法,其特征在于,包括:
    获取页面中的第一明暗度和第二明暗度,所述第一明暗度为所述页面中的元素的明暗度,所述第二明暗度为显示所述元素的背景区域的明暗度;
    根据所述第一明暗度和所述第二明暗度确定所述元素与所述背景区域之间的第一对比度;
    当所述第一对比度小于预设对比度时,调整所述元素的显示属性。
  2. 根据权利要求1所述的方法,其特征在于,所述元素包括文字或图标。
  3. 根据权利要求2所述的方法,其特征在于,所述元素的显示属性包括所述元素的线条粗细值。
  4. 根据权利要求3所述的方法,其特征在于,所述调整所述元素的显示属性,包括:
    根据所述第一对比度按照预设对应关系调整所述元素的线条粗细值,所述预设对应关系为所述第一对比度与所述元素的线条粗细值的对应关系。
  5. 根据权利要求3或4所述的方法,其特征在于,所述元素的显示属性还包括所述元素的明暗度;
    当所述第一对比度小于预设对比度时,所述方法还包括:
    调整所述元素的明暗度为第一目标明暗度,所述第一目标明暗度与所述背景区域的明暗度之间的第二对比度大于预设对比度。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述元素的显示属性还包括所述元素的阴影;
    当所述第一对比度小于预设对比度时,所述方法还包括:
    设置所述元素的阴影,所述阴影的颜色与所述元素的颜色不同。
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,当所述第一对比度小于预设对比度时,所述方法还包括:
    调整所述背景区域的明暗度为第二目标明暗度,所述第二目标明暗度与所述元素的明暗度的之间第三对比度大于预设对比度。
  8. 一种终端设备,其特征在于,包括:
    处理器、存储器和输入/输出设备;
    所述处理器,用于获取页面中的第一明暗度和第二明暗度,所述第一明暗度为所述页面中的元素的明暗度,所述第二明暗度为显示所述元素的背景区域的明暗度;
    所述处理器,还用于根据所述第一明暗度和所述第二明暗度确定所述元素与所述背景区域之间的第一对比度;
    所述处理器,还用于当所述第一对比度小于预设对比度时,调整所述元素的显示属性;
    所述存储器,用于存储程序;
    所述输入/输出设备,用于显示所述页面。
  9. 根据权利要求8所述的终端设备,其特征在于,所述处理器具体用于:
    根据所述第一对比度按照预设对应关系调整所述元素的线条粗细值,所述预设对应关系为所述第一对比度与所述元素的线条粗细值的对应关系。
  10. 根据权利要求8或9所述的终端设备,其特征在于,所述处理器还用于:
    当所述第一对比度小于预设对比度时,设置所述元素的阴影,所述阴影的颜色与所述元素的颜色不同。
PCT/CN2020/097829 2019-06-27 2020-06-24 一种显示属性调整方法以及相关设备 WO2020259517A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20833643.8A EP3968141A4 (en) 2019-06-27 2020-06-24 METHOD AND DEVICE FOR ADJUSTING DISPLAY ATTRIBUTES
US17/622,542 US20220398997A1 (en) 2019-06-27 2020-06-24 Method for Adjusting Display Attribute, and Related Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910568981.2 2019-06-27
CN201910568981.2A CN110442313B (zh) 2019-06-27 2019-06-27 一种显示属性调整方法以及相关设备

Publications (1)

Publication Number Publication Date
WO2020259517A1 true WO2020259517A1 (zh) 2020-12-30

Family

ID=68428393

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/097829 WO2020259517A1 (zh) 2019-06-27 2020-06-24 一种显示属性调整方法以及相关设备

Country Status (4)

Country Link
US (1) US20220398997A1 (zh)
EP (1) EP3968141A4 (zh)
CN (2) CN113920912B (zh)
WO (1) WO2020259517A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113920912B (zh) * 2019-06-27 2023-03-03 华为技术有限公司 一种显示属性调整方法以及相关设备
CN113157356A (zh) * 2020-01-22 2021-07-23 阿里巴巴集团控股有限公司 调整对象颜色的方法、装置、电子设备及计算机存储介质
CN115145436B (zh) * 2021-03-31 2024-05-03 华为技术有限公司 一种图标处理方法及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137103A (zh) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 文字显示方法及装置
US20140368525A1 (en) * 2013-06-12 2014-12-18 Google Inc. Systems and methods for changing contrast based on brightness of an output for presentation on a display
CN105005461A (zh) * 2015-06-23 2015-10-28 深圳市金立通信设备有限公司 一种图标显示方法及终端
CN105824496A (zh) * 2016-01-22 2016-08-03 维沃移动通信有限公司 一种基于用户使用情况设置图标亮度的方法和移动终端
CN105957125A (zh) * 2016-05-20 2016-09-21 广东欧珀移动通信有限公司 一种图标文字的处理方法及移动终端
CN110442313A (zh) * 2019-06-27 2019-11-12 华为技术有限公司 一种显示属性调整方法以及相关设备

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02264298A (ja) * 1989-04-05 1990-10-29 Photo Composing Mach Mfg Co Ltd 文字画像処理方法
JP2002140044A (ja) * 2000-10-31 2002-05-17 Mitsubishi Electric Corp 液晶表示装置ならびにそれを備えた携帯電話機および携帯情報端末機器
JP4180814B2 (ja) * 2001-10-22 2008-11-12 松下電器産業株式会社 太字表示方法及びそれを用いた表示装置
US7002593B2 (en) * 2001-11-01 2006-02-21 Eastman Kodak Company Method for reducing the power used by emissive display devices
CN101243487B (zh) * 2005-07-12 2010-12-08 夏普株式会社 图像数据产生装置和图像数据产生方法
JP4215038B2 (ja) * 2005-09-16 2009-01-28 セイコーエプソン株式会社 画像処理装置、画像処理方法、およびプログラム
KR101640214B1 (ko) * 2009-11-19 2016-07-15 삼성전자 주식회사 표시부 출력 제어 방법 및 이를 지원하는 휴대 단말기
CN102567300B (zh) * 2011-12-29 2013-11-27 方正国际软件有限公司 图片文档的处理方法及装置
US9093007B2 (en) * 2012-09-21 2015-07-28 Blackberry Limited Method and device for generating a presentation
EP2770403A1 (en) * 2013-02-25 2014-08-27 BlackBerry Limited Device with glasses mode
KR102094504B1 (ko) * 2013-09-23 2020-03-30 삼성전자주식회사 콘텐츠 가독성 향상 방법 및 이를 위한 단말기
KR102178258B1 (ko) * 2013-09-27 2020-11-12 삼성전자주식회사 디스플레이 장치 및 이의 글자 효과 제공 방법
US20170098098A1 (en) * 2014-05-27 2017-04-06 Empire Technology Development Llc Secure images
WO2016066250A1 (en) * 2014-10-30 2016-05-06 Amadeus S.A.S. Controlling a graphical user interface
US20160246475A1 (en) * 2015-02-22 2016-08-25 Microsoft Technology Licensing, Llc Dynamic icon recoloring to improve contrast
CN105159874B (zh) * 2015-08-26 2018-09-11 小米科技有限责任公司 文字的修改方法及装置
CN109478389B (zh) * 2016-07-14 2023-01-10 三星电子株式会社 具有颜色和对比度增强的多层显示器
CN106775548B (zh) * 2016-11-25 2018-02-23 北京小米移动软件有限公司 页面处理方法及装置
CN107016978B (zh) * 2017-04-25 2018-11-20 腾讯科技(深圳)有限公司 一种界面展示技术及终端设备
US10649640B2 (en) * 2017-05-02 2020-05-12 Microsoft Technology Licensing, Llc Personalizing perceivability settings of graphical user interfaces of computers
CN109189281A (zh) * 2018-06-29 2019-01-11 努比亚技术有限公司 壁纸与图标的颜色适配方法、终端及计算机存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137103A (zh) * 2011-12-05 2013-06-05 中兴通讯股份有限公司 文字显示方法及装置
US20140368525A1 (en) * 2013-06-12 2014-12-18 Google Inc. Systems and methods for changing contrast based on brightness of an output for presentation on a display
CN105005461A (zh) * 2015-06-23 2015-10-28 深圳市金立通信设备有限公司 一种图标显示方法及终端
CN105824496A (zh) * 2016-01-22 2016-08-03 维沃移动通信有限公司 一种基于用户使用情况设置图标亮度的方法和移动终端
CN105957125A (zh) * 2016-05-20 2016-09-21 广东欧珀移动通信有限公司 一种图标文字的处理方法及移动终端
CN110442313A (zh) * 2019-06-27 2019-11-12 华为技术有限公司 一种显示属性调整方法以及相关设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3968141A4

Also Published As

Publication number Publication date
CN113920912A (zh) 2022-01-11
US20220398997A1 (en) 2022-12-15
EP3968141A1 (en) 2022-03-16
CN110442313B (zh) 2021-09-21
EP3968141A4 (en) 2022-07-06
CN110442313A (zh) 2019-11-12
CN113920912B (zh) 2023-03-03

Similar Documents

Publication Publication Date Title
WO2020259517A1 (zh) 一种显示属性调整方法以及相关设备
WO2017113343A1 (zh) 一种调节背光亮度的方法和终端
US9635255B1 (en) Display as adjustable light source
TWI549106B (zh) 影像顯示方法及電子裝置
TWI478144B (zh) 具強光可視性的顯示方法與使用此方法的電子裝置
JP6615917B2 (ja) 実時間ビデオエンハンスメント方法、端末及び非一時的コンピュータ可読記憶媒体
CN107274351B (zh) 图像处理设备、图像处理***和图像处理方法
WO2020093495A1 (zh) 显示面板的伽马值调试方法及装置
US11398195B2 (en) Backlight brightness processing method and system, backlight brightness adjustment method, storage medium
WO2018072270A1 (zh) 一种图像显示增强方法及装置
WO2019109563A1 (zh) 显示界面图像的方法和装置
TWI573126B (zh) 可依據不同環境執行最佳化調整的影像調整方法及其顯示器
CN104076928A (zh) 一种调整文字显示区域色调的方法
WO2020056744A1 (zh) 拖影评价、改善方法和电子设备
CN113507598B (zh) 视频画面的显示方法、装置、终端及存储介质
WO2020001176A1 (zh) 显示方法及装置、可见光通信传输方法及装置
WO2021135683A1 (zh) 一种显示终端调整方法及显示终端
US20190313005A1 (en) Tone mapping for high-dynamic-range images
WO2019237837A1 (zh) 图像处理方法、装置、显示设备及计算机存储介质
CN110996174A (zh) 一种视频画质增强方法及其相关设备
EP3993383A1 (en) Method and device for adjusting image quality, and readable storage medium
WO2019184447A1 (zh) 背光控制方法、装置及计算机可读存储介质
EP2733692A1 (en) Electronic device and method for enhancing readibility of an image thereof
WO2023000868A1 (zh) 图像处理方法及装置、设备、存储介质
WO2022116718A1 (zh) 显示调整方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20833643

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020833643

Country of ref document: EP

Effective date: 20211206

NENP Non-entry into the national phase

Ref country code: DE