Theme configuration method, readable storage medium, electronic device and program product

By copying and mounting theme resources to a third directory during the theme configuration process, the time-consuming problem caused by multiple compression/decompression operations in existing technologies is solved, resulting in more efficient theme activation and storage space optimization.

WO2025251626A1PCT designated stage Publication Date: 2025-12-11HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/071305
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-06
Filing Date
2025-01-08
Publication Date
2025-12-11

AI Technical Summary

Technical Problem

In existing technologies, the theme configuration process involves multiple compression/decompression operations, resulting in long processing times and impacting user experience.

Method used

By detecting user actions, the theme resources in the first and second directories are copied to the third directory, and the third directory is mounted as the current theme directory, avoiding multiple compression/decompression operations and only copying the differences between different theme resources.

Benefits of technology

It improves the efficiency of theme activation, reduces storage space usage, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025071305_11122025_PF_FP_ABST
    Figure CN2025071305_11122025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, in particular to a theme configuration method, a readable storage medium, an electronic device and a program product. When detecting a user operation of switching to a target theme from a source theme with a storage directory being a first directory, an electronic device can store in a second directory a theme resource of the target theme that is different from theme resources of the source theme; during the process of activating the target theme, the electronic device can copy to a non-current theme directory (a third directory) a theme resource in the first directory that is common to the source theme and the target theme, as well as the theme resource of the target theme that is different from the theme resources of the source theme and that is in the second directory; and then, the electronic device may mount the third directory as a current theme directory, so that the electronic device may display a user interface on the basis of the theme resources in the third directory. On the basis of the described process, multiple times of compression or decompression is not required during activation of themes of electronic devices, which helps to improve the theme activation speed, thus shortening users' waiting time.
Need to check novelty before this filing date? Find Prior Art

Description

Subject configuration method, readable storage medium, electronic device and program product

[0001] The present application claims priority from the Chinese patent application No. 202410737519.1 filed on June 6, 2024, and entitled "Subject configuration method, readable storage medium, electronic device and program product", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminal, and in particular to a subject configuration method, a readable storage medium, an electronic device and a program product. BACKGROUND

[0003] A subject defines display parameters of an electronic device, such as a style, a color, a layout of a control, a style of an icon, and the like of a graphical user interface (GUI). A subject usually includes a plurality of subject resources, such as a font, a wallpaper, an icon, a sound effect, a lock screen mode, a layout, and the like, which indicate the display parameters corresponding to the subject.

[0004] All subject resources of a subject are usually packaged as a compressed file and stored and transmitted in the form of the compressed file. In the prior art, a subject from editing to taking effect involves multiple compression / decompression operations, which takes a long time. SUMMARY

[0005] Therefore, the present application provides a subject configuration method, a readable storage medium, an electronic device and a program product, which are beneficial to improve the efficiency of subject application.

[0006] In a first aspect, a subject configuration method is provided, applied to an electronic device, and the method includes: detecting an operation of a user applying a first subject, wherein the first subject includes first subject resources and second subject resources, the second subject includes the first subject resources and third subject resources, and the subject resources of the second subject are stored in a first directory, and the second subject resources are stored in a second directory; copying the first subject resources in the first directory and the second subject resources in the second directory to a third directory; and displaying a user interface based on the subject resources in the third directory.

[0007] In the method, based on the above process, the electronic device only needs to copy the first theme resource and the second theme resource from the first directory and the second directory into a third directory respectively in the process of enabling the first theme based on the operation of the user applying the first theme, and then mount the third directory as the current theme directory of the electronic device, so as to enable the first theme, so that the electronic device can display the user interface based on the theme resource in the third directory. In this way, in the process of enabling the theme, the electronic device does not need to perform multiple compression or corner compression, thereby improving the efficiency of theme enabling. In addition, since only the theme resource different from the first theme is stored in the second directory, instead of all theme resources of the first theme. In this way, for the first theme resource that is the same between the first theme and the second theme, there is no need to store repeatedly, thereby reducing the storage space occupied by the theme resource of the theme stored in the electronic device.

[0008] It should be noted that the theme resource in the first theme resource can be one or more; the theme resource in the second theme resource can also be one or more.

[0009] In a possible implementation of the first aspect, the method further includes: before detecting the operation of the user applying the first theme, displaying an editing interface of the second theme; detecting the operation of the user modifying the third theme resource to the second theme resource in the editing interface, and generating the second directory.

[0010] In a possible implementation of the first aspect, the method further includes: before displaying the editing interface, downloading the second theme from a server, and storing the theme resource of the second theme in the first directory.

[0011] In a possible implementation of the first aspect, the theme resource includes at least one of the following resources: lock screen resource, font resource, icon resource, preview resource, audio resource, screen-off display resource, and desktop resource.

[0012] In a possible implementation of the first aspect, the third directory is a subdirectory of a fourth directory, and the second directory is a subdirectory of a fifth directory.

[0013] In a possible implementation of the first aspect, the second directory is established after detecting the operation of the user modifying the third theme resource of the second theme to the second theme resource.

[0014] In a possible implementation of the first aspect, the storage path of the third theme resource relative to the first directory is the same as the storage path of the second theme resource relative to the second directory.

[0015] In this implementation, the third theme resource and the second theme resource are theme resources of the same type (for example, both are lock screen resources, font resources, icon resources, preview resources, audio resources, screen-off display resources, or desktop resources), and thus the third theme resource has the same storage path relative to the first directory as the second theme resource has relative to the second directory.

[0016] In a possible implementation of the first aspect, the method further includes: detecting an operation of the user modifying a fourth theme resource of the first theme to a fifth theme resource and applying the modified first theme, storing the fifth theme resource into the second directory; copying theme resources in the third directory other than the fourth theme resource and the fifth theme resource in the second directory into a sixth directory, and displaying an interface based on the theme resources in the sixth directory, where the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

[0017] In this implementation, after detecting the operation of the user modifying the fourth theme resource (which can be a theme resource in the first theme resource or a theme resource in the second theme resource) in the currently effective theme (the first theme) to the fifth theme resource and applying the modified first theme, the electronic device can directly copy theme resources other than the fourth theme resource from the third directory to the sixth directory, and copy the fifth theme resource in the second directory to the sixth directory, without the need to copy resources from the first directory.

[0018] In this implementation, the electronic device is equivalent to covering the modified first theme over the unmodified first theme.

[0019] In a possible implementation of the first aspect, the method further includes: detecting an operation of the user modifying a sixth theme resource of the first theme to a seventh theme resource and applying the modified third theme, storing the seventh theme resource into a seventh directory, where the seventh directory is a subdirectory of the fifth directory, and the seventh directory is different from the second directory; copying theme resources in the third directory other than the sixth theme resource and the seventh theme resource in the seventh directory into the sixth directory, and displaying an interface based on the theme resources in the sixth directory, where the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

[0020] In the implementation, after detecting that the user modifies the sixth theme resource (which can be a theme resource in the first theme resource or a theme resource in the second theme resource) in the currently effective theme (the first theme) to a seventh theme resource and applies the third theme obtained by the modification, the electronic device can establish a seventh directory under the fifth directory and store the seventh theme resource in the seventh directory. The electronic device directly copies theme resources other than the fourth theme resource from the third directory to the sixth directory and copies the fifth theme resource in the second directory to the sixth directory without copying resources from the first directory.

[0021] In the implementation, since the seventh theme resource is stored in the seventh directory different from the second directory, the electronic device is equivalent to adding the third theme to the first theme.

[0022] In a possible implementation of the first aspect, the electronic device further includes a fourth theme, the fourth theme and the second theme have the same eighth theme resource and different ninth theme resource, the ninth theme resource is stored in an eighth directory, and the eighth directory is a subdirectory of the fifth directory; and the method further includes: detecting that the user modifies the ninth theme resource to a tenth theme resource and applies the fifth theme obtained by the modification, replacing the ninth theme resource in the eighth directory with the tenth theme resource; copying the eighth theme resource in the first directory and the tenth theme resource in the eighth directory to a sixth directory, and displaying an interface based on theme resources in the sixth directory, where the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

[0023] In a possible implementation of the first aspect, the method further includes: detecting that the user modifies an eleventh theme resource in the eighth theme resource to a twelfth theme resource and applies the sixth theme obtained by the modification, storing the twelfth theme resource in the eighth directory; copying theme resources other than the eleventh theme resource in the eighth theme resource in the first directory and the ninth theme resource and the twelfth theme resource in the eighth directory to the sixth directory, and displaying an interface based on theme resources in the sixth directory, where the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

[0024] In a possible implementation of the first aspect, the electronic device includes a first application, a second application, and a first service, the first directory is a subdirectory of a shared directory of the first application, the fourth directory is a shared directory of the first service, and the fifth directory is a sandbox directory of the second application.

[0025] In the implementation, the first application can be a subject application, the shared directory of the first application can be a subject application shared directory, the second application can be a unified desktop application, the fifth directory can be a unified desktop application sandbox directory, the first service can be a subject management service, and the fourth directory can be a subject management service shared directory.

[0026] In a possible implementation of the first aspect, the user interface includes at least one of a desktop interface, a lock screen interface, an off-screen display interface, and an application interface.

[0027] In a second aspect, an electronic device is provided. The electronic device includes a memory configured to store one or more programs; and a processor configured to execute the one or more programs to cause the electronic device to implement the subject management method according to the first aspect and any possible implementation of the first aspect.

[0028] In a third aspect, a readable storage medium is provided. The readable storage medium includes one or more programs. When the one or more programs are executed on an electronic device, the one or more programs cause the electronic device to implement the subject management method according to the first aspect and any possible implementation of the first aspect.

[0029] In a fourth aspect, a program product is provided. When the program product is executed on an electronic device, the program product causes the electronic device to implement the subject management method according to the first aspect and any possible implementation of the first aspect.

[0030] It should be noted that the beneficial effects of the second aspect to the fourth aspect can refer to the content of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS

[0031] FIG. 1 illustrates a process of editing and applying a theme according to some embodiments of the present disclosure.

[0032] FIG. 2A illustrates a process of editing and applying a theme according to some embodiments of the present disclosure.

[0033] FIG. 2B illustrates a change of a stored file in the phone 10 during the process of editing and applying a theme according to some embodiments of the present disclosure.

[0034] FIG. 3 illustrates a change of a file in a directory related to a stored theme in the phone 10 in the situation shown in FIG. 2A according to some embodiments of the present disclosure.

[0035] FIG. 4 illustrates another change of a file in a directory related to a stored theme in the phone 10 in the situation shown in FIG. 2A according to some embodiments of the present disclosure.

[0036] FIG. 5A illustrates a schematic diagram of a theme interface displayed by a mobile phone 10 according to some embodiments of the present application.

[0037] FIG. 5B illustrates a schematic diagram of an edit interface displayed by a mobile phone 10 according to some embodiments of the present application.

[0038] FIG. 5C illustrates a schematic diagram of another theme interface P8 displayed by a mobile phone 10 according to some embodiments of the present application.

[0039] FIG. 5D illustrates a schematic diagram of changes in files in a directory storing themes in a mobile phone 10 according to some embodiments of the present application.

[0040] FIG. 5E illustrates a schematic diagram of a desktop interface P9 displayed by a mobile phone 10 according to some embodiments of the present application.

[0041] FIG. 6A illustrates a schematic diagram of changes in files in a directory storing themes in a mobile phone 10 according to some embodiments of the present application.

[0042] FIG. 6B illustrates a schematic diagram of a desktop interface P11 displayed by a mobile phone 10 according to some embodiments of the present application.

[0043] FIG. 6C illustrates a schematic diagram of a theme interface P12 displayed by a mobile phone 10 according to some embodiments of the present application.

[0044] FIG. 6D illustrates a schematic diagram of a theme interface P13 displayed by a mobile phone 10 according to some embodiments of the present application.

[0045] FIG. 7 illustrates a schematic diagram of a theme configuration method according to some embodiments of the present application.

[0046] FIG. 8 illustrates a schematic diagram of another theme configuration method according to some embodiments of the present application.

[0047] FIG. 9 illustrates a schematic diagram of an interface displayed by a mobile phone 10 in a process of a user applying a theme 02_2 according to some embodiments of the present application.

[0048] FIG. 10 illustrates a schematic diagram of a storage form of a theme resource according to some embodiments of the present application.

[0049] FIG. 11 illustrates a schematic diagram of an interaction flow of a theme configuration method according to some embodiments of the present application.

[0050] FIG. 12 illustrates a schematic diagram of an interface displayed by a mobile phone 10 according to some embodiments of the present application.

[0051] FIG. 13A shows a schematic diagram of file changes in a relevant directory storing a theme in a mobile phone 10, according to some embodiments of the present application.

[0052] FIG. 13B shows another schematic diagram of file changes in a relevant directory storing a theme in a mobile phone 10, according to some embodiments of the present application.

[0053] FIG. 14 shows a schematic diagram of a structure of a mobile phone 10, according to some embodiments of the present application. DETAILED DESCRIPTION

[0054] Illustrative embodiments of the present application include, but are not limited to, a theme configuration method, a readable storage medium, an electronic device, and a program product.

[0055] It should be noted that the technical solutions provided by the embodiments of the present application can be applied to any electronic device that can display a user interface according to theme resources, including but not limited to user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. For example, the electronic device can be a mobile phone, a wearable device, a tablet computer (Pad), a laptop computer, an industrial control device, a car machine, a terminal device in a smart grid, a terminal device in transportation safety, a terminal device in a smart city, etc. For example, the technical solutions of the present application are described below with the electronic device as a mobile phone 10.

[0056] As described above, there are multiple compression / decompression operations in the process from editing to taking effect of a theme, which takes a long time.

[0057] For example, as shown in FIG. 1, the process that the electronic device modifies the theme 00 according to the user operation and enables the modified theme (theme 00_1) to take effect generally includes that the theme-related application (for example, theme, theme engine, and the like) of the electronic device first decompresses the compressed file "theme 00.hwt" corresponding to the theme 00 into a folder "theme 00", and then modifies the theme resources in the folder "theme 00" according to the user operation and re-compresses the modified theme resources into a compressed file "theme 00_1.hwt". Then, the electronic device can transmit the compressed file "theme 00_1.hwt" to the service or module (for example, theme management service) for enabling the theme in the electronic device. The theme management service can decompress the compressed file "theme 00_1.hwt" into a folder "theme 00_1", and mount the decompressed folder "theme 00_1" as the current theme directory, so as to enable the electronic device to display the user interface according to the theme resources in the folder "theme 00_1".

[0058] Specifically, FIG. 2A shows a process diagram of editing and applying a theme according to some embodiments of the present application; and FIG. 2B shows a diagram of changes of stored files in the mobile phone 10 in the process of editing and applying a theme according to some embodiments of the present application.

[0059] As shown in FIG. 2A:

[0060] The mobile phone 10 can display the desktop and personalization interface P2 after detecting the selection operation (for example, click operation) of the user on the "desktop and personalization" control U11 in the settings interface P1, and the desktop and personalization interface P2 includes the setting options of the theme and the theme resources (for example, wallpaper, screen-off display, icon, magazine lock screen, and the like).

[0061] The mobile phone 10 can display the theme interface P3 when detecting the selection operation of the user on the theme control U12 in the desktop and personalization interface P2, and the theme interface P3 can include the preview pictures of the themes (for example, theme 01 and theme 02, wherein the theme 01 is the current theme of the mobile phone 10) stored in the mobile phone 10. In some embodiments, referring to FIG. 2B, the theme application in the mobile phone 10 can store the compressed files (for example, the compressed file "theme 01.hwt" and the compressed file "theme 02.hwt" corresponding to the theme 01 and the theme 02 respectively) corresponding to the downloaded themes under the theme directory of the user storage space.

[0062] When the mobile phone 10 detects a user's operation of selecting the theme 02 control U13, the mobile phone 10 can display the theme 02 interface P4, and when the mobile phone 10 detects a user's operation of selecting the custom control U14 in the theme 02 interface P4, the mobile phone 10 displays the editing interface P5 of the theme 02, which can include theme resources (e.g., a wallpaper, an icon, etc.) in the theme 02 that are editable by the user. In some embodiments, with reference to FIG. 2B, after detecting the user's operation of selecting the custom control U14, the settings application can decompress the compressed file "theme 02.hwt" corresponding to the theme 02 into a subdirectory "theme 02_1" in the theme directory of the user's shared storage space. The subdirectory "theme 02_1" stores all resource files in the theme 02, for example, the wallpaper image p1 of the theme 02 (corresponding to the file p1.jpg) is stored in the subdirectory "wallpaper" in the subdirectory "theme 02_1".

[0063] It should be noted that a directory is also referred to as a folder. If a directory A is a directory in a directory B, the directory A is referred to as a subdirectory of the directory B.

[0064] The user can modify the theme resources of the theme 02 in the editing interface P5 of the theme 02, for example, modifying the default wallpaper of the theme 02 from the image p1 to the image p2. In some embodiments, after detecting the user's operation of modifying the default wallpaper of the theme 02 from the image p1 to the image p2 (e.g., the user's operation of selecting the selection box U15 of the image p2), the settings application can replace "p1.jpg" in the subdirectory "wallpaper" in the subdirectory "theme 02_1" with the file corresponding to the image p2, which is "p2.jpg".

[0065] After detecting the selection operation of the "apply" control U16 in the editing interface P5 of the theme 02 by the user, the mobile phone 10 can enable the modified theme 02 (i.e., the theme 02_1). For example, the setting application can first compress the subdirectory "theme 02_1" into a compressed file "theme 02_1.hwt" and send it to the theme management service, and send a switching notification of switching the theme to the theme management service. Referring to FIG. 2B, after receiving the switching notification, the theme management service can decompress the compressed file "theme 02_1.hwt" under the theme directory of the system storage space (for example, decompress the compressed file "theme 02_1.hwt" into the subdirectory "theme 02_1" under the theme directory of the system storage space). Then, the theme management service can mount the subdirectory "theme 02_1" under the theme directory of the system storage space as the current theme directory of the mobile phone 10, and notify the applications related to the display of the user interface (such as the lock screen application, the desktop application, the wallpaper application, etc.) so that the part of the program can display the user interface based on the theme resources in the current theme directory (the subdirectory "theme 02_1" under the theme directory of the system storage space) (for example, the wallpaper displayed by the desktop interface P6 of the mobile phone 10 in FIG. 2A is the aforementioned image p2).

[0066] Based on the above process, although the user only obtains the theme 02_1 by modifying the wallpaper in the theme 02, the mobile phone 10 still needs to decompress the compressed file twice and compress the directory once, resulting in a long time for the theme 02_1 to take effect. For example, for the process shown in FIG. 2B, from the user clicking the "apply" control U16 to the subdirectory "theme 02_1" under the theme directory of the system storage space being mounted as the current theme directory of the mobile phone 10, the total time is about 5.1 seconds, and after the mounting is completed, the related processes (such as the wallpaper process, the lock screen process, etc.) need to be restarted, and the rendering operation is needed, so the user needs to wait for a long time.

[0067] It should be noted that the application program (for example, the theme application) for downloading the theme in the electronic device is configured with a directory (hereinafter referred to as a theme application shared directory) for storing the downloaded theme. The theme stored in the theme application shared directory can store the theme in the form of a compressed file or a subdirectory, and one theme can correspond to one compressed file or subdirectory.

[0068] It should be noted that the operating system of the electronic device (or a service (for example, a theme management service) in the operating system for managing themes, etc.) defines a directory (hereinafter referred to as a theme management service shared directory) for storing themes, and the directory has one or more subdirectories, one of the one or more subdirectories corresponds to one theme, and all theme resources of one theme are stored in one subdirectory. The electronic device can mount any one of the subdirectories in the system management service shared directory as the current theme directory, so that the electronic device can display the user interface through the theme resources in the subdirectory. That is, the electronic device can switch different themes by mounting different subdirectories in the theme management service shared directory as the current theme directory.

[0069] It should be noted that the number of subdirectories in the theme management service shared directory can be any value greater than or equal to 2. For ease of description, the technical solutions of the present application are introduced below by taking an example that the theme management service shared directory includes two subdirectories (subdirectory "CT1" and subdirectory "CT2"), and the theme management service can mount any one of the subdirectory "CT1" and the subdirectory "CT2" as the current theme directory.

[0070] It should be noted that one theme usually includes a plurality of theme resources, and the plurality of theme resources can be stored in one directory (for example, stored in one folder), and the directory storing all theme resources of one theme is referred to as the storage directory of the theme. For example, the subdirectory "theme 02_1" under the theme directory of the user storage space in FIG. 2B can be referred to as the storage directory of the theme 02_1. Generally, the name of one theme is the same as or corresponds to the name of the storage directory of the theme.

[0071] Based on this, the embodiment of the present application provides a theme configuration method. When the electronic device detects that the user modifies the source theme of the first directory to the target theme, the electronic device can store the theme resources different from the source theme and the target theme (hereinafter referred to as modified theme resources) in the second directory. In the process of applying the target theme, the electronic device can copy the theme resources of the source theme and the target theme in the first directory (hereinafter referred to as non-modified theme resources) and the modified theme resources in the second directory to the third directory (for example, a non-current theme directory in a subdirectory of the theme management service shared directory). Then, the electronic device can mount the third directory as the current theme directory of the electronic device, so that the electronic device can display the user interface based on the theme resources in the third directory.

[0072] For example, for the case of modifying theme 00 (as a source theme) to theme 00_1 (as a destination theme) and applying shown in FIG. 1, with reference to FIG. 3, the theme application shares the subdirectory "theme 00" (as a first directory) under the storage directory of theme 00, and the subdirectory "theme 00" includes all theme resources corresponding to theme 00. After detecting the operation of the user modifying theme 00 to theme 00_1, the electronic device can establish a subdirectory "theme 00_1" (as a second directory) under the directory "X" (for example, a sandbox directory of an application program for theme editing, application, and the like in the mobile phone 10), and store the modified theme resources into the subdirectory "theme 00_1". Then, since the current theme directory is the subdirectory "CT2" under the theme management service shared directory, the electronic device can copy the unmodified theme resources in the subdirectory "theme 00" and the modified theme resources in the subdirectory "theme 00_1" under the directory "X" into the subdirectory "CT1" (as a third directory) under the theme management service shared directory. Then, the electronic device can mount the subdirectory "CT1" under the theme management service shared directory as the current theme directory of the electronic device (i.e., switch the current theme directory from the subdirectory "CT2" to the subdirectory "CT1"), so that the electronic device displays the user interface based on the theme resources in the subdirectory "CT1" under the theme management service shared directory.

[0073] Based on the above manner, the electronic device does not need to perform multiple compression / decompression operations in the process of modifying the source theme to the destination theme based on the user operation and enabling the destination theme to take effect, which is beneficial to improving the speed of theme taking effect and improving the user experience.

[0074] In some embodiments, the source theme can be a theme stored in the theme management service shared directory (for example, the theme currently taking effect in the electronic device), can be a theme in the theme application shared directory (for example, a theme downloaded or pre-installed by the theme application), or can be a theme stored in other directories, which is not limited herein.

[0075] In some embodiments, the electronic device can also store the association relationship between the source theme and the destination theme (for example, by associating theme names). In this way, the electronic device can copy the same theme resources between the destination theme and the source theme from the storage directory of the source theme based on the association relationship in the process of applying the destination theme modified based on the source theme.

[0076] In some embodiments, one theme can have multiple theme resources, including but not limited to wallpaper resources, icon resources, font resources, screen-off display resources, lock screen interface resources, sound resources, and the like, which are not limited herein.

[0077] In some embodiments, the third directory can also be a directory different from the aforementioned subdirectory "CT1" and subdirectory "CT2", such as other subdirectories newly established in the theme management service shared directory, without limitation.

[0078] In some embodiments, the electronic device can implement the process of the theme configuration method provided by the embodiments of the present application through one or more application programs. For ease of description, the electronic device implements the theme configuration method provided by the embodiments of the present application through a unified desktop application to introduce the technical solutions of the present application.

[0079] Exemplarily, FIG. 4 shows a schematic diagram of changes in files in the directory related to the stored theme in the mobile phone 10 in the process shown in FIG. 2A.

[0080] As shown in FIG. 4, the application layer of the mobile phone 10 can include application programs in the mobile phone 10, such as the settings, theme, unified desktop, and the like. Among them, the settings are used to provide an entry for editing, downloading, modifying, and applying the theme in the mobile phone 10. The user can call the theme, unified desktop, and the like to edit, download, modify, and apply the theme through the user interface provided by the settings application.

[0081] In some embodiments, the theme application provides a downloading function of the theme or theme resource. After the installation of the theme application, the aforementioned theme application shared directory can be configured, and the unified desktop, theme management service, and the like are notified so that the part of the application / service can access the theme or theme resource in the theme application shared directory. The theme application can download the theme from the server in response to the user operation, and store the theme in the theme application shared directory (the compressed file can be stored, or the file after decompression of the compressed file can be stored).

[0082] In some embodiments, the unified desktop application can include a theme editor, a theme application service, a theme engine, a desktop module, a lock screen module, a screen-off display module, and the like. The above modules are software modules that can perform corresponding functions. These modules can be recombined, split, added, or deleted according to actual product needs in order to perform corresponding functions, and the present application does not limit this.

[0083] Among them, the theme editor provides a function of editing the theme resource in the theme.

[0084] The theme application service is used to save the data of the modification of the theme by the user (for example, store the correspondence between each theme and the corresponding source theme, store the modified theme resource (for example, the theme resource different from the source theme of each theme) into the unified desktop sandbox directory), and provide the theme resource to other modules (for example, provide the resource same as the source theme of each theme, and the theme resource different from the source theme of each theme).

[0085] The theme engine is used for displaying part of the theme resources (e.g. wallpaper, etc.) in the theme.

[0086] The desktop module is used for displaying the relevant contents of the desktop of the electronic device (e.g. wallpaper, icons, font, etc. of the desktop).

[0087] The lock screen module is used for displaying the relevant contents when the electronic device is in lock screen mode (e.g. lock screen wallpaper, lock screen clock, etc.).

[0088] The screen-off display module is used for displaying the relevant contents when the electronic device is in screen-off display mode (e.g. pictures, artistic style, clock, etc.).

[0089] It should be understood that in some embodiments, more or less application programs can be included in the application layer, which are not limited herein.

[0090] The service layer of the mobile phone 10 is used for providing services to the application programs in the application layer. In some embodiments, a theme management service can be set in the service layer. The theme management service can set a subdirectory in the theme management service shared directory as the current theme directory in response to the invocation of other modules (e.g. the unified desktop), and send a notification to other modules (e.g. the unified desktop, the theme engine, the desktop module, the lock screen module, the screen-off display module in the unified desktop, etc.) to load the theme resources. In some embodiments, the theme management service can also implement part of the functions of the aforementioned unified desktop, such as copying the display resources in the theme application shared directory and the unified desktop sandbox directory to the subdirectory in the theme management service shared directory. The technical solutions of the present application will be described below in combination with the architecture of the aforementioned unified desktop application and the theme management service.

[0091] Continuing to refer to FIG. 4, after the theme application downloads the compressed files corresponding to the theme 01 and the theme 02, the theme 01.hwt can be decompressed as a subdirectory “theme 01” in the theme application shared directory, and the theme 02.hwt can be decompressed as a subdirectory “theme 02” in the theme application shared directory. That is, the storage directory of the theme 01 is the subdirectory “theme 01” under the theme application shared directory, and the storage directory of the theme 02 is the subdirectory “theme 02” under the theme application shared directory.

[0092] After detecting the operation of the user modifying the wallpaper of theme 02 (as a source theme) from the aforementioned image p1 to image p2 and applying the modified theme 02 (i.e., theme 02_1) (for example, detecting the selection operation of the user on the “Apply” control U16 in the aforementioned theme 02 editing interface P5), the theme editor in the unified desktop application can send a switching notification of switching themes to the theme application service. In response to the switching notification, the theme application service can create a subdirectory “theme 02_1” (as a second directory, and theme 02_1 as a destination theme) under the sandbox directory of the unified desktop application (hereinafter referred to as the unified desktop sandbox directory), and create a subdirectory “wallpaper” in the subdirectory “theme 02_1”, and add the file “p2.jpg” corresponding to image 2 in the subdirectory “wallpaper”.

[0093] Then, since the current theme directory is the subdirectory “CT2” under the theme management service shared directory, the theme application service in the unified desktop application can merge and copy the subdirectory “theme 02” (as a first directory) in the theme application shared directory and the subdirectory “theme 02_1” in the unified desktop sandbox directory into the subdirectory “CT1” (as a third directory) under the theme management service shared directory. Specifically, for the subdirectories that exist in both the subdirectory “theme 02” and the subdirectory “theme 02_1” in the unified desktop sandbox directory (i.e., theme resources that are the same between the source theme and the destination theme), the subdirectory is copied from the subdirectory “theme 02_1” in the unified desktop sandbox directory; for the subdirectories that exist in the subdirectory “theme 02” but do not exist in the subdirectory “theme 02_1” in the unified desktop sandbox directory (i.e., theme resources that are different between the destination theme and the source theme), the subdirectory is copied from the subdirectory “theme 02”. For example, the subdirectory “wallpaper” exists in both the subdirectory “theme 02” and the subdirectory “theme 02_1” in the unified desktop sandbox directory, so the subdirectory “wallpaper” in the subdirectory “theme 02_1” under the unified desktop sandbox directory is copied into the subdirectory “CT1” under the theme management service shared directory. For another example, the theme application service can copy the other subdirectories (and files) in the subdirectory “theme 02” (e.g., directories corresponding to other theme resources such as icons, lock screens, theme description files, etc.) other than the subdirectory “wallpaper” into the subdirectory “CT1” under the theme management service shared directory

[0094] After the copying is completed, the theme application service can send a mounting notification to the theme management service. In response to the mounting notification, the theme management service can mount the subdirectory "CT1" under the theme management service shared directory as the current theme directory, and send a loading notification to the theme application service, the theme engine, the desktop module, the lock screen module, the off-screen display module, etc. in the unified desktop, so that the theme engine, the desktop module, the lock screen module, the off-screen display module, etc. can display the user interface based on the theme resources in the subdirectory "CT1" under the theme management service shared directory.

[0095] In some embodiments, a "save" control (not shown) can also be displayed in the editing interface shown in FIG. 2B. After detecting a selection operation of the "save" control by the user (but not the selection operation of the "apply" control U16), the theme editor in the unified desktop application can send a save notification of saving the theme to the theme application service. In response to the save notification, the theme application service can create a subdirectory "theme02_1" (as a second directory, and theme02_1 as a destination theme) under the sandbox directory of the unified desktop application (hereinafter referred to as the unified desktop sandbox directory), create a subdirectory "wallpaper" in the subdirectory "theme02_1", and add the file "p2.jpg" corresponding to image 2 in the subdirectory "wallpaper".

