CN112331158A - Terminal display adjusting method, device, equipment and storage medium - Google Patents
Terminal display adjusting method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112331158A CN112331158A CN202011299550.XA CN202011299550A CN112331158A CN 112331158 A CN112331158 A CN 112331158A CN 202011299550 A CN202011299550 A CN 202011299550A CN 112331158 A CN112331158 A CN 112331158A
- Authority
- CN
- China
- Prior art keywords
- brightness
- color brightness
- target
- target color
- determining
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/02—Control 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
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control 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/34—Control 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 by control of light from an independent source
- G09G3/36—Control 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 by control of light from an independent source using liquid crystals
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0626—Adjustment of display parameters for control of overall brightness
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2320/00—Control of display operating conditions
- G09G2320/06—Adjustment of display parameters
- G09G2320/0666—Adjustment of display parameters for control of colour parameters, e.g. colour temperature
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Crystallography & Structural Chemistry (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The disclosure relates to a terminal display adjusting method, a device, equipment and a storage medium, wherein the method is applied to terminal equipment and comprises the following steps: in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface; determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element; and adjusting the display mode of each element based on the target color brightness of each element. The method and the device can improve the accuracy and the reasonability of determining the target color brightness of the element, and further can improve the effect of adjusting the display mode of each element in the display interface based on the determined target color brightness.
Description
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting terminal display.
Background
With the development of screen display brightness and contrast technology, the dark mode gradually starts to be applied in the mobile terminal. The dark mode not only can save the electric quantity for mobile terminal equipment, can also adjust the contrast of demonstration under the environment of dim light to alleviate visual effects such as mobile terminal equipment display brightness causes dazzling to the user.
In the related art, when the terminal device starts the deep color mode, the color brightness value (L value) of each element in the current display interface is usually converted based on a preset two-dimensional curve to obtain a converted color brightness value, and then the display of each element is adjusted in the display interface based on the converted color brightness value to realize the display mode of the deep color mode. However, the above-mentioned method of performing color luminance value conversion based on the two-dimensional curve is relatively rigid, so that the display effect of the page elements after the color luminance value conversion is not good.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for adjusting terminal display, so as to solve the defects in the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a terminal display adjusting method, applied to a terminal device, the method including:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
In an embodiment, the method further comprises:
and determining that the terminal display adjusting condition is met currently in response to detecting that the terminal equipment is converted from the first display mode to the second display mode.
In one embodiment, the determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element includes:
determining a target corresponding relation between the initial color brightness and the target color brightness under the current screen brightness from the pre-constructed corresponding relation between the initial color brightness and the target color brightness under various screen brightness;
and determining the target color brightness of each element based on the target corresponding relation and the initial color brightness of each element.
In one embodiment, the form of the target correspondence includes a correspondence curve;
determining the target color brightness of each element based on the target correspondence and the initial color brightness of each element includes:
determining that the initial color brightness of the element corresponds to a first coordinate value of a point on the corresponding relation curve;
and determining a second coordinate value of the point on the corresponding relation curve based on the first coordinate value of the point, and taking the second coordinate value as the target color brightness of the element.
In an embodiment, the method further comprises:
and based on the terminal display adjustment results under various screen brightness, pre-constructing the corresponding relation between the initial color brightness and the target color brightness under various screen brightness.
In an embodiment, the adjusting the display mode of each element based on the target color brightness of each element includes:
and rendering and drawing the elements based on the target color brightness of the elements.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal display adjusting apparatus, applied to a terminal device, the apparatus including:
the initial brightness acquisition module is used for responding to the detection that the current display adjustment condition of the terminal is met, and acquiring the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
the conversion brightness acquisition module is used for determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and the display mode adjusting module is used for adjusting the display mode of each element based on the target color brightness of each element.
In one embodiment, the apparatus further comprises:
and the adjusting condition judging module is used for responding to the detection that the terminal equipment is converted from the first display mode to the second display mode and determining that the terminal display adjusting condition is met currently.
In one embodiment, the converted luminance obtaining module includes:
the target relation determining unit is used for determining a target corresponding relation between the initial color brightness and the target color brightness under the current screen brightness from the pre-constructed corresponding relation between the initial color brightness and the target color brightness under various screen brightness;
and the conversion brightness acquisition unit is used for determining the target color brightness of each element based on the target corresponding relation and the initial color brightness of each element.
In one embodiment, the form of the target correspondence includes a correspondence curve;
the converted luminance obtaining unit is further configured to:
determining that the initial color brightness of the element corresponds to a first coordinate value of a point on the corresponding relation curve;
and determining a second coordinate value of the point on the corresponding relation curve based on the first coordinate value of the point, and taking the second coordinate value as the target color brightness of the element.
In one embodiment, the apparatus further comprises:
and the corresponding relation building module is used for pre-building the corresponding relation between the initial color brightness and the target color brightness under various screen brightness based on the terminal display adjusting results under various screen brightness.
In an embodiment, the display manner adjusting module is further configured to render and draw the elements based on the target color brightness of the elements.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal device, the device including:
a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of responding to the detection that the terminal display adjustment condition is met currently, acquiring the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface, and determining a target color brightness of the elements based on the current screen brightness and the initial color brightness of the elements, further, the display mode of each element can be adjusted based on the target color brightness of each element, since the target color brightness of each element in the current display interface is determined based on the current screen brightness of the terminal device and the initial color brightness of each element, therefore, the determination of the target color brightness of the element can better meet the requirement of the current screen brightness, the accuracy and the reasonability of the determination of the target color brightness of the element are improved, and then the effect of adjusting the display mode of each element in the display interface based on the determined target color brightness can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method for terminal display adjustment according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of terminal display adjustment according to yet another exemplary embodiment;
FIG. 3 is a flow diagram illustrating how a target color brightness for the elements is determined based on the current screen brightness and the initial color brightness for the elements in accordance with one illustrative embodiment;
FIG. 4 is a flow diagram illustrating how a target color intensity for the elements is determined based on the target correspondence and the initial color intensities for the elements in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a terminal display adjustment apparatus according to an exemplary embodiment;
fig. 6 is a block diagram illustrating a terminal display adjusting apparatus according to still another exemplary embodiment;
fig. 7 is a block diagram illustrating a terminal device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
FIG. 1 is a flow chart illustrating a method for terminal display adjustment according to an exemplary embodiment; the method of the embodiment can be applied to a terminal device (e.g., a smart phone, a tablet computer, a notebook computer, or a wearable device) having a screen.
As shown in fig. 1, the method comprises the following steps S101-S103:
in step S101, in response to detecting that a terminal display adjustment condition is currently satisfied, a current screen brightness of the terminal device and an initial color brightness of each element in a current display interface are obtained.
In this embodiment, the terminal device may detect whether the terminal display adjustment condition is satisfied in real time, and further may obtain the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface of the terminal device when it is detected that the terminal display adjustment condition is currently satisfied.
It is understood that the colors displayed in the display interface may have respective color values (e.g., R, G, B three-channel numerical values) and color brightness values (e.g., L values for representing the brightness of the colors), so the initial color brightness of each element in the display interface described in this embodiment may include the initial L values of each element.
It should be noted that the terminal display adjustment condition may be set in advance based on actual needs, for example, a key set for adjusting the terminal display is triggered, and the like, which is not limited in this embodiment.
In an embodiment, the elements in the display interface may include system characters, images, icons, and the like, which is not limited in this embodiment.
In step S102, a target color brightness of each element is determined based on the current screen brightness and the initial color brightness of each element.
In this embodiment, after the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface are obtained, the target color brightness of each element may be determined based on the current screen brightness and the initial color brightness of each element.
For example, after the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface are obtained, the first color brightness may be determined based on the initial color brightness of each element in the current display interface and a preset corresponding relationship, and then the first color brightness may be adjusted based on a comparison result between the current screen brightness and a set screen brightness threshold. If so, increasing the brightness of the first color when the current screen brightness is determined to be greater than the set screen brightness threshold; and when the current screen brightness is determined to be less than or equal to the set screen brightness threshold value, the brightness of the first color is reduced, and the like. The degree of the adjustment up or the adjustment down may be set based on actual needs, which is not limited in this embodiment.
It can be understood that, in the related art, the display mode of the color is adjusted only based on the inverse result of the initial color brightness of the interface element on the two-dimensional curve, however, under the condition of different screen brightness, the inverse effect of the interface element is also greatly affected, and the problem that the display of the interface element after the inverse color is unclear and the like can be caused. In the embodiment, the target color brightness of the element is determined based on the current screen brightness and the initial color brightness of each element under the condition of considering the current screen brightness, so that the determined target color brightness of the element can better meet the actual display requirement.
In another embodiment, the manner of determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element may be referred to the following embodiment shown in fig. 3, and will not be described in detail herein.
In step S103, the display mode of each element is adjusted based on the target color brightness of each element.
In this embodiment, after determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element, the display mode of each element may be adjusted based on the target color brightness of each element, for example, the current color brightness of each element may be adjusted based on the target color brightness of each element.
In another embodiment, the implementation manner of adjusting the display manner of each element based on the target color brightness of each element can also be referred to the following embodiment shown in fig. 2, and will not be described in detail here.
As can be seen from the above description, the method of this embodiment obtains the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface by responding to the detection that the terminal display adjustment condition is currently satisfied, and determining a target color brightness of the elements based on the current screen brightness and the initial color brightness of the elements, further, the display mode of each element can be adjusted based on the target color brightness of each element, since the target color brightness of each element in the current display interface is determined based on the current screen brightness of the terminal device and the initial color brightness of each element, thereby the determination of the target color brightness of the element can better meet the actual display requirement, the accuracy and the reasonability of the determination of the target color brightness of the element are improved, and then the effect of adjusting the display mode of each element in the display interface based on the determined target color brightness can be improved.
FIG. 2 is a flow chart illustrating a method of terminal display adjustment according to yet another exemplary embodiment; the method of the embodiment can be applied to a terminal device (e.g., a smart phone, a tablet computer, a notebook computer, or a wearable device) having a screen.
As shown in fig. 2, the method comprises the following steps S201-S204:
in step S201, in response to detecting that the terminal device is switched from the first display mode to the second display mode, it is determined that a terminal display adjustment condition is currently satisfied.
In this embodiment, when the terminal device is switched from the first display mode to the second display mode, it may be determined that the terminal device currently satisfies the terminal display adjustment condition. The first mode may be a normal display mode of the terminal device, and the second display mode may be any one of a dark color mode, an eye protection mode, or a night mode of the terminal device, which is not limited in this embodiment.
For example, when the terminal device detects that the trigger button of the second display mode is switched from the "off state" to the "on state", it may be considered that the terminal device is detected to be switched from the first display mode to the second display mode, and it may be determined that the terminal display adjustment condition is currently satisfied.
In step S202, in response to detecting that the terminal display adjustment condition is currently satisfied, the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface are obtained.
In step S203, a target color brightness of each element is determined based on the current screen brightness and the initial color brightness of each element.
For the explanation and description of steps S202-S203, reference may be made to the above embodiments, which are not repeated herein.
In step S204, the elements are rendered and drawn based on the target color luminances of the elements.
In this embodiment, after the target color brightness of each element is determined based on the current screen brightness and the initial color brightness of each element, each element may be rendered and drawn based on the target color brightness of each element, so that the display effect of each element in the display page in the second display mode may be achieved, and the purpose of adjusting the display mode of the terminal device according to the user requirement may be achieved.
As can be seen from the above description, in this embodiment, by determining that the terminal device currently satisfies the terminal display adjustment condition in response to detecting that the terminal device is switched from the first display mode to the second display mode, it can be accurately determined whether the terminal display adjustment condition is currently satisfied by detecting the display mode switching of the terminal device, and then it can be subsequently determined that the terminal display adjustment condition is satisfied, the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface are obtained, and the target color brightness of each element is determined based on the current screen brightness and the initial color brightness of each element, so that the timeliness and the effectiveness of the terminal display adjustment can be ensured.
FIG. 3 is a flow diagram illustrating how a target color brightness for the elements is determined based on the current screen brightness and the initial color brightness for the elements in accordance with one illustrative embodiment; the present embodiment is exemplified by how to determine the target color brightness of each element based on the current screen brightness and the initial color brightness of each element on the basis of the above embodiments. As shown in fig. 3, the determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element in the above step S102 includes the following steps S301 to S302:
in step S301, a target correspondence between the initial color brightness and the target color brightness at the current screen brightness is determined from the pre-constructed correspondences between the initial color brightness and the target color brightness at various screen brightnesses.
In this embodiment, the corresponding relationship between the initial color brightness and the target color brightness at various screen brightnesses may be pre-constructed based on the terminal display adjustment results at various screen brightnesses. Wherein the terminal display adjustment result may be an adjustment result determined based on the actual demand to achieve the relevant display demand. For example, different screen brightness may be preset, and then, under each screen brightness, an appropriate target color brightness corresponding to the screen brightness is adjusted, and then, a corresponding relationship between the initial color brightness and the target color brightness under various screen brightness may be constructed.
On this basis, after the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface are obtained, the target corresponding relationship between the initial color brightness and the target color brightness under the current screen brightness can be determined from the constructed corresponding relationship between the initial color brightness and the target color brightness under various screen brightness.
In an embodiment, the correspondence between the initial color brightness and the target color brightness at the various screen brightness may be a three-dimensional correspondence curve. For example, the x-axis, the y-axis, and the z-axis of the three-dimensional coordinate system where the three-dimensional correspondence curve is located may respectively correspond to the initial color brightness of the interface element, the target color brightness of the interface element, and the screen brightness of the terminal device.
In step S302, a target color brightness of each element is determined based on the target correspondence and the initial color brightness of each element.
In this embodiment, after determining the target corresponding relationship between the initial color brightness and the target color brightness at the current screen brightness, the target color brightness of each element may be determined based on the target corresponding relationship and the initial color brightness of each element. For example, the target color brightness corresponding to the initial color brightness of each element is searched from the target correspondence.
For example, fig. 4 is a flow chart illustrating how the target color intensity of the elements is determined based on the target correspondence and the initial color intensities of the elements, according to an example embodiment. In this embodiment, the target correspondence form may include a pre-constructed correspondence curve. For the explanation and explanation of the corresponding relationship curve, reference may be made to the related art, and this embodiment does not limit this.
As shown in fig. 4, the step S302 may further include the following steps S401 to S402:
in step S401, it is determined that the initial color brightness of the element corresponds to a first coordinate value of a point on the correspondence curve.
In this embodiment, after determining the initial color brightness of each element in the current display interface, it may be determined that the initial color brightness of each element corresponds to a first coordinate value (e.g., an x-axis coordinate value) of a point on the corresponding relationship curve.
In step S402, a second coordinate value of the point on the correspondence curve is determined based on the first coordinate value of the point, and is taken as a target color brightness of the element.
In this embodiment, after determining that the initial color brightness of each element corresponds to a first coordinate value (e.g., an x-axis coordinate value) of a point on the corresponding relationship curve, a second coordinate value (e.g., a y-axis coordinate value) of the same point on the corresponding relationship curve may be determined based on the first coordinate value, and the second coordinate value may be used as the target color brightness of the element.
As can be seen from the above description, in this embodiment, a target corresponding relationship between initial color brightness and target color brightness under current screen brightness is determined from a pre-constructed corresponding relationship between initial color brightness and target color brightness under various screen brightness, and then the target color brightness of each element is determined based on the target corresponding relationship and the initial color brightness of each element, so that the target color brightness of each element can be determined based on the current screen brightness and the initial color brightness of each element, the accuracy of determining the target color brightness of the element is improved, and further, the effect of adjusting the display mode of each element in the display interface based on the determined target color brightness can be improved.
Fig. 5 is a block diagram illustrating a terminal display adjustment apparatus according to an exemplary embodiment. The apparatus of the embodiment may be applied to a terminal device (e.g., a smart phone, a tablet computer, a notebook computer, or a wearable device) having a screen. As shown in fig. 5, the apparatus includes: an initial brightness obtaining module 110, a conversion brightness obtaining module 120 and a display mode adjusting module 130, wherein:
an initial brightness obtaining module 110, configured to obtain, in response to detecting that a terminal display adjustment condition is currently met, a current screen brightness of the terminal device and an initial color brightness of each element in a current display interface;
a converted brightness obtaining module 120, configured to determine a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
a display mode adjusting module 130, configured to adjust the display mode of each element based on the target color brightness of each element.
As can be seen from the above description, the apparatus of this embodiment obtains the current screen brightness of the terminal device and the initial color brightness of each element in the current display interface by responding to the detection that the terminal display adjustment condition is currently satisfied, and determining a target color brightness of the elements based on the current screen brightness and the initial color brightness of the elements, further, the display mode of each element can be adjusted based on the target color brightness of each element, since the target color brightness of each element in the current display interface is determined based on the current screen brightness of the terminal device and the initial color brightness of each element, therefore, the determination of the target color brightness of the element can better meet the requirement of the current screen brightness, the accuracy and the reasonability of the determination of the target color brightness of the element are improved, and then the effect of adjusting the display mode of each element in the display interface based on the determined target color brightness can be improved.
Fig. 6 is a block diagram illustrating a terminal display adjusting apparatus according to still another exemplary embodiment. The apparatus of the embodiment may be applied to a terminal device (e.g., a smart phone, a tablet computer, a notebook computer, or a wearable device) having a screen. The initial brightness obtaining module 210, the converted brightness obtaining module 220, and the display mode adjusting module 230 have the same functions as the initial brightness obtaining module 110, the converted brightness obtaining module 120, and the display mode adjusting module 130 in the embodiment shown in fig. 5, and are not described herein again.
As shown in fig. 6, the apparatus may further include:
and an adjusting condition determining module 240, configured to determine that the terminal display adjusting condition is currently met in response to detecting that the terminal device is switched from the first display mode to the second display mode.
In an embodiment, the converted luminance obtaining module 220 may include:
a target relationship determining unit 221, configured to determine, from pre-constructed correspondence relationships between initial color brightness and target color brightness at various screen brightnesses, a target correspondence relationship between the initial color brightness and the target color brightness at the current screen brightness;
a conversion brightness obtaining unit 222, configured to determine a target color brightness of each element based on the target correspondence and the initial color brightness of each element.
In an embodiment, the form of the target correspondence includes a correspondence curve;
the converted luminance obtaining unit 222 may be further configured to:
determining that the initial color brightness of the element corresponds to a first coordinate value of a point on the corresponding relation curve;
and determining a second coordinate value of the point on the corresponding relation curve based on the first coordinate value of the point, and taking the second coordinate value as the target color brightness of the element.
In an embodiment, the apparatus may further include:
and a corresponding relation constructing module 250, configured to pre-construct a corresponding relation between the initial color brightness and the target color brightness at various screen brightnesses based on the terminal display adjustment results at various screen brightnesses.
In an embodiment, the display mode adjustment module 230 may be further configured to render and draw the elements based on the target color brightness of the elements.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a terminal device according to an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may also include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. A terminal display adjusting method is applied to terminal equipment, and comprises the following steps:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
2. The method of claim 1, further comprising:
and determining that the terminal display adjusting condition is met currently in response to detecting that the terminal equipment is converted from the first display mode to the second display mode.
3. The method of claim 1, wherein determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element comprises:
determining a target corresponding relation between the initial color brightness and the target color brightness under the current screen brightness from the pre-constructed corresponding relation between the initial color brightness and the target color brightness under various screen brightness;
and determining the target color brightness of each element based on the target corresponding relation and the initial color brightness of each element.
4. The method of claim 3, wherein the form of the target correspondence comprises a correspondence curve;
determining the target color brightness of each element based on the target correspondence and the initial color brightness of each element includes:
determining that the initial color brightness of the element corresponds to a first coordinate value of a point on the corresponding relation curve;
and determining a second coordinate value of the point on the corresponding relation curve based on the first coordinate value of the point, and taking the second coordinate value as the target color brightness of the element.
5. The method of claim 3, further comprising:
and based on the terminal display adjustment results under various screen brightness, pre-constructing the corresponding relation between the initial color brightness and the target color brightness under various screen brightness.
6. The method according to claim 1, wherein the adjusting the display mode of each element based on the target color brightness of each element comprises:
and rendering and drawing the elements based on the target color brightness of the elements.
7. A terminal display adjusting device is applied to terminal equipment, and the device comprises:
the initial brightness acquisition module is used for responding to the detection that the current display adjustment condition of the terminal is met, and acquiring the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
the conversion brightness acquisition module is used for determining the target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and the display mode adjusting module is used for adjusting the display mode of each element based on the target color brightness of each element.
8. The apparatus of claim 7, further comprising:
and the adjusting condition judging module is used for responding to the detection that the terminal equipment is converted from the first display mode to the second display mode and determining that the terminal display adjusting condition is met currently.
9. The apparatus of claim 7, wherein the converted luminance obtaining module comprises:
the target relation determining unit is used for determining a target corresponding relation between the initial color brightness and the target color brightness under the current screen brightness from the pre-constructed corresponding relation between the initial color brightness and the target color brightness under various screen brightness;
and the conversion brightness acquisition unit is used for determining the target color brightness of each element based on the target corresponding relation and the initial color brightness of each element.
10. The apparatus of claim 9, wherein the form of the target correspondence comprises a correspondence curve;
the converted luminance obtaining unit is further configured to:
determining that the initial color brightness of the element corresponds to a first coordinate value of a point on the corresponding relation curve;
and determining a second coordinate value of the point on the corresponding relation curve based on the first coordinate value of the point, and taking the second coordinate value as the target color brightness of the element.
11. The apparatus of claim 9, further comprising:
and the corresponding relation building module is used for pre-building the corresponding relation between the initial color brightness and the target color brightness under various screen brightness based on the terminal display adjusting results under various screen brightness.
12. The apparatus of claim 7, wherein the display mode adjustment module is further configured to render and draw the elements based on the target color brightness of the elements.
13. A terminal device, characterized in that the device comprises:
a processor and a memory for storing processor-executable instructions;
wherein the processor is configured to:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
14. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing:
in response to the fact that the current display adjustment condition of the terminal is met, obtaining the current screen brightness of the terminal equipment and the initial color brightness of each element in the current display interface;
determining a target color brightness of each element based on the current screen brightness and the initial color brightness of each element;
and adjusting the display mode of each element based on the target color brightness of each element.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011299550.XA CN112331158B (en) | 2020-11-18 | 2020-11-18 | Terminal display adjusting method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011299550.XA CN112331158B (en) | 2020-11-18 | 2020-11-18 | Terminal display adjusting method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112331158A true CN112331158A (en) | 2021-02-05 |
CN112331158B CN112331158B (en) | 2022-11-18 |
Family
ID=74320814
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011299550.XA Active CN112331158B (en) | 2020-11-18 | 2020-11-18 | Terminal display adjusting method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112331158B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020232A (en) * | 2021-11-16 | 2022-02-08 | 北京达佳互联信息技术有限公司 | Interactive element display method and device, electronic equipment and storage medium |
CN114666439A (en) * | 2022-03-18 | 2022-06-24 | 北京小米移动软件有限公司 | Method, device and medium for adjusting display state of deep color mode |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
CN104346057A (en) * | 2013-08-02 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Background color adjusting method and background color adjusting device |
CN105975281A (en) * | 2016-05-26 | 2016-09-28 | 北京小米移动软件有限公司 | Brightness adjusting method, brightness adjusting device and electronic equipment |
CN106484396A (en) * | 2016-09-18 | 2017-03-08 | 北京京东尚科信息技术有限公司 | Night changing method, device and terminal unit |
CN108616649A (en) * | 2018-03-23 | 2018-10-02 | 北京京东尚科信息技术有限公司 | The display control method and device of electronic equipment |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN110618852A (en) * | 2019-09-24 | 2019-12-27 | Oppo广东移动通信有限公司 | View processing method, view processing device and terminal equipment |
CN110908765A (en) * | 2019-11-29 | 2020-03-24 | 五八有限公司 | Interface display method and device, terminal equipment and storage medium |
CN111597002A (en) * | 2020-05-15 | 2020-08-28 | 北京奇艺世纪科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN111813492A (en) * | 2020-08-19 | 2020-10-23 | 深圳市欢太科技有限公司 | Display method and device of fast application, electronic equipment and storage medium |
CN111857912A (en) * | 2020-07-03 | 2020-10-30 | Oppo广东移动通信有限公司 | Interface processing method and device, electronic equipment and computer readable storage medium |
-
2020
- 2020-11-18 CN CN202011299550.XA patent/CN112331158B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
CN104346057A (en) * | 2013-08-02 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Background color adjusting method and background color adjusting device |
CN105975281A (en) * | 2016-05-26 | 2016-09-28 | 北京小米移动软件有限公司 | Brightness adjusting method, brightness adjusting device and electronic equipment |
CN106484396A (en) * | 2016-09-18 | 2017-03-08 | 北京京东尚科信息技术有限公司 | Night changing method, device and terminal unit |
CN108616649A (en) * | 2018-03-23 | 2018-10-02 | 北京京东尚科信息技术有限公司 | The display control method and device of electronic equipment |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN110618852A (en) * | 2019-09-24 | 2019-12-27 | Oppo广东移动通信有限公司 | View processing method, view processing device and terminal equipment |
CN110908765A (en) * | 2019-11-29 | 2020-03-24 | 五八有限公司 | Interface display method and device, terminal equipment and storage medium |
CN111597002A (en) * | 2020-05-15 | 2020-08-28 | 北京奇艺世纪科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN111857912A (en) * | 2020-07-03 | 2020-10-30 | Oppo广东移动通信有限公司 | Interface processing method and device, electronic equipment and computer readable storage medium |
CN111813492A (en) * | 2020-08-19 | 2020-10-23 | 深圳市欢太科技有限公司 | Display method and device of fast application, electronic equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020232A (en) * | 2021-11-16 | 2022-02-08 | 北京达佳互联信息技术有限公司 | Interactive element display method and device, electronic equipment and storage medium |
CN114666439A (en) * | 2022-03-18 | 2022-06-24 | 北京小米移动软件有限公司 | Method, device and medium for adjusting display state of deep color mode |
CN114666439B (en) * | 2022-03-18 | 2024-04-30 | 北京小米移动软件有限公司 | Method, device and medium for adjusting dark color mode display state |
Also Published As
Publication number | Publication date |
---|---|
CN112331158B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110231901B (en) | Application interface display method and device | |
CN110796988A (en) | Backlight adjusting method and device | |
CN111261081B (en) | Screen display method and device | |
CN107480785B (en) | Convolutional neural network training method and device | |
CN110262692B (en) | Touch screen scanning method, device and medium | |
CN111611034A (en) | Screen display adjusting method and device and storage medium | |
CN105956486A (en) | Remote control method and apparatus | |
CN112269556A (en) | Information display method, device, system, equipment, server and storage medium | |
CN108829475B (en) | UI drawing method, device and storage medium | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
CN107219989B (en) | Icon processing method and device and terminal | |
CN112116670A (en) | Information processing method and device, electronic device and storage medium | |
CN107390929A (en) | Control method, device and the storage medium of touch-control system | |
CN108847199B (en) | Brightness determination method and device | |
CN107832112B (en) | Wallpaper setting method and device | |
CN106375744B (en) | Information projecting method and device | |
CN114442789A (en) | Dark screen control method, device, equipment and storage medium | |
CN113946398A (en) | Display control method and device of terminal and storage medium | |
CN109389547B (en) | Image display method and device | |
CN108874482B (en) | Image processing method and device | |
CN114418865A (en) | Image processing method, device, equipment and storage medium | |
CN111724398A (en) | Image display method and device | |
CN111538447A (en) | Information display method, device, equipment and storage medium | |
CN105391942A (en) | Automatic shooting method and device | |
CN112689047A (en) | Display control method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |