Application program skin changing method, system and device, storage medium and electronic equipment

Directly update the color of the application interface by storing the theme color configuration information locally, solving the problem of time-consuming and restarting of skin files in the existing technology, improving skin replacing efficiency and saving resources.

CN119597375APending Publication Date: 2025-03-11HANGZHOU EZVIZ SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311135144.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, downloading application skin files from the server requires a lot of traffic and time, and restarting the application can take effect, reducing skin replacing efficiency.

Method used

By storing the theme color configuration information locally, directly update the color of the target interface, avoiding re-downloading of skin files, saving traffic and time, and taking effect after the update, avoiding the application restart.

Benefits of technology

Improves the skinning efficiency of the application, saves traffic and download time, and takes effect after updates, avoiding application restarts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597375A_ABST
    Figure CN119597375A_ABST
Patent Text Reader

Abstract

The invention discloses a skin changing method, system and device for an application program, a storage medium and electronic equipment, and the method comprises the steps: receiving an interface display instruction, and determining whether theme color configuration information of the application program is locally stored or not; under the condition that the theme color configuration information is locally stored, on the basis of the theme color configuration information, updating the color in the target interface requested to be displayed by the interface display instruction; and displaying the target interface after the color is updated. Since the color of the target interface is directly updated by adopting the locally stored theme color configuration information, the speed of updating the color of the target interface by utilizing the theme color configuration information is high, the situation that the whole target interface is replaced by re-downloading a skin file is avoided, the flow and the downloading time are saved, and the user experience is improved. Meanwhile, the effect can be taken after the color of the target interface is updated, restarting of the application program is avoided, and therefore the skin changing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, system, device, storage medium and electronic device for skinning an application. Background Art

[0002] At present, smart devices are becoming more and more important in work and life, such as mobile phones, tablet computers, etc. During use, these smart devices usually have multiple applications installed. In order to meet the user's requirements for visual effects, it is often necessary to change the skin in the application interface.

[0003] In the related art, the pictures required for the interface skin need to be packaged into a document as a skin file and stored in the server; when using the application software, the user can select the skin he needs and download the corresponding skin file from the server, load the skin file and restart the application to achieve the skin change. Downloading the skin file from the server consumes a lot of traffic, the download process is time-consuming, and the application needs to be restarted to take effect, which reduces the efficiency of skin change. Summary of the invention

[0004] The embodiments of the present application provide a method, system, device, storage medium and electronic device for reskinning an application. In order to have a basic understanding of some aspects of the disclosed embodiments, a simple summary is given below. This summary is not a general review, nor is it intended to identify key / important components or describe the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.

[0005] In a first aspect, an embodiment of the present application provides a method for skinning an application program, the method comprising:

[0006] Receive the interface display instruction and determine whether the theme color configuration information of the application is stored locally;

[0007] In the case where the theme color configuration information is stored locally, updating the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information;

[0008] Displays the target interface after updating the color.

[0009] Optionally, the theme color configuration information includes at least one application-level color value, where the application level is used to represent a setting range of the application-level color value in the application program;

[0010] Based on the theme color configuration information, the color of the target interface requested by the interface display instruction is updated, including:

[0011] Obtain the code file of the target interface requested to be displayed by the interface display instruction;

[0012] Based on the preset priority of each application level in at least one application level and the color value of each application level, the color value in the code file is updated.

[0013] Optionally, based on the preset priority of each application layer in at least one application layer and the color value of each application layer, updating the color value in the code file includes:

[0014] When the application level with the highest priority among the application levels is preset as the component level, the color value of each component in the code file is updated to the color value of the component level;

[0015] Based on the color value of the target application layer with the highest preset priority among the application layers except the component layer, the color values ​​of the program elements belonging to the target application layer in the code file are updated to the color values ​​of the target application layer.

[0016] Optionally, based on the preset priority of each application layer in at least one application layer and the color value of each application layer, updating the color value in the code file includes:

[0017] When the application level with the highest preset priority among the application levels is not the component level, the color values ​​of the program elements belonging to the target application level in the code file are updated to the color values ​​of the target application level based on the color value of the target application level with the highest preset priority among the application levels.

[0018] Optionally, the theme color configuration information includes color values ​​at at least one application level among application level, component level, interface level, and module level; the color values ​​at the application level include holiday color values ​​and / or global color values.

[0019] Optionally, during the application startup process, theme color configuration information corresponding to the application is obtained from the server according to the program identification information of the application;

[0020] Stores theme color configuration information.

[0021] Optionally, the method further includes:

[0022] In response to a color configuration instruction from a user, displaying a theme color configuration interface, the theme color configuration interface including at least one application-level color configuration component;

[0023] Get the color values ​​of each application level configured by the user from the theme color configuration interface;

[0024] The color values ​​of each application level configured by the user are stored locally as the theme color configuration information of the application.

[0025] Optionally, the color values ​​of each application layer configured by the user are stored locally as the theme color configuration information of the application, including:

[0026] In the case where the color value of the first application layer is currently stored locally, the color value of the first application layer currently stored is replaced with the color value of the first application layer configured by the user; the first application layer is any application layer among the application layers configured by the user.

[0027] Optionally, the method further includes:

[0028] When no theme color configuration information is stored locally, obtain the preset default theme color configuration information;

[0029] According to the default theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated.

[0030] In a second aspect, an embodiment of the present application provides a skinning device for an application program, the device comprising:

[0031] A determination module, used to receive an interface display instruction and determine whether the theme color configuration information of the application is stored locally;

[0032] An updating module, for updating the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information when the theme color configuration information is stored locally;

[0033] The display module is used to display the target interface after the color is updated.

[0034] In a third aspect, the embodiment of the present application provides a skinning system for an application, the system comprising a client and a server; wherein:

[0035] The client is used to send a request for obtaining the theme color configuration information corresponding to the application to the server during the startup of the application;

[0036] The server is used to send the theme color configuration information corresponding to the application to the client in response to the request;

[0037] The client is also used to store the theme color configuration information; when receiving an interface display instruction, based on the theme color configuration information, update the color of the target interface requested by the interface display instruction; and display the target interface after the updated color.

[0038] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.

[0039] In a fifth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.

[0040] The technical solution provided by the embodiments of the present application may have the following beneficial effects:

[0041] In an embodiment of the present application, the present application uses locally stored theme color configuration information to directly update the color of the target interface. The color of the target interface is updated quickly using the theme color configuration information, avoiding the need to re-download skin files to replace the entire target interface, saving traffic and download time. At the same time, the color of the target interface can take effect immediately after being updated, avoiding application restart, thereby improving skinning efficiency.

[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0044] Figure 1 It is a flowchart of a skinning method of an application program provided in an embodiment of the present application;

[0045] Figure 2 This is a schematic diagram of a scenario for configuring theme color configuration information on the server side provided by this application;

[0046] Figure 3 This is a schematic diagram of a theme color information configuration process provided by this application;

[0047] Figure 4 This is a schematic diagram of a theme color selection panel provided by this application;

[0048] Figure 5 This is a schematic block diagram of a skinning process of an application provided in an embodiment of the present application;

[0049] Figure 6 This is a schematic diagram of a process for updating a color value in a code file provided by an embodiment of the present application;

[0050] Figure 7 It is a structural schematic diagram of a skinning device for an application provided in an embodiment of the present application;

[0051] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following description and the accompanying drawings sufficiently illustrate specific embodiments of the present application to enable those skilled in the art to practice them.

[0053] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0054] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0055] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0056] At present, the related technology needs to package the pictures required for the interface skin into a document as a skin file and store it in the server; when using the application software, the user can select the skin he needs and download the corresponding skin file from the server, load the skin file and restart the application to achieve the skin change.

[0057] The inventor of the present application noticed that downloading skin files from the server consumes a large amount of traffic, the download process is time-consuming, and the application needs to be restarted to take effect, which reduces the efficiency of skinning.

[0058] In order to solve the problem that downloading skin files from the server consumes a lot of traffic, the download process is time-consuming, and the application needs to be restarted to take effect, the inventor of the present application has found that when changing the skin of the application, the interface display instruction is first received to determine whether the theme color configuration information of the application is stored locally, and then if the theme color configuration information is stored locally, based on the theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated, and finally the target interface with the updated color is displayed. Since the present application uses the locally stored theme color configuration information to directly update the color of the target interface, the color of the target interface is updated quickly using the theme color configuration information, avoiding the need to re-download the skin file to replace the entire target interface, saving traffic and download time, and at the same time, the color of the target interface can take effect after being updated, avoiding the need to restart the application, thereby improving the efficiency of skinning.

[0059] The present application provides a skinning method, device, storage medium and electronic device for an application program to solve the problems existing in the above-mentioned related technical problems. Figure 1 -Attached Figure 6 , a method for reskinning an application provided in an embodiment of the present application is introduced in detail. The method can be implemented by a computer program and can be run on a reskinning device for an application based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application.

[0060] See also Figure 1 , a flowchart of a method for changing the skin of an application program is provided in the embodiment of the present application. Figure 1 As shown, the method of the embodiment of the present application may include the following steps:

[0061] S101, receiving an interface display instruction, and determining whether theme color configuration information of an application is stored locally;

[0062] The interface display instruction includes the one generated by displaying the initial interface after the application is started, or the one generated by the user triggering a request to browse other interfaces. The theme color configuration information is the skinning parameters configured by the server or the user-defined skinning parameters, which are stored in local storage, such as a local database.

[0063] In an embodiment of the present application, when it is necessary to reskin an application, the preset program identifier of the application is first determined, and then based on the program identifier, a search is performed locally to determine whether the theme color configuration information of the application exists; if so, it is determined that the theme color configuration information is stored locally; if not, it is determined that the theme color configuration information is not stored locally.

[0064] In a possible implementation, when the initial interface needs to be displayed after the program is started, an interface display instruction for the initial interface is generated. When the interface display instruction is received, it is determined whether the theme color configuration information of the application is stored locally.

[0065] In another possible implementation, when a user browses an application and an interface display instruction for a certain interface to be displayed is triggered, it is determined whether theme color configuration information of the application is stored locally.

[0066] Furthermore, when the theme color configuration information of the application is stored locally, one is an automatic storage method, and the other is a storage method based on user configuration.

[0067] In the embodiment of the present application, when storing automatically, first, during the application startup process, according to the program identification information of the application, the theme color configuration information corresponding to the application is obtained from the server; then the theme color configuration information is stored. By downloading the theme color configuration information to the local during the application startup process, when the initial interface is displayed after the startup, the interface can be skinned in time, thereby improving the skinning efficiency.

[0068] For example, the server can save the common theme color configuration information of each interface in the application. When the server saves the common theme color configuration information of each interface, the administrator configures the common theme color configuration information of each interface of the target application through the WEB console, and then sends the configured common theme color configuration information of each interface to the server. After receiving the common theme color configuration information of each interface, the server stores the theme color configuration information according to the program identifier of the target application. During the application startup process, the theme color configuration information of the application can be downloaded on the server and saved locally. For example Figure 2 shown.

[0069] It should be noted that if the server download fails, it means that the server has not saved the theme color configuration information of the application. At this time, continue to execute the step of receiving the interface display instruction and determining whether the theme color configuration information of the application is stored locally.

[0070] In the embodiment of the present application, when storing based on user configuration, first respond to the user's color configuration instruction, display the theme color configuration interface, the theme color configuration interface includes at least one application-level color configuration component; then obtain the color values ​​of each application level configured by the user from the theme color configuration interface; finally, store the color values ​​of each application level configured by the user as the theme color configuration information of the application locally. The storage method based on user configuration can configure different theme color configuration information for different interfaces based on the user's preferences, so that the interface display effect is diversified.

[0071] Specifically, when the color values ​​of each application layer configured by the user are stored locally as the theme color configuration information of the application, if the color value of the first application layer is currently stored locally, the color value of the first application layer currently stored is replaced with the color value of the first application layer configured by the user; the first application layer is any application layer among the application layers configured by the user. Alternatively, if the color value of the first application layer is not currently stored locally, the color value of the first application layer configured by the user is directly stored. By replacing or directly storing, the theme color configuration information can be quickly configured for a specific interface, thereby improving the convenience of theme color configuration.

[0072] For example Figure 3 As shown, Figure 3 This is a schematic diagram of the theme color information configuration process provided by the present application. First, during the application startup process, the theme color configuration information is obtained from the server, and the obtained theme color configuration information is stored locally; then during the custom theme color configuration process, the theme color configuration interface is first displayed, and the theme color configuration interface includes at least one application-level color configuration component to determine whether the interface has a custom theme color; if there is no custom theme color, select the theme color on the theme color selection panel, and associate the selected theme color with the configuration interface for storage. If there is a custom theme color, first clear the historical custom theme colors stored locally, then modify the theme color, and select the theme color on the theme color selection panel, and associate the selected theme color with the configuration interface for storage. The theme color selection panel, for example Figure 4 shown.

[0073] Furthermore, when the theme color configuration information is not stored locally, the preset default theme color configuration information is first obtained; then, according to the default theme color configuration information, the color in the target interface requested to be displayed by the interface display instruction is updated. By setting the default theme color configuration information, when the theme color configuration information of the application does not exist in the local storage, the color rendering is performed based on the default theme color configuration information, thereby avoiding the situation where the interface cannot be displayed due to the lack of theme color information, and improving the stability of the application.

[0074] Specifically, the theme color configuration information includes color values ​​at at least one application level among the application level, component level, interface level, and module level; the color values ​​at the application level include holiday color values ​​and / or global color values.

[0075] It should be noted that the priority arrangement of each level can be festival at application level > component level > interface level > module level > global at application level, or other arrangements. There is no special limitation here and it can be set according to the application scenario.

[0076] S102, when the theme color configuration information is stored locally, based on the theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated; the target interface is developed using the SVG framework technology, and may also be developed using other technologies.

[0077] The theme color configuration information includes at least one application-level color value, and the application level is used to represent a setting range of the application-level color value in the application program.

[0078] In an embodiment of the present application, when the color in the target interface requested to be displayed by the interface display instruction is updated based on the theme color configuration information, the code file of the target interface requested to be displayed by the interface display instruction is first obtained; then, based on the preset priority of each application layer in at least one application layer and the color value of each application layer, the color value in the code file is updated. The application layer with the highest priority can be determined by the preset priority of each application layer, which improves the flexibility of the theme color configuration. At the same time, the color value in the code file is updated by the color value corresponding to the application layer with the highest preset priority. The parameter update speed is fast, which avoids downloading the corresponding theme image for updating, thereby improving the efficiency of skinning.

[0079] Specifically, based on the preset priorities of each application level in at least one application level and the color values ​​of each application level, the color values ​​in the code file are updated. First, when the application level with the highest preset priority in each application level is the component level, the color values ​​of each component in the code file are updated to the color values ​​of the component level; then, based on the color value of the target application level with the highest preset priority other than the component level in each application level, the color values ​​of the program elements belonging to the target application level in the code file are updated to the color values ​​of the target application level. By updating the color values ​​of the component and non-component application levels respectively, it can be ensured that the colors of the component-level application level are different from those of other application levels, thereby ensuring the independence of the component-level skinning.

[0080] Specifically, when the color values ​​in the code file are updated based on the preset priorities of each application layer in at least one application layer and the color values ​​of each application layer, when the application layer with the highest preset priority among the application layers is not the component level, the color values ​​of the program elements belonging to the target application layer in the code file are updated to the color values ​​of the target application layer based on the color value of the target application layer with the highest preset priority among the application layers.

[0081] Specifically, when the color values ​​in the code file are updated based on the preset priorities of each application layer in at least one application layer and the color values ​​of each application layer, the color values ​​of the program elements belonging to the target application layer in the code file can be updated to the color values ​​of the target application layer based on the color value of the target application layer with the highest preset priority among the application layers.

[0082] For example Figure 5 As shown, Figure 5 This is a schematic block diagram of the skinning process of an application provided by the present application. First, an interface display instruction is received, and then it is determined whether the theme color configuration information of the application is stored in the local storage. If not, it is necessary to obtain the preset default theme color configuration information, and according to the default theme color configuration information, update the color in the target interface requested to be displayed by the interface display instruction; if so, it is necessary to obtain the code file of the target interface requested to be displayed by the interface display instruction, and finally update the color value in the code file based on the preset priority of each application level in at least one application level and the color value of each application level.

[0083] For example Figure 6 As shown, Figure 6 1. It is a schematic diagram of a process for updating color values ​​in a code file provided by the present application. When the preset priority of each application level is preset as festival at application level > component level > interface level > module level > global at application level, first determine whether the theme color configuration information of the application stored locally is the festival color value at the application level; if not, determine whether the theme color configuration information of the application stored locally is at the interface level; if not, determine whether the theme color configuration information of the application stored locally is at the module level; if not, determine whether the theme color configuration information of the application stored locally is at the global color value at the application level; if not, obtain the preset default theme color configuration information; according to the default theme color configuration information, update the interface display. The color in the target interface requested by the display instruction is updated; if any of the above judgment conditions is yes, the color value of the target application layer under the condition is obtained, and then it is determined whether the application layer with the highest preset priority among the application layers is the component level. If so, the color value of each component in the code file is updated to the color value of the component level, and based on the color value of the target application layer with the highest preset priority among the application layers except the component level, the color value of the program elements belonging to the target application layer in the code file is updated to the color value of the target application layer. If not, based on the color value of the target application layer with the highest preset priority among the application layers, the color value of the program elements belonging to the target application layer in the code file is updated to the color value of the target application layer.

[0084] S103, displaying the target interface after the color is updated.

[0085] In a possible implementation, after the update is completed, the target interface with the updated color may be displayed.

[0086] By updating the color values ​​of the component and non-component application layers respectively, it can be ensured that the component-level application layer has a different color from other application layers, thereby ensuring the independence of component-level skinning.

[0087] The highest priority application layer can be determined through the preset priorities of each application layer, which improves the flexibility of theme color configuration. At the same time, the color values ​​in the code file are updated through the color values ​​corresponding to the highest priority application layer. The parameter update speed is fast, avoiding the download of corresponding theme images for updating, thereby improving the efficiency of skinning.

[0088] In an embodiment of the present application, the present application uses locally stored theme color configuration information to directly update the color of the target interface. The color of the target interface is updated quickly using the theme color configuration information, avoiding the need to re-download skin files to replace the entire target interface, saving traffic and download time. At the same time, the color of the target interface can take effect immediately after being updated, avoiding application restart, thereby improving skinning efficiency.

[0089] An embodiment of the present application provides an application skinning system, the system comprising a client and a server; wherein the client is used to send a request to the server for obtaining theme color configuration information corresponding to the application during the startup of the application; the server is used to send the theme color configuration information corresponding to the application to the client in response to the request; the client is also used to store the theme color configuration information; when an interface display instruction is received, based on the theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated; and the target interface after the updated color is displayed.

[0090] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0091] See also Figure 7 , which shows a schematic diagram of the structure of an application skinning device provided by an exemplary embodiment of the present application. The application skinning device can be implemented as all or part of an electronic device through software, hardware or a combination of both. The device 1 includes a determination module 10, an update module 20, and a display module 30.

[0092] The determination module 10 is used to receive the interface display instruction and determine whether the theme color configuration information of the application program is stored locally;

[0093] An updating module 20, configured to update the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information when the theme color configuration information is stored locally;

[0094] The display module 30 is used to display the target interface after the color is updated.

[0095] Optionally, the update module 20 includes:

[0096] A code file acquisition unit 201 is used to acquire a code file of a target interface requested to be displayed by an interface display instruction;

[0097] The color value updating unit 202 is used to update the color value in the code file based on the preset priority of each application layer in at least one application layer and the color value of each application layer.

[0098] Optionally, the color value updating unit 202 includes:

[0099] The first color value updating subunit 211 is used to update the color value of each component in the code file to the color value of the component level when the application level with the highest priority among the application levels is preset as the component level;

[0100] The second color value updating unit 221 is used to update the color values ​​of the program elements belonging to the target application layer in the code file to the color values ​​of the target application layer based on the color value of the target application layer with the highest preset priority among the application layers except the component level.

[0101] Optionally, the color value updating unit is specifically used for:

[0102] When the application level with the highest preset priority among the application levels is not the component level, the color values ​​of the program elements belonging to the target application level in the code file are updated to the color values ​​of the target application level based on the color value of the target application level with the highest preset priority among the application levels.

[0103] Optionally, the skinning device of the application further includes:

[0104] The theme color configuration information acquisition module 40 is used to acquire the theme color configuration information corresponding to the application from the server according to the program identification information of the application during the application startup process;

[0105] The first theme color configuration information storage module 50 is used to store theme color configuration information.

[0106] Optionally, the skinning device of the application further includes:

[0107] Theme color configuration interface display module 60, used to display a theme color configuration interface in response to a user's color configuration instruction, the theme color configuration interface including at least one application-level color configuration component;

[0108] A color value acquisition module 70 is used to acquire the color values ​​of each application level configured by the user from the theme color configuration interface;

[0109] The second theme color configuration information storage module 80 stores the color values ​​of each application layer configured by the user as theme color configuration information of the application program locally.

[0110] It should be noted that the skin-changing device for an application provided in the above embodiment only uses the division of the above functional modules as an example when executing the skin-changing method for an application. In actual applications, the above functional distribution can be completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the skin-changing device for an application provided in the above embodiment and the skin-changing method embodiment for an application belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.