[0096] Based on FIG. 4, compared with the process shown in FIG. 2B, the file does not need to be compressed or decompressed multiple times, which is beneficial to improve the efficiency from modifying the theme to applying the theme. For example, for the process shown in FIG. 4, from the user clicking the "apply" control U16 to the subdirectory "theme02_1" under the theme management service shared directory being mounted as the current theme directory of the mobile phone 10, the total time is about 0.8 seconds, which is saved by about (5.1-0.8) / 5.1≈85% compared with the process shown in FIG. 2B.

[0097] In addition, compared with the case shown in FIG. 2B, the mobile phone 10 only needs to store the theme resources of theme02_1 that are different from those of theme02 when storing the theme resources of theme02_1, without the need to separately store all the theme resources of theme02_1 (such as the compressed file theme02_1.hwt in FIG. 2B), which is beneficial to save storage space.

[0098] In some embodiments, if the user modifies the same source theme in the theme application shared directory multiple times to obtain multiple different destination themes, the electronic device can store the theme resources of the multiple different destination themes that are different from those of the source theme in the unified desktop application sandbox directory, so that the user can select a historical theme to configure the interface displayed by the electronic device.

[0099] For example, after the phone 10 applies the aforementioned theme 02_1, when the phone 10 detects the user’s operation of clicking the theme control U12 in the aforementioned desktop and personalization interface P2, the theme interface P7 shown in FIG. 5A can be displayed, compared with the aforementioned theme interface P3, the theme interface P7 adds the thumbnail of the theme 02_1 (as the current theme).

[0100] For another example, with reference to FIG. 5B, after the phone 10 detects the user’s operation of selecting the icon C2 control U17 in the aforementioned editing interface P5 and clicking the apply control U16, the icon resource C1 in the theme 02 can be modified to the icon resource C2 to obtain the theme 02_2 and enable the modified theme 02_2. After the theme 02_2 takes effect, with reference to FIG. 5C, when the phone 10 detects the user’s operation of clicking the theme control U12 in the aforementioned desktop and personalization interface P2, the theme interface P8 shown in FIG. 5C can be displayed, compared with the aforementioned theme interface P3, the theme interface P7 adds the thumbnail of the theme 02_2 (as the current theme).

[0101] Specifically, FIG. 5D shows the file change of the relevant directory of the theme resource storage in the phone 10 after detecting the user’s operation of selecting the icon C2 control U17 in the editing interface P5 and clicking the apply control U16.

[0102] With reference to FIG. 5D, after detecting the user’s operation of selecting the icon C2 control U17 in the editing interface P5 and clicking the apply control U16, the unified desktop application can create a subdirectory “theme 02_2” (as the second directory, and the theme 02_2 as the target theme) under the unified desktop sandbox directory, create a subdirectory “icon” in the subdirectory “theme 02_2”, and add the file “C2.png” corresponding to the icon resource C2 in the subdirectory “icon”. Then, since the current theme directory is the subdirectory “CT1” under the theme management service shared directory, the unified desktop application can copy the subdirectories (and files) other than the subdirectory “icon” in the subdirectory “theme 02” (such as the subdirectories and files corresponding to other theme resources such as wallpaper, lock screen, etc.) and the subdirectory “icon” in the subdirectory “theme 02_1” in the unified desktop sandbox directory to the subdirectory “CT2” (as the third directory) under the theme management service shared directory. Secondly, the theme management service can mount the subdirectory “CT2” under the theme management service shared directory as the current theme directory, so that the electronic device can display the user interface based on the theme resources in the subdirectory “CT2” under the theme management service shared directory. For example, with reference to FIG. 5E, the phone 10 can display the desktop interface P9 corresponding to the theme 02_2, in which the wallpaper is the aforementioned image p1, and the shape of the icon is the circular shape corresponding to the icon resource C2.

[0103] In some embodiments, if the user-modified theme is a theme based on one of the themes in the theme application sharing directory (e.g., the aforementioned theme 01_1, theme 02_2), the phone 10 can create a new theme or overwrite the user-modified theme under the unified desktop sandbox directory according to the user operation.

[0104] For example, FIG. 6A illustrates changes in the files in the directory storing themes in the phone 10 during the process of modifying and applying the theme 02_2 (the current theme) according to some embodiments of the present application.

[0105] As shown in FIG. 6A, after detecting the user operation of modifying the wallpaper of the theme 02_2 from the image p1 to the image p2 (e.g., the operation of clicking the control U18) in the editing interface P10 and the operation of applying the modified theme (e.g., the operation of clicking the apply control U19), the phone 10 can display the prompt box U20 to prompt the user “whether to keep the theme 02_2”.

[0106] With reference back to FIG. 6A, after detecting the user operation of clicking the “Yes” control in the prompt box U20 (i.e., the user indicates to keep the theme 02_2 and create a new theme (e.g., theme 02_3)), the phone 10 can create a subdirectory “theme 02_3” in the unified desktop sandbox directory, create a subdirectory “wallpaper” and a subdirectory “icon” in the subdirectory “theme 02_3”, and store the file “p2.jpg” corresponding to the image p2 in the subdirectory “wallpaper” in the subdirectory “theme 02_3” and store the file “C2.png” corresponding to the icon C2 in the subdirectory “icon” in the subdirectory “theme 02_3”. Then, since the current theme directory is the subdirectory “CT2” under the theme management service sharing directory, the phone 10 can copy the subdirectories (and files) other than the subdirectory “wallpaper” in the subdirectory “CT2” in the theme management service sharing directory (e.g., the subdirectories and files corresponding to the theme resources of the icons, lock screen, etc.) to the subdirectory “CT1” (as a third directory) in the theme management service sharing directory, and copy the subdirectory “icon” in the subdirectory “theme 02_3” in the unified desktop sandbox directory to the subdirectory “CT1” in the theme management service sharing directory. Next, the phone 10 can set the subdirectory “CT1” in the unified desktop sandbox directory as the current theme directory, so that the phone 10 can display the interface based on the theme resources in the subdirectory “CT1” in the unified desktop sandbox directory. For example, with reference to FIG. 6B, the phone 10 can display the desktop interface P11 corresponding to the theme 02_3, in which the wallpaper is switched from the aforementioned image p1 to the image p2, relative to the desktop interface P9.

[0107] After application of theme 02_3, if the phone 10 detects again the operation of the user displaying the stored theme (for example, the user selects the theme control U12 in the aforementioned desktop and personalization interface P2), the theme interface P12 shown in FIG. 6C can be displayed, which includes the thumbnails of theme 01, theme 02, theme 02_1, theme 02_2, and theme 02_3. It should be noted that, corresponding to the case in which the user selects the "Yes" control in the prompt box U20 in FIG. 6A, the phone 10 can also copy the theme resources (for example, the subdirectories and files corresponding to the theme resources of icons, lock screen, etc.) in the subdirectory "theme 02" of the theme application sharing directory, except for the subdirectory "wallpaper" and the subdirectory "icon", and the subdirectory "wallpaper" and the subdirectory "icon" in the subdirectory "theme 02_3" of the unified desktop sandbox directory, into the subdirectory "CT1" in the theme management service sharing directory, which is not limited herein.

[0108] With continued reference to FIG. 6A, after detecting the operation of the user clicking the "No" control in the prompt box U20 (i.e., the user indicates not to retain theme 02_2 and directly modifies theme 02_2), the phone 10 can create a new subdirectory "wallpaper" in the subdirectory theme 02_2 of the unified desktop sandbox directory, and store the file "p2.jpg" corresponding to the image p2 in the newly created subdirectory "wallpaper". Then, since the current theme directory is the subdirectory "CT2" under the theme management service sharing directory, the phone 10 can copy the subdirectories in the subdirectory "CT2" in the theme management service sharing directory, except for the subdirectory "wallpaper", to the subdirectory "CT1" in the theme management service sharing directory, and copy the subdirectory "wallpaper" in the subdirectory "theme 02_2" in the unified desktop sandbox directory to the subdirectory "CT1" in the theme management service sharing directory. Next, the phone 10 can mount the subdirectory "CT1" in the unified desktop sandbox directory as the current theme directory, so that the phone 10 can display the interface based on the theme resources in the subdirectory "CT1" in the unified desktop sandbox directory. For example, referring to FIG. 6B, the phone 10 can display the desktop interface P11 corresponding to theme 02_3, in which the wallpaper is switched from the aforementioned image p1 to the image p2, compared to the desktop interface P9.

[0109] After application of the modified theme 02_2, if the phone 10 detects again the operation of the user displaying the stored theme (for example, the user selects the theme control U12 in the aforementioned desktop and personalization interface P2), the theme interface P13 shown in FIG. 6D can be displayed, which includes theme 01, theme 02, theme 02_1, and theme 02_2. Compared to the aforementioned theme interface P8, the thumbnails also correspondingly change due to the change of the wallpaper of theme 02_2.

[0110] It should be noted that, corresponding to the case that the user selects the "No" control in the prompt box U20 in FIG. 6A, the mobile phone 10 can also copy the theme resources in the subdirectory "theme 02" of the theme application sharing directory, except for the subdirectory "wallpaper" and the subdirectory "icon", and the subdirectory "wallpaper" and the subdirectory "icon" in the subdirectory "theme 02_2" of the unified desktop sandbox directory into the subdirectory "CT1" in the theme management service sharing directory, which is not limited herein.

[0111] The technical solutions of the present application will be described below in combination with FIG. 7 and FIG. 8.

[0112] Exemplarily, FIG. 7 shows a flow diagram of a theme configuration method according to some embodiments of the present application. The method can be applied to the scenario that a user modifies a source theme to a destination theme and applies the destination theme. The execution subject of the method can be an electronic device, for example, the aforementioned mobile phone 10. As shown in FIG. 7, the theme configuration method comprises the following steps:

[0113] S701, detecting that the user modifies a source theme to a destination theme and applies the destination theme, and storing modified theme resources in a second directory corresponding to the destination theme in a unified desktop sandbox directory.

[0114] Exemplarily, the operation that the user modifies the source theme to the destination theme and applies the destination theme can be the operation that the user modifies part of the theme resources in the source theme and then applies the destination theme. For example, the operation that the user clicks the application control U16 in the scenario shown in FIG. 2A and FIG. 5B, the operation that the user clicks the application control U19 in the scenario shown in FIG. 6A, and the like.

[0115] In other embodiments, the operation that the user modifies the source theme to the destination theme and applies the destination theme can also be other operations, which are not limited herein.

