CN111813492B - Display method and device for quick application, electronic equipment and storage medium - Google Patents

Display method and device for quick application, electronic equipment and storage medium Download PDF

Info

Publication number
CN111813492B
CN111813492B CN202010838978.0A CN202010838978A CN111813492B CN 111813492 B CN111813492 B CN 111813492B CN 202010838978 A CN202010838978 A CN 202010838978A CN 111813492 B CN111813492 B CN 111813492B
Authority
CN
China
Prior art keywords
color
mode
quick application
state information
automatic
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.)
Active
Application number
CN202010838978.0A
Other languages
Chinese (zh)
Other versions
CN111813492A (en
Inventor
郑锐奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010838978.0A priority Critical patent/CN111813492B/en
Publication of CN111813492A publication Critical patent/CN111813492A/en
Application granted granted Critical
Publication of CN111813492B publication Critical patent/CN111813492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a display method and device for quick application, electronic equipment and a storage medium, and relates to the technical field of electronic equipment. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and is provided with an automatic color reversing switch, the automatic color reversing switch is used for controlling the opening and closing of an automatic color reversing function, and the method comprises the following steps: when the quick application platform is used for drawing the quick application, a theme mode of the quick application is obtained, when the theme mode of the quick application is a dark color mode, state information of an automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in an on state, color reversing calculation is carried out based on the automatic color reversing function to obtain a dark color display pattern, and the quick application is drawn and displayed based on the dark color display pattern. According to the embodiment of the application, the default automatic color reversing function is provided by the fast application platform, the dark color mode is automatically adapted to the fast application, and the adaptation cost of the fast application is reduced.

Description

Display method and device for quick application, electronic equipment and storage medium
Technical Field
The present application relates to the technical field of electronic devices, and in particular, to a display method and apparatus for a fast application, an electronic device, and a storage medium.
Background
With the development of science and technology, electronic devices are increasingly widely used, and have more and more functions, and become one of the necessities in daily life. Currently, the android system provides a dark color mode, wherein the dark color mode is a mode which ensures consistent, comfortable and easy to read viewing experience of human eyes by optimizing the contrast between foreground and dark background and the colors of characters and system icons. Which is different from the light background but takes the dark color as the main key of the display interface. However, most of the fast applications do not adapt to the dark color mode, resulting in poor display effect of the fast applications.
Disclosure of Invention
In view of the above, the present application provides a fast-application display method, apparatus, electronic device, and storage medium, so as to solve the above problem.
In a first aspect, an embodiment of the present application provides a display method for a fast application, which is applied to an electronic device, where the electronic device is installed with a fast application platform and is provided with an automatic color reversing switch, and the automatic color reversing switch is used to control on and off of an automatic color reversing function, and the method includes: when the quick application platform is used for drawing the quick application, a theme mode of the quick application is obtained; when the theme mode of the quick application is a dark mode, acquiring state information of the automatic color reversing switch; when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style; and drawing and displaying the quick application based on the dark display style.
In a second aspect, an embodiment of the present application provides a display apparatus for a fast application, which is applied to an electronic device, where the electronic device is installed with a fast application platform and is provided with an automatic color reversing switch, and the automatic color reversing switch is used to control on and off of an automatic color reversing function, and the apparatus includes: the theme mode acquisition module is used for acquiring a theme mode of the quick application when the quick application is drawn through the quick application platform; the state information acquisition module is used for acquiring state information of the automatic color reversing switch when the theme mode of the quick application is a dark color mode; the dark color display style acquisition module is used for carrying out color reversal calculation based on the automatic color reversal function to acquire a dark color display style when the state information of the automatic color reversal switch is in an on state; and the display module is used for drawing and displaying the quick application based on the dark display style.
In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the above-described method.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method.
According to the quick application display method, device, electronic equipment and storage medium, the quick application platform is installed on the electronic equipment, the automatic color reversing switch is arranged and used for controlling the starting and closing of the automatic color reversing function, when the quick application platform is used for drawing the quick application, the theme mode of the quick application is obtained, when the theme mode of the quick application is the dark mode, state information of the automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in an on state, color reversing calculation is carried out based on the automatic color reversing function to obtain a dark display pattern, the quick application is drawn and displayed based on the dark display pattern, and therefore the default automatic color reversing function is provided through the quick application platform, the dark mode is automatically adapted to the quick application, and the adaptation cost of the quick application is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for displaying a quick application according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for displaying a quick application according to another embodiment of the present application;
FIG. 3 is a flow chart illustrating a method for displaying a quick application according to still another embodiment of the present application;
FIG. 4 is a flow chart of step S350 of the quick application display method of FIG. 3 according to the present application;
FIG. 5 is a flowchart illustrating a method for displaying a quick application according to another embodiment of the present application;
FIG. 6 is a flow chart of a method for displaying a quick application according to yet another embodiment of the present application;
FIG. 7 is a flow chart of step S550 of the quick application display method of FIG. 6 according to the present application;
FIG. 8 is a flow chart of a method for displaying a quick application according to yet another embodiment of the present application;
FIG. 9 is a block diagram of a display device for a quick application according to an embodiment of the present application;
FIG. 10 shows a block diagram of an electronic device for performing a display method of a quick application according to an embodiment of the application;
Fig. 11 illustrates a storage unit for storing or carrying program codes for implementing a display method of a quick application according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
Beginning in 2019, both Android and iOS of the operating system of the electronic device have not been proposed in the operating system about the same time, specifically, they are respectively logged in the iOS 13 and the Android 10 in the Dark Mode, so that a new generation of theme Mode suitable for reading in the Dark Mode is provided for users. The dark color mode is compared with the original default light color mode, and mainly brings the following advantages: (1) The visual fatigue of the user is reduced at night or in a dim light environment; (2) The power consumption of the OLED screen can be remarkably reduced when the OLED screen is applied to the OLED screen; (3) The method provides a new visual experience for users, and attracts users to consume the content of the application program.
Therefore, after the deep color mode is pushed out, the user is favored rapidly, besides the original built-in application programs such as mails and calendars of the operating system, a plurality of third party application programs also add the function of adapting to the deep color mode, so that consistent visual experience is brought to the user in the deep color mode, and the experience satisfaction degree of the user is improved. However, the inventor finds that the Android 10+ system only provides a corresponding dark mode implementation interface, and does not realize global automatic dark mode adaptation for application achievement. If the application program realizes the dark color mode on the Android system, a developer of the application program needs to adapt by himself, the workload is large, and the application program can adapt to the dark color mode experience only by mastering rich development knowledge of the Android system.
The fast application is a new application form, is a front-end-terminal mobile terminal hybrid framework, and provides the fast application developer with the capability of developing the mobile application by using JavaScript language and front-end development experience. As with other applications that have not yet adapted to dark patterns, fast applications also require adaptation. In addition, the fast application is used as a basic framework, and the customization capability of the deep color mode is provided for a developer to call in the form of a front end API, so that the deep color mode customization of the fast application project is realized, and the problem that the developer of the application program is required to adapt by himself, has large workload, and needs to master rich development knowledge of an Android system to adapt to the deep color mode experience exists.
In order to solve the problems, the inventor discovers and proposes the display method, the device, the electronic equipment and the storage medium of the quick application provided by the embodiment of the application through long-time research, and provides a default automatic color reversing function through a quick application platform to automatically adapt a dark color mode for the quick application, so that the adaptation cost of the quick application is reduced. The specific quick application display method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a flow chart illustrating a method for displaying a quick application according to an embodiment of the application. The display method of the fast application is used for providing a default automatic color reversing function through the fast application platform, automatically adapting a dark color mode for the fast application, and reducing the adapting cost of the fast application. In a specific embodiment, the display method of the quick application is applied to the display device 200 of the quick application as shown in fig. 9 and the electronic apparatus 100 (fig. 10) configured with the display device 200 of the quick application. The specific flow of the present embodiment will be described below by taking an electronic device as an example, and it will be understood that the electronic device applied in the present embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited herein. The electronic device is provided with a fast application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of an automatic color reversing function, a flow shown in fig. 1 will be described in detail, and the fast application display method specifically comprises the following steps:
step S110: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
The electronic equipment is provided with a fast application platform, the fast application platform provides a dark-color mode interface, supports the fast application to join different theme modes, and can flexibly customize whether the theme modes are fixed or follow the system, the expression of the fast application modes in the specific theme modes and the like. The fast application platform can at least comprise the following functional points in the implementation of a fast application dark mode according to the requirement of actual development adaptation: configuring a theme mode of the quick application; acquiring a theme mode of a quick application; switching a theme mode; a switch for automatic color development; the style of the specified subject mode is configured by the media query.
In this embodiment, when the fast application is started or invoked, the fast application may be drawn through the fast application platform, and when the fast application is drawn through the fast application platform, a theme mode of the fast application is obtained.
In some embodiments, the electronic device may draw the fast application through the fast application platform when receiving a start instruction for the fast application. For example, the electronic device may draw the fast application through the fast application platform when receiving the click operation of the icon for the fast application, draw the fast application through the fast application platform when receiving the click operation of the link for the fast application, draw the fast application through the fast application platform when receiving the voice start information for the fast application, and the like, which are not limited herein.
In some embodiments, when the quick application is drawn through the quick application platform, the theme setting information of the quick application may be obtained, and the theme mode of the quick application may be obtained based on the theme setting information, or the theme mode of the quick application at the last exit may be obtained, and the theme mode of the quick application at the last exit is determined as the theme mode of the quick application at the current drawing, which is not limited herein.
In some embodiments, the fast application platform supports the setting of a theme mode of the fast application, which set theme modes may include a follow operating system theme mode, a fixed dark mode, and a fixed light mode. Thus, the theme mode of acquiring a quick application may be: the theme mode of the get fast application follows the operating system theme mode, the fixed dark mode, or the fixed light mode.
Step S120: and when the theme mode of the quick application is a dark color mode, acquiring the state information of the automatic color reversing switch.
The fast application platform is further provided with an automatic color reversing switch, the automatic color reversing switch is used for controlling the automatic color reversing function (force dark provided by Android) to be started and closed, wherein the automatic color reversing function is used for automatically executing color reversing calculation and rendering on a screen in a dark color mode when the fast application is started, and the effect is good. Therefore, in this embodiment, after the theme mode of the fast application is acquired, the theme mode of the fast application may be detected and a detection result may be acquired, and when the detection result indicates that the theme mode of the fast application is a dark mode, state information of the automatic color reversing switch may be acquired.
In some embodiments, when the theme mode of the quick application is a dark mode, the characterization may use the auto-reverse function to perform reverse calculation, and then the state information of the auto-reverse switch may be obtained, that is, the state information of the auto-reverse switch is obtained to be in an on state or in an off state. When the state information of the anti-color switch is in an on state, the automatic anti-color function can be determined to be in a usable state, and when the state information of the anti-color switch is in an off state, the automatic anti-color function can be determined to be in an unusable state.
Step S130: and when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
In this embodiment, when the state information of the automatic color reversing switch is detected to be in the on state, the automatic color reversing function is characterized to be in the usable state, and then color reversing calculation can be performed based on the automatic color reversing function, so as to obtain a dark color display style. In some embodiments, the dark color display style obtained by performing the color reversal calculation through the color reversal function may be a default dark color display style of the automatic color reversal function, or may be a dark color display style customized according to the display requirement, which is not limited herein.
Step S140: and drawing and displaying the quick application based on the dark display style.
In this embodiment, after the dark color display style is obtained, the quick application may be drawn and displayed based on the dark color display style, so that the quick application may be automatically displayed on the touch screen of the electronic device in the dark color mode through the quick application platform, thereby reducing the adaptation cost of the quick application.
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is the dark mode, the state information of the automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in an on state, the dark color display mode is obtained through color reversing calculation based on the automatic color reversing function, the quick application is drawn and displayed based on the dark color display mode, therefore the default automatic color reversing function is provided through the quick application platform, the dark color mode is automatically adapted to the quick application, and the adaptation cost of the quick application is reduced.
Referring to fig. 2, fig. 2 is a flow chart illustrating a method for displaying a quick application according to another embodiment of the application. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the opening and closing of an automatic color reversing function, the flow shown in fig. 2 is explained in detail below, and the quick application display method specifically comprises the following steps:
step S210: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
The specific description of step S210 is referred to step S110, and will not be repeated here.
Step S220: and when the theme mode of the quick application is a fixed dark mode, acquiring the state information of the automatic color reversing switch.
In some embodiments, when the theme mode of the quick application is a fixed dark mode, the state information of the automatic color reversing switch may be obtained when the theme mode of the quick application is a fixed dark mode.
Step S230: and when the theme mode of the fast application is a following system mode and the current theme mode of the operating system of the electronic equipment is a dark color mode, acquiring the state information of the automatic reverse color switch.
The electronic device is provided with an operating system, and the operating system is provided with a theme mode, wherein the theme mode set by the operating system comprises a dark color mode and a light color mode. In some embodiments, when the theme mode of the fast application is the following system mode, the theme mode of the operating system of the electronic device may be detected, where when it is detected that the current theme mode of the operating system of the electronic device is the dark color mode, the state information of the automatic reverse color switch may be obtained because the theme mode of the fast application is the following system mode, which characterizes that the theme mode of the fast application is also the dark color mode.
In some embodiments, when the theme mode of the fast application is the following system mode, the electronic device may detect the current theme mode of the operating system of the electronic device in real time, and also perform the conversion on the theme mode of the fast application in time when the current theme mode of the operating system of the electronic device is converted. For example, when the current theme mode of the operating system of the electronic device is a dark color mode, the theme mode of the quick application is a dark color mode, and when the current theme mode of the operating system of the electronic device is detected to be switched from the dark color mode to the light color mode, the theme mode of the quick application is timely switched from the dark color mode to the light color mode so as to adapt to the theme mode of the operating system of the electronic device.
In some embodiments, the operating system of the electronic device is provided with a mode control switch, where when the mode control switch is in a first state, the theme mode of the operating system of the electronic device is a dark mode, and when the mode control switch is in a second state, the theme mode of the operating system of the electronic device is a light mode.
When the theme mode of the quick application is the following system mode, the electronic equipment can detect the state information of the mode control switch in real time so as to timely change the theme mode of the quick application when the state information of the mode control switch is changed. For example, when the mode control switch is currently in the first state, then the theme mode of the fast application is the dark color mode, and when the mode control switch is detected to be switched from the first state to the second state, the theme mode of the fast application is timely switched from the dark color mode to the light color mode so as to adapt to the theme mode of the operating system of the electronic equipment.
Step S240: and when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
Step S250: and drawing and displaying the quick application based on the dark display style.
The specific description of step S240-step S250 is referred to as step S130-step S140, and the description is not presented here.
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is a fixed dark color mode, the state information of the automatic color reversing switch is obtained, when the theme mode of the quick application is a following system mode and the current theme mode of the operating system of the electronic device is a dark color mode, the state information of the automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is an on state, the dark color display mode is obtained by performing color reversing calculation based on the automatic color reversing function, and the quick application is drawn and displayed based on the dark color display mode. Compared with the display method of the quick application shown in fig. 1, in the embodiment, when the theme mode of the quick application is a fixed dark color mode, or the current mode of the operating system of the electronic device is a dark color mode, the state information of the automatic anti-color switch is acquired again, so as to automatically confirm the triggering condition of the state information of the automatic anti-color switch, and reduce the workload.
Referring to fig. 3, fig. 3 is a flow chart illustrating a method for displaying a quick application according to still another embodiment of the application. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the opening and closing of an automatic color reversing function, the flow shown in fig. 3 is explained in detail below, and the quick application display method specifically comprises the following steps:
Step S310: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
Step S320: and when the theme mode of the quick application is a dark color mode, acquiring the state information of the automatic color reversing switch.
Step S330: and when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
Step S340: and drawing and displaying the quick application based on the dark display style.
The specific description of step S310 to step S340 refer to step S110 to step S140, and are not described herein.
Step S350: and when the theme mode of the quick application is a light-color mode, acquiring a pre-configured light-color display mode.
In this embodiment, after the theme mode of the fast application is acquired, the theme mode of the fast application may be detected and a detection result may be acquired, and when the detection result indicates that the theme mode of the fast application is a light mode, it indicates that the fast application does not need to be displayed by converting a dark mode through the fast application platform, and a pre-configured light display style may be acquired. In some embodiments, the pre-configured light-colored display pattern may be a fast-application default light-colored display pattern, a default light-colored display pattern of an electronic device, a light-colored display pattern customized according to display requirements, and the like, which are not limited herein.
Referring to fig. 4, fig. 4 is a flowchart illustrating a step S350 of the method for displaying a quick application shown in fig. 3 according to the present application. The following will describe the flow shown in fig. 4 in detail, and the method may specifically include the following steps:
Step S351: and when the theme mode of the quick application is a fixed light-color mode, acquiring a pre-configured light-color display mode.
In some embodiments, when the theme mode of the quick application is a fixed light mode, and the theme mode of the quick application is a fixed light mode, a pre-configured light display pattern may be obtained.
Step S352: and when the theme mode of the fast application is a following system mode and the current theme mode of the operating system of the electronic equipment is a light-color mode, acquiring a pre-configured light-color display mode.
In some embodiments, when the theme mode of the fast application is the following system mode, the theme mode of the operating system of the electronic device may be detected, where when it is detected that the current theme mode of the operating system of the electronic device is the light-color mode, the theme mode of the fast application is the following system mode, and the theme mode of the fast application is also the light-color mode, and then a pre-configured light-color display style may be obtained.
In some embodiments, when the theme mode of the fast application is the following system mode, the electronic device may detect the current theme mode of the operating system of the electronic device in real time, and also perform the conversion on the theme mode of the fast application in time when the current theme mode of the operating system of the electronic device is converted. For example, when the current theme mode of the operating system of the electronic device is a light-color mode, the theme mode of the quick application is a light-color mode, and when the current theme mode of the operating system of the electronic device is detected to be switched from the light-color mode to the dark-color mode, the theme mode of the quick application is timely switched from the light-color mode to the dark-color mode so as to adapt to the theme mode of the operating system of the electronic device.
In some embodiments, the operating system of the electronic device is provided with a mode control switch, where when the mode control switch is in a first state, the theme mode of the operating system of the electronic device is a dark mode, and when the mode control switch is in a second state, the theme mode of the operating system of the electronic device is a light mode.
When the theme mode of the quick application is the following system mode, the electronic equipment can detect the state information of the mode control switch in real time so as to timely change the theme mode of the quick application when the state information of the mode control switch is changed. For example, when the mode control switch is currently in the first state, then the theme mode of the fast application is in the dark color mode, and when the mode control switch is detected to be switched from the first state to the second state, the theme mode of the fast application is timely switched from the light color mode to the light color mode so as to adapt to the theme mode of the operating system of the electronic equipment.
Step S360: and drawing and displaying the quick application based on the light-color display style.
In this embodiment, after the light-color display style is obtained, the quick application may be drawn and displayed based on the light-color display style, so as to ensure normal display of the quick application.
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is a dark mode, state information of an automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in an on state, color reversing calculation is conducted on the basis of the automatic color reversing function to obtain a dark display pattern, the quick application is drawn and displayed on the basis of the dark display pattern, when the theme mode of the quick application is a light mode, a pre-configured light display pattern is obtained, and the quick application is drawn and displayed on the basis of the light display pattern. Compared with the display method of the quick application shown in fig. 1, in this embodiment, when the theme mode of the quick application is a light-color mode, a pre-configured light-color display pattern is obtained to draw and display the quick application, so as to ensure the normal display of the quick application.
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for displaying a quick application according to another embodiment of the application. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and is provided with an automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of an automatic color reversing function, wherein the automatic color reversing switch comprises an automatic color reversing switch at an application level, an automatic color reversing switch at a page level and an automatic color reversing switch at a component level, the flow shown in fig. 5 is explained in detail, and the quick application display method specifically comprises the following steps:
step S410: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
The specific description of step S410 is referred to step S110, and will not be repeated here.
Step S420: and when the theme mode of the fast application is a dark color mode, acquiring the state information of the automatic color reversing switch at the application level.
In some embodiments, the automatic color reversing switch supported by the fast application platform has three levels, and the three levels sequentially include: in this embodiment, when the theme mode of the fast application is the dark mode, state information of the application-level automatic color reversal switch, state information of the page-level automatic color reversal switch, and state information of the component-level automatic color reversal switch need to be sequentially detected and acquired.
In some embodiments, when the theme mode of the fast application is a dark mode, the state information of the automatic color reversing switch at the application level may be acquired first, that is, the state information of the automatic color reversing switch at the application level is acquired as an on state or an off state. When the state information of the application level is in an on state, the state information of the automatic color reversing switch of the page level can be continuously acquired, and when the state information of the automatic color reversing switch of the application level is in an off state, the automatic color reversing function can be determined to be in an unavailable state.
Step S430: and when the state information of the automatic color reversing switch at the application level is in an on state, acquiring the state information of the automatic color reversing switch at the page level.
In some embodiments, when the state information of the automatic color reversing switch at the application level is detected to be in an on state, the state information of the automatic color reversing switch at the page level may be continuously acquired, that is, the state information of the automatic color reversing switch at the page level is acquired to be in an on state or in an off state. When the state information of the automatic color reversing switch at the page level is in the off state, the automatic color reversing function can be determined to be in an unavailable state.
Step S440: and when the state information of the automatic color reversing switch at the page level is in an on state, acquiring the state information of the automatic color reversing switch at the component level.
In some embodiments, when the state information of the automatic color reversing switch at the page level is detected to be in an on state, the state information of the automatic color reversing switch at the component level can be continuously acquired, that is, the state information of the automatic color reversing switch at the component level is acquired to be in an on state or in an off state. When the state information of the component level is in an on state, the automatic color reversing function can be determined to be in a usable state, and when the state information of the automatic color reversing switch of the component level is in an off state, the automatic color reversing function can be determined to be in an unusable state.
Step S450: and when the state information of the automatic color reversing switch at the component level is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
In some embodiments, when the state information of the automatic color reversing switch at the component level is detected to be in an on state, the automatic color reversing function is characterized to be in a usable state, and then color reversing calculation can be performed based on the automatic color reversing function, so as to obtain a dark color display style.
In some implementations, the component-level auto-reverse switch may include a parent component-level auto-reverse switch and a child component-level auto-reverse switch. Then, when the state information of the automatic color reversing switch at the page level is in an on state, the state information of the automatic color reversing switch at the father component level is obtained, when the state information of the automatic color reversing switch at the father component level is in an on state, the state information of the automatic color reversing switch at the sub-component level is obtained, and when the state information of the automatic color reversing switch at the sub-component level is in an on state, the color reversing calculation is performed based on the automatic color reversing function to obtain a dark color display style.
In one mode, when the state information of the automatic color reversing switch at the page level is in an on state, whether the quick application has a father component or not can be detected, and a detection result is obtained, wherein when the detection result represents that the quick application has the father component, the state information of the automatic color reversing switch at the father component level can be obtained, when the state information of the automatic color reversing switch at the father component level is in the on state, the state information of the automatic color reversing switch at the sub-component level is obtained, and when the state information of the automatic color reversing switch at the sub-component level is in the on state, color reversing calculation is carried out based on the automatic color reversing function to obtain a dark color display style.
Step S460: and drawing and displaying the quick application based on the dark display style.
The specific description of step S460 refers to step S140, and is not repeated here.
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is in a dark mode, the state information of the automatic color reversing switch of the application level is obtained, when the state information of the automatic color reversing switch of the application level is in an on state, the state information of the automatic color reversing switch of the page level is obtained, when the state information of the brake valve dark switch of the page level is in an on state, the state information of the automatic color reversing switch of the component level is obtained, when the state information of the automatic color reversing switch of the component level is in an on state, the dark display style is obtained through color reversing calculation based on the automatic color reversing function, and the quick application is drawn and displayed based on the dark display style. Compared with the display method of the quick application shown in fig. 1, the embodiment also sequentially detects the state information of the automatic color reversing switch at the application level, the state information of the automatic color reversing switch at the page level and the state information of the automatic color reversing switch at the component level, so as to improve the accuracy of the detected state information of the automatic color reversing switch.
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for displaying a quick application according to still another embodiment of the present application. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of an automatic color reversing function, a flow shown in fig. 6 is explained in detail below, and the quick application display method specifically comprises the following steps:
step S510: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
Step S520: and when the theme mode of the quick application is a dark color mode, acquiring the state information of the automatic color reversing switch.
Step S530: and when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
Wherein. The specific description of step S510 to step S530 refer to step S110 to step S130, and are not repeated here.
Step S540: and when the quick application platform is not configured with a designated display style, drawing and displaying the quick application based on the dark display style.
The quick application platform can configure a display style of the quick application as a designated display style, and the priority of the designated display style configured by the quick application platform is higher than the priority of the dark display style obtained based on the automatic color reversal function calculation. As one way, the code of the quick application platform in the style adopts the standard web CSS format, so that the designated display style of the quick application platform is also aligned with the media query of the CSS.
In some embodiments, after the dark color display pattern is obtained by performing the color inversion calculation based on the automatic color inversion function, it may be determined whether the quick application platform is configured with the designated display pattern, where when the determination result indicates that the quick application platform is not configured with the designated display pattern, the quick application may be drawn and displayed based on the dark color display pattern. When the quick application platform is not configured with the designated display pattern, the representation that only the dark display pattern exists for the quick application at the moment is characterized, and the quick application can be drawn and displayed based on the dark display pattern.
Step S550: and when the quick application platform is configured with a designated display style, drawing and displaying the quick application based on the dark display style and the designated display style.
In some embodiments, when the determination result indicates that the quick application platform has configured the specified display style, the quick application may be drawn and displayed based on the dark display style and the specified display style. When the quick application platform is configured with the designated display style, the fact that the dark display style and the designated display style exist for the quick application at the moment is characterized, and the quick application can be drawn and displayed based on the dark display style and the designated display style.
Referring to fig. 7, fig. 7 is a flowchart illustrating step S550 of the method for displaying a quick application shown in fig. 6 according to the present application. The following details the flow shown in fig. 7, and the method may specifically include the following steps:
step S551: when the quick application platform has configured a designated display style and the dark color display style and the designated display style are not contradictory, drawing and displaying the quick application based on the dark color display style and the designated display style.
In some embodiments, when the quick application platform has configured the designated display style, the designated display style and the dark display style may be compared to determine whether the designated display style and the dark display style are contradictory, where when the determination result indicates that the designated display style and the dark display style are not contradictory, the quick application may be drawn and displayed based on the dark display style and the designated display style.
Step S552: when the quick application platform is configured with a designated display style and the dark display style and the designated display style are contradictory, the quick application is drawn and displayed based on the designated display style.
In some embodiments, when the determination result characterizes that the designated display style and the dark display style contradict, since the designated display style has a higher priority than the dark display style, the quick application may be drawn and displayed based on the designated display style. For example, when the designated display style indicates that a control is displayed in a certain area, the dark display style indicates that a control is not displayed in a certain area, then the quick application is drawn and displayed according to the designated display style (that a control is displayed in a certain area).
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is in the dark mode, the state information of the automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in the on state, the dark color display style is obtained through color reversing calculation based on the automatic color reversing function, when the designated display style is not configured by the quick application platform, the quick application is drawn and displayed based on the dark color display style, and when the designated display style is configured by the quick application platform, the quick application is drawn and displayed based on the dark color display style and the designated display style. Compared with the display method of the quick application shown in fig. 1, in this embodiment, different rendering display processes are performed according to different situations that the quick application platform is not configured with the designated display style and the designated display style is configured, so as to improve the diversity and applicability of rendering display.
Referring to fig. 8, fig. 8 is a flowchart illustrating a method for displaying a quick application according to still another embodiment of the present application. The method is applied to electronic equipment, the electronic equipment is provided with a quick application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of an automatic color reversing function, a flow shown in fig. 8 is explained in detail below, and the quick application display method specifically comprises the following steps:
step S610: and when the quick application platform is used for drawing the quick application, acquiring a theme mode of the quick application.
Step S620: and when the theme mode of the quick application is a dark color mode, acquiring the state information of the automatic color reversing switch.
Step S630: and when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
Step S640: and drawing and displaying the quick application based on the dark display style.
The specific description of step S610 to step S640 refers to step S110 to step S140, and is not repeated here.
Step S650: and when the state information of the automatic color reversing switch is in a closed state and the rapid application platform is not configured with the designated display pattern, acquiring a pre-configured light-color display pattern, and drawing and displaying the rapid application based on the light-color display pattern.
Wherein the quick application platform can configure a display style of the quick application as a designated display style, and the priority of the designated display style configured by the quick application platform is higher than the priority of the light-color display style based on the pre-configuration. In this embodiment, when the state information of the automatic color reversing switch is detected to be in the off state, the automatic color reversing function is represented to be in an unavailable state, and then the quick application needs to be displayed in a light color mode. In some embodiments, when the state information of the automatic color reversing switch is in the off state, it may be determined whether the quick application platform is configured with the designated display pattern, where when the determination result indicates that the quick application platform is not configured with the designated display pattern, it indicates that only a light-color display pattern exists for the quick application at this time, a pre-configured light-color display pattern may be obtained, and the quick application may be drawn and displayed based on the light-color display pattern,
Step S660: and when the state information of the automatic color reversing switch is in a closed state and the quick application platform is configured with a designated display style, drawing and displaying the quick application based on the designated display style.
In some embodiments, when the determination result indicates that the quick application platform has configured the specified display style, the quick application may be drawn and displayed based on the specified display style. When the quick application platform is configured with the designated display style, the fact that the light-color display style and the designated display style exist simultaneously for the quick application at the moment is characterized, the priority of the designated display style is higher than that of the light-color display style, and the quick application can be drawn and displayed based on the designated display style.
According to the display method of the quick application, when the quick application is drawn through the quick application platform, the theme mode of the quick application is obtained, when the theme mode of the quick application is in a dark mode, the state information of the automatic color reversing switch is obtained, when the state information of the automatic color reversing switch is in an on state, the dark display mode is obtained through color reversing calculation based on the automatic color reversing function, the quick application is drawn and displayed based on the dark display mode, when the state information of the automatic color reversing switch is in an off state and the quick application platform is not configured with the designated display mode, the pre-configured light display mode is obtained, the quick application is drawn and displayed based on the light display mode, and when the state information of the automatic color reversing switch is in the off state and the quick application platform is configured with the designated display mode, the quick application is drawn and displayed based on the designated display mode. Compared with the display method of the quick application shown in fig. 1, in this embodiment, when the state information of the automatic color reversing switch is in the off state, different drawing display processes are performed according to different situations that the quick application platform is not configured with the designated display style and the designated display style is configured, so as to improve the diversity and applicability of drawing display.
Referring to fig. 9, fig. 9 is a block diagram of a display device for a quick application according to an embodiment of the application. The fast-application display device 200 is applied to the above-mentioned electronic apparatus, which is provided with a fast-application platform and is provided with an automatic color-reversing switch for controlling the on and off of the automatic color-reversing function. The following will describe the block diagram shown in fig. 9, and the display device 200 for a quick application includes: a theme mode acquisition module 210, a status information acquisition module 220, a dark display style acquisition module 230, and a display module 240, wherein:
and the theme mode obtaining module 210 is configured to obtain a theme mode of the fast application when the fast application is drawn through the fast application platform.
And the state information obtaining module 220 is configured to obtain state information of the automatic color reversing switch when the theme mode of the quick application is a dark mode.
Further, the status information obtaining module 220 includes: the system comprises a first state information acquisition sub-module and a second state information acquisition sub-module, wherein:
and the first state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch when the theme mode of the quick application is a fixed dark mode.
And the second state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch when the theme mode of the quick application is a following system mode and the current theme mode of the operating system of the electronic equipment is a dark mode.
Further, the automatic color reversing switch includes an application level automatic color reversing switch, a page level automatic color reversing switch, and a component level automatic color reversing switch, and the status information obtaining module 220 includes: the system comprises a third state information acquisition sub-module, a fourth state information acquisition sub-module and a fifth state information acquisition sub-module, wherein:
and the third state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch at the application level when the theme mode of the quick application is a dark mode.
And the fourth state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch of the page level when the state information of the automatic color reversing switch of the application level is in an on state.
And the fifth state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch at the component level when the state information of the automatic color reversing switch at the page level is in an on state.
Further, the component-level automatic color reversing switch includes a parent component-level automatic color reversing switch and a child component-level automatic color reversing switch, and the fifth status information obtaining submodule includes: a first state information acquisition unit and a second state information acquisition unit, wherein:
The first state information acquisition unit is used for acquiring the state information of the automatic color reversing switch of the father component level when the state information of the automatic color reversing switch of the page level is in an on state;
and the second state information acquisition unit is used for acquiring the state information of the automatic color reversing switch of the sub-component level when the state information of the automatic color reversing switch of the parent component level is in an on state.
The dark color display style obtaining module 230 is configured to obtain a dark color display style by performing a color inversion calculation based on the automatic color inversion function when the state information of the automatic color inversion switch is in an on state.
Further, the automatic color reversing switch includes an application level automatic color reversing switch, a page level automatic color reversing switch, and a component level automatic color reversing switch, and the dark color display pattern obtaining module 230 includes: a dark display style acquisition sub-module, wherein:
and the dark color display style acquisition sub-module is used for carrying out color reversal calculation based on the automatic color reversal function to acquire a dark color display style when the state information of the automatic color reversal switch at the component level is in an on state.
Further, the component-level automatic color reversing switch includes a parent component-level automatic color reversing switch and a child component-level automatic color reversing switch, and the dark color display pattern acquisition submodule includes:
and the dark color display style acquisition unit is used for performing color reversal calculation based on the automatic color reversal function to acquire a dark color display style when the state information of the automatic color reversal switch of the sub-assembly level is in an on state.
And the display module 240 is used for drawing and displaying the quick application based on the dark display style.
Further, the display module 240 includes: the display device comprises a first display sub-module and a second display sub-module, wherein:
And the first display sub-module is used for drawing and displaying the quick application based on the dark display style when the designated display style is not configured on the quick application platform.
And the second display sub-module is used for drawing and displaying the quick application based on the dark display style and the appointed display style when the appointed display style is configured on the quick application platform.
Further, the second display sub-module includes: a first display unit and a second display unit, wherein:
A first display unit configured to draw and display the quick application based on the dark display style and the designated display style when the quick application platform has configured the designated display style and the dark display style and the designated display style are not contradictory,
And the second display unit is used for drawing and displaying the quick application based on the designated display style when the designated display style is configured on the quick application platform and the dark display style and the designated display style are contradictory.
Further, the fast-application display device 200 further includes: the device comprises a light-color display style acquisition module and a drawing module, wherein:
and the light-color display pattern acquisition module is used for acquiring a pre-configured light-color display pattern when the theme mode of the quick application is a light-color mode.
Further, the light color display style acquisition module includes: a first light color display style acquisition sub-module and a second light color display style acquisition sub-module, wherein:
and the first light-color display pattern acquisition sub-module is used for acquiring a pre-configured light-color display pattern when the theme mode of the quick application is a fixed light-color mode.
And the second light-color display pattern acquisition sub-module is used for acquiring a pre-configured light-color display pattern when the theme mode of the fast application is a following system mode and the current theme mode of the operating system of the electronic equipment is a light-color mode.
And the drawing module is used for drawing and displaying the quick application based on the light-color display pattern.
Further, the fast-application display device 200 further includes: the first drawing display module and the second drawing display module, wherein:
and the first drawing display module is used for acquiring a pre-configured light-color display pattern when the state information of the automatic color reversing switch is in a closed state and the quick application platform is not configured with a designated display pattern, and drawing and displaying the quick application based on the light-color display pattern.
And the second drawing display module is used for drawing and displaying the quick application based on the appointed display mode when the state information of the automatic color reversing switch is in a closed state and the appointed display mode is configured on the quick application platform.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 10, a block diagram of an electronic device 100 according to an embodiment of the application is shown. The electronic device 100 may be a smart phone, a tablet computer, an electronic book, or the like capable of running an application program. The electronic device 100 of the present application may include one or more of the following components: a processor 110, a memory 120, and one or more application programs, wherein the one or more application programs may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more program(s) configured to perform the method as described in the foregoing method embodiments.
Wherein the processor 110 may include one or more processing cores. The processor 110 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
Memory 120 may include random access Memory (Random Access Memory, RAM) or Read-Only Memory (ROM). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described below, etc. The storage data area may also store data (e.g., phonebook, audio-video data, chat log data) or the like that is drawn by the electronic device 100 in use.
Referring to fig. 11, a block diagram of a computer readable storage medium according to an embodiment of the present application is shown. The computer readable medium 300 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 300 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 300 has storage space for program code 310 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 310 may be compressed, for example, in a suitable form.
In summary, in the display method, the device, the electronic equipment and the storage medium for the quick application provided by the embodiment of the application, the electronic equipment is provided with the quick application platform and is provided with the automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of the automatic color reversing function, when the quick application platform is used for drawing the quick application, the theme mode of the quick application is acquired, when the theme mode of the quick application is in the dark mode, the state information of the automatic color reversing switch is acquired, when the state information of the automatic color reversing switch is in the on state, the dark color display style is acquired by performing color reversing calculation based on the automatic color reversing function, and the quick application is drawn and displayed based on the dark color display style, so that the default automatic color reversing function is provided by the quick application platform, the dark color mode is automatically adapted for the quick application, and the adaptation cost of the quick application is reduced.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A display method of a quick application, which is applied to an electronic device, wherein the electronic device is provided with a quick application platform and an automatic color reversing switch, the automatic color reversing switch is used for controlling the on and off of an automatic color reversing function, the automatic color reversing switch comprises an automatic color reversing switch at an application level, an automatic color reversing switch at a page level and an automatic color reversing switch at a component level, and the method comprises:
When the quick application platform is used for drawing the quick application, a theme mode of the quick application is obtained;
When the theme mode of the quick application is a dark mode, acquiring state information of the automatic color reversing switch;
when the theme mode of the quick application is a dark mode, acquiring the state information of the automatic color reversing switch includes:
When the theme mode of the quick application is a dark mode, acquiring state information of an automatic color reversing switch of the application level;
when the state information of the automatic color reversing switch of the application level is in an on state, acquiring the state information of the automatic color reversing switch of the page level;
when the state information of the automatic color reversing switch at the page level is in an on state, acquiring the state information of the automatic color reversing switch at the component level;
When the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style;
when the state information of the automatic color reversing switch is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style, including:
when the state information of the automatic color reversing switch at the component level is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display pattern;
And drawing and displaying the quick application based on the dark display style.
2. The method according to claim 1, wherein when the theme mode of the quick application is a dark mode, acquiring the state information of the automatic reverse color switch includes:
when the theme mode of the quick application is a fixed dark mode, acquiring state information of the automatic color reversing switch; or (b)
And when the theme mode of the fast application is a following system mode and the current theme mode of the operating system of the electronic equipment is a dark color mode, acquiring the state information of the automatic reverse color switch.
3. The method according to claim 1, wherein the method further comprises:
When the theme mode of the quick application is a light-color mode, acquiring a pre-configured light-color display mode;
And drawing and displaying the quick application based on the light-color display style.
4. The method of claim 3, wherein when the theme mode of the quick application is a light-color mode, obtaining a pre-configured light-color display style comprises:
when the theme mode of the quick application is a fixed light-color mode, acquiring a pre-configured light-color display mode; or (b)
And when the theme mode of the fast application is a following system mode and the current theme mode of the operating system of the electronic equipment is a light-color mode, acquiring a pre-configured light-color display mode.
5. The method of claim 1, wherein the component-level auto-reverse switch comprises a parent component-level auto-reverse switch and a child component-level auto-reverse switch, wherein the obtaining the component-level auto-reverse switch status information when the page-level auto-reverse switch status information is an on state comprises:
when the state information of the automatic color reversing switch at the page level is in an on state, acquiring the state information of the automatic color reversing switch at the parent component level;
When the state information of the automatic color reversing switch of the parent component level is in an on state, acquiring the state information of the automatic color reversing switch of the child component level;
When the state information of the automatic color reversing switch at the component level is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style, including:
and when the state information of the automatic color reversing switch at the level of the sub-assembly is in an on state, performing color reversing calculation based on the automatic color reversing function to obtain a dark color display style.
6. The method of any of claims 1-5, wherein the rendering and displaying the quick application based on the dark display style comprises:
When the quick application platform is not configured with a designated display style, drawing and displaying the quick application based on the dark display style;
And when the quick application platform is configured with a designated display style, drawing and displaying the quick application based on the dark display style and the designated display style.
7. The method of claim 6, wherein the rendering and displaying the quick application based on the dark display style and the specified display style when the quick application platform has been configured with the specified display style comprises:
When the quick application platform is configured with a designated display style and the dark color display style and the designated display style are not contradictory, drawing and displaying the quick application based on the dark color display style and the designated display style;
when the quick application platform is configured with a designated display style and the dark display style and the designated display style are contradictory, the quick application is drawn and displayed based on the designated display style.
8. The method according to any one of claims 1-5, wherein after acquiring the status information of the automatic reverse color switch when the theme mode of the quick application is a dark mode, the method further comprises:
when the state information of the automatic color reversing switch is in a closed state and the rapid application platform is not configured with a designated display pattern, acquiring a pre-configured light-color display pattern, and drawing and displaying the rapid application based on the light-color display pattern;
and when the state information of the automatic color reversing switch is in a closed state and the quick application platform is configured with a designated display style, drawing and displaying the quick application based on the designated display style.
9. The utility model provides a display device of quick application, its characterized in that is applied to electronic equipment, electronic equipment installs quick application platform and is provided with automatic anti-color switch, automatic anti-color switch is used for controlling opening and closing of automatic anti-color function, automatic anti-color switch includes the automatic anti-color switch of application level, the automatic anti-color switch of page level and the automatic anti-color switch of subassembly level, the device includes:
the theme mode acquisition module is used for acquiring a theme mode of the quick application when the quick application is drawn through the quick application platform;
the state information acquisition module is used for acquiring state information of the automatic color reversing switch when the theme mode of the quick application is a dark color mode;
wherein, the status information acquisition module includes:
The third state information acquisition sub-module is used for acquiring the state information of the automatic color reversing switch of the application level when the theme mode of the quick application is a dark mode;
a fourth state information obtaining sub-module, configured to obtain state information of the automatic color reversing switch at the page level when the state information of the automatic color reversing switch at the application level is in an on state;
a fifth state information obtaining sub-module, configured to obtain, when the state information of the automatic color reversing switch at the page level is in an on state, the state information of the automatic color reversing switch at the component level;
The dark color display style acquisition module is used for carrying out color reversal calculation based on the automatic color reversal function to acquire a dark color display style when the state information of the automatic color reversal switch is in an on state;
wherein, dark display pattern acquisition module includes:
the dark color display style obtaining sub-module is used for obtaining a dark color display style by carrying out color reversal calculation based on the automatic color reversal function when the state information of the automatic color reversal switch of the component level is in an on state;
and the display module is used for drawing and displaying the quick application based on the dark display style.
10. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the method of any of claims 1-8.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, which is callable by a processor for executing the method according to any one of claims 1-8.
CN202010838978.0A 2020-08-19 2020-08-19 Display method and device for quick application, electronic equipment and storage medium Active CN111813492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010838978.0A CN111813492B (en) 2020-08-19 2020-08-19 Display method and device for quick application, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010838978.0A CN111813492B (en) 2020-08-19 2020-08-19 Display method and device for quick application, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111813492A CN111813492A (en) 2020-10-23
CN111813492B true CN111813492B (en) 2024-05-03

Family

ID=72860448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010838978.0A Active CN111813492B (en) 2020-08-19 2020-08-19 Display method and device for quick application, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111813492B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112331158B (en) * 2020-11-18 2022-11-18 北京小米移动软件有限公司 Terminal display adjusting method, device, equipment and storage medium
CN114968009A (en) * 2021-02-24 2022-08-30 华为技术有限公司 Display mode switching method and device, electronic equipment and medium
CN113377479A (en) * 2021-06-25 2021-09-10 展讯通信(天津)有限公司 Switching method and device of application visual theme, storage medium and terminal
CN113556424B (en) * 2021-07-22 2023-03-28 浪潮通用软件有限公司 Mobile terminal skin switching method, design method and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301440B1 (en) * 2000-04-13 2001-10-09 International Business Machines Corp. System and method for automatically setting image acquisition controls
CN105867730A (en) * 2016-03-24 2016-08-17 广东欧珀移动通信有限公司 Display method and device for status bar
CN108287744A (en) * 2018-02-09 2018-07-17 腾讯科技(深圳)有限公司 Character displaying method, device and storage medium
CN109697739A (en) * 2018-12-25 2019-04-30 掌阅科技股份有限公司 The inverse display methods of hand-written arrangement for reading and hand-written arrangement for reading
US10319116B1 (en) * 2014-12-02 2019-06-11 Amazon Technologies, Inc. Dynamic color adjustment of electronic content
CN111552451A (en) * 2020-04-09 2020-08-18 RealMe重庆移动通信有限公司 Display control method and device, computer readable medium and terminal equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9824291B2 (en) * 2015-11-13 2017-11-21 Microsoft Technology Licensing, Llc Image analysis based color suggestions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301440B1 (en) * 2000-04-13 2001-10-09 International Business Machines Corp. System and method for automatically setting image acquisition controls
US10319116B1 (en) * 2014-12-02 2019-06-11 Amazon Technologies, Inc. Dynamic color adjustment of electronic content
CN105867730A (en) * 2016-03-24 2016-08-17 广东欧珀移动通信有限公司 Display method and device for status bar
CN108287744A (en) * 2018-02-09 2018-07-17 腾讯科技(深圳)有限公司 Character displaying method, device and storage medium
CN109697739A (en) * 2018-12-25 2019-04-30 掌阅科技股份有限公司 The inverse display methods of hand-written arrangement for reading and hand-written arrangement for reading
CN111552451A (en) * 2020-04-09 2020-08-18 RealMe重庆移动通信有限公司 Display control method and device, computer readable medium and terminal equipment

Also Published As

Publication number Publication date
CN111813492A (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN111813492B (en) Display method and device for quick application, electronic equipment and storage medium
CN108614722B (en) Application program preloading method and device, storage medium and terminal
US20190370603A1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
US10764424B2 (en) Intelligent digital assistant alarm system for application collaboration with notification presentation
WO2019165905A1 (en) Information display method, graphical user interface and terminal
CN110377141B (en) Application processing method and device, electronic equipment and storage medium
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN108958828B (en) Application program preloading method and device, storage medium and terminal
CN113325988B (en) Multitask management method and terminal equipment
CN106817753B (en) Method and device for saving electricity by switching background gray scales and mobile terminal
CN107450838B (en) Response method and device of black screen gesture, storage medium and mobile terminal
WO2019214477A1 (en) Application program pre-loading method and device, storage medium and terminal
EP3584710A1 (en) Method and apparatus for controlling display of mobile terminal, storage medium, and electronic device
WO2022001452A1 (en) Information display method and apparatus, wearable device, and storage medium
CN113613064B (en) Video processing method, device, storage medium and terminal
EP4271124A1 (en) Switch module in a dual sim terminal
CN104615432B (en) Splash screen information processing method and client
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
CN110602772A (en) WiFi module control method, control device, electronic device and storage medium
CN108986187A (en) A kind of implementation method, device, storage medium and the android terminal of general animation
CN110830653B (en) Sensor control method, sensor control device, mobile terminal and storage medium
WO2023124634A1 (en) Display method and apparatus, electronic device, and storage medium
CN110572867A (en) method and device for reducing power consumption of electronic equipment
US10628179B2 (en) Universal graphical user interface objects
CN113595662B (en) Signal prompting method, device, terminal equipment 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
GR01 Patent grant
GR01 Patent grant