[0111] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0112] In the embodiment of the present application, the interface display instruction is first received to determine whether the theme color configuration information of the application is stored locally; then, if the theme color configuration information is stored locally, the color of the target interface requested to be displayed by the interface display instruction is updated based on the theme color configuration information; finally, the target interface with the updated color is displayed. Since the present application uses the locally stored theme color configuration information to directly update the color of the target interface, the color of the target interface is updated quickly using the theme color configuration information, avoiding the need to re-download the skin file to replace the entire target interface, saving traffic and download time, and the color of the target interface can take effect after being updated, avoiding the need to restart the application, thereby improving the efficiency of skinning.

[0113] The present application also provides a computer-readable medium on which program instructions are stored. When the program instructions are executed by a processor, the skinning method of the application provided by the above-mentioned various method embodiments is implemented.

[0114] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the skinning method of the application program of each of the above method embodiments.

[0115] See also Figure 8 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , and at least one communication bus 1002 .

[0116] The communication bus 1002 is used to realize the connection and communication between these components.

[0117] The user interface 1003 may include a display screen (Display) and a camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.

[0118] The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0119] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect various parts within the entire electronic device 1000, and executes various functions and processes data of the electronic device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can 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), and programmable logic array (Programmable Logic Array, PLA). The processor 1001 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes operating devices, user interfaces and applications, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0120] Among them, the memory 1005 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable storage medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing the operating device, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may also be optionally at least one storage device located away from the aforementioned processor 1001. As Figure 8 As shown, the memory 1005 as a computer storage medium may include an operating device, a network communication module, a user interface module, and a skinning application of an application.

[0121] exist Figure 8 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 1001 can be used to call the skinning application of the application stored in the memory 1005, and specifically perform the following operations:

[0122] Receive the interface display instruction and determine whether the theme color configuration information of the application is stored locally;

[0123] In the case where the theme color configuration information is stored locally, updating the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information;

[0124] Displays the target interface after updating the color.

[0125] In one embodiment, when the processor 1001 executes the updating of the color in the target interface requested to be displayed by the interface display instruction based on the theme color configuration information, the processor 1001 specifically performs the following operations:

[0126] Obtain the code file of the target interface requested to be displayed by the interface display instruction;

[0127] Based on the preset priority of each application level in at least one application level and the color value of each application level, the color value in the code file is updated.

[0128] In one embodiment, when the processor 1001 updates the color value in the code file based on the preset priority of each application layer in at least one application layer and the color value of each application layer, the processor 1001 specifically performs the following operations:

[0129] When the application level with the highest priority among the application levels is preset as the component level, the color value of each component in the code file is updated to the color value of the component level;

[0130] Based on the color value of the target application layer with the highest preset priority among the application layers except the component layer, the color values ​​of the program elements belonging to the target application layer in the code file are updated to the color values ​​of the target application layer.

[0131] In one embodiment, when the processor 1001 updates the color value in the code file based on the preset priority of each application layer in at least one application layer and the color value of each application layer, the processor 1001 specifically performs the following operations:

[0132] When the application level with the highest preset priority among the application levels is not the component level, the color values ​​of the program elements belonging to the target application level in the code file are updated to the color values ​​of the target application level based on the color value of the target application level with the highest preset priority among the application levels.

[0133] In one embodiment, the processor 1001 further performs the following operations:

[0134] During the application startup process, the theme color configuration information corresponding to the application is obtained from the server according to the program identification information of the application;

[0135] Stores theme color configuration information.

[0136] In one embodiment, the processor 1001 further performs the following operations:

[0137] In response to a color configuration instruction from a user, displaying a theme color configuration interface, the theme color configuration interface including at least one application-level color configuration component;

[0138] Get the color values ​​of each application level configured by the user from the theme color configuration interface;

[0139] The color values ​​of each application level configured by the user are stored locally as the theme color configuration information of the application.

[0140] In one embodiment, when the processor 1001 executes the storage of the color values ​​of each application level configured by the user as the theme color configuration information of the application program locally, the processor 1001 specifically performs the following operations:

[0141] In the case where the color value of the first application layer is currently stored locally, the color value of the first application layer currently stored is replaced with the color value of the first application layer configured by the user; the first application layer is any application layer among the application layers configured by the user.