[0116] Exemplarily, for the scenario shown in FIG. 2A, referring to FIG. 4, the source theme can be theme 02, the destination theme can be theme 02_1, the first directory can be the subdirectory "theme 02" under the theme directory sharing directory, the second directory can be the subdirectory theme 02_1 in the unified desktop sandbox directory, and the modified resource can be the file "p2.jpg" in the subdirectory "wallpaper".

[0117] Exemplarily, for the scenario shown in FIG. 5B, referring to FIG. 5D, the source theme can be theme 02, the destination theme can be theme 02_2, the first directory can be the subdirectory "theme 02" under the theme application sharing directory, the second directory can be the subdirectory theme 02_2 in the unified desktop sandbox directory, and the modified resource can be the file "C2.png" in the subdirectory "icon".

[0118] Exemplarily, for the case shown in FIG. 6A, the source theme can be theme 02_2, the destination theme can be theme 02_3 (or theme 02_2), the first directory can be the subdirectory "theme 02_2" in the theme management service shared directory, the second directory can be the subdirectory "theme 02_3" (or the subdirectory "theme 02_2") in the unified desktop sandbox directory, and the modified resource can be the file "p2.jpg" in the subdirectory "wallpaper".

[0119] In some embodiments, the storage path of the modified theme resource in the first directory is the same as the storage path of the theme resource corresponding to the modified theme resource in the second directory. For example, for the case shown in FIG. 2A, the storage path of the file p2.jpg in the subdirectory "theme 02_2" in the unified desktop sandbox directory is " / wallpaper / ", and the storage path of the file p1.jpg in the subdirectory "theme 02" under the theme application shared directory is also " / wallpaper / ".

[0120] S702, copying the modified theme resource in the second directory and the unmodified theme resource in the first directory to a third directory.

[0121] After copying the modified resource to the second directory, the mobile phone 10 can copy the modified theme resource in the second directory and the unmodified theme resource in the first directory to a non-current theme directory (third directory) in the theme management service shared directory.

[0122] For example, for the case shown in FIG. 2A, referring to FIG. 4, since the current theme directory is the subdirectory "CT2" in the theme management service shared directory, the mobile phone 10 can copy the theme resources in the subdirectory "theme 02" in the theme application shared directory except the subdirectory "wallpaper", and the subdirectory "wallpaper" in the subdirectory "theme 02_1" in the unified desktop sandbox directory to the subdirectory "CT1" (as the third directory) under the theme management service shared directory.

[0123] For example, for the case shown in FIG. 5B, referring to FIG. 5D, since the current theme directory is the subdirectory "CT1" in the theme management service shared directory, the mobile phone 10 can copy the theme resources in the subdirectory "theme 02" in the theme application shared directory except the subdirectory "icon", and the subdirectory "icon" in the subdirectory "theme 02_2" in the unified desktop sandbox directory to the subdirectory "CT2" (as the third directory) under the theme management service shared directory.

[0124] For example, for the case shown in FIG. 6A, since the current theme directory is the subdirectory "CT2" in the theme management service shared directory, the mobile phone 10 can copy the theme resources in the subdirectory "CT2" in the theme management service shared directory except the subdirectory "wallpaper", and the subdirectory "wallpaper" in the subdirectory "theme 02_3" or the subdirectory "theme 02_2" in the unified desktop sandbox directory to the subdirectory "CT1" under the theme management service shared directory (as a third directory).

[0125] In S703, the third directory is mounted as the current theme directory, and an interface is displayed based on the theme resources in the third directory.

[0126] After the mobile phone 10 copies all the theme resources corresponding to the target theme to the third directory, the mobile phone 10 can mount the third directory as the current theme directory, and display an interface based on the theme resources in the third directory. In some embodiments, the interface displayed by the mobile phone 10 can include one or more of a desktop interface, a lock screen interface, an off-screen display interface, and can also include other interfaces that need to use theme resources, such as an interface of an application, etc., which are not limited herein.

[0127] For example, for the case shown in FIG. 2A, the mobile phone 10 can mount the subdirectory "CT1" in the theme management service shared directory as the current theme directory. For the cases shown in FIG. 5B and FIG. 5D, the mobile phone 10 can mount the subdirectory "CT2" in the theme management service shared directory as the current theme directory. For the case shown in FIG. 6A, the mobile phone 10 can mount the subdirectory "CT1" in the theme management service shared directory as the current theme directory.

[0128] It should be noted that S701 to S703 can be performed by the same or different application, service, module in the mobile phone 10, which is not limited herein. For example, S701 and S702 can be performed by the aforementioned unified desktop application, and S703 can be performed by the aforementioned theme management service, which is not limited herein.

[0129] Based on the above method, in the process of modifying the source theme to the target theme and enabling the target theme based on the user operation, the mobile phone 10 does not need to decompress or compress multiple times, thereby improving the efficiency of theme modification and enabling in the mobile phone 10.

[0130] Based on the foregoing embodiments, some of the themes in the mobile phone 10 are based on the same theme modification (for example, the foregoing theme 02_1, theme 02_2, and theme 02_3 are all based on modification of the theme 02), and the theme resources corresponding to the themes are not all stored in one directory, but the theme resources of different themes of the same theme (i.e., the foregoing modified theme resources) are stored in one directory. In the process of enabling the themes to take effect, the mobile phone 10 can combine and copy the unmodified theme resources in the storage directory of the same theme and the modified theme resources in the directory storing the themes to a directory (denoted as a third directory) in the theme management service shared directory, and mount the third directory as the current theme directory.

[0131] Exemplarily, FIG. 8 shows a flowchart of a theme configuration method according to some embodiments of the present application. The execution subject of the method is the mobile phone 10. As shown in FIG. 8, the theme configuration method includes the following steps:

[0132] S801, detecting an operation of applying a first theme, wherein the first theme includes first theme resources same as second theme resources and second theme resources different from the second theme resources, and the theme resources of the second theme are stored in a first directory and the second theme resources are stored in a second directory.

[0133] When the mobile phone 10 detects the operation of applying the first theme, the theme configuration method provided in the embodiments of the present application can be triggered.

[0134] For example, the mobile phone 10 can store the association relationship of each theme with other themes, which indicates whether a theme is obtained by modifying part of the theme resources of other themes. When the mobile phone 10 detects the operation of applying the first theme, the mobile phone 10 can determine whether the first theme is obtained by modifying other themes based on the association relationship, and if it is determined that the first theme is obtained by modifying other themes (the second theme), the theme configuration method provided in the embodiments of the present application is triggered.

[0135] Exemplarily, with reference to FIG. 9, in the aforementioned theme interface P8 including the thumbnails of theme 01, theme 02, theme 02_1 and theme 02_2, upon detecting an operation of the user selecting the thumbnail U20 of theme 02_1 (as the first theme), the preview interface P14 of theme 02_1 can be displayed. Upon detecting an operation of the user clicking the application control U21 in the preview interface P14, the mobile phone 10 can detect an operation of the user applying the first theme. In this case, with reference to the aforementioned FIG. 4, the second theme can be theme 02, the first directory can be the subdirectory "theme 02" under the theme application sharing directory, the second directory can be the subdirectory "theme 02_1" under the unified desktop sandbox directory, the first theme resource can be the theme resource in the first directory except the subdirectory "wallpaper", and the second theme resource can be the theme resource in the subdirectory "wallpaper" under the second directory.

[0136] In some embodiments, the operation of applying the first theme can also not be triggered by the user, but triggered by the mobile phone 10 according to its own logic. For example, the mobile phone 10 can provide a function of automatically switching themes according to a timer or other conditions (such as the current weather, the current time, the current location, the use period of the theme, etc.), and upon meeting the switching condition of the first theme, the mobile phone 10 can detect the operation of applying the first theme.

[0137] S802, copying the second theme resource in the second directory and the first theme resource in the first directory to a third directory.

[0138] Upon detecting the operation of the user applying the first theme, the mobile phone 10 can copy the second theme resource in the second directory and the first theme resource in the first directory to a non-current theme directory (third directory) in the theme management service sharing directory.

[0139] For example, for the case shown in FIG. 9, upon detecting the operation of the user clicking the application control U21, if the current theme directory is the subdirectory "CT1" in the theme management service sharing directory, the mobile phone 10 can copy the theme resource in the subdirectory "theme 02" under the aforementioned theme application sharing directory except the subdirectory "wallpaper", and the subdirectory "wallpaper" in the subdirectory "theme 02_1" under the unified desktop sandbox directory to the subdirectory "CT2" (as the third directory) in the theme management service sharing directory. If the current theme directory is the subdirectory "CT2" in the theme management service sharing directory, the mobile phone 10 copies the theme resource in the subdirectory "theme 02" under the aforementioned theme application sharing directory except the subdirectory "wallpaper", and the subdirectory "wallpaper" in the subdirectory "theme 02_1" under the unified desktop sandbox directory to the subdirectory "CT1" (as the third directory) in the theme management service sharing directory.

[0140] S803, mounting the third directory as the current theme directory, and displaying the interface based on the theme resources in the third directory.

[0141] After copying the second theme resources in the second directory and the first theme resources in the first directory to the third directory, the mobile phone 10 can mount the third directory as the current theme directory, so that the mobile phone 10 displays the interface based on the theme resources in the third directory.

[0142] It should be noted that the steps S801 to S803 can be executed by the same or different application programs, services, modules in the mobile phone 10, which are not limited herein. For example, the steps S801 and S802 can be executed by the aforementioned unified desktop application, and the step S803 can be executed by the aforementioned theme management service, which are not limited herein.

[0143] Based on the above method, in the process of enabling the first theme to take effect, the mobile phone 10 does not need to decompress or compress multiple times, thereby improving the efficiency of the theme taking effect in the mobile phone 10.

[0144] The storage form of the theme resources will be introduced below.

[0145] In some embodiments, the theme resources can be classified into multiple categories, such as preview resources (resources required when displaying a preview interface of a theme, such as wallpaper, font, etc.), lock screen resources (resources required when displaying an interface when the electronic device is in a lock screen state, such as image, font, icon, etc.), screen-off display resources (resources required when displaying an interface when the electronic device is in a screen-off display state, such as image, font, icon, etc.), home page resources (such as resources required by the desktop of the electronic device, such as wallpaper, icon, font, image, etc.), icon resources (such as icon images or icon files of application programs, services, modules, etc.), font resources (such as font files required when displaying text by the electronic device), etc., and the theme resources of a main category are stored in a subdirectory under the storage directory of the theme (or a file under the storage directory).

