CN112799772A - Method, device and medium for controlling interface display - Google Patents
Method, device and medium for controlling interface display Download PDFInfo
- Publication number
- CN112799772A CN112799772A CN202110202954.0A CN202110202954A CN112799772A CN 112799772 A CN112799772 A CN 112799772A CN 202110202954 A CN202110202954 A CN 202110202954A CN 112799772 A CN112799772 A CN 112799772A
- Authority
- CN
- China
- Prior art keywords
- mode
- rendering
- current display
- gradual
- page
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
The present disclosure provides a method, an apparatus, and a medium for controlling interface display, the method including: receiving a display mode switching instruction in a current display mode, wherein the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is the dark color mode or the light color mode; after the mobile terminal meets the set conditions, performing gradual rendering on the current display page, wherein the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal; and switching to a target mode corresponding to the mode switching indication signal after finishing the gradual rendering. When the conversion between the dark mode and the light mode is needed, gradual rendering is carried out, smooth conversion visual experience is provided for a user, and a visual effect that vision is more obtrusive is avoided for the user by adopting a direct conversion mode.
Description
Technical Field
The present disclosure relates to the field of mobile terminal data processing technologies, and in particular, to a method, an apparatus, and a medium for controlling interface 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 color mode takes the dark color as the main key tone of a display interface, and ensures that the eyes watch the characters and are comfortable and easy to read by optimizing the contrast between the foreground and the dark color background and the colors of the characters and the system icons.
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.
When the display mode is switched to the dark mode in the mobile terminal, the user is easily affected by bad visual effect.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, apparatus, and medium for controlling an interface display.
According to a first aspect of the embodiments of the present disclosure, a method for controlling interface display is provided, which is applied to a mobile terminal, and includes:
receiving a display mode switching instruction in a current display mode, wherein the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is the dark color mode or the light color mode;
after a set condition is met, performing gradual rendering on the current display page, wherein the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal;
and switching to a target mode corresponding to the mode switching indication signal after finishing the gradual rendering.
In an embodiment, after receiving the display mode switching instruction in the current display mode and before the setting condition is satisfied, the method further includes:
maintaining the current display mode.
In one embodiment, the setting conditions are: and switching or updating the display page of the mobile terminal.
In one embodiment, after receiving the display mode switching instruction in the current display mode, the method further includes: and sending information for reminding display mode switching.
In one embodiment, the setting conditions are: the mobile terminal maintains the time length of the same display page to be greater than or equal to the set time length after receiving the mode switching indication signal;
the performing gradual rendering on the current display page comprises: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
In one embodiment, the performing of the gradual rendering on the current display page includes:
when a target mode in the mode switching indication signal is a dark mode, determining a first representation gray scale of a background part in the current display page, determining a second representation gray scale of a background area in the dark mode, and determining rendering duration of the gradual rendering according to a difference between the first representation gray scale and the second representation gray scale, wherein the difference is positively correlated with the rendering duration;
when a target mode in the mode switching indication signal is a light color mode, determining a third representation gray scale of a background part in the current display page, determining a fourth representation gray scale of a background area in the light color mode, and determining rendering duration of the gradual rendering according to a difference between the third representation gray scale and the fourth representation gray scale, wherein the difference is positively correlated with the rendering duration.
In one embodiment, the performing of the gradual rendering on the current display page includes:
running a gradual animation for the current display page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling interface display, which is applied to a mobile terminal, and includes:
the display control device comprises a receiving module, a display module and a display module, wherein the receiving module is configured to receive a display mode switching instruction in a current display mode, the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is the dark color mode or the light color mode;
the rendering module is configured to perform gradual rendering on the current display page after a set condition is met, and the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal;
and the switching module is configured to switch to a target mode corresponding to the mode switching indication signal after finishing the gradual rendering.
In one embodiment, the apparatus further comprises:
a maintaining module configured to maintain the current display mode.
In one embodiment, the setting conditions are:
and switching or updating the display page of the mobile terminal.
In one embodiment, the apparatus further comprises: and the reminding module is configured to send information for reminding display mode switching after the receiving module receives the display mode switching indication in the current display mode.
In one embodiment, the setting conditions are: the mobile terminal maintains the time length of the same display page to be greater than or equal to the set time length after receiving the mode switching indication signal;
the rendering module is further configured to perform gradual rendering on the current display page by using the following method: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
In one embodiment, the rendering module comprises:
an adjusting module configured to determine a first characterization gray scale of a background portion in the current display page when a target mode in the mode switching indication signal is a dark mode, determine a second characterization gray scale of a background area in the dark mode, and determine a rendering duration of the gradual rendering according to a difference between the first characterization gray scale and the second characterization gray scale, where the difference is positively correlated with the rendering duration;
and the display control unit is further configured to determine a third characteristic gray scale of a background part in the current display page when a target mode in the mode switching indication signal is a light color mode, determine a fourth characteristic gray scale of a background area in the light color mode, and determine a rendering duration of the gradual rendering according to a difference between the third characteristic gray scale and the fourth characteristic gray scale, wherein the difference is positively correlated with the rendering duration.
In one embodiment, the rendering module comprises:
a running module configured to run a gradual animation for the currently displayed page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for controlling an interface display, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute executable instructions in the memory to implement the steps of the method.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon executable instructions that, when executed by a processor, implement the steps of the method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the conversion between the dark mode and the light mode is needed, gradual rendering is carried out, smooth conversion visual experience is provided for a user, and a visual effect that vision is more obtrusive is avoided for the user by adopting a direct conversion mode.
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 diagram illustrating a method of controlling an interface display in accordance with an exemplary embodiment;
FIG. 2 is a diagram illustrating a display interface of a mobile terminal according to an exemplary embodiment;
FIG. 3 is a diagram illustrating a display interface of a mobile terminal according to an exemplary embodiment;
FIG. 4 is a diagram illustrating a display interface of a mobile terminal according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an apparatus for controlling an interface display in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating an apparatus for controlling an interface display in accordance with an exemplary 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 implementations described in the exemplary embodiments below are not intended to represent all implementations 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.
Methods of controlling interface display are provided in embodiments of the present disclosure. Referring to FIG. 1, FIG. 1 is a flow diagram illustrating a method of controlling an interface display in accordance with an exemplary embodiment. As shown in fig. 1, the method includes:
step S11, receiving a display mode switching instruction in a current display mode, where the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is a dark color mode or a light color mode.
And step S12, after the mobile terminal meets the set conditions, performing gradual rendering on the current display page, wherein the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal.
Step S13, after the gradient rendering is completed, switching to a target mode corresponding to the mode switching indication signal.
The current display mode is different from the target mode in the display mode switching indication, namely the current display mode is a light color mode, and the target mode in the display mode switching indication is a dark color mode; the current display mode is a dark color mode and the target mode in the display mode switch indication is a light color mode.
In an embodiment, after the function of turning on the dark mode in the set time period is set in the mobile terminal, when the real time of the mobile terminal reaches the start time point of the set time period, the mobile terminal receives a display mode switching instruction, the target mode to be switched to in the display mode switching instruction is the dark mode, and when the real time of the mobile terminal reaches the end time point of the set time period, the mobile terminal receives a display mode switching instruction, and the target mode to be switched to in the display mode switching instruction is the light mode. For example, the user sets a function of starting the dark color mode in a period from 9 pm to 11 pm every day in the mobile terminal, the mobile terminal receives a display mode switching instruction needing to be switched to the dark color mode in 0 min at 9 pm and receives a display mode switching instruction needing to be switched to the light color mode in 0 min at 11 pm every day at 0 pm.
In one embodiment, in step S12, the current display page is rendered in a gradient manner using a global inversion algorithm. The global reverse color algorithm is an algorithm for adjusting the display effect of the whole condition of the page, and is not a simple reverse color for carrying out gray value on each pixel point on the page.
In practical application, in a light color mode, the primary and secondary levels of a page are distinguished by projection of a background and the like, and the display effect is natural, but in a dark color mode, the effect of distinguishing the primary and secondary levels of the page by projection is not obvious, so that in the dark color mode, the effect of distinguishing the primary and secondary levels of the page by projection is not adopted. For example: in the light color mode, the background color of the page is light gray, the filling color of the control is white, after the global inverse color processing is carried out by using a global inverse color algorithm, the background color of the page is pure black, and the filling color of the control is dark gray.
The global color reversal algorithm also adopts a multi-level gray scale principle, and the background of different controls is filled by using the multi-level gray scale, so that the hierarchy of the depth of the page is achieved, and the page has more layering and space sense.
In the embodiment, when the deep color mode and the light color mode need to be converted, gradual rendering is performed, smooth conversion visual experience is provided for a user, and a visual effect that vision is more obtrusive is avoided for the user by adopting a direct conversion mode.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps:
after step S11 and before step S12, the method further includes: maintaining the current display mode.
In the embodiment of the disclosure, when the deep color mode and the light color mode need to be switched, the mode switching is not directly performed, but the current display mode is maintained first, and the gradual rendering is performed when the set condition is met, so that the visual experience of smooth switching is provided for the user, and the problem that the user is subjected to a visual effect which is more obtrusive due to the adoption of a direct switching mode is avoided.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps:
in step S13, the conditions are set: and switching or updating the display page of the mobile terminal.
In this embodiment, after the display page of the mobile terminal is switched, the gradual rendering is performed on the display page that is newly switched to, so that the change of the switching and the gradual change are connected together, and the overall change from the display page in one light-color mode to the display page in another dark-color mode is relatively smooth in visual effect, or the overall change from the display page in one dark-color mode to the display page in another light-color mode is relatively smooth in visual effect.
The following is an example.
As shown in fig. 2, a user sets a function of starting a dark color mode in a time interval from 9 pm to 11 pm every day in a mobile terminal, the display interface of the mobile terminal is a display interface of a calendar application at 8 pm for 59 minutes and 59 seconds, the mobile terminal is in a light color mode, when the time reaches 0 minute and 0 second at 9 pm, the mobile terminal receives a switching instruction for switching to the dark color mode, and the user operates at 0 minute and 2 seconds at 9 pm to switch the display interface of the mobile terminal to other interfaces. And after detecting the page switching, the mobile terminal performs gradual rendering on the current display page, and after the rendering is completed, the page shown in fig. 3 is displayed.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps:
in step S13, the conditions are set: and the mobile terminal maintains the same display page for a time length which is greater than or equal to the set time length after receiving the mode switching indication signal. For example: the set time period is 15 seconds.
In this embodiment, after the mode switching indication signal is received and the current page is maintained to reach the set duration, the switching of the current page is not waited for, and the display mode switching is directly completed on the current page.
The following is an example.
As shown in fig. 2, a user sets a function of starting a deep color mode in a time period from 9 pm to 11 pm every day in a mobile terminal, at 8 pm, 59 minutes and 59 seconds, a display interface of the mobile terminal is a display interface of a calendar application, and is in a light color mode, when 0 minute and 0 second reach 9 pm, the mobile terminal receives a switching instruction for switching to the deep color mode, continues to maintain a current page, when 0 minute and 15 seconds reach 9 pm, after a time period for maintaining the current page after receiving a mode switching instruction signal reaches 15 seconds, the display mode switching is completed on the current page, and an interface after switching to the deep color mode is shown in fig. 4.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps:
in step S13, the conditions are set: and the mobile terminal maintains the same display page for a time length which is greater than or equal to the set time length after receiving the mode switching indication signal. For example: the set time period is 15 seconds.
The performing of the gradient rendering on the current display page in the step S13 includes: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
The increasing of the rendering duration refers to increasing on the basis of the default rendering duration of the system.
The way of increasing the rendering duration includes:
determining the sum of the default rendering duration and the set increment, and taking the determined sum as the increased rendering duration; for example, the default rendering duration of the system is 2 seconds, the set increment is 1 second, and the increased rendering duration is 3 seconds.
Determining the product of the default rendering duration and the set coefficient, and taking the determined product as the increased rendering duration; for example, the default rendering duration of the system is 2 seconds, the setting coefficient is 2, and the increased rendering duration is 4 seconds.
In this embodiment, the mobile terminal needs to perform gradual rendering on the current display page within the set duration after receiving the mode switching indication signal, when the user does not switch and update the current display page, in this case, the overall rendering duration of the gradual rendering is increased, so that the change process of the visual effect of the page is relatively slow, and thus the visual effect is relatively smooth, and the abrupt feeling and the uncomfortable feeling in the visual effect when the display mode is switched between the dark color mode and the light color mode on the same page can be effectively reduced.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps: in step S11, after receiving the display mode switching instruction in the current display mode, the method further includes: and sending information for reminding display mode switching.
Wherein, the sending of the information for reminding of the display mode switching comprises one of the following:
firstly, voice containing information for reminding display mode switching is played. For example: a voice of "please note that the display mode is to be switched" is played, or "the display mode is to be switched, please know" is played, etc.
And secondly, displaying text information containing information for reminding display mode switching on the current interface. For example, the text information has a certain transparency, so that the user is not influenced to view the current interface. For example, the text message indicates that the content is "display mode is about to be switched".
And thirdly, vibrating in a set vibration mode. For example: the vibration mode is set to be intermittent at least two vibrations, or vibrations for a predetermined period of time.
In this embodiment, after receiving the display mode switching instruction in the current display mode, information for prompting the user to switch the display mode is sent to the user in time, so that the user knows that the display mode is to be switched, and obtains a timely psychological preparation.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps: in step S13, performing the gradient rendering on the current display page, including:
when a target mode in the mode switching indication signal is a dark mode, determining a first representation gray scale of a background part in the current display page, determining a second representation gray scale of a background area in the dark mode, and determining rendering duration of the gradual rendering according to a difference between the first representation gray scale and the second representation gray scale, wherein the difference is positively correlated with the rendering duration.
When a target mode in the mode switching indication signal is a light color mode, determining a third representation gray scale of a background part in the current display page, determining a fourth representation gray scale of a background area in the light color mode, and determining rendering duration of the gradual rendering according to a difference between the third representation gray scale and the fourth representation gray scale, wherein the difference is positively correlated with the rendering duration.
In order to provide a comfortable viewing effect, the background portion of the displayed page in the light mode is generally not set to white but to light gray, and the background portion in the dark mode is also not set to black but to dark gray.
The target mode in the mode switching indication signal is a dark color mode, when the current display mode is a light color mode, the first representation gray scale is used for representing the gray scale of the background part in the current display page, and the second representation gray scale is used for representing the gray scale of the background part in the switched dark color mode. And determining the rendering time of the gradual rendering according to the difference between the first representation gray scale and the second representation gray scale, wherein the gray scale of the background part in the light color mode is different with the application scene under different application scenes, and the rendering time of the gradual rendering is adaptive to the application scene when the gray scale of the background part in the dark color mode is different with the application scene under different application scenes, so that the rendering time of the gradual rendering has reasonable adaptivity in different application scenes.
The target mode in the mode switching indication signal is a light color mode, when the current display mode is a dark color mode, the third representation gray scale is used for representing the gray scale of the background part in the current display page, and the fourth representation gray scale is used for representing the gray scale of the background part in the dark color mode after switching. And determining the rendering duration of the gradual rendering according to the difference between the third characterization gray scale and the fourth characterization gray scale, wherein the gray scale of the background part in the light color mode is different with the application scene under different application scenes, and the rendering duration of the gradual rendering is adaptive to the application scene when the gray scale of the background part in the dark color mode is different with the application scene under different application scenes, so that the rendering duration of the gradual rendering has reasonable adaptivity in different application scenes.
In this embodiment, the rendering duration is automatically adjusted according to the difference between the gray scale information of the background portions of the two pages before and after switching, when the difference between the gray scale information of the background portions of the two pages before and after switching is large, the corresponding rendering duration adjustment time is long, and when the difference between the gray scale information of the background portions of the two pages before and after switching is small, the corresponding rendering duration adjustment time is short, so that when the difference between the gray scale information of the background portions of the two pages before and after switching is different, the provided gradient effect is basically the same.
The embodiment of the disclosure provides a method for controlling interface display, which comprises the method shown in fig. 1, and comprises the following steps: in step S13, performing the gradient rendering on the current display page, including:
running a gradual animation for the current display page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
In one embodiment, the fading animation in step S13 is an attribute animation (Object analyzer) for implementing the fading rendering of the current display page.
The embodiment of the disclosure provides a device for controlling interface display. Referring to fig. 5, fig. 5 is a block diagram illustrating an apparatus for controlling an interface display according to an exemplary embodiment. As shown in fig. 5, the apparatus includes:
a receiving module 501 configured to receive a display mode switching instruction in a current display mode, where the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is a dark color mode or a light color mode;
a maintaining module 502 configured to maintain the current display mode;
the rendering module 503 is configured to perform gradual rendering on the current display page after the mobile terminal meets a set condition, where a gradual rendering direction of the gradual rendering is the same as a change direction corresponding to the mode switching indication signal;
a switching module 204 configured to switch to a target mode corresponding to the mode switching indication signal after the completion of the gradient rendering.
An embodiment of the present disclosure provides an apparatus for controlling an interface display, the apparatus including the apparatus shown in fig. 5, and: the setting conditions are as follows: and switching or updating the display page of the mobile terminal.
An embodiment of the present disclosure provides an apparatus for controlling an interface display, the apparatus including the apparatus shown in fig. 5, and: the setting conditions are as follows: and the mobile terminal maintains the same display page for a time length which is greater than or equal to the set time length after receiving the mode switching indication signal.
The rendering module is further configured to perform gradual rendering on the current display page by using the following method: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
In one embodiment, the apparatus further comprises: and the reminding module is configured to send information for reminding display mode switching after the receiving module receives the display mode switching indication in the current display mode.
An embodiment of the present disclosure provides an apparatus for controlling an interface display, the apparatus including the apparatus shown in fig. 5, and: the rendering module includes:
an adjusting module configured to determine a first characterization gray scale of a background portion in the current display page when a target mode in the mode switching indication signal is a dark mode, determine a second characterization gray scale of a background area in the dark mode, and determine a rendering duration of the gradual rendering according to a difference between the first characterization gray scale and the second characterization gray scale, where the difference is positively correlated with the rendering duration; and the display control unit is further configured to determine a third characteristic gray scale of a background part in the current display page when a target mode in the mode switching indication signal is a light color mode, determine a fourth characteristic gray scale of a background area in the light color mode, and determine a rendering duration of the gradual rendering according to a difference between the third characteristic gray scale and the fourth characteristic gray scale, wherein the difference is positively correlated with the rendering duration.
An embodiment of the present disclosure provides an apparatus for controlling an interface display, the apparatus including the apparatus shown in fig. 5, and: the rendering module includes:
a running module configured to run a gradual animation for the currently displayed page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
The embodiment of the present disclosure provides a device for controlling interface display, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute executable instructions in the memory to implement the steps of the method.
A non-transitory computer readable storage medium having stored thereon executable instructions that, when executed by a processor, perform the steps of the method is provided in embodiments of the present disclosure.
FIG. 6 is a block diagram illustrating an apparatus 600 for controlling an interface display in accordance with an exemplary embodiment. For example, the apparatus 600 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. 6, apparatus 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 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 608 includes a screen that provides an output interface between the device 600 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 608 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 600 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 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 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 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the apparatus 600, the sensor component 614 may also detect a change in position of the apparatus 600 or a component of the apparatus 600, the presence or absence of user contact with the apparatus 600, orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 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 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 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 600 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 604 comprising instructions, executable by the processor 620 of the apparatus 600 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.
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.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the execution sequence of the steps of the method embodiments can be arbitrarily adjusted unless there is an explicit precedence sequence. The disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than others, combinations of features of different embodiments are meant to be within the scope of the disclosure and form different embodiments.
Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations fall within the scope defined by the appended claims.
Claims (16)
1. A method for controlling interface display is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving a display mode switching instruction in a current display mode, wherein the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is the dark color mode or the light color mode;
after a set condition is met, performing gradual rendering on the current display page, wherein the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal;
and switching to a target mode corresponding to the mode switching indication signal after finishing the gradual rendering.
2. The method of claim 1,
after receiving the display mode switching instruction in the current display mode and before meeting the set condition, the method further comprises the following steps:
maintaining the current display mode.
3. The method of claim 1,
the setting conditions are as follows:
and switching or updating the display page of the mobile terminal.
4. The method of claim 1,
the setting conditions are as follows: the mobile terminal maintains the time length of the same display page to be greater than or equal to the set time length after receiving the mode switching indication signal;
the performing gradual rendering on the current display page comprises: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
5. The method of claim 3 or 4,
after receiving a display mode switch indication in a current display mode, the method further comprises: and sending information for reminding display mode switching.
6. The method of claim 1,
the gradually rendering the current display page comprises the following steps:
when a target mode in the mode switching indication signal is a dark mode, determining a first representation gray scale of a background part in the current display page, determining a second representation gray scale of a background area in the dark mode, and determining rendering duration of the gradual rendering according to a difference between the first representation gray scale and the second representation gray scale, wherein the difference is positively correlated with the rendering duration;
when a target mode in the mode switching indication signal is a light color mode, determining a third representation gray scale of a background part in the current display page, determining a fourth representation gray scale of a background area in the light color mode, and determining rendering duration of the gradual rendering according to a difference between the third representation gray scale and the fourth representation gray scale, wherein the difference is positively correlated with the rendering duration.
7. The method of claim 1,
the gradually rendering the current display page comprises the following steps:
running a gradual animation for the current display page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
8. A device for controlling interface display is applied to a mobile terminal, and is characterized by comprising:
the display control device comprises a receiving module, a display module and a display module, wherein the receiving module is configured to receive a display mode switching instruction in a current display mode, the current display mode is a light color mode or a dark color mode, and a target mode in the display mode switching instruction is the dark color mode or the light color mode;
the rendering module is configured to perform gradual rendering on the current display page after a set condition is met, and the gradual rendering direction is the same as the change direction corresponding to the mode switching indication signal;
and the switching module is configured to switch to a target mode corresponding to the mode switching indication signal after finishing the gradual rendering.
9. The apparatus of claim 8,
the device further comprises:
a maintaining module configured to maintain the current display mode.
10. The apparatus of claim 8,
the setting conditions are as follows:
and switching or updating the display page of the mobile terminal.
11. The apparatus of claim 8,
the setting conditions are as follows: the mobile terminal maintains the time length of the same display page to be greater than or equal to the set time length after receiving the mode switching indication signal;
the rendering module is further configured to perform gradual rendering on the current display page by using the following method: and increasing the rendering duration to gradually render the current display page by the increased rendering duration.
12. The apparatus of claim 10 or 11,
the device further comprises: and the reminding module is configured to send information for reminding display mode switching after the receiving module receives the display mode switching indication in the current display mode.
13. The apparatus of claim 8,
the rendering module includes:
an adjusting module configured to determine a first characterization gray scale of a background portion in the current display page when a target mode in the mode switching indication signal is a dark mode, determine a second characterization gray scale of a background area in the dark mode, and determine a rendering duration of the gradual rendering according to a difference between the first characterization gray scale and the second characterization gray scale, where the difference is positively correlated with the rendering duration;
and the display control unit is further configured to determine a third characteristic gray scale of a background part in the current display page when a target mode in the mode switching indication signal is a light color mode, determine a fourth characteristic gray scale of a background area in the light color mode, and determine a rendering duration of the gradual rendering according to a difference between the third characteristic gray scale and the fourth characteristic gray scale, wherein the difference is positively correlated with the rendering duration.
14. The apparatus of claim 8,
the rendering module includes:
a running module configured to run a gradual animation for the currently displayed page;
when the target mode in the mode switching indication signal is a deep color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm;
when the target mode in the mode switching indication signal is a light color mode, the gradual-change animation comprises a plurality of frames of images which are changed from the image of the current display page to the target image, and the target image is an image corresponding to the page subjected to global color reversal processing on the current display page by using a global color reversal processing algorithm.
15. An apparatus for controlling an interface display, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute executable instructions in the memory to implement the steps of the method of any one of claims 1 to 7.
16. A non-transitory computer readable storage medium having stored thereon executable instructions, wherein the executable instructions, when executed by a processor, implement the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110202954.0A CN112799772A (en) | 2021-02-22 | 2021-02-22 | Method, device and medium for controlling interface display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110202954.0A CN112799772A (en) | 2021-02-22 | 2021-02-22 | Method, device and medium for controlling interface display |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112799772A true CN112799772A (en) | 2021-05-14 |
Family
ID=75815369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110202954.0A Pending CN112799772A (en) | 2021-02-22 | 2021-02-22 | Method, device and medium for controlling interface display |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112799772A (en) |
-
2021
- 2021-02-22 CN CN202110202954.0A patent/CN112799772A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9928811B2 (en) | Methods, devices, and computer-readable storage medium for image display | |
CN111381746B (en) | Parameter adjusting method, device and storage medium | |
CN108200279B (en) | Backlight adjusting method, device and equipment | |
CN112562609B (en) | Brightness adjusting method, electronic device, display panel and electronic equipment | |
CN111611034A (en) | Screen display adjusting method and device and storage medium | |
US20180338029A1 (en) | Method and device for switching display mode | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
EP3816778A1 (en) | Punch-hole screen display method and apparatus | |
EP3846488A1 (en) | Method and apparatus for controlling video | |
CN108650412B (en) | Display method, display device and computer readable storage medium | |
CN107809538B (en) | Alarm clock reminding method and device and computer readable storage medium | |
CN110069310B (en) | Method and device for switching desktop wallpaper and storage medium | |
CN106775246B (en) | Screen brightness adjusting method and device | |
CN112037719B (en) | Screen brightness adjusting method and device | |
CN112799772A (en) | Method, device and medium for controlling interface display | |
CN110609655B (en) | Method and device for changing equipment firmware parameters | |
CN114442789A (en) | Dark screen control method, device, equipment and storage medium | |
CN115134516A (en) | Shooting method and device | |
CN112019680A (en) | Screen brightness adjusting method and device | |
CN112230982A (en) | Material processing method and device, electronic equipment and storage medium | |
CN115273763B (en) | Picture composition frame rate adjustment method and device, display equipment and storage medium | |
CN109275179B (en) | Terminal device control method and device, terminal device and storage medium | |
CN111580875B (en) | Parameter configuration method, device and storage medium | |
US11783525B2 (en) | Method, device and storage medium form playing animation of a captured image | |
CN114078459B (en) | Brightness adjusting method and device and storage medium |
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 |