CN112181557A - Theme switching method and device, electronic equipment and storage medium - Google Patents

Theme switching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112181557A
CN112181557A CN202010998941.4A CN202010998941A CN112181557A CN 112181557 A CN112181557 A CN 112181557A CN 202010998941 A CN202010998941 A CN 202010998941A CN 112181557 A CN112181557 A CN 112181557A
Authority
CN
China
Prior art keywords
theme
light intensity
target
current
switching
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
Application number
CN202010998941.4A
Other languages
Chinese (zh)
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.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic 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 Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN202010998941.4A priority Critical patent/CN112181557A/en
Publication of CN112181557A publication Critical patent/CN112181557A/en
Pending legal-status Critical Current

Links

Images

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
    • G06F9/4451User profiles; Roaming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the application provides a theme switching method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring light intensity information of the current environment, determining a corresponding target theme type according to the light intensity information, if the theme type corresponding to the current theme is inconsistent with the target theme type, acquiring a target theme conforming to the target theme type from a theme resource database, and switching the current theme into the target theme; therefore, when the current theme is not matched with the light intensity information of the current environment, the target theme matched with the light intensity information of the current environment is automatically switched, the display effect of the terminal equipment is improved, and the user experience effect is better.

Description

Theme switching method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a theme switching method and apparatus, an electronic device, and a storage medium.
Background
The theme function means that a user can set corresponding contents such as standby pictures, screen protection programs, operation interfaces, icons and the like in the terminal equipment at one time by downloading a certain favorite theme program, so that the user can personalize a favorite mobile phone more quickly and conveniently. According to different themes, a user feels the situation when using the mobile phone and is not only faced with an unchanged mobile phone operation interface, pictures and colors.
The terminal devices on the market are generally preset with internal theme applications, various theme resources are provided in the theme applications, and users can select themes according to their own preferences. Because the theme application provides too many theme resources, the user often has less energy to browse; and once a theme is selected, the theme is used all the time unless the user modifies the theme again, and the theme cannot meet most scenes, so that the user experience is poor.
Disclosure of Invention
In view of the above problems, embodiments of the present application are proposed to provide a theme switching method and apparatus, an electronic device, and a storage medium, which overcome the above problems or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present application discloses a theme switching method, where the method includes:
acquiring light intensity information of the current environment;
determining a corresponding target theme type according to the light intensity information;
if the theme type corresponding to the current theme is not consistent with the target theme type, acquiring a target theme which is consistent with the target theme type from a theme resource database;
switching the current theme to the target theme.
Optionally, before the step of obtaining the light intensity information of the current environment, the method further includes:
downloading a theme resource database in an automatic theme switching mode; the theme resource database comprises a plurality of theme types and a corresponding relation between each theme type and a light intensity level, wherein each theme type comprises at least one theme;
and updating the theme resource database according to a preset time interval.
Optionally, before the step of downloading the theme resource database in the automatic theme switching mode, the method further includes:
receiving a determination instruction for automatically switching the theme mode;
and starting an automatic theme switching mode according to the determined instruction.
Optionally, the step of determining the corresponding target topic type according to the light intensity information includes:
determining a corresponding target light intensity level according to the light intensity information;
and determining a target theme type corresponding to the target light intensity level according to the corresponding relation between each theme type and the light intensity level in the theme resource database.
Optionally, the step of obtaining the light intensity information of the current environment includes:
acquiring current distance information;
and when the current distance information is larger than a preset distance threshold, acquiring the light intensity information of the current environment.
Optionally, after the step of switching the current theme to the target theme, the method further includes:
judging whether the current theme use time is within a preset time threshold value;
and if so, suspending the step of determining the corresponding target theme type according to the light intensity information.
Optionally, after the step of switching the current theme to the target theme, the method further includes:
when the service time of the current theme is within a preset time threshold, judging whether the target light intensity level is adjacent to the light intensity level corresponding to the current theme or not;
if yes, keeping the current theme;
if not, the current theme is switched to the target theme.
The embodiment of the application also discloses a theme switching device, which comprises:
the light intensity acquisition module is used for acquiring light intensity information of the current environment;
the theme type determining module is used for determining a corresponding target theme type according to the light intensity information;
the target theme obtaining module is used for obtaining a target theme which accords with the target theme type from a theme resource database if the theme type corresponding to the current theme is inconsistent with the target theme type;
and the target theme switching module is used for switching the current theme into the target theme.
Optionally, the apparatus further comprises:
the theme resource database downloading module is used for downloading the theme resource database under the automatic theme switching mode; the theme resource database comprises a plurality of theme types and a corresponding relation between each theme type and a light intensity level, wherein each theme type comprises at least one theme;
and the theme resource database updating module is used for updating the theme resource database according to a preset time interval.
Optionally, the apparatus further comprises:
the instruction acquisition module is used for receiving a determination instruction aiming at the automatic switching theme mode;
and the mode starting module is used for starting the automatic theme switching mode according to the determined instruction.
Optionally, the topic type determining module includes:
the light intensity level determining submodule is used for determining the corresponding target light intensity level according to the light intensity information;
and the target topic type determining submodule is used for determining a target topic type corresponding to the target light intensity level according to the corresponding relation between each topic type in the topic resource database and the light intensity level.
Optionally, the apparatus further comprises:
the distance information acquisition submodule is used for acquiring current distance information;
and the light intensity information acquisition submodule is used for acquiring the light intensity information of the current environment when the current distance information is greater than a preset distance threshold.
Optionally, the apparatus further comprises:
the using time judging module is used for judging whether the using time of the current theme is within a preset time threshold value or not;
and the pause switching module is used for pausing the theme type determining module when the use time of the current theme is within a preset time threshold.
Optionally, the apparatus further comprises:
the light intensity grade judging module is used for judging whether the target light intensity grade is adjacent to the light intensity grade corresponding to the current theme or not when the service time of the current theme is within a preset time threshold;
the theme keeping module is used for keeping the current theme when the target light intensity level is adjacent to the light intensity level corresponding to the current theme type;
and the theme switching module is used for switching the current theme into the target theme when the target light intensity level is not adjacent to the light intensity level corresponding to the current theme type.
The embodiment of the present application also discloses an electronic device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the theme switching method described above are implemented.
An embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the theme switching method described above are implemented.
The application includes the following advantages:
in the embodiment of the application, the light intensity information of the current environment is obtained, the corresponding target theme type is determined according to the light intensity information, if the theme type corresponding to the current theme is inconsistent with the target theme type, the target theme conforming to the target theme type is obtained from the theme resource database, and the current theme is switched into the target theme; therefore, when the current theme is not matched with the light intensity information of the current environment, the target theme matched with the light intensity information of the current environment is automatically switched, the display effect of the terminal equipment is improved, and the user experience effect is better.
Drawings
Fig. 1 is a flowchart illustrating a first embodiment of a theme switching method according to the present application;
fig. 2 is a flowchart illustrating steps of a second embodiment of a theme switching method according to the present application;
FIG. 3 is a flowchart of the overall design of a theme switching method provided in the present application;
fig. 4 is a block diagram of a theme switching device according to an embodiment of the present application.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 shows a flowchart of a first step of an embodiment of a theme switching method provided in the present application, where the method may be applied to a terminal device to implement a function of automatically switching themes, where the terminal device may include an electronic device such as a smart phone, a notebook computer, a tablet computer, a desktop computer, and a smart television. The method specifically comprises the following steps:
step 101, obtaining light intensity information of a current environment.
In an embodiment of the present application, a light sensing device, for example, a light sensor, may be disposed in the terminal device. The light intensity information of the current environment can be obtained through the light sensor. Taking the terminal device as a mobile phone as an example, a light sensor can be arranged near a front camera of the mobile phone to sense the light intensity of the front side. Preferably, a monitor for monitoring the change of the value is arranged in the light sensor, and when the change of the current light intensity is monitored, the current light intensity information is obtained.
And 102, determining the corresponding target theme type according to the light intensity information.
In an embodiment of the present application, the terminal device may obtain a mapping relationship table indicating the light intensity information and the theme type, and determine the target theme type corresponding to the current light intensity information from the mapping relationship table of the light intensity information and the theme type according to the light intensity information of the current environment. The mapping relation table of the light intensity information and the theme type can be acquired by the terminal equipment from a remote server in real time, or the terminal equipment is downloaded from the remote server in advance and then stored in a local storage; the information may also be stored in a local storage of the terminal device in advance, and may also be obtained from a built-in server by the terminal device, and the like, which is not limited in this embodiment of the application. It should be noted that the local storage referred to in the embodiments of the present application may include a main body memory and/or an external storage of the terminal device.
And 103, if the theme type corresponding to the current theme is not consistent with the target theme type, acquiring the target theme conforming to the target theme type from the theme resource database.
And after the target theme type corresponding to the light intensity information of the current environment is determined, acquiring the theme type corresponding to the current theme, and if the theme type corresponding to the current theme is not consistent with the target theme type, and if the light intensity of the current theme is not matched with the light intensity information of the current environment, acquiring the target theme conforming to the target theme type from the theme resource database.
The theme resource database can be downloaded from a remote server by the terminal equipment and is stored in a local storage of the terminal equipment after being downloaded; or the terminal equipment downloads the data from a built-in server and stores the data in a local storage of the terminal equipment; but also in a local storage of the terminal device in advance.
And 104, switching the current theme into a target theme.
And when the theme type of the current theme is not consistent with the target theme type, switching the current theme into the target theme corresponding to the brightness information of the current environment so as to reduce the damage to the vision of the user when the user uses the system.
If the theme type of the current theme is consistent with the target theme type, it can be considered that the light intensity of the current theme is matched with the light intensity information of the current environment, and the switching process of the current theme may not be performed.
In the embodiment of the application, the light intensity information of the current environment is obtained, the corresponding target theme type is determined according to the light intensity information, if the theme type corresponding to the current theme is inconsistent with the target theme type, the target theme conforming to the target theme type is obtained from the theme resource database, and the current theme is switched into the target theme; therefore, when the current theme is not matched with the light intensity information of the current environment, the target theme matched with the light intensity information of the current environment is automatically switched, the display effect of the terminal equipment is improved, and the user experience effect is better.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a second embodiment of a theme switching method provided in the present application; the method can be applied to terminal equipment to realize the function of automatically switching themes. The method specifically comprises the following steps:
step 201, a determination instruction for automatically switching the theme mode is received.
And 202, starting an automatic theme switching mode according to the determined instruction.
In an embodiment of the application, when the terminal device is started for the first time, whether an automatic switching theme switch needs to be turned on or not can be prompted in a screen; when the user selects yes, namely the terminal equipment receives a determination instruction aiming at the automatic theme switching mode, the terminal equipment starts the automatic theme switching mode. In the automatic theme switching mode, the following steps 203-208 may be performed. If the user selects no, that is, the terminal device does not receive the determination instruction for automatically switching the theme mode, the terminal device does not start the automatically switching theme mode, and when the user wants to change the theme of the terminal device in the automatically switching theme mode, the user needs to manually perform theme selection operation.
In another embodiment of the present application, a starting control for automatically switching the theme mode is provided in the terminal device, and when the user triggers the starting control, that is, the terminal device receives a determination instruction for automatically switching the theme mode, the terminal device starts the automatically switching theme mode.
Step 203, downloading the theme resource database under the automatic theme switching mode.
In an embodiment of the application, after the terminal device starts the automatic theme mode switching, the terminal device may be connected to the built-in theme application server, and the theme resource database may be downloaded from the built-in theme application server after the connection is successful. When the connection is unsuccessful, the connection may be reconnected. Alternatively, when the number of consecutive connections reaches a preset number and the connection is still unsuccessful, the auto-switching theme mode may be turned off. Optionally, the selectable range of the preset times is 3-10 times.
Optionally, the downloaded theme resource database may be stored in a local storage of the terminal device.
In this embodiment, the theme resource database includes a plurality of theme types, and a correspondence between each theme type and a light intensity level, and each theme type includes at least one theme.
The light intensity level may be set by a user or preset by the system, for example, the light intensity level may be determined as a first light intensity level when the light intensity is less than 0.25lx, and the corresponding scene may be at night; determining the light intensity as a second light intensity level when the light intensity is 0.25-100 lx, wherein the corresponding scene can be rainy days; determining the light intensity as a third light intensity level when the light intensity is 100-400 lx, wherein the corresponding scene can be that the sun just rises; determining the light intensity to be a fourth light intensity grade when the light intensity is 400-10000 lx, wherein the corresponding scene can be cloudy weather; determining the light intensity as a fifth light intensity grade when the light intensity is 10000-20000 lx, wherein the corresponding scene can be a scene with sunlight, but part of light is offset by the cloud; determining the light intensity as a sixth light intensity level when the light intensity is 20000-110000 lx, wherein the corresponding scene can be direct sunlight without clouds in all miles; when the light intensity is greater than 110000lx, the seventh light intensity level is determined, which corresponds to the strongest light intensity. Correspondingly, a plurality of theme types are in one-to-one correspondence with the plurality of light intensity levels.
In other embodiments, after the terminal device starts the automatic theme mode switching, the terminal device may also connect to the remote server, and download the theme resource database from the remote server after the connection is successful, or store the downloaded theme resource database in the local storage of the terminal device.
Further, the method is carried out. In an optional embodiment of the present application, the step 203 may further include:
and under the automatic theme switching mode, updating the theme resource database according to a preset time interval.
In this embodiment, in the automatic theme switching mode, the terminal device may further update the theme resource database according to a preset time interval. The preset time interval may be set to 24H, for example, the built-in theme application server or the remote server is automatically connected to download the latest version of the theme resource database every morning, so as to update the theme resource database originally stored in the terminal device. Specifically, the updating of the theme resource database originally stored in the terminal device may be to replace the theme resource database originally stored with the latest downloaded theme resource database; or merging the latest downloaded theme resource database with the originally stored theme resource database.
Further, the step of updating the theme resource database at the preset time interval may further include:
detecting whether a theme resource database in a built-in theme application server or a remote server is updated or not according to a preset time interval, if so, downloading the latest version of the theme resource database, and if not, not updating the theme resource database originally stored in the terminal equipment.
Further, in an optional embodiment of the present application, the step 203 may further include:
and under the automatic theme switching mode, after receiving theme resource database updating information, updating the theme resource database.
In this embodiment, when the theme resource database in the terminal device built-in theme application server or the remote server is updated, corresponding update information is sent to the terminal device. After receiving the update information, the terminal device downloads the latest version of the theme resource database from the built-in theme application server or the remote server, and updates the theme resource database originally stored in the terminal device.
And step 204, acquiring current distance information.
In an embodiment of the present application, the terminal device may further include a distance sensor, and taking the terminal device as a mobile phone as an example, the distance sensor may be disposed near a front-facing camera of the mobile phone. The distance between the distance sensor and the object with the closest detection direction can be detected through the distance sensor, and the distance information can be regarded as the current distance information between the terminal device and the object in front of the screen.
Step 205, when the current distance information is greater than the preset distance threshold, obtaining the light intensity information of the current environment.
In an embodiment of the present application, the preset distance threshold may be preset by a user or preset by a system. When the current distance information is larger than the preset distance threshold, it can be considered that the terminal equipment is not shielded by the object, and at the moment, the light intensity information of the current environment is obtained. For the description of detecting the environmental noise value, reference may be made to the detailed description of step 101, which is not described herein again.
When the current distance information is smaller than or equal to the preset distance threshold, it can be considered that the terminal equipment is shielded by an object, and in this scene, the light intensity information of the current environment is not acquired, so that the theme is prevented from being switched by mistake. For example, when a mobile phone is mounted in a pocket or a user answers a call, if the current distance information is detected without using a distance sensor and the current distance information is compared with a preset distance threshold, and the light intensity information of the current environment is directly detected, there is a possibility that the current theme is switched, and actually, in the scene that the mobile phone is mounted in the pocket or the user answers the call, the user does not want to switch the current scene, that is, the meaning of switching the current theme is not great, and the automatic switching of the current theme also causes resource waste.
It can be understood that when the current distance information is less than or equal to the preset distance threshold, the automatic switching theme function is disabled, that is, the automatic switching theme mode is suspended to be started; and restarting the automatic theme switching mode when the current distance information is greater than the preset distance.
Step 206, determining the corresponding target theme type according to the light intensity information.
In an embodiment of the present application, the terminal device may obtain a mapping relationship table indicating the light intensity information and the theme type, and determine the target theme type corresponding to the current light intensity information from the mapping relationship table of the light intensity information and the theme type according to the light intensity information of the current environment.
Specifically, the step 206 may include:
determining a corresponding target light intensity level according to the light intensity information;
and determining a target theme type corresponding to the target light intensity level according to the corresponding relation between each theme type and the light intensity level in the theme resource database.
In this example, according to the light intensity level division rule, a target light intensity level corresponding to the light intensity information of the current environment may be determined; after the target light intensity level is determined, the target topic type corresponding to the target light level can be obtained from the corresponding relation between each topic type and the light intensity level in the topic resource database.
Step 207, if the theme type corresponding to the current theme is not consistent with the target theme type, the target theme conforming to the target theme type is obtained from the theme resource database.
And after the target theme type corresponding to the light intensity information of the current environment is determined, acquiring the theme type corresponding to the current theme, and if the theme type corresponding to the current theme is not consistent with the target theme type, and if the light intensity of the current theme is not matched with the light intensity information of the current environment, acquiring the target theme conforming to the target theme type from the theme resource database.
It should be noted that, when the number of topics in the target topic type is more than one, one of the topics may be randomly selected as the target topic, a topic with the highest recommendation index may be selected as the target topic according to the topic recommendation index set by the system, one of the topics may be selected as the target topic according to a default order, and the like.
And step 208, switching the current theme into the target theme.
And when the theme type of the current theme is not consistent with the target theme type, switching the current theme into the target theme corresponding to the brightness information of the current environment so as to reduce the damage to the vision of the user when the user uses the system.
If the theme type of the current theme is consistent with the target theme type, it can be considered that the light intensity of the current theme is matched with the light intensity information of the current environment, and the switching process of the current theme may not be performed.
Further, a time interval between two adjacent times of obtaining the light intensity information of the current environment may also be set, for example, when the current theme is matched with the light intensity information of the current environment, the time interval between two adjacent times of obtaining the light intensity information of the current environment may be set as a first preset time interval; the selectable range of the first preset time interval can be 1-10 min.
Further, in an optional embodiment of the present application, after the step 203 is performed, the method may further include:
judging whether the current theme use time is within a preset time threshold value;
if yes, the step of determining the corresponding target theme type according to the light intensity information is suspended.
In this embodiment, after a theme is switched once, the switched theme should use a preset time threshold, where the preset time threshold may be set by a user or preset by a system, and the selectable range of the preset time threshold may be 0.5 to 3H. For example, the preset time threshold may be set to 2H, and it can be understood that when the usage time of the switched theme is lower than 2H, the step of determining the corresponding target theme type according to the light intensity information is suspended, that is, no switching is performed whether the current theme is matched with the light intensity information of the external environment in 2H, so as to prevent the user experience effect from being affected by frequently switching the theme.
Preferably, when the using time of the current theme is within a preset time threshold, whether the target light intensity level corresponding to the target theme type is adjacent to the light intensity level corresponding to the current theme is judged; if yes, keeping the current theme; if not, the current theme is switched to the target theme. Or, sorting a plurality of theme types in the theme resource database according to corresponding light intensity levels, and judging whether a target theme type is adjacent to a theme type corresponding to the current theme, if so, it can be considered that there is no obvious discomfort when the user uses the current theme under the current light, for example, when the user uses a mobile phone outdoors, the light intensity is changed from direct sunlight to temporary shielding by clouds, and at this time, the current theme is not switched when the use time of the current theme is within a preset time threshold; if not, it can be considered that the user has obvious discomfort when using the current theme under the current light, for example, moving from a dark indoor to an outdoor with direct sunlight, and at this time, the current theme needs to be switched. By adopting the embodiment, the situation that the user needs to frequently adapt to a new theme due to frequent theme switching when the light intensity information is repeatedly changed between two light intensity levels can be prevented.
Referring to fig. 3, fig. 3 is a flowchart illustrating an overall design of a theme switching method according to an embodiment of the present application.
Taking a mobile phone as an example, the mobile phone is started up for the first time and is connected with a network; starting a boot guide; popping up a prompt on a screen of the mobile phone to prompt whether an automatic theme switching switch is turned on, if so, connecting a built-in theme application server of the mobile phone, and if not, ending, namely, turning off the theme switching function; when a theme application server is connected with a built-in mobile phone, judging whether the connection is successful, if so, downloading a theme resource database from the theme application server; if the connection is unsuccessful, recording the connection times; when the connection times are more than 3, ending, namely closing the theme switching function; when the connection times are not more than 3, returning to connect the mobile phone built-in theme application server; after downloading the theme resource database, acquiring the light intensity of the current environment, further judging whether the current theme is matched with the current light intensity, and if so, waiting for one minute and returning to acquire the light intensity of the current environment; if not, replacing the current theme; and after the current theme is changed, waiting for two hours, and returning to obtain the light intensity of the current environment.
According to the embodiment of the application, a determining instruction for automatically switching the theme mode is received, the automatically switching the theme mode is started according to the determining instruction, the theme resource database is downloaded in the automatically switching theme mode, then current distance information is obtained, when the current distance information is larger than a preset distance threshold, light intensity information of the current environment is obtained, a corresponding target theme type is determined according to the light intensity information, if the theme type corresponding to the current theme is not consistent with the target theme type, a target theme conforming to the target theme type is obtained from the theme resource database, the current theme is switched to the target theme, and when the service time of the target theme is within a preset time threshold, the step of determining the corresponding target theme type according to the dark light intensity information is suspended. According to the embodiment of the application, when the terminal equipment is not shielded by an object and the current theme is not matched with the light intensity information of the current environment, the target theme matched with the light intensity information of the current environment is automatically switched, the display effect of the terminal equipment is further improved, the switched target theme is protected by setting the preset time threshold, and the situation that the theme is frequently switched when the light intensity information is changed between two light intensity levels can be prevented.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
Referring to fig. 4, a block diagram of a theme switching apparatus provided in an embodiment of the present application is shown, where the apparatus may be applied to a terminal device, and the apparatus may specifically include:
a light intensity obtaining module 301, configured to obtain light intensity information of a current environment;
a theme type determining module 302, configured to determine a corresponding target theme type according to the light intensity information;
a target theme obtaining module 303, configured to obtain a target theme meeting a target theme type from a theme resource database if a theme type corresponding to a current theme is inconsistent with a target theme type;
and a target theme switching module 304, configured to switch the current theme to the target theme.
In an optional embodiment of the present application, the apparatus may further include:
the theme resource database downloading module is used for downloading the theme resource database under the automatic theme switching mode; the theme resource database comprises a plurality of theme types and a corresponding relation between each theme type and the light intensity level, wherein each theme type comprises at least one theme;
and the theme resource database updating module is used for updating the theme resource database according to the preset time interval.
In an optional embodiment of the present application, the apparatus may further include:
the instruction acquisition module is used for receiving a determination instruction aiming at the automatic switching theme mode;
and the mode starting module is used for starting the automatic switching theme mode according to the determined instruction.
In an optional embodiment of the present application, the topic type determining module 302 may include:
the light intensity level determining submodule is used for determining the corresponding target light intensity level according to the light intensity information;
and the target topic type determining submodule is used for determining the target topic type corresponding to the target light intensity level according to the corresponding relation between each topic type in the topic resource database and the light intensity level.
In an optional embodiment of the present application, the light intensity obtaining module 301 may further include:
the distance information acquisition submodule is used for acquiring current distance information;
and the light intensity information acquisition submodule is used for acquiring the light intensity information of the current environment when the current distance information is greater than a preset distance threshold.
In an optional embodiment of the present application, the apparatus may further include:
the using time judging module is used for judging whether the using time of the current theme is within a preset time threshold value or not;
and the pause switching module is used for pausing the theme type determining module when the using time of the current theme is within a preset time threshold.
In an optional embodiment of the present application, the apparatus may further include:
the light intensity grade judging module is used for judging whether the target light intensity grade is adjacent to the light intensity grade corresponding to the current theme or not when the using time of the current theme is within a preset time threshold;
the theme keeping module is used for keeping the current theme when the target light intensity level is adjacent to the light intensity level corresponding to the current theme type;
and the theme switching module is used for switching the current theme into the target theme when the target light intensity level is not adjacent to the light intensity level corresponding to the current theme type.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present application further provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when being executed by the processor, the computer program implements the steps of the above theme switching method.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program implements the steps of the above theme switching method.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The above provides a theme switching method and apparatus, an electronic device, and a storage medium, which are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of theme switching, the method comprising:
acquiring light intensity information of the current environment;
determining a corresponding target theme type according to the light intensity information;
if the theme type corresponding to the current theme is not consistent with the target theme type, acquiring a target theme which is consistent with the target theme type from a theme resource database;
switching the current theme to the target theme.
2. The theme switching method according to claim 1, further comprising, before the step of acquiring the light intensity information of the current environment:
downloading a theme resource database in an automatic theme switching mode; the theme resource database comprises a plurality of theme types and a corresponding relation between each theme type and a light intensity level, wherein each theme type comprises at least one theme;
and updating the theme resource database according to a preset time interval.
3. The topic switching method according to claim 2, wherein before the step of downloading the topic resource database in the automatic switching topic mode, further comprising:
receiving a determination instruction for automatically switching the theme mode;
and starting an automatic theme switching mode according to the determined instruction.
4. The method of claim 2, wherein the step of determining the corresponding target topic type according to the light intensity information comprises:
determining a corresponding target light intensity level according to the light intensity information;
and determining a target theme type corresponding to the target light intensity level according to the corresponding relation between each theme type and the light intensity level in the theme resource database.
5. The topic switching method according to any one of claims 1 to 4, wherein the step of obtaining light intensity information of the current environment comprises:
acquiring current distance information;
and when the current distance information is larger than a preset distance threshold, acquiring the light intensity information of the current environment.
6. The topic switching method according to claim 5, further comprising, after the step of switching the current topic to the target topic:
judging whether the current theme use time is within a preset time threshold value;
and if so, suspending the step of determining the corresponding target theme type according to the light intensity information.
7. The topic switching method according to claim 4, further comprising, after the step of switching the current topic to the target topic:
when the service time of the current theme is within a preset time threshold, judging whether the target light intensity level is adjacent to the light intensity level corresponding to the current theme or not;
if yes, keeping the current theme;
if not, the current theme is switched to the target theme.
8. A theme switching apparatus, characterized in that the apparatus comprises:
the light intensity acquisition module is used for acquiring light intensity information of the current environment;
the theme type determining module is used for determining a corresponding target theme type according to the light intensity information;
the target theme obtaining module is used for obtaining a target theme which accords with the target theme type from a theme resource database if the theme type corresponding to the current theme is inconsistent with the target theme type;
and the target theme switching module is used for switching the current theme into the target theme.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the theme switching method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the theme switching method according to any one of claims 1 to 7.
CN202010998941.4A 2020-09-22 2020-09-22 Theme switching method and device, electronic equipment and storage medium Pending CN112181557A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010998941.4A CN112181557A (en) 2020-09-22 2020-09-22 Theme switching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010998941.4A CN112181557A (en) 2020-09-22 2020-09-22 Theme switching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112181557A true CN112181557A (en) 2021-01-05