[0146] Exemplarily, FIG. 10 shows a storage form of theme resources according to some embodiments of the present application.

[0147] The storage directory of the theme includes sub-directories of preview, lock screen, screen-off, home page, icon, and font, respectively used for storing preview resources, lock screen resources, screen-off display resources, home page resources (also referred to as desktop resources), icon resources, and font resources. The storage directory of the theme further includes a description file (for example, a description file.json) corresponding to the theme, used for recording description information of the theme. In addition, the sub-directory "preview" includes a sub-directory "base" (used for storing wallpaper and image files required for preview) and a configuration file (for example, a configuration.json) of the preview resources, used for recording an organization form (for example, an arrangement manner and animation of the theme resources) of the theme resources used when displaying a theme preview interface; the sub-directory "lock screen" includes a sub-directory "base", a configuration file (for example, a configuration.json) of the lock screen resources, used for recording an organization form (for example, an arrangement manner and animation of the theme resources) of the theme resources used when displaying a lock screen interface, and a sub-directory "resource" included in the sub-directory "base", the sub-directory "resource" including wallpaper and image files corresponding to the lock screen of the lock screen resources; the sub-directory "screen-off" includes a sub-directory "base", a configuration file (for example, a configuration.json) of the screen-off display resources, used for recording an organization form (for example, an arrangement manner and animation of the theme resources) of the theme resources used when displaying a screen-off display interface, and a sub-directory "resource" included in the sub-directory "base", the sub-directory "resource" including image files in the screen-off display resources; the sub-directory "home page" includes a sub-directory "base", a configuration file (for example, a configuration.json) of the home page resources, used for recording an organization form (for example, an arrangement manner and animation of the theme resources) of the theme resources used when displaying a desktop interface, a sub-directory "resource" included in the sub-directory "base", and a script file (for example, a script.json) of the desktop, the sub-directory "resource" including wallpaper and image files corresponding to the desktop in the home page resources; the sub-directory "icon" includes icons or icon files required for displaying an interface of an electronic device; and the sub-directory "font" includes font files required for displaying text on the electronic device.

[0148] Based on the organization form of the theme resources, after the theme application obtains the theme from the server or another device, the theme application can decompress a compressed file of the theme into a sub-directory (as a storage directory of the theme) in the shared directory of the theme application.

[0149] It should be noted that the storage form of the theme resources shown in FIG. 10 is only an example, and in some other embodiments, the theme resources can be classified in other forms and can be organized in other forms, which are not limited herein.

[0150] In the following, the technical solutions of the present application are introduced in combination with the software architecture shown in FIG. 10 and the storage form of the theme resources.

[0151] Firstly, a scheme that the mobile phone 10 modifies the third theme resource in the second theme to the second theme resource to obtain the first theme based on user operation, and enables the first theme to take effect, is introduced. Exemplarily, FIG. 11 shows a schematic diagram of an interaction flow of a theme configuration method according to some embodiments of the present application. As shown in FIG. 11, the interaction flow includes the following steps:

[0152] S1101, the theme editor modifies the third theme resource in the second theme to the second theme resource to obtain the first theme according to user operation.

[0153] The theme editor can modify the theme stored in the mobile phone 10 according to user operation.

[0154] Exemplarily, for the case shown in FIG. 2A, the unified desktop application can call the theme editor after detecting the operation that the user clicks the “customization” control U14. The theme editor can display the editing interface P5 shown in FIG. 2A on the mobile phone 10, and modify the wallpaper “p1.jpg” (as the third theme resource) in the theme 02 (as the second theme) to the wallpaper “p2.jpg” (as the second theme resource) to obtain the theme 02_1 (as the first theme) according to user operation.

[0155] Exemplarily, for the case shown in FIG. 5A, the unified desktop application can call the theme editor after detecting the operation that the user clicks the “customization” control U14 shown in FIG. 2A. The theme editor can display the editing interface P5 shown in FIG. 5B on the mobile phone 10, and modify the icon C1 (as the third theme resource) in the theme 02 (as the second theme) to the icon C2 (as the second theme resource) to obtain the theme 02_2 (as the first theme) according to user operation.

[0156] In some embodiments, the third theme resource can be one or more, and the corresponding second resource is the same in number and form as the third theme resource.

[0157] For example, for the case shown in FIG. 2A, referring to FIG. 12, the mobile phone 10 can display the selection control U30 shown in FIG. 12 including the options “set as lock screen”, “set as desktop” and “set at the same time” after detecting the operation of the application control U16 in the aforementioned editing interface P5 by the user. In the case where the user selects the “set as lock screen” option, the first theme resource can include the wallpaper in the lock screen state; in the case where the user selects the “set as desktop” option, the first theme resource can include the wallpaper in the desktop state; in the case where the user selects the “set at the same time” option, the first theme resource can include the wallpaper in the lock screen state and the wallpaper in the desktop state.

[0158] S1102, the theme application service detects an operation of applying the first theme, and stores the second theme resource in the unified application sandbox directory.

[0159] After detecting the operation of applying the first theme, the theme application service can store the second theme resource in the unified application sandbox directory.

[0160] Exemplarily, the theme application service can establish a second directory corresponding to the first theme in the unified application sandbox directory, and establish one or more subdirectories with the same storage path as the third theme resource in the storage directory of the second theme according to the storage path of the third theme resource in the storage directory of the second theme. Then the second theme resource is stored in the established subdirectories, so that the storage path of the second theme resource relative to the second directory is the same as the storage path of the third theme resource relative to the storage directory of the second theme.

[0161] In some embodiments, the process of storing the second theme resource in the unified application sandbox directory by the theme application service can include the following steps:

[0162] S1102a, the theme application service establishes a second directory in the unified application sandbox directory.

[0163] Exemplarily, the theme application service establishes the second directory in the unified application sandbox directory according to the name of the second theme or the name of the storage directory of the second theme (for example, adding different letters, symbols or numbers after the name of the storage directory of the second theme to obtain the name of the second directory).

[0164] In some embodiments, if the name of the storage of the second theme is X, the theme application service can add numbers after X according to the number of themes obtained by modifying the second theme to obtain the name of the second directory. For example, in the case of modifying the first theme according to the second theme for the kth time, the name of the second directory can be X_k. It should be understood that the above naming method of the second directory is only an example, and the naming rule of the second directory is not limited in the embodiments of the present application.

[0165] For example, for the case shown in FIG. 2A, the theme application service can establish a subdirectory "theme02_1" (as a second directory) in the unified application sandbox directory. For example, for the case shown in FIG. 5B, the theme application service can establish a subdirectory "theme02_2" (as a second directory) in the unified application sandbox directory. For example, for the case of user selecting not to retain theme02_2 in FIG. 6A, the theme application service can establish a subdirectory "theme02_2" (as a second directory) in the unified application sandbox directory.

[0166] S1102b, the theme application service establishes a subdirectory of the theme resource category corresponding to the second theme resource in the second directory.

[0167] The subject application service, after establishing the second directory, establishes a subdirectory of the subject resource category corresponding to the second subject resource in the second directory (which can also be established according to the storage path of the third subject resource relative to the storage directory of the second subject), so that the storage path of the second subject resource relative to the second directory is the same as the storage path of the third subject resource relative to the storage directory of the second subject.

[0168] For example, for the case shown in FIG. 2A, if the storage form of the subject resource adopts the storage form shown in FIG. 10, and the corresponding user selects “set as desktop” in the aforementioned selection control U30, the second subject resource corresponds to the wallpaper in the home page resource, and the storage path of the wallpaper relative to the subject storage directory is “ / home / base / resource”. Referring to FIG. 13A, the subject application service can establish a subdirectory “home” in the second directory (subdirectory “subject 02_1”), establish a subdirectory “base” in the established subdirectory “home”, and establish a subdirectory “resource” (as a subdirectory of the subject resource category corresponding to the second subject resource) in the established subdirectory “base”.

[0169] In some embodiments, for the case shown in FIG. 2A, if the storage form of the subject resource adopts the storage form shown in FIG. 10, and the corresponding user selects “set as lock screen” in the aforementioned selection control U30, the second subject resource corresponds to the wallpaper in the lock screen state (for example), and the storage path of the wallpaper relative to the subject storage directory is “ / lock / base / resource”. The subject application service can establish a subdirectory “lock” in the second directory (subdirectory “subject 02_1”), establish a subdirectory “base” in the established subdirectory “lock”, and establish a subdirectory “resource” (as a subdirectory of the subject resource category corresponding to the second subject resource) in the established subdirectory “base”.

[0170] In some embodiments, for the case shown in FIG. 2A, if the storage form of the theme resources is the storage form shown in FIG. 10, the second theme resource corresponds to the wallpaper in the lock screen state and the wallpaper in the home page resource, and the storage path of the wallpaper in the lock screen state relative to the theme storage directory is " / lock screen / base / resource", and the storage path of the wallpaper in the desktop state relative to the theme storage directory is " / home / base / resource". The theme application service can establish a subdirectory "lock screen" and a subdirectory "home" in the second directory (subdirectory "theme 02_1"), establish a subdirectory "base" in the established subdirectory "lock screen" and subdirectory "home" respectively, and establish a subdirectory "resource" (as a subdirectory of the theme resource category corresponding to the second theme resource) in the subdirectory "base" established in the subdirectory "lock screen" and in the subdirectory "base" established in the subdirectory "home" respectively.

[0171] For example, for the case shown in FIG. 5B, if the storage form of the theme resources is the storage form shown in FIG. 10, the second theme resource corresponds to the icon resource, and the storage path relative to the theme storage directory is " / icon / ". Referring to FIG. 13B, the theme application service can establish a subdirectory "wallpaper" (as a subdirectory of the theme resource category corresponding to the second theme resource) in the second directory (subdirectory "theme 02_2").

[0172] For example, for the case shown in FIG. 2A and FIG. 4, the storage path of the third theme resource in the storage directory of the second theme is " / wallpaper / ", and the theme application service can newly establish a subdirectory "wallpaper" (as a subdirectory of the theme resource category corresponding to the second theme resource) in the second directory.

[0173] For example, for the case shown in FIG. 5B and FIG. 5D, the storage path of the third theme resource in the storage directory of the second theme is " / icon / ", and the theme application service can newly establish a subdirectory "icon" (as a subdirectory of the theme resource category corresponding to the second theme resource) in the second directory.

[0174] S1102c, the theme application service stores the second theme resource in the established subdirectory of the theme resource category corresponding to the second theme resource.