[0142] In one embodiment, the processor 1001 further performs the following operations:

[0143] When no theme color configuration information is stored locally, obtain the preset default theme color configuration information;

[0144] According to the default theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated.

[0145] In the embodiment of the present application, the interface display instruction is first received to determine whether the theme color configuration information of the application is stored locally; then, if the theme color configuration information is stored locally, the color of the target interface requested to be displayed by the interface display instruction is updated based on the theme color configuration information; finally, the target interface with the updated color is displayed. Since the present application uses the locally stored theme color configuration information to directly update the color of the target interface, the color of the target interface is updated quickly using the theme color configuration information, avoiding the need to re-download the skin file to replace the entire target interface, saving traffic and download time, and the color of the target interface can take effect after being updated, avoiding the need to restart the application, thereby improving the efficiency of skinning.

[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program for skinning the application program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0147] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A skinning method for an application, characterized in that: The method comprises: Receive an interface display instruction and determine whether theme color configuration information of the application is stored locally; In the case where the theme color configuration information is stored locally, updating the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information; The target interface after the color is updated is displayed.

2. The method according to claim 1, characterized in that The theme color configuration information includes at least one application-level color value, where the application level is used to represent a setting range of the application-level color value in the application program; Based on the theme color configuration information, updating the color of the target interface requested to be displayed by the interface display instruction includes: Obtain the code file of the target interface requested to be displayed by the interface display instruction; Based on the preset priority of each application layer in the at least one application layer and the color value of each application layer, the color value in the code file is updated.

3. The method according to claim 2, characterized in that Based on the preset priority of each application layer in the at least one application layer and the color value of each application layer, updating the color value in the code file includes: When the application level with the highest preset priority among the application levels is the component level, updating the color value of each component in the code file to the color value of the component level; Based on the color value of the target application layer with the highest preset priority among the application layers except the component level, the color value of the program elements belonging to the target application layer in the code file is updated to the color value of the target application layer.

4. The method according to claim 2, characterized in that: Based on the preset priority of each application layer in the at least one application layer and the color value of each application layer, updating the color value in the code file includes: When the application level with the highest preset priority among the application levels is not the component level, based on the color value of the target application level with the highest preset priority among the application levels, the color values ​​of the program elements belonging to the target application level in the code file are updated to the color values ​​of the target application level.

5. The method according to any one of claims 1 to 4, characterized in that: The theme color configuration information includes color values ​​of at least one application level among application level, component level, interface level, and module level; the color values ​​of the application level include holiday color values ​​and / or global color values.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: During the application startup process, according to the program identification information of the application, the theme color configuration information corresponding to the application is obtained from the server; The theme color configuration information is stored.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a color configuration instruction from a user, displaying a theme color configuration interface, wherein the theme color configuration interface includes at least one application-level color configuration component; Obtaining the color values ​​of each application level configured by the user from the theme color configuration interface; The color values ​​of each application level configured by the user are stored locally as the theme color configuration information of the application program.

8. The method according to claim 7, characterized in that The step of storing the color values ​​of each application level configured by the user as the theme color configuration information of the application program locally includes: In the case where the color value of the first application layer is currently stored locally, the color value of the first application layer currently stored is replaced with the color value of the first application layer configured by the user; the first application layer is any application layer among the application layers configured by the user.

9. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: If the theme color configuration information is not stored locally, obtaining preset default theme color configuration information; According to the default theme color configuration information, the color of the target interface requested to be displayed by the interface display instruction is updated.

10. A skinning system for an application, characterized in that: The system includes a client and a server; wherein, The client is used to send a request for obtaining theme color configuration information corresponding to the application to the server during the startup of the application; The server is used to send the theme color configuration information corresponding to the application to the client in response to the request; The client is also used to store the theme color configuration information; when receiving an interface display instruction, based on the theme color configuration information, update the color of the target interface requested to be displayed by the interface display instruction; and display the target interface after the updated color.

11. A skinning device for an application, characterized in that: The device comprises: A determination module, used to receive an interface display instruction and determine whether the theme color configuration information of the application is stored locally; An updating module, configured to update the color of the target interface requested to be displayed by the interface display instruction based on the theme color configuration information when the theme color configuration information is stored locally; The display module is used to display the target interface after the color is updated.

12. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method according to any one of claims 1 to 9.

13. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method according to any one of claims 1 to 9.