Family

ID=73956821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010998941.4A Pending CN112181557A (en) 2020-09-22 2020-09-22 Theme switching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112181557A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037923A (en) * 2021-05-12 2021-06-25 西安闻泰信息技术有限公司 Theme switching method and device for terminal equipment, terminal equipment and storage medium
CN113064680A (en) * 2021-02-20 2021-07-02 西安闻泰电子科技有限公司 Background switching method, electronic equipment, computer equipment and storage medium
CN113891139A (en) * 2021-09-27 2022-01-04 深圳创维-Rgb电子有限公司 Operation interface theme switching method, terminal and computer readable storage medium
CN115904089A (en) * 2023-01-06 2023-04-04 深圳市心流科技有限公司 APP theme scene recommendation method and device, terminal equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137099A (en) * 2011-11-28 2013-06-05 联想(北京)有限公司 Screen luminance adjustment method and electronic device based on ambient light detecting sensor
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system
CN106201477A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 Theme update method and device and terminal
CN106921784A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of system theme Night switching method and apparatus of mobile terminal
CN107145349A (en) * 2017-04-28 2017-09-08 珠海市魅族科技有限公司 Method for switching theme, device, computer installation and computer-readable recording medium
CN107729103A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN111459259A (en) * 2020-03-30 2020-07-28 芯海科技(深圳)股份有限公司 Display control method, display control device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137099A (en) * 2011-11-28 2013-06-05 联想(北京)有限公司 Screen luminance adjustment method and electronic device based on ambient light detecting sensor
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system
CN106921784A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of system theme Night switching method and apparatus of mobile terminal
CN106201477A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 Theme update method and device and terminal
CN107145349A (en) * 2017-04-28 2017-09-08 珠海市魅族科技有限公司 Method for switching theme, device, computer installation and computer-readable recording medium
CN107729103A (en) * 2017-09-29 2018-02-23 努比亚技术有限公司 A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN111459259A (en) * 2020-03-30 2020-07-28 芯海科技(深圳)股份有限公司 Display control method, display control device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064680A (en) * 2021-02-20 2021-07-02 西安闻泰电子科技有限公司 Background switching method, electronic equipment, computer equipment and storage medium
CN113037923A (en) * 2021-05-12 2021-06-25 西安闻泰信息技术有限公司 Theme switching method and device for terminal equipment, terminal equipment and storage medium
CN113891139A (en) * 2021-09-27 2022-01-04 深圳创维-Rgb电子有限公司 Operation interface theme switching method, terminal and computer readable storage medium
CN115904089A (en) * 2023-01-06 2023-04-04 深圳市心流科技有限公司 APP theme scene recommendation method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112181557A (en) Theme switching method and device, electronic equipment and storage medium
EP3119064B1 (en) A lock screen method and mobile terminal
CN106210311B (en) Screen brightness control method and device
EP3301664A2 (en) Method and apparatus for adjusting screen brightness
CN108040360B (en) Method and device for controlling screen display
US10296191B2 (en) Method and device for changing display background
EP3407189B1 (en) Application distribution method and device
RU2633174C2 (en) Method and device for dynamic display of device list
CN107038074B (en) Memory optimization device and method based on association strategy
CN106445309B (en) Application download entry display method and device
CN112351203A (en) Video shooting method and device, electronic equipment and storage medium
CN105208177B (en) Address book updating method and device
CN105955608B (en) Shortcut control method and device and electronic equipment
CN113050446A (en) Linkage control method and device for intelligent scene and storage medium
CN111372139A (en) Image parameter adjusting method, television and storage medium
CN113691874A (en) Television-based film watching dynamic adjustment method and device, intelligent terminal and medium
CN103763617A (en) Method for video playing and electronic equipment
CN106775246B (en) Screen brightness adjusting method and device
CN111209063A (en) Desktop theme preview method and system and intelligent terminal
CN112087544B (en) Prompting method and device
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN103812950A (en) Method for obtaining similar application from native application
CN108363582B (en) Method and device for upgrading homepage of intelligent terminal
CN111176503A (en) Interactive system setting method and device and storage medium
CN110784764A (en) Automatic television picture adjusting method, television and computer readable 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