[0175] The theme application service stores the second theme resource in the established directory of the theme resource category corresponding to the second theme resource.

[0176] For example, for the case shown in FIG. 2A and FIG. 13A, the theme application service can store the file "p2.jpg" in the subdirectory "unified desktop sandbox directory / theme 02_1 / home / base / resource". For another example, for the case shown in FIG. 5B and FIG. 13B, the theme application service can store the file "C2.png" in the subdirectory "unified desktop sandbox directory / theme 02_2 / icon / ". For another example, for the case shown in FIG. 2A and FIG. 4, the theme application service can store the file "p2.jpg" in the subdirectory "unified desktop sandbox directory / theme 02_1 / wallpaper". For another example, for the case shown in FIG. 5B and FIG. 5D, the theme application service can store the file "C2.png" in the subdirectory "unified desktop sandbox directory / theme 02_1 / icon".

[0177] In some embodiments, in the case that the user selects "set as lock screen" in the aforementioned selection control U30, the theme application service can store the file "p2.jpg" in the subdirectory "unified desktop sandbox directory / theme 02_1 / lock / base / resource".

[0178] In some embodiments, in the case that the user selects "set at the same time" in the aforementioned selection control U30, the theme application service can store the file "p2.jpg" in the subdirectory "unified desktop sandbox directory / theme 02_1 / lock / base / resource" and the subdirectory "unified desktop sandbox directory / theme 02_1 / home / base / resource" at the same time.

[0179] S1102d, the theme application service generates a configuration file in the subdirectory of the established theme resource category corresponding to the second theme resource.

[0180] After storing the second theme resource into the subdirectory of the theme resource category corresponding to the second theme resource, the theme application service can generate a configuration file in the subdirectory of the theme resource category corresponding to the second theme resource, which is the configuration file of the theme resource of the category corresponding to the second theme resource, and is used to record the organization form (such as the arrangement mode of the theme resource, animation, etc.) and other contents of the theme resource. For example, if the second theme resource is the wallpaper of the desktop, the configuration file can be the configuration file "configuration.json" in the subdirectory "home" shown in FIG. 10.

[0181] In some embodiments, in the case that the user selects "set as desktop" in the aforementioned selection control U30, the theme application service can generate a configuration file in the subdirectory "unified desktop sandbox directory / theme 02_1 / home / base / resource".

[0182] In some embodiments, in the case that the user selects "set as lock screen" in the aforementioned selection control U30, the theme application service can generate a configuration file in the subdirectory "unified desktop sandbox directory / theme 02_1 / lock screen / base / resources".

[0183] In some embodiments, in the case that the user selects "set at the same time" in the aforementioned selection control U30, the theme application service can generate configuration files in the subdirectory "unified desktop sandbox directory / theme 02_1 / lock screen / base / resources" and the subdirectory "unified desktop sandbox directory / theme 02_1 / home / base / resources", respectively.

[0184] In some embodiments, step S1102 is optional.

[0185] S1103, the theme application service copies the second theme resource in the second directory and other theme resources in the storage directory of the second theme except the third theme resource into the third directory of the theme management service shared directory.

[0186] The theme application service copies the second theme resource in the second directory and other theme resources in the storage directory of the second theme except the third theme resource into the third directory of the theme management service shared directory, wherein the third directory is a non-current directory under the theme management service shared directory.

[0187] For example, for the case shown in FIG. 2A and FIG. 4, since the current theme directory is the subdirectory "CT2" in the theme management service shared directory, the theme application service can copy the other theme resources in the subdirectory "theme 02" in the theme application shared directory except the subdirectory "wallpaper", and the subdirectory "wallpaper" in the subdirectory "theme 02_1" in the unified desktop sandbox directory into the subdirectory "CT1" (as the third directory) under the theme management service shared directory.

[0188] For example, for the case shown in FIG. 5B and FIG. 5D, since the current theme directory is the subdirectory "CT1" in the theme management service shared directory, the mobile phone 10 can copy the other theme resources in the subdirectory "theme 02" in the theme application shared directory except the subdirectory "icon", and the subdirectory "icon" in the subdirectory "theme 02_2" in the unified desktop sandbox directory into the subdirectory "CT2" (as the third directory) under the theme management service shared directory.

[0189] For example, for the case shown in FIG. 2A and FIG. 13A, or the case shown in FIG. 5B and FIG. 13B, since the current theme directory is the subdirectory "CT1" in the theme management service shared directory, the theme application service can copy the theme resources in the subdirectory "theme02" in the theme application shared directory except the subdirectory "home page", and the subdirectory "home page" in the subdirectory "theme02_1" in the unified desktop sandbox directory, to the subdirectory "CT2" (as the third directory) under the theme management service shared directory.

[0190] In some embodiments, for the case that the user selects "set as lock screen" in the aforementioned selection control U30, since the current theme directory is the subdirectory "CT1" in the theme management service shared directory, the theme application service can copy the theme resources in the subdirectory "theme02" in the theme application shared directory except the subdirectory "lock screen", and the subdirectory "lock screen" in the subdirectory "theme02_1" in the unified desktop sandbox directory, to the subdirectory "CT2" (as the third directory) under the theme management service shared directory.

[0191] In some embodiments, for the case that the user selects "set at the same time" in the aforementioned selection control U30, since the current theme directory is the subdirectory "CT1" in the theme management service shared directory, the theme application service can copy the theme resources in the subdirectory "theme02" in the theme application shared directory except the subdirectories "lock screen" and "home page", and the subdirectories "lock screen" and "home page" in the subdirectory "theme02_1" in the unified desktop sandbox directory, to the subdirectory "CT2" (as the third directory) under the theme management service shared directory.

[0192] S1104, the theme application service sends a theme mounting notification to the theme management service.

[0193] After the theme application service copies the second theme resources in the second directory and the theme resources in the storage directory of the second theme except the third theme resources to the third directory of the theme management service shared directory, the theme application service can send a theme mounting notification to the theme management service to instruct the theme management service to mount the third directory as the current theme directory.

[0194] In some embodiments, the theme mounting notification can include the identification of the third directory, such as the storage path, the name, etc.

[0195] S1105, the theme management service mounts the third directory as the current theme directory.

[0196] The theme management service mounts the third directory as the current theme directory in response to the theme mounting notification.

[0197] S1106, the theme management service sends a mounting completion notification to the theme application service.

[0198] After the theme management service mounts the third directory as the current theme directory, the theme management service can send a mounting completion notification to the theme application service (and can also include other services or modules) to enable the theme engine, the desktop module, the lock screen module, the off-screen display module, and the like of the theme management service to reload the corresponding display interfaces based on the theme resources in the third directory.

[0199] Based on the above method, the phone 10 does not need to decompress or compress multiple times in the process of enabling the first theme to take effect, thereby improving the efficiency of theme taking effect in the phone 10.

[0200] It should be noted that the execution subject of each step in FIG. 11 is only an example, and in other embodiments, different steps can use different execution subjects than those in FIG. 11, which is not limited herein. For example, step S1103 can be executed by the theme management service, and steps S1101 to S1103 can be executed by other modules in the unified desktop, and the like.

[0201] Embodiments of the present application also provide a program product, which, when executed on an electronic device, can enable the electronic device to implement the theme configuration method provided by the above embodiments.

[0202] Embodiments of the present application also provide a readable storage medium, which stores one or more programs / instructions, and the one or more programs / instructions, when executed by an electronic device, enable the electronic device to implement the theme configuration method provided by the above embodiments.

[0203] Further, FIG. 14 shows a structural schematic diagram of a phone 10 according to some embodiments of the present application.

[0204] As shown in FIG. 14, the mobile phone 10 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0205] The processor 110 can include one or more processing units, for example: the processor 110 can include a central processing unit (CPU), an AP, a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a microcontroller unit (MCU), a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), a field programmable gate array (FPGA), etc. In some embodiments, different processing units can be independent devices, or can be integrated in one or more processors.

[0206] In some embodiments, the processor 110 can be configured to execute one or more programs / instructions corresponding to the subject configuration method provided in the foregoing embodiments.

[0207] The charging management module 140 is configured to receive charging input from a charger. The charging management module 140 can also supply power to the electronic device through the power management module 141 while charging the battery 142.

[0208] The power management module 141 is configured to connect the battery 142 and the charging management module 140 to the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like.

[0209] The wireless communication function of the mobile phone 10 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, and the like.

[0210] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals.

[0211] The mobile communication module 150 can provide a solution for wireless communication including 2G / 3G / 4G / 5G and the like applied to the mobile phone 10. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and the like on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 1. In some embodiments, at least part of the function modules of the mobile communication module 150 can be arranged in the processor 110. In some embodiments, at least part of the function modules of the mobile communication module 150 and at least part of the modules of the processor 110 can be arranged in the same device.

[0212] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity network), bluetooth (BT), global navigation satellite system (GNSS), near field communication (NFC), infrared (IR) technology, and the like applied to the mobile phone 10. The wireless communication module 160 can be one or more devices integrated with at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on the signals, and radiate the signals as electromagnetic waves through the antenna 2.

[0213] The display function of the mobile phone 10 is implemented by the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs that execute program instructions to generate or change display information.

[0214] The display screen 194 is used to display images.

[0215] The camera 193 is used to capture still images or videos.

[0216] The external memory interface 120 can be used to connect an external memory card. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, application data of an application program is saved in the external memory card.

[0217] The internal memory 121 can be used to store one or more programs and corresponding data. The internal memory 121 can include a program storage area and a data storage area. In some embodiments, the program storage area can store an operating system, application programs required by at least one function, etc., such as programs / instructions corresponding to the theme configuration method provided in the foregoing embodiments. The data storage area can store data created during use of the mobile phone 10, such as application data of an application program, for example, compressed files corresponding to a theme, theme resources, etc. In addition, the internal memory 121 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage memory, etc. The processor 110 implements various functional applications of the mobile phone 10 by running one or more programs stored in the internal memory 121 and / or one or more programs stored in a memory disposed in the processor 110.

[0218] The audio function of the mobile phone 10 can be implemented by the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, etc.

[0219] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals.

[0220] The speaker 170A, also known as a "loudspeaker", is used to convert an audio electrical signal into a sound signal.

[0221] The receiver 170B, also known as a "earpiece", is used to convert an audio electrical signal into a sound signal.

[0222] Microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals.

[0223] Earphone interface 170D is used to connect wired earphones.

[0224] Pressure sensor 180A is used to sense pressure signals, which can convert pressure signals into electrical signals. In some embodiments, pressure sensor 180A can be provided on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. Capacitive pressure sensors can include at least two parallel plates made of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The phone 10 determines the intensity of the pressure according to the change of the capacitance. When a touch operation is applied to the display screen 194, the phone 10 detects the intensity of the touch operation according to the pressure sensor 180A. The phone 10 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A.

[0225] In some embodiments, the phone 10 can determine whether the user displays the screen-off interface / lock screen interface according to the electrical signal detected by the pressure sensor 180A.

[0226] Barometric pressure sensor 180C can be used to detect the barometric pressure of the geographical location where the phone 10 is located.

[0227] Acceleration sensor 180E can detect the acceleration of phone 10 in various directions (usually three axes). When the phone 10 is stationary, it can detect the size and direction of gravity. It can also be used to identify the posture of the electronic device, which can be used for landscape and portrait screen switching, pedometer and other applications. In some embodiments, the phone 10 can determine whether the phone 10 has moved based on the data collected by the acceleration sensor 180E. If the phone 10 is detected to move when the display screen of the phone 10 is completely turned off, the phone 10 can display the screen-off interface or the lock screen interface.

[0228] Ambient light sensor 180L is used to sense the brightness of the ambient light. The phone 10 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. Ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. Ambient light sensor 180L can also cooperate with proximity light sensor 180G to detect whether the phone 10 is in the pocket to prevent accidental touch. In some embodiments, the phone 10 can display the screen-off interface or the lock screen interface when the user approaches the phone 10 based on the detection results of the ambient light sensor 180L and the proximity light sensor 180G.

[0229] The fingerprint sensor 180H is configured to collect a fingerprint. The mobile phone 10 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application lock, fingerprint photograph, fingerprint answer a call, and the like. In some embodiments, the mobile phone 10 can acquire the fingerprint collected by the fingerprint sensor 180H, determine that the unlocking condition is met when the fingerprint collected by the fingerprint sensor 180H is legal, and display a wallpaper corresponding to a current geographic position of the mobile phone 10 on a desktop; or display a screen-off interface or a lock screen interface when the fingerprint collected by the fingerprint sensor 180H is illegal.

[0230] The touch sensor 180K, also referred to as a touch device. The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also referred to as a touch panel. The touch sensor 180K is configured to detect a touch operation acting on or near the touch sensor 180K. The touch sensor 180K can transmit the detected touch operation to the application processor to determine a touch event type. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the mobile phone 10, and the position of the touch sensor 180K can be different from the position of the display screen 194.

[0231] In some embodiments, the mobile phone 10 can interact with a user based on data collected by the touch sensor 180K to configure a live wallpaper function or determine whether the unlocking condition is met.

[0232] The keys 190 include a power-on key, a volume key, and the like. The keys 190 can be mechanical keys. Alternatively, the keys 190 can be touch keys. The mobile phone 10 can receive key input and generate key signal input related to user settings and function control of the mobile phone 10. In some embodiments, the mobile phone 10 can display a screen-off interface, a lock screen interface, or meet the unlocking condition based on user operation of the keys 190.

[0233] The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, or can be used to indicate a message, a notification, and the like.

[0234] The SIM card interface 195 is configured to connect a SIM card or an eSIM.

[0235] It can be understood that the structure of the mobile phone 10 shown in the embodiments of the present application does not constitute a specific limitation on electronic devices. In other embodiments of the present application, an electronic device can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0236] It should be understood that, in the embodiments of the present application, “or” used to describe the connection relationship between associated objects indicates that there can be two relationships, for example, A or B can mean that A exists alone, B exists alone, and A and B can be singular or plural.

[0237] It should be understood that, in the embodiments of the present application, the term “connection” used to describe the connection relationship between two objects can represent two connection relationships, for example, A and B are connected, which can mean that A is directly connected to B or A is connected to B through C.

[0238] It should be understood that, in the embodiments of the present application, “for example”, “in some embodiments”, “in another embodiment”, “in another embodiment”, “exemplarily” and the like are used to represent as an example, illustration or explanation. Any embodiment or design scheme described as “example” in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the use of the word “example” is intended to present the concept in a specific way.

[0239] It should be understood that the terms “first”, “second”, and the like used in the embodiments of the present application are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can it be understood as indicating or implying order. The equal to involved in the embodiments of the present application can be used with greater than, which is applicable to the technical scheme adopted when greater than, or can be used with less than, which is applicable to the technical scheme adopted when less than. It should be noted that when equal to is used with greater than, it is not used with less than; when equal to is used with less than, it is not used with greater than.

[0240] In the drawings, some structural or method features can be shown in specific arrangements and / or orders. However, it should be understood that such specific arrangements and / or orders can not be required. Instead, these features can be arranged in a different manner and / or order than shown in the illustrative figures, in some embodiments. Additionally, the inclusion of a structural or method feature in a particular figure does not imply that the feature is required in all embodiments, and in some embodiments, the feature can not be included or can be combined with other features in some embodiments.

[0241] It is to be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting; it is not intended to exclude myriad other embodiments of the present patent. No limitation is intended to specific embodiments that can include any element or combination of elements, unless otherwise explicitly limited. Where the disclosure expresses a combination of elements as a "comprising" of one or more such elements, it is intended to indicate that the combination can include additional elements not named. Where the disclosure expresses a combination of elements as "consisting of one or more such elements, it is intended to indicate that the combination can include additional elements not named. Where the disclosure expresses a combination of elements as "including one or more such elements, it is intended to indicate that the combination can include additional elements not named.

Claims

1. A theme configuration method applied to an electronic device, characterized in that, The method comprises: detecting an operation of a user applying a first theme, wherein the first theme comprises a first theme resource and a second theme resource, a second theme comprises the first theme resource and a third theme resource, theme resources of the second theme are stored in a first directory, and the second theme resource is stored in a second directory; copying the first theme resource in the first directory and the second theme resource in the second directory to a third directory; displaying a user interface based on theme resources in the third directory.

2. The method of claim 1, wherein, The method further comprises: before detecting the operation of the user applying the first theme, displaying an editing interface of the second theme; detecting an operation of the user modifying the third theme resource to the second theme resource in the editing interface, and generating the second directory.

3. The method of claim 2, wherein, The method further comprises: before displaying the editing interface, downloading the second theme from a server and storing theme resources of the second theme in the first directory.

4. The method of claim 1, wherein, The theme resources comprise at least one of the following resources: a lock screen resource, a font resource, an icon resource, a preview resource, an audio resource, an off-screen display resource, and a desktop resource.

5. The method according to any one of claims 1 to 4, characterized in that, The third directory is a subdirectory of a fourth directory, and the second directory is a subdirectory of a fifth directory.

6. The method of claim 5, wherein, The storage path of the third theme resource relative to the first directory is the same as the storage path of the second theme resource relative to the second directory.

7. The method of claim 5, wherein, The method further comprises: detecting an operation of the user modifying a fourth theme resource of the first theme to a fifth theme resource and applying the modified first theme, and storing the fifth theme resource in the second directory; copying theme resources other than the fourth theme resource in the third directory and the fifth theme resource in the second directory to a sixth directory, and displaying an interface based on theme resources in the sixth directory, wherein the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

8. The method of claim 5, wherein, The method further comprises: detecting an operation of the user modifying a sixth theme resource of the first theme to a seventh theme resource and applying the modified third theme, and storing the seventh theme resource in a seventh directory, wherein the seventh directory is a subdirectory of the fifth directory, and the seventh directory is different from the second directory; copying theme resources other than the sixth theme resource in the third directory and the seventh theme resource in the seventh directory to a sixth directory, and displaying an interface based on theme resources in the sixth directory, wherein the sixth directory is a subdirectory of the fourth directory, and the sixth directory is different from the third directory.

9. The method of claim 5, wherein, The electronic device further comprises a fourth theme, the fourth theme and the second theme have the same eighth theme resource and different ninth theme resources, wherein the ninth theme resource is stored in an eighth directory, and the eighth directory is a subdirectory of the fifth directory; and the method further comprises: In response to detecting that the user modifies the ninth topic resource to a tenth topic resource and applies a fifth topic resulting from the modification, the ninth topic resource in the eighth catalog is replaced by the tenth topic resource; The eighth topic resource in the first catalog and the tenth topic resource in the eighth catalog are copied to a sixth catalog, and an interface is displayed based on the topic resources in the sixth catalog, where the sixth catalog is a subcatalog of the fourth catalog, and the sixth catalog is different from the third catalog.

10. The method of claim 9, wherein, The method further includes: In response to detecting that the user modifies an eleventh topic resource in the eighth topic resource to a twelfth topic resource and applies a sixth topic resulting from the modification, the twelfth topic resource is stored in the eighth catalog; The eighth topic resource in the first catalog, except the eleventh topic resource, and the ninth topic resource and the twelfth topic resource in the eighth catalog are copied to a sixth catalog, and an interface is displayed based on the topic resources in the sixth catalog, where the sixth catalog is a subcatalog of the fourth catalog, and the sixth catalog is different from the third catalog.

11. The method according to any one of claims 5 to 10, characterized in that, The electronic device includes a first application, a second application, and a first service, where the first catalog is a subcatalog of a shared catalog of the first application, the fourth catalog is a shared catalog of the first service, and the fifth catalog is a sandbox catalog of the second application.

12. The method according to any one of claims 1 to 11, characterized in that, The user interface includes at least one of a desktop interface, a lock screen interface, an off-screen display interface, and an application interface.

13. An electronic device, comprising: The electronic device includes: a memory configured to store one or more programs; a processor configured to execute the one or more programs to cause the electronic device to implement the subject configuration method of any one of claims 1-12.

14. A readable storage medium, characterized by, The readable storage medium includes one or more programs, which, when executed on an electronic device, cause the electronic device to implement the subject configuration method of any one of claims 1-12.

15. A program product, characterized by The program product, when executed on an electronic device, causes the electronic device to implement the subject configuration method of any one of claims 1-12.

Citation Information

Patent Citations

  • Theme switching method, mobile terminal and computer storage medium

    CN107729103A

  • Theme resource conversion method, device, and electronic equipment

    CN108874495A

  • System increment updating method and device

    CN113485736A

  • Visual theme switching method and device, electronic equipment and storage medium

    CN114090925A

  • Systems and methods for processing modifiable files grouped into themed directories for presentation of web content

    US20140344668A1