Wallpaper editing method, electronic equipment and storage medium

By displaying multiple wallpaper template options in electronic devices and allowing users to edit layer content, the problem of single wallpaper setting method is solved, and the flexible and convenient settings of personalized wallpaper are achieved.

CN120335683AActive Publication Date: 2025-07-18HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410275208.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-01-10
Filing Date
2024-03-11
Publication Date
2025-07-18
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

In the prior art, electronic device wallpaper is set in a single way, and it is difficult to meet the personalized needs of users.

Method used

Provides a wallpaper editing method, allowing users to select and edit the content of multiple layers, including text or pictures, to realize the personalized settings of lock screen wallpaper by displaying multiple wallpaper template options.

Benefits of technology

It improves the flexibility and convenience of wallpaper settings, and users can quickly edit and replace wallpapers according to their personal needs to meet personal needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335683A_ABST
    Figure CN120335683A_ABST
Patent Text Reader

Abstract

The invention discloses a wallpaper editing method, electronic equipment and a storage medium, and belongs to the technical field of terminals. The method comprises the steps that after the electronic equipment displays a wallpaper editing interface, a plurality of wallpaper template options are displayed in response to operation on a first control, the wallpaper template options comprise a first wallpaper template option, a wallpaper template file corresponding to the first wallpaper template option comprises a file of each layer in a plurality of layers, and the files of the layers are texts or pictures; in response to the operation on the first wallpaper template option, displaying the first wallpaper on the lock screen wallpaper page; in response to an editing operation on the first wallpaper, modifying the layer contents of the plurality of layers, and displaying a second wallpaper; and in response to the operation on the second control, setting the second wallpaper as the lock screen wallpaper. Thus, a user can select the wallpaper template with the multiple layers through the wallpaper editing interface, and display and edit the wallpaper template based on the wallpaper template file to obtain the lock screen wallpaper meeting own requirements, and the flexibility of wallpaper setting is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application with the application number 202410042707.2 and the invention title "Wallpaper Editing Method, Electronic Device and Storage Medium" filed on January 10, 2024, the entire content of which is incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technologies, and particularly to a wallpaper editing method, an electronic device and a storage medium. Background Art

[0003] With the continuous development of terminal technologies, electronic devices such as mobile phones and tablet computers have become increasingly popular, bringing great convenience to people's daily lives. Users can set wallpapers for the lock screen and desktop of electronic devices to improve aesthetics. However, when changing wallpapers for electronic devices currently, users often need to select a picture from the pictures pre-installed in the electronic device or in the picture gallery as the wallpaper, and the wallpaper setting method is single, which is difficult to meet the personalized needs of users. Summary of the Invention

[0004] This application provides a wallpaper editing method, an electronic device and a storage medium, which can flexibly set wallpapers and meet the personalized needs of users. The technical solutions are as follows:

[0005] In a first aspect, a wallpaper editing method is provided. In this method, an electronic device displays a wallpaper editing interface, and the wallpaper editing interface includes a lock screen wallpaper page, a first control and a second control; in response to an operation on the first control, a plurality of wallpaper template options are displayed, and the plurality of wallpaper template options include a first wallpaper template option, and the wallpaper template file corresponding to the first wallpaper template option includes files of each layer in a plurality of layers, and the file of any one layer in the plurality of layers is text or a picture; in response to an operation on the first wallpaper template option, a first wallpaper is displayed on the lock screen wallpaper page according to the wallpaper template file, and the first wallpaper includes the plurality of layers; in response to an editing operation on the first wallpaper, the layer content of the plurality of layers is modified to display a second wallpaper; after the second wallpaper is displayed, in response to an operation on the second control, the second wallpaper is set as the lock screen wallpaper.

[0006] The first control is a control for changing the wallpaper template. The operation on the first control can be a triggering operation on the first control, such as a click operation, etc., to indicate the display of a plurality of wallpaper template options.

[0007] The first wallpaper template option can be any one of the plurality of wallpaper template options. The operation on the first wallpaper template option is a selection operation on the first wallpaper template option to indicate the display of the wallpaper template corresponding to the first wallpaper template option, that is, the first wallpaper.

[0008] In response to an editing operation on the first wallpaper, the electronic device can modify the layer content of at least one layer among multiple layers of the first wallpaper to obtain a second wallpaper and display it.

[0009] The second control is a control for saving wallpapers. An operation on the second control is a triggering operation on the second control, such as a click operation, etc., to indicate setting the second wallpaper as the lock screen wallpaper.

[0010] In this application, a wallpaper template with multiple layers and its corresponding wallpaper template file are provided. The wallpaper template file includes files (i.e., texts or pictures) of each layer among the multiple layers. The user can select the wallpaper template with multiple layers provided in this application through the wallpaper editing interface, and display and edit the wallpaper template based on the wallpaper template file to obtain a lock screen wallpaper that meets their own personalized needs. In this way, the flexibility of wallpaper setting can be improved.

[0011] It should be noted that after the electronic device displays the wallpaper editing interface, the second control can be displayed in the wallpaper editing interface. Optionally, the lock screen wallpaper page and the first control can also be displayed in the wallpaper editing interface, or the lock screen wallpaper page and the first control may not be displayed.

[0012] In a possible implementation, before the electronic device displays the wallpaper editing interface, it can also receive a second gesture operation on the desktop; in response to the second gesture operation, a desktop editing interface is displayed, and the desktop editing interface includes a third control. In this case, the operation for the electronic device to display the wallpaper editing interface can be: in response to an operation on the third control, the electronic device displays the wallpaper editing interface. The third control is a control for setting the desktop wallpaper.

[0013] In this case, the desktop wallpaper page and the second control are displayed in the displayed wallpaper editing interface. Optionally, the lock screen wallpaper page may not be displayed in the displayed wallpaper editing interface, or part or all of the lock screen wallpaper page may be displayed. When the desktop wallpaper page is displayed in the wallpaper editing interface but the lock screen wallpaper page is not displayed or only part of it is displayed, upon receiving a gesture operation of the user in the wallpaper editing interface, the lock screen wallpaper page can be completely displayed.

[0014] In this application, the user can quickly enter the wallpaper editing interface from the desktop for wallpaper editing, thereby improving the convenience of wallpaper editing.

[0015] In a possible implementation, before the electronic device displays the wallpaper editing interface, it can also receive a first gesture operation on the lock screen interface. In this case, the operation for the electronic device to display the wallpaper editing interface can be: in response to the first gesture operation, the electronic device displays the wallpaper editing interface.

[0016] In this case, the displayed wallpaper editing interface shows a lock screen wallpaper page, a first control, and a second control. Optionally, the desktop wallpaper page may not be displayed in the displayed wallpaper editing interface, or a part or all of the desktop wallpaper page may be displayed.

[0017] In the present application, the user can quickly enter the wallpaper editing interface through a first gesture operation on the lock screen interface to perform wallpaper editing, thereby improving the convenience of wallpaper editing.

[0018] In a possible implementation manner, the operation of the electronic device to display the wallpaper editing interface in response to the first gesture operation may be: in response to the first gesture operation, display the first control and the second control; create m first views, where m is an integer greater than or equal to 2; draw layer content in at least one of the m first views according to the lock screen wallpaper file to obtain m second views; display the m second views.

[0019] It should be noted that after creating the m first views, the newly created m first views are all blank views. Then, after drawing the layer content in at least one of the m first views according to the lock screen wallpaper file, when displayed subsequently, the user can see the content drawn in the at least one first view, while the other first views among the m first views except the at least one first view are still blank views and the user cannot see them even if they are displayed.

[0020] In addition, the m second views are not necessarily completely different from the layer content of the m first views, and it may only be a change in the layer content of some layers. That is, in the present application, after drawing the layer content in some or all of the m first views, the m first views can be referred to as m second views.

[0021] In the present application, when it is necessary to display the wallpaper editing interface, m views can be created first, and then the layer content is drawn and displayed in at least one of the m views based on the lock screen wallpaper file. In this way, the wallpaper corresponding to the lock screen wallpaper file can be quickly displayed through the created m views.

[0022] In a possible implementation manner, the operation of the electronic device to display the first wallpaper on the lock screen wallpaper page according to the wallpaper template file in response to an operation on the first wallpaper template option may be: in response to an operation on the first wallpaper template option, obtain the display information of each layer in the multiple layers according to the wallpaper template file; clear the hierarchy and layer content of the m second views; set the hierarchy of the corresponding second views and draw the layer content in the corresponding second views according to the display information of each layer in the multiple layers to obtain m third views; display the m third views.

[0023] It should be noted that the m third views are not necessarily completely different from the layer contents of the m second views, and only the layer contents of some layers may be changed. That is to say, in this application, after redrawing the layer contents in some or all of the m second views, the m second views can be referred to as m third views.

[0024] In this application, after each wallpaper template is selected, the hierarchy and layer contents of the m views can be cleared, and the hierarchy and layer contents of the m views corresponding to the multiple layers in the wallpaper template can be reset and displayed, so that the wallpaper template can be quickly and accurately displayed.

[0025] Exemplarily, the multiple layers may include an original layer and a clock layer. The picture of the original layer is the main picture, and the clock layer is used to display the time. The file of the clock layer in the wallpaper template file is text, and the text name of the text in the clock layer contains one or more of the view identifier, layer type, and hierarchy. The text content of the text in the clock layer contains clock setting information, and the display information of the clock layer includes one or more of the view identifier, hierarchy, and clock setting information. The files of the other layers except the clock layer in the multiple layers in the wallpaper template file are pictures, and the picture name of the other layer contains one or more of the view identifier, layer type, and hierarchy. The display information of the other layer includes one or more of the view identifier, hierarchy, and displayed picture.

[0026] Exemplarily, the multiple layers may further include one or more of a decoration layer, a color background layer, and a cutout layer. The picture of the decoration layer is used to form a decorative effect on the main picture. The picture of the color background layer is a solid color picture or a gradient color picture, and the picture of the cutout layer contains the foreground object in the main picture.

[0027] In a possible implementation manner, the operation of the electronic device to obtain the display information of each layer in the multiple layers according to the wallpaper template file may be: for the first layer in the multiple layers, obtain the view identifier, layer type, and hierarchy of the first layer from the file name of the file of the first layer in the wallpaper template file, where the first layer is any layer in the multiple layers; if the layer type of the first layer is a clock layer, determine that the file of the first layer is text, and obtain the clock setting information of the first layer from the text content of the text of the first layer in the wallpaper template file; if the layer type of the first layer is not a clock layer, determine that the file of the first layer is a picture, obtain the picture of the first layer from the wallpaper template file, process the picture of the first layer to obtain a full-screen picture, and scale the full-screen picture according to a specific scaling ratio to obtain the displayed picture of the first layer.

[0028] A specific scaling ratio is used to process the full-screen image into an image that can fill the display area of the lock screen wallpaper page. For example, the height (or width) of the display area of the lock screen wallpaper page can be divided by the screen height (or screen width) to obtain the specific scaling ratio.

[0029] For example, the operation of the electronic device to process the image of the first layer to obtain the full-screen image can be: determining an initial scaling ratio according to the screen size and the size of the image of the first layer, and scaling the image of the first layer according to the initial scaling ratio to obtain the full-screen image.

[0030] This initial scaling ratio is used to process the image of the first layer into a full-screen image. Specifically, the screen height can be divided by the height of the image of the first layer to obtain a first value, and the screen width can be divided by the width of the image of the first layer to obtain a second value, and then the larger of the first value and the second value is used as the initial scaling ratio.

[0031] In a possible implementation, the display information includes a view identifier, a layer level, and drawing information. The operation of the electronic device to set the layer level of the corresponding second view and draw the layer content in the corresponding second view according to the display information of each layer in the multiple layers to obtain m third views can be: for the second layer in the multiple layers, setting the layer level of the second view identified by the view identifier of the second layer to the layer level of the second layer, and drawing the layer content in the second view identified by the view identifier of the second layer according to the drawing information of the second layer to obtain a third view. Wherein, the second layer can be any one of the multiple layers.

[0032] In a possible implementation, in response to an operation on the first wallpaper template option, the electronic device can also save the wallpaper template file in the memory.

[0033] In this case, the operation of the electronic device to modify the layer content of the multiple layers in response to an editing operation on the first wallpaper and display the second wallpaper can be: in response to the editing operation on the first wallpaper, updating the wallpaper template file to obtain a first lock screen wallpaper file; redrawing the layer content in at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views, or resetting the layer levels of at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views; displaying the m fourth views.

[0034] It should be noted that the m fourth views are not necessarily completely different from the layer contents of the m third views, and there may only be changes in the layer contents or levels of some layers. That is, in this application, after redrawing the layer contents in some or all of the m third views, or after resetting the levels of some or all of the m third views, the m third views can be referred to as m fourth views.

[0035] In this application, the currently edited lock screen wallpaper file can be updated according to the user's editing operation on the first wallpaper, and accordingly, the layer contents can be redrawn and displayed in at least one of the m views, or the levels of the m views can be reset and displayed accordingly. In this way, the display of the edited wallpaper can be achieved simply and quickly.

[0036] Exemplarily, the editing operation can be an editing operation on the third layer among the multiple layers, and the third layer can be any one of the multiple layers. In this case, the operation of the electronic device to update the wallpaper template file to obtain the first lock screen wallpaper file in response to the editing operation on the first wallpaper can be: in response to the editing operation on the third layer, when the third layer is the clock layer, update the clock setting information in the text content of the text of the third layer in the wallpaper template file, or when the third layer is not the clock layer, update the picture of the third layer in the wallpaper template file to obtain the first lock screen wallpaper file.

[0037] Assume that the editing operation is a selection operation on the clock color option, then the electronic device can update the color value in the text content of the text of the clock layer in the wallpaper template file to the color value corresponding to the clock color option to obtain the first lock screen wallpaper file.

[0038] Assume that the editing operation is a selection operation on the color option of the decoration layer, then the electronic device can modify the color of the picture of the decoration layer in the wallpaper template file according to the color value corresponding to the color option to obtain the first lock screen wallpaper file.

[0039] Assume that the editing operation is a selection operation on the shape option of the decoration layer, then the electronic device can obtain the third picture corresponding to the shape option, modify the picture name of the third picture to the picture name of the picture of the decoration layer in the wallpaper template file, and update the picture of the decoration layer in the wallpaper template file to the third picture to obtain the first lock screen wallpaper file.

[0040] Assume that the editing operation is an operation of selecting a picture option. Then, the electronic device can obtain a fourth picture corresponding to the picture option, and generate a fifth picture based on the fourth picture; modify the picture name of the fourth picture to the picture name of the picture in the original layer of the wallpaper template file, and modify the picture name of the fifth picture to the picture name of the picture in the cut-out layer of the wallpaper template file; update the picture in the original layer of the wallpaper template file with the fourth picture, and update the picture in the cut-out layer of the wallpaper template file with the fifth picture to obtain a first lock screen wallpaper file.

[0041] Among them, the fifth picture contains the foreground object in the fourth picture and does not contain the content in the fourth picture other than the foreground object. That is to say, the foreground object exists in the fifth picture, and the part other than the foreground object is a blank part (i.e., a transparent part).

[0042] Exemplarily, the editing operation can be an operation of turning off the depth of field effect switch. In this case, in response to the editing operation on the first wallpaper, the operation for the electronic device to update the wallpaper template file to obtain the first lock screen wallpaper file can be: in response to the operation of turning off the depth of field effect switch, swap the hierarchy in the text name of the text in the clock layer of the wallpaper template file with the hierarchy in the picture name of the picture in the cut-out layer to obtain the first lock screen wallpaper file.

[0043] In a possible implementation manner, the editing operation can be a triggering operation on a fourth control, and the fourth control is used to adjust the background blur degree of the lock screen wallpaper. In this case, in response to the editing operation on the first wallpaper, the operation for the electronic device to modify the layer content of the multiple layers and display the second wallpaper can be: in response to the triggering operation on the fourth control, determine the target blur degree; generate a first operation record, and the target blur degree is recorded in the first operation record; redraw the layer content in at least one of the m third views according to the first operation record to obtain m fourth views; display the m fourth views.

[0044] In a possible implementation manner, the editing operation can be a zooming operation performed on the lock screen wallpaper page. In this case, in response to the editing operation on the first wallpaper, the operation for the electronic device to modify the layer content of the multiple layers and display the second wallpaper can be: in response to the zooming operation performed on the lock screen wallpaper page, determine the zoom ratio and the target offset corresponding to the zooming operation; generate a second operation record, and the zoom ratio and the target offset are recorded in the second operation record; redraw the layer content in at least one of the m third views according to the second operation record to obtain m fourth views; display the m fourth views.

[0045] In an alternative implementation, in response to an operation on the second control, the operation of the electronic device to set the second wallpaper as the lock screen wallpaper may be: in response to an operation on the second control, storing the first lock screen wallpaper file in the file system.

[0046] In an alternative implementation, in response to an operation on the second control, the operation of the electronic device to set the second wallpaper as the lock screen wallpaper may be: in response to an operation on the second control, in the presence of a first operation record and / or a second operation record, updating the wallpaper template file according to the target blur degree in the first operation record and / or the scaling ratio and target offset in the second operation record to obtain a second lock screen wallpaper file; storing the second lock screen wallpaper file in the file system.

[0047] Exemplarily, the wallpaper editing interface further includes a home screen wallpaper page and a fifth control for instructing the home screen wallpaper to follow the lock screen.

[0048] Exemplarily, when the lock screen wallpaper page is displayed in the wallpaper editing interface, if the displayed wallpaper editing interface does not display the home screen wallpaper page or only displays a part of the home screen wallpaper page, in response to a third gesture operation on the wallpaper editing interface, the electronic device displays the home screen wallpaper page, the fifth control, and the second control in the wallpaper editing interface.

[0049] Exemplarily, when the displayed wallpaper editing interface does not display the lock screen wallpaper page or only displays a part of the lock screen wallpaper page, in response to a fourth gesture operation on the wallpaper editing interface, the electronic device displays the lock screen wallpaper page, the first control, and the second control in the wallpaper editing interface.

[0050] In this application, the user can switch between the home screen wallpaper page and the lock screen wallpaper page in the wallpaper editing interface through gesture operations to edit the corresponding wallpapers, thereby improving the flexibility of wallpaper editing.

[0051] In an alternative implementation, in response to an operation on the fifth control, the electronic device may display the main picture of the wallpaper in the lock screen wallpaper page on the home screen wallpaper page. In this way, the consistency of the styles of the home screen wallpaper and the lock screen wallpaper can be achieved.

[0052] In an alternative implementation, after the electronic device sets the second wallpaper as the lock screen wallpaper, it can also, in response to a preset user operation, obtain the first lock screen wallpaper file from the file system; display the second wallpaper on the lock screen wallpaper page in the wallpaper editing interface according to the first lock screen wallpaper file. After that, in response to an editing operation on the second wallpaper, modify the layer content of multiple layers of the second wallpaper to display a third wallpaper. After displaying the third wallpaper, in response to an operation on the second control, store the third lock screen wallpaper file to the file system to set the third wallpaper as the lock screen wallpaper, where the third lock screen wallpaper file is obtained by updating the first lock screen wallpaper file based on the editing operation on the second wallpaper. In this way, the user can continue to edit the wallpaper that was edited last time, thereby further improving the flexibility of wallpaper editing. Moreover, after editing the second wallpaper, update the first lock screen wallpaper file, so that the lock screen wallpaper file stored in the file system is the lock screen wallpaper file corresponding to the currently updated third wallpaper. In this way, when editing again, the lock screen wallpaper file of the latest wallpaper can be obtained from the file system, thus ensuring the continuity of wallpaper editing.

[0053] In a second aspect, a wallpaper editing method is provided. In this method, the electronic device displays a wallpaper editing interface, and the wallpaper editing interface includes a lock screen wallpaper page, a first control, and a second control; in response to an operation on the first control, display a plurality of wallpaper template options, and the plurality of wallpaper template options include a first wallpaper template option, where the wallpaper template corresponding to the first wallpaper template option includes a main picture and a decorative picture; in response to an operation on the first wallpaper template option, display a first wallpaper on the lock screen wallpaper page; in response to an editing operation on the first wallpaper, modify the decorative picture to display a second wallpaper on the lock screen wallpaper page, where the second wallpaper has a different style of the decorative picture from the first wallpaper; after displaying the second wallpaper, in response to an operation on the second control, display the second wallpaper on the lock screen interface or the desktop.

[0054] In this application, a wallpaper template including a main picture and a decorative picture is provided. The user can select the wallpaper template including a main picture and a decorative picture provided in this application through the wallpaper editing interface and modify the decorative picture in the wallpaper template to obtain a lock screen wallpaper that meets their own personalized needs. In this way, the flexibility of wallpaper setting can be improved.

[0055] In an alternative implementation, in response to an operation on the first wallpaper template option, the operation for the electronic device to display the first wallpaper on the lock screen wallpaper page may be: in response to the operation on the first wallpaper template option, parse the wallpaper template file to obtain wallpaper display information, where the wallpaper display information includes the display information of each layer in the multiple layers. Among them, the display information of the clock layer includes the layer identifier, level, and clock setting information of the clock layer, and the display information of the other layers except the clock layer includes the layer identifier, level, and displayed picture; display the first wallpaper on the lock screen wallpaper page according to the wallpaper display information.

[0056] In an alternative implementation, the multiple layers include a cutout layer, and the wallpaper editing interface includes a depth of field effect switch. In response to the operation of closing the depth of field effect switch, the electronic device sets the visibility of the cutout layer to invisible.

[0057] In an alternative implementation, the wallpaper editing interface further includes a home screen wallpaper page. In response to the received follow lock screen instruction, the electronic device displays the main picture of the wallpaper in the lock screen wallpaper page on the home screen wallpaper page.

[0058] In an alternative implementation, after displaying the second wallpaper on the lock screen interface or the home screen, the electronic device may further receive a first gesture operation on the lock screen interface; in response to the first gesture operation, display the wallpaper editing interface, and the lock screen wallpaper page in the wallpaper editing interface displays the second wallpaper; in response to the editing operation on the second wallpaper, modify the decorative picture in the second wallpaper to display a third wallpaper on the lock screen wallpaper page, and the style of the decorative picture in the third wallpaper is different from that in the second wallpaper.

[0059] In an alternative implementation, the decorative picture is the picture of the decorative layer.

[0060] In a third aspect, a wallpaper editing device is provided, and the wallpaper editing device has the function of implementing the behavior of the wallpaper editing method in the first aspect above. The wallpaper editing device includes at least one module, and the at least one module is used to implement the wallpaper editing method provided in the first aspect or the second aspect above.

[0061] In a fourth aspect, an electronic device is provided, and the electronic device includes: one or more processors, and a memory; the memory is coupled to the one or more processors, and the memory is used to store computer program code, and the computer program code includes computer instructions. The one or more processors call the computer instructions to cause the electronic device to execute the wallpaper editing method provided in the first aspect or the second aspect above.

[0062] Fifth aspect, a chip system is provided. The chip system is applied to an electronic device and includes one or more processors for invoking computer instructions to cause the electronic device to execute the wallpaper editing method provided in the first aspect or the second aspect above.

[0063] Sixth aspect, a computer-readable storage medium is provided. The computer-readable storage medium includes instructions that, when running on an electronic device, cause the electronic device to execute the wallpaper editing method provided in the first aspect or the second aspect above.

[0064] Seventh aspect, a computer program product is provided. When the computer program product runs on an electronic device, it causes the electronic device to execute the wallpaper editing method provided in the first aspect or the second aspect above.

[0065] The technical effects obtained in the third, fourth, fifth, sixth, and seventh aspects above are similar to those obtained by the corresponding technical means in the first and second aspects above, and will not be elaborated here. Description of the Drawings

[0066] Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;

[0067] Figure 2 is a schematic diagram of multiple layers provided by an embodiment of the present application;

[0068] Figure 3 is a schematic diagram of different types of layers provided by an embodiment of the present application;

[0069] Figure 4 is a schematic diagram of a lock screen wallpaper provided by an embodiment of the present application;

[0070] Figure 5 is a schematic diagram of a wallpaper provided by an embodiment of the present application;

[0071] Figure 6 is a schematic diagram of the hierarchy of layers provided by an embodiment of the present application;

[0072] Figure 7 is a schematic diagram of a wallpaper editing interface provided by an embodiment of the present application;

[0073] Figure 8 is a schematic diagram of a process of entering a wallpaper editing interface provided by an embodiment of the present application;

[0074] Figure 9 is a schematic diagram of another process of entering a wallpaper editing interface provided by an embodiment of the present application;

[0075] Figure 10 It is a schematic diagram of a process for selecting a wallpaper template provided by an embodiment of the present application;

[0076] Figure 11 It is a schematic diagram of a process for setting a clock provided by an embodiment of the present application;

[0077] Figure 12 It is a schematic diagram of a process for setting a decorative piece provided by an embodiment of the present application;

[0078] Figure 13 It is a schematic diagram of a process for setting a depth-of-field effect provided by an embodiment of the present application;

[0079] Figure 14 It is a schematic diagram of a process for replacing a picture provided by an embodiment of the present application;

[0080] Figure 15 It is a schematic diagram of a process for picture zooming and moving provided by an embodiment of the present application;

[0081] Figure 16 It is a schematic diagram of a process for setting a lock screen wallpaper provided by an embodiment of the present application;

[0082] Figure 17 It is a schematic diagram of a process for re-entering the wallpaper editing interface provided by an embodiment of the present application;

[0083] Figure 18 It is a schematic diagram of a process for following the lock screen provided by an embodiment of the present application;

[0084] Figure 19 It is a schematic diagram of a process for setting a color provided by an embodiment of the present application;

[0085] Figure 20 It is a schematic diagram of a software system provided by an embodiment of the present application;

[0086] Figure 21 It is a flowchart of a wallpaper editing method provided by an embodiment of the present application;

[0087] Figure 22 It is a schematic diagram of a display area provided by an embodiment of the present application;

[0088] Figure 23 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0089] Figure 24 It is a flowchart of a process for determining the display information of a layer provided by an embodiment of the present application;

[0090] Figure 25 It is a schematic diagram of a target area provided by an embodiment of the present application;

[0091] Figure 26 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0092] Figure 27 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0093] Figure 28 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0094] Figure 29 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0095] Figure 30 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0096] Figure 31 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0097] Figure 32 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0098] Figure 33 It is a schematic diagram of another target area provided by an embodiment of the present application;

[0099] Figure 34 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0100] Figure 35 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0101] Figure 36 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application;

[0102] Figure 37 It is a schematic diagram of another display area provided by an embodiment of the present application;

[0103] Figure 38 It is a flowchart of another wallpaper editing method provided by an embodiment of the present application. Detailed implementation manners

[0104] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details.

[0105] It should be understood that when used in the specification of this application and the appended claims, the term "comprising" indicates the presence of the described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or their combinations. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0106] It should be understood that the "one or more" mentioned in this application refers to one, two or more than two, and the "plurality" mentioned in this application refers to two or more than two. In the description of this application, unless otherwise specified, " / " means "or". For example, A / B can mean A or B. The "and / or" herein is merely a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone.

[0107] In addition, for the convenience of clearly describing the technical solution of this application, words such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. Those skilled in the art can understand that the words such as "first" and "second" do not limit the quantity and execution order, and the words such as "first" and "second" do not necessarily limit to be different.

[0108] The statements such as "an embodiment" or "some embodiments" described in this application mean that the specific features, structures or characteristics described in the embodiment are included in one or more embodiments of this application. Thus, the statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments" and the like that appear in different places in this application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0109] The wallpaper editing method provided by the embodiments of this application can be applied to an electronic device. The electronic device can be a mobile phone, a tablet computer, a wearable device, a digital camera, a vehicle-mounted device, an augmented reality (AR) device, a virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a laptop computer, etc., and the embodiments of this application do not limit this.

[0110] Figure 1This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Refer to Figure 1 , the electronic device 100 may 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 headphone jack 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may 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.

[0111] It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0112] The processor 110 may include one or more processing units. For example: the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0113] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching instructions and executing instructions.

[0114] A memory can also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0115] The external memory interface 120 can be used to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0116] The internal memory 121 can be used to store computer-executable program codes, and the computer-executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, applications required for at least one function (such as the sound playback function, the image playback function, etc.). The data storage area can store the data created during the use of the electronic device 100 (such as audio data, phone book, 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 disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0117] The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modulation and demodulation processor, and baseband processor, etc.

[0118] The electronic device 100 can implement audio functions, such as music playback, recording, etc., through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor, etc.

[0119] The electronic device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, and application processor, etc.

[0120] The electronic device 100 can implement the display function through the GPU, the display screen 194, the application processor, etc.

[0121] The GPU is a microprocessor for image processing, 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 may include one or more GPUs, which execute program instructions to generate or change display information. The display screen 194 is used to display images, videos, etc.

[0122] The touch sensor 180K, also known as the "touch panel". 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 known as the "touch screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor 180K can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.

[0123] The embodiments of the present application do not particularly limit the specific structure of the execution subject of the wallpaper editing method, as long as it can process according to the wallpaper editing method provided by the embodiments of the present application by running the code recording the wallpaper editing method provided by the embodiments of the present application. For example, the execution subject of the wallpaper editing method provided by the embodiments of the present application can be a functional module in the electronic device that can call and execute the program, or can be a processing device applied to the electronic device, such as a chip, etc.

[0124] Next, the wallpapers involved in the wallpaper editing method provided by the embodiments of the present application will be described.

[0125] The wallpapers in the embodiments of the present application can include multiple layers. The layers described in the embodiments of the present application can be views obtained after drawing layer content (including but not limited to pictures, time, etc.) in a blank view.

[0126] There is a hierarchical relationship among the multiple layers, and this hierarchical relationship refers to the upper and lower layer relationships of the multiple layers when displayed. That is, when the hierarchy of one layer is higher than that of another layer, this layer is located above the other layer. Generally, the layer in the upper layer will partially or completely block the layer in the lower layer when displayed.

[0127] Figure 2 It is a schematic diagram of multiple layers provided by the embodiments of the present application. The multiple layers can be divided into multiple types.

[0128] Exemplarily, such as Figure 2As shown, the multiple layers may include five types of layers, namely: the original layer, the color background layer, the decoration layer, the clock layer, and the cutout layer.

[0129] Generally, the original layer is located at the bottommost layer. The level of the color background layer is lower than that of the decoration layer, the clock layer, and the cutout layer. The level of the decoration layer can be lower than that of the clock layer and the cutout layer in some cases, and can also be higher than that of the clock layer and the cutout layer in some cases. The level of the clock layer can be lower than that of the cutout layer in some cases, and can also be higher than that of the cutout layer in some cases.

[0130] The picture of the original layer can be called the main picture. By way of example, the main picture can be a picture selected by the user, such as a picture selected by the user from the pictures in the gallery, or a picture selected by the user from the pictures pre-set in the electronic device. Or, the main picture can be the picture of the original layer included in a wallpaper template selected by the user from multiple wallpaper templates pre-set in the electronic device. For example, the original layer can be the layer shown in Figure (a) of Figure 3

[0131] The picture of the color background layer is a picture with a certain overall color. By way of example, the color of the picture can be a solid color or a gradient color. For example, the color background layer can be the layer shown in Figure (b) of Figure 3 , and the color of the color background layer is a solid color.

[0132] The picture of the decoration layer is a picture that can decorate the main picture. By way of example, the picture can be a picture with a photo frame effect, or a picture containing text content, or a picture with a certain texture, or a picture with a mask effect, etc., and the embodiments of the present application do not limit this. For example, the decoration layer can be the layer shown in Figure (c) or Figure (d) of Figure 3 Figure 3 The decoration layer shown in Figure (c) of Figure 3 When superimposed and displayed with the decoration layer shown in Figure (d) of

[0133] The clock layer is a layer for displaying time, and the time can be the system time of the electronic device. By way of example, the clock layer can be the layer shown in Figure (e) of Figure 3 , and the clock layer displays the time.

[0134] The picture of the cutout layer can be obtained from the picture of the original layer. By way of example, the picture of the cutout layer can be the picture of the foreground object in the picture of the original layer. In some embodiments, the foreground object can be extracted from the picture of the original layer according to the object information and edge information in the picture of the original layer. For example, in the case where the original layer is the layer shown in Figure (a) of Figure 3 , the cutout layer can be​​Figure 3 The layer shown in Figure (f) of

[0135] In practical applications, Figure 2 The hierarchy of each shown layer is not uniquely determined. It is also possible to change the hierarchy of each layer according to the actual situation, or deploy corresponding layers according to the wallpaper editing function of the electronic device. Moreover, in practical applications, the types of layers are not limited to Figure 2 the five types shown. Other types can be set according to requirements.

[0136] The wallpaper in the embodiments of the present application may include one or more types of layers. In some cases, the wallpaper in the embodiments of the present application may also include one or more layers of the same type. For example, it may include one or more original layers, and / or, it may include one or more color background layers, and / or, it may include one or more decoration layers, and / or, it may include one or more clock layers, and / or, it may include one or more cutout layers.

[0137] Exemplarily, a desktop wallpaper and a lock screen wallpaper can be set in the electronic device.

[0138] The desktop wallpaper is the wallpaper displayed on the desktop of the electronic device. For example, as shown in Figure (a) of Figure 9 , the desktop 900 of the electronic device can display the desktop wallpaper.

[0139] The lock screen wallpaper is the wallpaper displayed on the lock screen interface of the electronic device. The lock screen interface is the interface displayed by the electronic device in the locked state. For example, as shown in Figure (a) of Figure 8 , the lock screen interface 800 of the electronic device can display the lock screen wallpaper.

[0140] In some cases, when the electronic device is in the locked state, the user needs to unlock it. After unlocking, the electronic device can display the desktop. For example, after the user performs an unlocking operation on the lock screen interface 800 shown in Figure (a) of Figure 8 , the electronic device can display the desktop 900 shown in Figure (a) of Figure 9 .

[0141] Exemplarily, the desktop wallpaper may include an original layer.

[0142] Exemplarily, the lock screen wallpaper may sequentially include, from the bottommost layer to the topmost layer: an original layer, a clock layer. For example, the lock screen wallpaper can be the wallpaper shown in Figure (a) of Figure 4 , and this wallpaper includes the original layer shown in Figure (a) of Figure 3 and the clock layer shown in Figure (e) of Figure 3 .

[0143] Alternatively, the lock screen wallpaper may sequentially include, from the bottom layer to the top layer: an original layer, a color background layer, a clock layer, and a cutout layer. For example, the lock screen wallpaper may be the wallpaper shown in FIG. (b) of Figure 4 , and this wallpaper includes Figure 3 the original layer shown in FIG. (a) of Figure 3 the color background layer shown in FIG. (b) of Figure 3 the clock layer shown in FIG. (e) of Figure 3 and the cutout layer shown in FIG. (f) of

[0144] Alternatively, the lock screen wallpaper may sequentially include, from the bottom layer to the top layer: an original layer, a decoration layer 1, a clock layer, and a decoration layer 2. For example, the lock screen wallpaper may be the wallpaper shown in FIG. (c) of Figure 4 , and this wallpaper includes Figure 3 the original layer shown in FIG. (a) of Figure 3 the decoration layer shown in FIG. (c) of Figure 3 the clock layer shown in FIG. (e) of Figure 3 and the decoration layer shown in FIG. (d) of

[0145] Alternatively, the lock screen wallpaper may sequentially include, from the bottom layer to the top layer: an original layer, a decoration layer 1, a clock layer, a cutout layer, and a decoration layer 2. For example, the lock screen wallpaper may be the wallpaper shown in FIG. (d) of Figure 4 , and this wallpaper includes Figure 3 the original layer shown in FIG. (a) of Figure 3 the decoration layer shown in FIG. (c) of Figure 3 the clock layer shown in FIG. (e) of Figure 3 the cutout layer shown in FIG. (f) of Figure 3 and the decoration layer shown in FIG. (d) of

[0146] Compared with Figure 4 the wallpaper shown in FIG. (c) of Figure 4 the wallpaper shown in FIG. (d) of

[0147] By the interaction of the original layer, the decoration layer, the clock layer, and the cutout layer, can make the picture have a foreground and background depth effect. In the embodiments of the present application, this effect is called the depth of field effect.

[0148] It should be noted that the above Figure 3 and Figure 4 are only exemplary descriptions of the layers and the wallpaper, and do not limit the embodiments of the present application.

[0149] As can be seen from the above, the wallpaper in the embodiments of the present application can be obtained by stacking multiple layers according to the hierarchical relationship. For example, by processing a main picture shown in Figure (a) of Figure 5 , the wallpaper shown in Figure (b) of Figure 5 can be obtained. This wallpaper may include Figure 6 seven layers shown in Figure (a) of

[0150] , namely: the original layer, the decoration layer 1, the decoration layer 2, the clock layer, the cutout layer, the decoration layer 3, and the decoration layer 4. Their hierarchy from low to high is: 1, 2, 3, 4, 5, 6, 7. The wallpaper has rich visual elements and can meet the personalized needs of users. Figure 6 In some embodiments, as shown in Figure (b) of Figure 6 , the layer has position information, which can be represented by coordinates (x, y, z). Among them, (x, y) is the center position of the layer. Among them, (z) is used to indicate the hierarchy of the layer among all the layers of the wallpaper to which it belongs. It can be seen that among the

[0151] seven layers shown in

[0152] , from the leftmost layer to the rightmost layer, the z value of the layer increases in turn.

[0153] The wallpaper editing function provided by the embodiments of the present application can edit various types of layers included in the wallpaper to achieve the editing of the wallpaper. For example, operations such as scaling, moving, blurring, font adjustment, shape adjustment, color adjustment, and depth-of-field effect setting can be performed on the wallpaper.

[0154] Figure 7 is a schematic diagram of a wallpaper editing interface provided by the embodiments of the present application. Referring to Figure 7 , the wallpaper editing interface 700 may include function controls, a lock screen wallpaper page 702, and a home screen wallpaper page 703.

[0155] The function controls may include main function controls, such as a return control 70, an apply control 71, etc. The function controls may also include controls for editing the wallpaper, which can provide various editing functions.

[0156] The lock screen wallpaper page 702 is a page for previewing the edited lock screen wallpaper. Among them, the lock screen wallpaper refers to the wallpaper displayed on the lock screen interface of an electronic device.

[0157] The desktop wallpaper page 703 is a page for previewing the edited desktop wallpaper. Here, the desktop wallpaper refers to the wallpaper displayed on the desktop after the electronic device is unlocked. Optionally, the desktop wallpaper page 703 can also display a thumbnail of the desktop content on the upper layer of the desktop wallpaper, so as to better preview the display effect of the desktop wallpaper.

[0158] The lock screen wallpaper page 702 and the desktop wallpaper page 703 can exist in a paged form, and the two can be switched and displayed through a sliding operation. For example, Figure 7 in the wallpaper editing interface 700 shown in Figure (a) of Figure 7 the lock screen wallpaper page 702 is displayed. After the user swipes left in the wallpaper editing interface 700, as Figure 7 shown in Figure (b) of Figure 7 the wallpaper editing interface 700 can display the desktop wallpaper page 703. Then, after the user swipes right in the wallpaper editing interface 700 shown in Figure (b) of

[0159] as shown in Figure (a) of Figure 7 the wallpaper editing interface 700 can display the lock screen wallpaper page 702.

[0160] In some embodiments, when the lock screen wallpaper page 702 is displayed in the wallpaper editing interface 700 shown in Figure (a) of Figure 7 part or all of the desktop wallpaper page 703 can also be displayed in the wallpaper editing interface 700.

[0161] Exemplarily, as Figure 7 shown in Figure (a) of

[0162] when the lock screen wallpaper page 702 is displayed in the wallpaper editing interface 700, relevant function controls for editing the lock screen wallpaper, such as a clock box 710, a picture replacement control 75, a lock screen style control 72, a personalized decoration control 73, a depth of field effect control 74, etc., can also be displayed in the wallpaper editing interface 700. The embodiments of the present application are not limited thereto. Figure 7 Exemplarily, as

[0163] shown in Figure (b) of Figure 7As shown in the figure, the wallpaper editing interface 700 may further include a mask layer 704. For example, the mask layer 704 may be a blurred mask layer, which refers to a mask layer obtained through blurring processing. In this case, the function controls, the lock screen wallpaper page 702, and the desktop wallpaper page 703 can all be displayed on top of the mask layer 704.

[0164] For example, the mask layer 704 can be obtained by blurring the main picture of the lock screen wallpaper displayed on the lock screen wallpaper page 702. Alternatively, the mask layer 704 can be obtained by blurring the desktop wallpaper displayed on the desktop wallpaper page 703. Of course, the mask layer 704 can also be obtained by other means, such as by blurring a preset picture, and the embodiments of the present application do not limit this.

[0165] In some embodiments, the wallpaper editing interface 700 can be entered from the lock screen or the desktop.

[0166] As an example, as shown in figure (a) of Figure 8 when the electronic device displays the lock screen interface 800, the user can perform a first gesture operation ( Figure 8 taking the two-finger pinch operation as an example) on the lock screen interface 800. In response to the first gesture operation, the electronic device can display Figure 8 the wallpaper editing interface 700 shown in figure (b) of Figure 8 The wallpaper editing interface 700 displays the lock screen wallpaper page 702 and the related function controls for editing the lock screen wallpaper. In this case, the user can edit the lock screen wallpaper based on the

[0167] wallpaper editing interface 700 shown in figure (b) of Figure 8 If the user wants to edit the desktop wallpaper, they can swipe left in the Figure 8 wallpaper editing interface 700 shown in figure (b) of Figure 8 and then, as shown in figure (c) of

[0168] The wallpaper editing interface 700 can display the desktop wallpaper page 703 and the related function controls for editing the desktop wallpaper. In this case, the user can edit the desktop wallpaper based on the Figure 9 wallpaper editing interface 700 shown in figure (c) of Figure 9 As another example, as shown in figure (a) of Figure 9The desktop editing interface shown in Figure (b) thereof, which can display relevant controls for editing the desktop, such as wallpaper controls, card controls, switching effect controls, desktop setting controls, etc. Then, the user clicks on the wallpaper control in this desktop editing interface. In response to this click operation, the electronic device can display Figure 9 The wallpaper editing interface 700 shown in Figure (c) thereof. The wallpaper editing interface 700 displays a desktop wallpaper page 703 and relevant function controls for editing the desktop wallpaper. In this case, the user can, based on Figure 9 The wallpaper editing interface 700 shown in Figure (c) thereof, edit the desktop wallpaper.

[0169] If the user wants to edit the lock screen wallpaper, they can Figure 9 Swipe right in the wallpaper editing interface 700 shown in Figure (c) thereof, and then, as Figure 9 Shown in Figure (d) thereof, the wallpaper editing interface 700 can display a lock screen wallpaper page 702 and relevant function controls for editing the lock screen wallpaper. In this case, the user can, based on Figure 9 The wallpaper editing interface 700 shown in Figure (d) thereof, edit the lock screen wallpaper.

[0170] Next, the specific process of editing the lock screen wallpaper based on the wallpaper editing interface 700 will be described.

[0171] The embodiments of the present application provide capabilities such as wallpaper templates, clock customization, decorative element settings, depth of field settings, picture replacement, picture zooming and moving, etc. for the lock screen wallpaper. Through these capabilities, users can edit personalized and characteristic wallpapers.

[0172] As an example, after the electronic device displays the wallpaper editing interface 700 shown in Figure (a) thereof, the user can click on the lock screen style control 72. In response to this click operation, as Figure 10 Shown in Figure (b) thereof, the electronic device can display a pop-up window 7011 on the wallpaper editing interface 700. Exemplarily, the electronic device can pop up the pop-up window 7011 from the bottom of the wallpaper editing interface 700. Multiple wallpaper template options are displayed in the pop-up window 7011. Further, picture options in the gallery and some wallpaper picture options preset by the electronic device can also be displayed. Assuming the user selects a wallpaper template from these multiple wallpaper templates, in response to the selection operation of this wallpaper template, as Figure 10 Shown in Figure (c) thereof, the electronic device can close the pop-up window 7011 and display this wallpaper template in the lock screen wallpaper page 702. Figure 10

[0173] Figure 11 As an example, the electronic device displays as Figure 11After the wallpaper editing interface 700 shown in FIG. (a) in FIG. 1 is displayed, the user can click the clock frame 710 in the lock screen wallpaper page 702. In response to the click operation, as shown in FIG. Figure 11 As shown in FIG. 7( b) of FIG. 7 , the electronic device may display a pop-up window 7012 on the wallpaper editing interface 700. For example, the electronic device may pop up a pop-up window 7012 from the bottom of the wallpaper editing interface 700, and the pop-up window 7012 may display multiple clock font options and multiple clock color options. The user may adjust the font of the clock in the wallpaper of the lock screen wallpaper page 702 through these clock font options, and adjust the color of the clock in the wallpaper of the lock screen wallpaper page 702 through these clock color options. Assuming that the user selects a clock color, in response to the selection operation of the clock color, as shown in FIG. 7( b) of FIG. 7 , the electronic device may display a pop-up window 7012 on the wallpaper editing interface 700. For example, the electronic device may display a pop-up window 7012 on the bottom of the wallpaper editing interface 700, and display multiple clock font options and multiple clock color options in the pop-up window 7012. The user may adjust the font of the clock in the wallpaper of the lock screen wallpaper page 702 through these clock font options, and adjust the color of the clock in the wallpaper of the lock screen wallpaper page 702 through these clock color options. Figure 11 As shown in FIG. 7(c), the electronic device can set the color of the clock in the wallpaper of the lock screen wallpaper page 702 to this clock color, so that the user can view the clock display effect. Figure 11 As shown in FIG. (c) of FIG. 1 , the user may click on the folding control 712. In response to the click operation, as shown in FIG. Figure 11 As shown in Figure (d), the electronic device can close the pop-up window 7012.

[0174] As an example, the electronic device displays Figure 12 After the wallpaper editing interface 700 shown in FIG. (a) is displayed, the user can click on the personalized decoration control 73. In response to the click operation, as shown in FIG. Figure 12 As shown in FIG. 7( b) of FIG. 700 , the electronic device may display a pop-up window 7013 on the wallpaper editing interface 700. For example, the electronic device may pop up a pop-up window 7013 from the bottom of the wallpaper editing interface 700, and the pop-up window 7013 may display multiple shape options and multiple color options. The user may adjust the shape of the decorative element in the wallpaper of the lock screen wallpaper page 702 through these shape options, and adjust the color of the decorative element in the wallpaper of the lock screen wallpaper page 702 through these color options. Assuming that the user selects a color, in response to the selection operation of the color, Figure 12 As shown in FIG. 7(c), the electronic device can set the color of the decorative element in the wallpaper of the lock screen wallpaper page 702 to this color, so that the user can view the display effect of the decorative element. Figure 12 As shown in FIG. (c) of FIG. 1 , the user can click on the folding control 713. In response to the click operation, as shown in FIG. Figure 12 As shown in Figure (d), the electronic device can close the pop-up window 7013.

[0175] As an example, the electronic device displays Figure 13After the wallpaper editing interface 700 shown in FIG. (a) therein, the user can click on the depth-of-field effect control 74. In response to this click operation, as Figure 13 shown in FIG. (b) therein, the electronic device can display a pop-up window 7014 on the wallpaper editing interface 700. By way of example, the electronic device can pop up the pop-up window 7014 from the bottom of the wallpaper editing interface 700. The depth-of-field effect switch 7141 is displayed in the pop-up window 7014, and further, a background blur control 7142 ( Figure 13 taking the control in the form of a slider in FIG. as an example) can also be displayed. The user can turn on or off the depth-of-field effect of the wallpaper on the lock screen wallpaper page 702 through the depth-of-field effect switch 7141, and adjust the blur degree of the background part of the wallpaper on the lock screen wallpaper page 702 through the background blur control 7142. Assuming that the user turns off the depth-of-field effect switch 7141, in response to the closing operation of the depth-of-field effect switch 7141, as Figure 13 shown in FIG. (c) therein, the electronic device can turn off the depth-of-field effect of the wallpaper on the lock screen wallpaper page 702. After that, if the user determines to complete the setting of the depth of field, as Figure 13 shown in FIG. (c) therein, the user can click on the folding control 7143. In response to this click operation, as Figure 13 shown in FIG. (d) therein, the electronic device can close the pop-up window 7014.

[0176] It should be noted that, as Figure 13 shown in FIG. (a) therein, when the depth-of-field effect is turned on, the cutout layer is above the clock layer, that is, the level of the cutout layer is higher than the level of the clock layer, so that the main character will not be blocked. And as Figure 13 shown in FIG. (d) therein, when the depth-of-field effect is turned off, the cutout layer is below the clock layer, that is, the level of the cutout layer is lower than the level of the clock layer, so that the main character can be blocked.

[0177] As an example, after the electronic device displays the wallpaper editing interface 700 shown in FIG. (a) as Figure 14 therein, the user can click on the picture replacement control 75. In response to this click operation, as Figure 14 shown in FIG. (b) therein, the electronic device can display a pop-up window 7015 on the wallpaper editing interface 700. By way of example, the electronic device can pop up the pop-up window 7015 from the bottom of the wallpaper editing interface 700. Picture options in the gallery are displayed in the pop-up window 7015. Assuming that the user selects a picture from these pictures, in response to the selection operation of this picture, as Figure 14 shown in FIG. (c) therein, the electronic device can close the pop-up window 7015 and replace the main picture of the wallpaper on the lock screen wallpaper page 702 with this picture.

[0178] As an example, the user can zoom in or out on the main picture of the wallpaper on the lock screen wallpaper page 702, and can also move the position of the main picture. For example, as shown in Figure 15 Figure (a) therein, assuming that the user performs a two-finger zoom-in operation on the lock screen wallpaper page 702, in response to this two-finger zoom-in operation, as shown in Figure 15 Figure (b) therein, the electronic device can zoom in on the main picture of the wallpaper on the lock screen wallpaper page 702. Another example is, as shown in Figure 15 Figure (c) therein, assuming that the user performs a two-finger zoom-out operation on the lock screen wallpaper page 702, in response to this two-finger zoom-out operation, as shown in Figure 15 Figure (d) therein, the electronic device can zoom out on the main picture of the wallpaper on the lock screen wallpaper page 702. Another example is, as shown in Figure 15 Figure (e) therein, assuming that the user performs a downward movement operation on the lock screen wallpaper page 702, in response to this downward movement operation, as shown in Figure 15 Figure (f) therein, the electronic device can move the main picture of the wallpaper on the lock screen wallpaper page 702 downward.

[0179] After editing the lock screen wallpaper in one or more of the above ways, if the user determines that the wallpaper on the current lock screen wallpaper page 702 can meet the requirements, then as shown in Figure 16 Figure (a) therein, the user can click on the apply control 71 in the wallpaper editing interface 700. In response to this click operation, the electronic device can close the wallpaper editing interface 700, and, as shown in Figure 16 Figure (b) therein, the electronic device can set the wallpaper on the lock screen wallpaper page 702 as the lock screen wallpaper of the lock screen interface 800.

[0180] After that, if the user wants to edit the wallpaper again during the process of using the electronic device, then as shown in Figure 17 Figure (a) therein, the user can perform a first gesture operation ( Figure 17 taking the two-finger pinch operation as an example) on the lock screen interface 800. In response to the first gesture operation, the electronic device can display Figure 17 the wallpaper editing interface 700 shown in Figure (b) therein. The wallpaper editing interface 700 displays the lock screen wallpaper page 702 and related function controls for editing the lock screen wallpaper. At this time, the lock screen wallpaper displayed on the lock screen wallpaper page 702 is the lock screen wallpaper that the user edited last time. In this case, the user can continue to edit the lock screen wallpaper that was edited last time. For example, a new wallpaper template can be selected through the lock screen style control 72 in a similar Figure 10 way, or the clock in the lock screen wallpaper that was edited last time can be reset through the clock frame 710 in a similar Figure 11 way, or... Figure 12to reset the shape and color of the decorative elements in the lock screen wallpaper completed in the previous edit, or it can be done in a similar way as Figure 13 to change the depth of field effect and background blur in the lock screen wallpaper completed in the previous edit, or it can be done in a similar way as Figure 14 to replace the main picture in the lock screen wallpaper completed in the previous edit, or it can be done in a similar way as Figure 15 to scale and / or move the main picture in the lock screen wallpaper completed in the previous edit.

[0181] Next, the specific process of editing the desktop wallpaper based on the wallpaper editing interface 700 will be described.

[0182] The embodiments of the present application provide capabilities for the desktop wallpaper such as following the lock screen, color setting, custom selection, blur, scaling and moving. Through these capabilities, users can edit personalized and characteristic wallpapers.

[0183] As an example, the electronic device displays the wallpaper editing interface 700 as shown in Figure 18 (a) in the figure. The wallpaper editing interface 700 displays the lock screen wallpaper page 702 and related function controls for editing the lock screen wallpaper. The user swipes left in the wallpaper editing interface 700, and then as shown in Figure 18 (b) in the figure, the wallpaper editing interface 700 displays the desktop wallpaper page 703 and related function controls for editing the desktop wallpaper. Suppose the user clicks the follow lock screen control 76 in the wallpaper editing interface 700. In response to this click operation, as shown in Figure 18 (c) in the figure, the electronic device displays the main picture of the wallpaper on the lock screen wallpaper page 702 on the desktop wallpaper page 703.

[0184] In some possible implementations, after the user clicks the follow lock screen control 76 in the wallpaper editing interface 700, the desktop wallpaper page 703 is in the follow lock screen state. In this case, any operation performed by the user on the main picture on the lock screen wallpaper page 702 will be synchronized to the desktop wallpaper page 703. For example, if the user replaces the main picture on the lock screen wallpaper page 702, the wallpaper on the desktop wallpaper page 703 will be replaced synchronously; if the user enlarges the main picture on the lock screen wallpaper page 702, the wallpaper on the desktop wallpaper page 703 will be enlarged synchronously; if the user reduces the main picture on the lock screen wallpaper page 702, the wallpaper on the desktop wallpaper page 703 will be reduced synchronously; if the user moves the main picture on the lock screen wallpaper page 702, the wallpaper on the desktop wallpaper page 703 will be moved synchronously.

[0185] In some embodiments, when the desktop wallpaper page 703 is in the follow lock screen state, any operation performed by the user on the wallpaper in the desktop wallpaper page 703 will not be synchronized to the lock screen wallpaper page 702. In this way, while keeping the desktop wallpaper page 703 and the lock screen wallpaper page 702 having the same main picture, it is also possible to achieve a display differentiation of the main pictures of the desktop wallpaper page 703 and the lock screen wallpaper page 702 according to user operations, thereby improving the flexibility of wallpaper settings. Of course, in some embodiments, when the desktop wallpaper page 703 is in the follow lock screen state, any operation performed by the user on the wallpaper in the desktop wallpaper page 703 can also be synchronized to the lock screen wallpaper page 702, so as to maintain the consistency between the desktop wallpaper page 703 and the lock screen wallpaper page 702.

[0186] As an example, after the electronic device displays the wallpaper editing interface 700 shown in Figure (a) of Figure 19 , the user can click on the color control 77. In response to this click operation, as shown in Figure (b) of Figure 19 , the electronic device can pop up a pop-up window 7016 from the bottom of the wallpaper editing interface 700. The pop-up window 7016 displays a gradient color switch 7161 and multiple color options. The user can set the desktop wallpaper as a solid color wallpaper or a gradient color wallpaper through the gradient color switch 7161, and the user can set the color of the desktop wallpaper through these color options. Optionally, the multiple color options may include a smart color picker option, and the color corresponding to the smart color picker option is the background main color of the main picture of the wallpaper on the lock screen wallpaper page 702. Suppose the user selects a color. In response to the selection operation of this color, when the gradient color switch 7161 is turned off, as shown in Figure (c) of Figure 19 , the electronic device can display a solid color wallpaper of this color on the desktop wallpaper page 703, so that the user can view the wallpaper display effect. After that, if the user determines to complete the color setting, as shown in Figure (c) of Figure 19 , the user can click on the collapse control 7162. In response to this click operation, as shown in Figure (d) of Figure 19 , the electronic device can close the pop-up window 7016.

[0187] As an example, when the wallpaper editing interface 700 displays the desktop wallpaper page 703 and the related function controls for editing the desktop wallpaper, the user can select a picture from the pictures in the gallery or the wallpaper pictures pre-set in the electronic device as the wallpaper of the desktop wallpaper page 703 through the select wallpaper control 78 in the wallpaper editing interface 700. This process is similar to the related process of selecting pictures in the above Figure 10 or Figure 14 , and will not be elaborated here.

[0188] As an example, when the wallpaper editing interface 700 displays the desktop wallpaper page 703 and related function controls for editing the desktop wallpaper, the user can adjust the blur degree of the wallpaper on the desktop wallpaper page 703 through the blur control 79 in the wallpaper editing interface 700. This process is similar to the related process of adjusting the blur degree in the above text Figure 13 and will not be elaborated here.

[0189] As an example, when the wallpaper editing interface 700 displays the desktop wallpaper page 703 and related function controls for editing the desktop wallpaper, the user can zoom in or out on the wallpaper of the desktop wallpaper page 703 and can also move the position of the wallpaper. This process is similar to the related process of adjusting the size or position of the main picture in the above text Figure 15 and will not be elaborated here.

[0190] After editing the desktop wallpaper in one or more of the above ways, if the user determines that the wallpaper on the current desktop wallpaper page 703 can meet the requirements, the user can click the apply control 71 in the wallpaper editing interface 700. In response to this click operation, the electronic device can set the wallpaper on the desktop wallpaper page 703 as the desktop wallpaper.

[0191] It should be noted that since the wallpaper editing interface 700 includes the lock screen wallpaper page 702 and the desktop wallpaper page 703, after the user clicks the apply control 71 in the wallpaper editing interface 700, the electronic device can set the wallpaper on the current lock screen wallpaper page 702 as the lock screen wallpaper and at the same time set the wallpaper on the current desktop wallpaper page 703 as the desktop wallpaper.

[0192] Another point to note is that in some embodiments, if the electronic device enters the wallpaper editing interface 700 from the lock screen interface 800, then after the user clicks the apply control 71 in the wallpaper editing interface 700, in response to this click operation, the electronic device can display the lock screen interface 800 and display the edited lock screen wallpaper on the lock screen interface 800. And if the electronic device enters the wallpaper editing interface 700 from the desktop 900, then after the user clicks the apply control 71 in the wallpaper editing interface 700, in response to this click operation, the electronic device can display the desktop 900 and display the edited desktop wallpaper on the desktop 900.

[0193] In some other embodiments, if the user clicks on the application control 71 in the wallpaper editing interface 700 when the lock screen wallpaper page 702 is displayed in the wallpaper editing interface 700, then in response to this click operation, the electronic device can display the lock screen interface 800 and display the edited lock screen wallpaper on the lock screen interface 800. And if the user clicks on the application control 71 in the wallpaper editing interface 700 when the home screen wallpaper page 703 is displayed in the wallpaper editing interface 700, then in response to this click operation, the electronic device can display the home screen 900 and display the edited home screen wallpaper on the home screen 900.

[0194] In still some other embodiments, after the user clicks on the application control 71 in the wallpaper editing interface 700, in response to this click operation, the electronic device can display the home screen 900 and display the edited home screen wallpaper on the home screen 900.

[0195] It should be noted that after the user edits the lock screen wallpaper and / or the home screen wallpaper in one or more of the above ways, if the user does not want to save the edited lock screen wallpaper and / or the home screen wallpaper, the user can click on the return control 70 in the wallpaper editing interface 700. In response to this click operation, the electronic device will not make the edited lock screen wallpaper and / or the home screen wallpaper effective, but will continue to maintain the original lock screen wallpaper and the home screen wallpaper.

[0196] After understanding the various editing functions in the wallpaper editing method provided in the embodiments of the present application, the specific implementation processes of these editing functions will be described in detail below.

[0197] Figure 20 is a schematic diagram of the software system involved in a wallpaper editing method provided in an embodiment of the present application. Refer to Figure 20 In FIG. (a) therein, the software system may include an application layer and a system layer.

[0198] The application layer may include a series of applications. As Figure 20 shown in FIG. (a) therein, the application layer may include applications such as a lock screen application, a home screen application, a gallery application, etc.

[0199] The system layer may include multiple functional modules. For example, it may include a file system, etc.

[0200] Both the lock screen application and the home screen application can instruct the gallery application to display the wallpaper editing interface.

[0201] After receiving the instruction from the lock screen application or the home screen application, the gallery application can load the wallpaper editing interface, that is, load the function controls, the lock screen wallpaper page, and the home screen wallpaper page.

[0202] Among them, the gallery application can obtain the lock screen wallpaper file and the desktop wallpaper file from the file system, and display the lock screen wallpaper on the lock screen wallpaper page according to the lock screen wallpaper file, and display the desktop wallpaper on the desktop wallpaper page according to the desktop wallpaper file.

[0203] The file system is used to manage the lock screen wallpaper file, the desktop wallpaper file, and the wallpaper template file. Exemplarily, the lock screen wallpaper file, the desktop wallpaper file, and the wallpaper template file can be stored in the memory of the hardware layer. The file system can read the lock screen wallpaper file, the desktop wallpaper file, and the wallpaper template file from the memory. The file system can also update the lock screen wallpaper file and the desktop wallpaper file in the memory.

[0204] The lock screen wallpaper file can include a first file and a second file of the lock screen wallpaper. The first file of the lock screen wallpaper is the lock screen wallpaper file used when editing the lock screen wallpaper in the wallpaper editing interface, that is, the gallery application can display the lock screen wallpaper on the lock screen wallpaper page according to the first file of the lock screen wallpaper. The second file of the lock screen wallpaper is the lock screen wallpaper file used when displaying the lock screen wallpaper on the lock screen interface, that is, the lock screen application can display the lock screen wallpaper on the lock screen interface according to the second file of the lock screen wallpaper.

[0205] The desktop wallpaper file can include a first file and a second file of the desktop wallpaper. The first file of the desktop wallpaper is the desktop wallpaper file used when editing the desktop wallpaper in the wallpaper editing interface, that is, the gallery application can display the desktop wallpaper on the desktop wallpaper page according to the first file of the desktop wallpaper. The second file of the desktop wallpaper is the desktop wallpaper file used when displaying the desktop wallpaper on the desktop, that is, the desktop application can display the desktop wallpaper on the desktop according to the second file of the desktop wallpaper.

[0206] The wallpaper template file is a file of some wallpaper templates available for users to select when editing the lock screen wallpaper in the wallpaper editing interface. In this case, after the user selects a certain wallpaper template, the gallery application can display this wallpaper template on the lock screen wallpaper page according to the wallpaper template file corresponding to this wallpaper template.

[0207] Figure 20 Figure (b) in is a technical architecture diagram related to a wallpaper editing method provided by an embodiment of the present application. Only the modules related to the embodiment of the present application are shown in this technical architecture diagram. These modules can be set in the gallery application or can be other applications independent of the gallery application, such as a separate wallpaper editing application. In practical applications, other modules may also be included in this technical architecture diagram, which will not be shown one by one.

[0208] Exemplarily, as Figure 20 shown in Figure (b) in, the gallery application can include a function main body module, a lock screen view module, and a desktop view module.

[0209] The functional main body module is used to implement various editing functions during the wallpaper editing process. The functional main body module can interact with the outside world, such as interacting with the lock screen application, the desktop application, and the file system. And, the functional main body module can implement the parsing work related to the wallpaper file during the wallpaper editing process. In addition, the functional main body module can also save the operation data of each editing operation during the wallpaper editing process.

[0210] The lock screen view module is used to display the lock screen wallpaper on the lock screen wallpaper page according to the lock screen wallpaper display information.

[0211] The desktop view module is used to display the desktop wallpaper on the desktop wallpaper page according to the desktop wallpaper display information.

[0212] After describing the technical architecture diagram of the wallpaper editing method provided by the embodiments of the present application, the sequence diagram of the wallpaper editing method provided by the embodiments of the present application is described next. This sequence diagram corresponds to Figures 7 to 19 the scenario shown, that is, it is used to illustrate the specific implementation process of wallpaper editing based on the wallpaper editing interface.

[0213] Figure 21 is a flowchart of a wallpaper editing method provided by the embodiments of the present application. Figure 21 The flowchart shown is used to illustrate the specific implementation process of displaying the wallpaper editing interface when the wallpaper editing function is used for the first time. Refer to Figure 21 , this method may include the following steps:

[0214] Step 2101: The lock screen application receives a first gesture operation.

[0215] The first gesture operation may be a gesture operation defined in advance. For example, the first gesture operation may be a two-finger pinch operation, a long press operation, a double tap operation, an S-shaped slide operation, etc., and the embodiments of the present application do not limit this.

[0216] For example, assume that the first gesture operation is a two-finger pinch operation. As shown in Figure 8 Figure (a) of, when the electronic device displays the lock screen interface 800, the user can perform a two-finger pinch on the lock screen interface 800. In this case, the lock screen application can receive the two-finger pinch operation on the lock screen interface 800. Among them, the two-finger pinch operation triggered on the lock screen interface 800 is used to indicate entering the wallpaper editing function, that is, it is used to indicate displaying the wallpaper editing interface.

[0217] Step 2102: In response to the first gesture operation, the lock screen application sends a first message to the gallery application.

[0218] Exemplarily, the first message may be an intent message.

[0219] The first message may carry source information, which is used to indicate which application the first message comes from. For example, the source information in the first message may be the application identifier of the lock screen application.

[0220] In some implementations, when the lock screen wallpaper has not been edited by the wallpaper editing method provided by the embodiments of the present application, the lock screen wallpaper is generally the default wallpaper image. In this case, the first message may also carry the storage path of the wallpaper image.

[0221] Since the first gesture operation triggered on the lock screen interface is used to indicate entering the wallpaper editing function, after receiving the first gesture operation, the lock screen application can send a first message to the gallery application to indicate that the gallery application displays the wallpaper editing interface.

[0222] Step 2103: After receiving the first message, if the function main body module in the gallery application determines that the first message comes from the lock screen application, it displays function controls.

[0223] Exemplarily, as shown in FIGS. (b) and (c) in Figure 8 , the function controls may include main function controls, such as a return control 70, an apply control 71, etc., and may also include related function controls for editing the lock screen wallpaper, such as a clock box 710, a replace picture control 75, a lock screen style control 72, a personality decoration control 73, a depth of field effect control 74, etc., and include related function controls for editing the desktop wallpaper, such as a follow lock screen control 76, a color control 77, a select wallpaper control 78, a blur control 79, etc.

[0224] The function main body module may determine whether the first message comes from the lock screen application according to the source information in the first message.

[0225] In some embodiments, if the function main body module determines that the first message comes from the lock screen application, then the function main body module may determine that the display area of the lock screen wallpaper page is the first display area preset within the screen, and the display area of the desktop wallpaper page is the second display area preset, where only part of the second display area is within the screen or the second display area is completely outside the screen. In this case, as shown in FIG. (b) in Figure 8 , the function main body module may first display the main function controls and the related function controls for editing the lock screen wallpaper, and temporarily not display the related function controls for editing the desktop wallpaper.

[0226] In some embodiments, the size of the first display area is the same as the size of the second display area. The area ratio (i.e., the aspect ratio of the area) of the first display area and the area ratio of the second display area are both the same as the screen ratio (i.e., the aspect ratio of the screen) of the electronic device.

[0227] For example, as Figure 22 shown, when the first message comes from the lock screen application, the function main body module can determine that the display area of the lock screen wallpaper page is the preset display area A within the screen, while the display area of the desktop wallpaper page is the preset display area B. Only a very small part of the display area B is within the screen, and most of it is outside the screen. In this case, the user can see the complete lock screen wallpaper page, but only a very small part of the desktop wallpaper page.

[0228] In some embodiments, if the function main body module determines that the first message comes from the lock screen application, it can also display a mask layer. For example, as Figure 7 shown, the mask layer 704 is the bottommost layer of the wallpaper editing interface 703. The function controls in the wallpaper editing interface 700, the lock screen wallpaper page 702, and the desktop wallpaper page 703 are all displayed above the mask layer 704.

[0229] Exemplarily, the mask layer can be a blurred mask layer, which refers to a mask layer obtained through blur processing.

[0230] As an example, the function main body module can obtain the corresponding picture according to the storage path of the picture carried in the first message (i.e., the wallpaper picture described above), or the function main body module can obtain a preset picture. Then, the function main body module can adjust the picture according to the screen information so that the size of the picture is the screen size, and then perform blur processing on the picture to obtain the mask layer, and then display the mask layer.

[0231] In a possible implementation, the operation of the function main body module to adjust the picture according to the screen information can be: cropping the picture according to the screen ratio, and the picture ratio (i.e., the aspect ratio of the picture height to width) of the cropped picture is the same as the screen ratio; dividing the screen height by the height of the cropped picture, or dividing the screen width by the width of the cropped picture, to obtain the scaling ratio; scaling the cropped picture according to the scaling ratio, and the size of the scaled picture is the screen size.

[0232] Step 2104: The function main body module sends a first creation instruction to the lock screen view module, and the first creation instruction is used to indicate the creation of m views.

[0233] m can be a preset value. For example, m can be the maximum number of layers that a technician estimates the wallpaper template will set. Exemplarily, m is an integer greater than or equal to 2. For example, m can be 12, 13, etc., and the embodiments of the present application do not limit this.

[0234] Exemplarily, the first creation instruction can carry the attributes of each of the m views.

[0235] The attributes of each of the m views may include view identification, size, position, etc.

[0236] The view identification of a view is used to uniquely identify the view. By way of example, m is 12, and the view identifications of the 12 views may be "layer_origin", "layer_color", "layer_res1", "layer_res2", "layer_res3", "layer_res4", "layer_res5", "layer_res6", "layer_res7", "layer_res8", "layer_timer", "layer_crop".

[0237] The size of each of the m views may be the size of the display area (i.e., the first display area) of the lock screen wallpaper page. The position of each of the m views may be the position of the first display area.

[0238] Step 2105: After receiving the first creation instruction, the lock screen view module creates m views.

[0239] The lock screen view module may create the m views according to the attributes of each of the m views carried in the first creation instruction. Each of the m newly created views by the lock screen view module is a blank view, and a blank view is a transparent view on which no specific content has been drawn yet.

[0240] Step 2106: The function main body module sends a second creation instruction to the desktop view module, and the second creation instruction is used to instruct to create n views.

[0241] n may be a preset value. By way of example, n is an integer greater than or equal to 2, such as n may be 2, 3, etc., and the embodiments of the present application do not make any limitation thereto.

[0242] By way of example, the second creation instruction may carry the attributes of each of the n views.

[0243] The attributes of each of the n views may include view identification, size, position, etc.

[0244] By way of example, when n is equal to 2, the view identifications of the n views may be "layer_origin", "layer_icon".

[0245] The size of each of the n views may be the size of the display area (i.e., the second display area) of the desktop wallpaper page. The position of each of the n views may be the position of the second display area.

[0246] It should be noted that there is no strict sequence for the operation of the functional main body module to display the function control in step 2103, the operation of the functional main body module to send the first creation instruction to the lock screen view module in step 2104, and the operation of the functional main body module to send the second creation instruction to the desktop view module in step 2106. That is to say, the functional main body module can first display the function control and then send the first creation instruction and the second creation instruction, or the functional main body module can first send the first creation instruction and the second creation instruction and then display the function control, or the functional main body module can send the first creation instruction and the second creation instruction while displaying the function control.

[0247] Step 2107: After receiving the second creation instruction, the desktop view module creates n views.

[0248] The desktop view module can create the n views according to the attributes of each of the n views carried in the second creation instruction. The n newly created views of the desktop view module are all blank views.

[0249] Step 2108: The functional main body module sends a wallpaper data acquisition request to the file system.

[0250] This wallpaper data acquisition request is used to request the acquisition of the lock screen wallpaper file and the desktop wallpaper file.

[0251] The lock screen wallpaper file is a file containing the relevant data of the current lock screen wallpaper of the electronic device.

[0252] The desktop wallpaper file is a file containing the relevant data of the current desktop wallpaper of the electronic device.

[0253] Step 2109: After receiving this wallpaper data acquisition request, the file system sends the lock screen wallpaper file and the desktop wallpaper file to the functional main body module.

[0254] After receiving the wallpaper data acquisition request sent by the functional main body module in the gallery application, the file system can send the first file of the lock screen wallpaper as the lock screen wallpaper file to the functional main body module, and send the first file of the desktop wallpaper as the desktop wallpaper file to the functional main body module.

[0255] The first file of the lock screen wallpaper is the lock screen wallpaper file that the gallery application needs to use when editing the lock screen wallpaper. In some implementations, in the case where the lock screen wallpaper has not been edited by the wallpaper editing method provided by the embodiments of the present application, the lock screen wallpaper can be a preset first picture, then the first file of the lock screen wallpaper can contain the first picture.

[0256] The first file of the desktop wallpaper is the desktop wallpaper file that the gallery application needs to use when editing the desktop wallpaper. In some implementations, when the desktop wallpaper has not been edited by the wallpaper editing method provided in the embodiments of the present application, the desktop wallpaper can be a preset second picture, and then the first file of the desktop wallpaper can include the second picture.

[0257] Both the first picture and the second picture are some wallpaper pictures pre-installed on the electronic device. The first picture and the second picture can be the same or different, and the embodiments of the present application do not limit this.

[0258] Exemplarily, the sizes of the first picture and the second picture are both the same as the screen size. In this case, both the first picture and the second picture are full-screen pictures, and the full-screen picture refers to a picture that can cover the entire screen.

[0259] Step 2110: After receiving the lock screen wallpaper file and the desktop wallpaper file, the function main body module obtains the first picture from the lock screen wallpaper file and obtains the second picture from the desktop wallpaper file.

[0260] It should be noted that after the function main body module obtains the first picture and the second picture in the embodiments of the present application, the obtained first picture and second picture can be saved in the memory and subsequent processing can be performed on them.

[0261] It should be noted that the pictures described in the embodiments of the present application can exist in the form of picture data in the electronic device before being displayed, and when being displayed, they can be drawn (Draw) and rendered (Render) according to the picture data to present pictures on the screen. Therefore, the above-mentioned obtaining of the first picture can be understood as obtaining the first picture data, and the above-mentioned obtaining of the second picture can be understood as obtaining the second picture data.

[0262] Step 2111: The function main body module processes the first picture to obtain a first display picture, and processes the second picture to obtain a second display picture.

[0263] The first display picture is the picture used for display on the lock screen wallpaper page. The size of the first display picture is the same as the size of the display area of the lock screen wallpaper page.

[0264] The second display picture is the picture used for display on the desktop wallpaper page. The size of the second display picture is the same as the size of the display area of the desktop wallpaper page.

[0265] In some embodiments, when the size of the first picture is the same as the screen size, the operation of the function main body module processing the first picture to obtain the first display picture can be: the function main body module scales the first picture according to a specific scaling ratio to obtain the first display picture.

[0266] A specific scaling ratio is used to process a full-screen image into an image that can fill the display area of the lock screen wallpaper page. For example, the height (or width) of the display area of the lock screen wallpaper page can be divided by the screen height (or screen width) to obtain the specific scaling ratio.

[0267] It should be noted that when the size of the second image is the same as the screen size, the operation of the functional main body module to process the second image to obtain the second display image is similar to the operation of the functional main body module to process the first image to obtain the first display image, and this application embodiment will not elaborate on this.

[0268] Step 2112: The functional main body module sends a first display instruction to the lock screen view module.

[0269] The first display instruction is used to indicate the display of the m views. The first display instruction carries the first view identifier and the first display image. For example, the first view identifier can be "layer_origin".

[0270] Step 2113: After receiving the first display instruction, the lock screen view module draws the first display image in the view identified by the first view identifier and displays the m views, where the layer content of the original layer is the first display image, and the other layers except the original layer are blank views.

[0271] After the lock screen view module draws the first display image in the view identified by the first view identifier, the view with the first display image drawn can be called the original layer. The other m - 1 views among the m views are still blank views. Therefore, after the lock screen view module displays the m views, the user can only see the content drawn in the original layer.

[0272] For example, when the lock screen view module displays the m views, it can submit the m views to the rendering service for rendering to display the m views in the display area (i.e., the first display area) of the lock screen wallpaper page on the screen, thus realizing the display of the lock screen wallpaper in the lock screen wallpaper page.

[0273] It should be noted that as Figure 22 shown, since the first display area is the display area A completely within the screen, after the lock screen view module displays the m views, as Figure 8 shown in the (b) figure of, the user can see the lock screen wallpaper in the lock screen wallpaper page 702.

[0274] Step 2114: The functional main body module sends a second display instruction to the desktop view module.

[0275] The second display instruction is used to indicate the display of the n views.

[0276] Exemplarily, when n is equal to 2, the second display instruction may carry a second view identifier, a second display picture, a third view identifier, and a desktop thumbnail. Exemplarily, the second view identifier may be "layer_origin", and the third view identifier may be "layer_icon". When n is greater than 2, the second display instruction may further carry other view identifiers and corresponding layer information.

[0277] The desktop thumbnail is a thumbnail of the desktop content. Exemplarily, after receiving the first message, the function main body module may obtain the desktop thumbnail from the desktop application. Of course, the function main body module may also obtain the desktop thumbnail in other ways, and the embodiments of the present application do not limit this.

[0278] Step 2115: After receiving the second display instruction, the desktop view module draws the second display picture in the view identified by the second view identifier, draws the desktop thumbnail in the view identified by the third view identifier, and displays the n views.

[0279] When n is equal to 2, after the desktop view module draws the second display picture in the view identified by the second view identifier, the view with the second display picture drawn may be referred to as the original layer. After the desktop view module draws the desktop thumbnail in the view identified by the third view identifier, the view with the desktop thumbnail drawn may be referred to as the desktop icon layer. The level of the desktop icon layer is higher than that of the original layer, that is, the desktop icon layer is located on the upper layer of the original layer.

[0280] When n is greater than 2, the desktop view module may further draw the layer content in the view identified by the other view identifier according to the layer information corresponding to the other view identifier carried in the second display instruction. When n is greater than 2 and only the second view identifier and the third view identifier are carried in the second display instruction, the second display picture is drawn in the original layer, the desktop thumbnail is drawn in the desktop icon layer, and the other views except the original layer and the desktop icon layer are blank views.

[0281] Exemplarily, when the desktop view module displays the n views, it may submit the n views to the rendering service for rendering in the order from the lowest level to the highest level, so as to display the n views in the display area (i.e., the second display area) of the desktop wallpaper page on the screen, thus realizing the display of the desktop wallpaper and the desktop content in the desktop wallpaper page.

[0282] It should be noted that in some cases, as Figure 22 shown, since the second display area is a display area B with only a small part located within the screen and most of it located outside the screen, after the desktop view module displays the n views, as Figure 8As shown in Figure (b) therein, the user cannot see the desktop wallpaper and desktop content on the desktop wallpaper page.

[0283] In some other cases, the second display area can be mostly or entirely within the screen. In this case, after the desktop view module displays the n views, the user can see some or all of the desktop wallpaper and desktop content on the desktop wallpaper page.

[0284] After displaying the function control, the lock screen wallpaper page, and the desktop wallpaper page through the above steps, the display of the wallpaper editing interface is completed. For example, the displayed wallpaper editing interface can be Figure 8 the wallpaper editing interface 700 shown in Figure (b) therein.

[0285] After displaying the wallpaper editing interface, the user can edit the lock screen wallpaper or the desktop wallpaper based on the wallpaper editing interface. Next, the specific implementation process of various editing functions will be described in detail.

[0286] Figure 23 is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 23 The shown flowchart is used to illustrate the specific implementation process for the user to select a wallpaper template based on the wallpaper editing interface. Refer to Figure 23 and this method may include the following steps:

[0287] Step 2301: The function main body module receives a click operation on the lock screen style control.

[0288] In the case where the lock screen wallpaper page is displayed on the wallpaper editing interface, various editing operations can be performed on the wallpaper of the lock screen wallpaper page. In some cases, if the user wants to change the style of the lock screen wallpaper, then as Figure 10 shown in Figure (a) therein, the user can click on the lock screen style control 72, and the function main body module will receive the click operation on the lock screen style control 72.

[0289] Step 2302: In response to the click operation on the lock screen style control, the function main body module displays a first pop-up window.

[0290] Exemplarily, as Figure 10 shown in Figure (b) therein, multiple wallpaper template options are displayed in the first pop-up window 7011. Optionally, picture options in the gallery and some wallpaper picture options preset in the electronic device can also be displayed.

[0291] Step 2303: The function main body module receives a selection operation on wallpaper template option 1.

[0292] Exemplarily, as Figure 10As shown in Figure (b), after the user clicks on a wallpaper template option (hereinafter referred to as wallpaper template option 1) displayed in the first pop-up window 7011, the functional main module will receive a selection operation for wallpaper template option 1. By way of example, wallpaper template option 1 is the option corresponding to wallpaper template 1.

[0293] Step 2304: In response to the selection operation for wallpaper template option 1, the functional main module obtains the template identifier corresponding to wallpaper template option 1.

[0294] A template identifier uniquely identifies a wallpaper template. The template identifier corresponding to wallpaper template option 1 is the template identifier of wallpaper template 1.

[0295] The wallpaper templates in the embodiments of the present application can be preset. Each wallpaper template can include multiple layers, and the types and levels of the multiple layers included in each wallpaper template can be preset.

[0296] By way of example, as Figure 4 shown, a wallpaper template can sequentially include an original layer and a clock layer from the bottommost layer to the topmost layer; or can include an original layer, a color background layer, a clock layer, and a cutout layer; or can include an original layer, a decoration layer 1, a clock layer, and a decoration layer 2; or can include an original layer, a decoration layer 1, a clock layer, a cutout layer, and a decoration layer 2. Of course, not limited to these examples, the multiple layers included in a wallpaper template can be flexibly set according to actual needs.

[0297] Step 2305: The functional main module sends a wallpaper template data acquisition request to the file system.

[0298] This wallpaper template data acquisition request is used to request the acquisition of the wallpaper template file corresponding to wallpaper template 1. This wallpaper template data acquisition request can carry the template identifier of wallpaper template 1.

[0299] Step 2306: After receiving this wallpaper template data acquisition request, the file system sends the wallpaper template file to the functional main module.

[0300] Specifically, the file system can obtain the corresponding wallpaper template file according to this template identifier and send this wallpaper template file to the functional main module.

[0301] By way of example, the wallpaper template file includes the files of each layer among the multiple layers. The files of each layer included in the wallpaper template file can be preset.

[0302] By way of example, the file name of a layer file can include one or more of the view identifier, layer type, level, etc. of this layer, and the file content of a layer file can include the layer data of this layer.

[0303] Exemplarily, the meanings of the values of the layer types in the file name can be respectively: [0] original layer, [1] color background layer, [2] decoration layer, [3] clock layer, [4] cutout layer.

[0304] Exemplarily, the file of the clock layer can be text. The text name of the text can include one or more of the view identifier, layer type, and level of the clock layer. The text content of the text can include clock setting information, and the clock setting information can include one or more of layout, font, color value, etc. For example, the text can be a text in txt format, or can be a text in doc format, or can be a text in docx format, or can be a text in JavaScript Object Notation (json) format, etc. The embodiments of the present application do not limit this.

[0305] For other layers except the clock layer, such as the original layer, color background layer, decoration layer, cutout layer, etc., the file of the layer can be a picture, and the picture name of the picture can include one or more of the view identifier, layer type, and level of the layer. For example, the picture name of the picture of the original layer can be "1-0-layer_origin", where "1" is the level of the original layer, "0" is the layer type of the original layer, and "layer_origin" is the view identifier of the original layer.

[0306] Step 2307: After receiving the wallpaper template file, the function main body module obtains the display information of each layer in the multiple layers according to the wallpaper template file.

[0307] Exemplarily, the display information of the clock layer can include one or more of the view identifier, level, and clock setting information of the clock layer.

[0308] Exemplarily, for other layers except the clock layer, such as the original layer, color background layer, decoration layer, cutout layer, etc., the display information of the layer can include one or more of the view identifier, level, and display picture of the layer. The display picture is a picture used to be displayed on the lock screen wallpaper page, and the display picture can fill the display area of the lock screen wallpaper page.

[0309] In some embodiments, referring to Figure 24 , for the file of any layer included in the wallpaper template file, the function main body module can obtain the display information of the layer through the following steps 23071 to 23073 according to the file of the layer.

[0310] Step 23071: The function main body module obtains the view identifier, layer type, and level of the layer from the file name of the file of the layer.

[0311] Step 23072: If the layer type is a clock layer, the functional main module determines that the file is text, and obtains the clock setting information of the clock layer from the text content of the text.

[0312] Step 23073: If the layer type is not a clock layer, the functional main module determines that the file is a picture, obtains the picture as the initial picture, processes the initial picture to obtain a full-screen picture, and scales the full-screen picture according to a specific scaling ratio to obtain the display picture of the layer.

[0313] Exemplarily, the operation of the functional main module to process the initial picture to obtain a full-screen picture can be: The functional main module determines the initial scaling ratio according to the screen size and the size of the initial picture, and scales the initial picture according to the initial scaling ratio to obtain a full-screen picture.

[0314] The initial scaling ratio is used to process the initial picture into a full-screen picture. Specifically, the screen height can be divided by the height of the initial picture to obtain a first value, and the screen width can be divided by the width of the initial picture to obtain a second value, and then the larger of the first value and the second value is used as the initial scaling ratio.

[0315] It should be noted that in Step 2307, after receiving the wallpaper template file, the functional main module can save the wallpaper template file as the currently edited lock screen wallpaper file in the memory, and subsequent editing processes are all modifications to the currently edited lock screen wallpaper file.

[0316] Step 2308: The functional main module sends a third display instruction to the lock screen view module.

[0317] The third display instruction is used to indicate the display of the wallpaper template. The third display instruction carries the display information of each layer in the multiple layers.

[0318] Step 2309: After receiving the third display instruction, the lock screen view module draws the layer content in the corresponding view according to the display information of each layer in the multiple layers, and displays m views.

[0319] After receiving the third display instruction, the lock screen view module can first clear the hierarchy of the m views created previously and the content drawn therein, and then according to the display information of each layer in the multiple layers, set the hierarchy of the multiple views corresponding to the multiple layers in the m views, and draw the layer content in each of the multiple views, and then display the m views. In this case, the other views in the m views except the multiple views are blank views, so after the lock screen view module displays the m views, the user can only see the content drawn in the multiple views.

[0320] In some embodiments, for the clock layer, the lock screen view module may draw a clock in the view identified by the view identifier of the clock layer according to the clock setting information in the display information of the clock layer. In this case, the view with the layer content of the clock layer drawn thereon may be referred to as the clock layer.

[0321] In some embodiments, for any one of the other layers in the plurality of layers except the clock layer, the lock screen view module may draw the display picture in the display information of the layer into the view identified by the view identifier of the layer. Exemplarily, the lock screen view module may determine a target area in the display picture and draw the picture within the target area in the display picture into the view.

[0322] The target area in the display picture is the area in the display picture that can be displayed within the lock screen wallpaper page. Exemplarily, the target area in the display picture may be an area centered at the center of the display picture and having the same size as the view. For example, the target area in the display picture may be Figure 25 the area within the dashed line shown.

[0323] Exemplarily, when displaying the m views, the lock screen view module may submit the m views to the rendering service for rendering in the order from the lowest level to the highest level, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper template on the lock screen wallpaper page. Exemplarily, the displayed lock screen wallpaper page may be Figure 10 the lock screen wallpaper page 702 shown in FIG. (c) in

[0324] In some embodiments, after the user edits the lock screen wallpaper by selecting a wallpaper template, the edited lock screen wallpaper may also be saved to take effect, and this process may include the following steps 2310 and step 2312.

[0325] Step 2310: The function main body module receives a click operation on the application control.

[0326] Exemplarily, as Figure 10 shown in FIG. (c) in

[0327] After the function main module receives a click operation on the application control, for any one of the multiple layers other than the clock layer, the function main module can process the image of this layer in the currently edited lock screen wallpaper file into a target image. The size of the target image is the same as the screen size. In this way, the sizes of the images of the other layers except the clock layer in the subsequently saved lock screen wallpaper file are all the same as the screen size.

[0328] Exemplarily, the operation of the function main module processing the image of this layer in the currently edited lock screen wallpaper file into a target image can be: the function main module obtains the image of this layer in the currently edited lock screen wallpaper file as the initial image. Then, without changing the image name, first process the initial image to obtain a full-screen image, and then crop the image within the area centered on the center of the full-screen image and with the same size as the screen size as the target image. Then, update the image of this layer in the currently edited lock screen wallpaper file to the target image.

[0329] Step 2311: The function main module sends a wallpaper data storage request to the file system.

[0330] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 1. The lock screen wallpaper file 1 is the currently edited lock screen wallpaper file. In the embodiment of the present application, it is the wallpaper template file obtained by the function main module after the user selects a wallpaper template. And here, the images of each layer except the clock layer in this wallpaper template file are all target images.

[0331] Step 2312: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0332] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 1.

[0333] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display this lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, they can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 1. The user can continue to edit this lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the flowchart shown below. Figure 36 The flowchart shown here will not be described in detail for the time being.

[0334] Figure 26 It is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 26 The flowchart shown is used to illustrate the specific implementation process of the user setting the clock based on the wallpaper editing interface. Figure 26The flowchart shown can be executed after step 2309 above; alternatively, it can be executed after step 2312, after the user enters the wallpaper editing interface in the electronic device again.

[0335] See Figure 26 , the method may include the following steps:

[0336] Step 2601: The function main body module receives a click operation on the clock box.

[0337] In some cases, if the user wants to set the clock in the lock screen wallpaper, as shown in Figure 11 Figure (a) of, the user can click on the clock box 710, and the function main body module will receive the click operation on the clock box 710.

[0338] Step 2602: In response to the click operation on the clock box, the function main body module displays a second pop-up window.

[0339] Exemplarily, as shown in Figure 11 Figure (b) of, multiple clock font options and multiple clock color options are displayed in the second pop-up window 7012.

[0340] Step 2603: The function main body module receives a selection operation on the clock color option 1.

[0341] Exemplarily, as shown in Figure 11 Figure (b) of, after the user clicks on a clock color option (hereinafter referred to as the clock color option 1) displayed in the second pop-up window 7012, the function main body module will receive the selection operation on the clock color option 1.

[0342] Step 2604: In response to the selection operation on the clock color option 1, the function main body module obtains the color value corresponding to the clock color option 1.

[0343] Step 2605: The function main body module updates the color value in the text content of the text in the clock layer of the currently edited lock screen wallpaper file to the color value corresponding to the clock color option 1, obtains the lock screen wallpaper file 2, and then re-obtains the clock setting information of the clock layer.

[0344] It should be noted that if Figure 26 the flowchart shown is executed after step 2309 above, or is executed after step 2312, after the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1.

[0345] The function main body module can re-obtain the clock setting information of the clock layer from the text content of the text in the clock layer of the lock screen wallpaper file 2.

[0346] Step 2606: The function main body module sends the view identifier of the clock layer and the clock setting information to the lock screen view module.

[0347] Step 2607: After receiving the view identifier of the clock layer and the clock setting information, the lock screen view module redraws the layer content in the view identified by the view identifier of the clock layer according to the clock setting information of the clock layer, and displays m views.

[0348] After receiving the view identifier of the clock layer and the clock setting information, the lock screen view module can redraw the clock in this view according to this clock setting information while keeping the level of the view identified by this view identifier unchanged. Then, in the order from low to high level, these m views can be submitted to the rendering service for rendering, so as to superimpose and display these m views in the display area of the lock screen wallpaper page on the screen, which realizes the display of the wallpaper on the lock screen wallpaper page. By way of example, the displayed lock screen wallpaper page can be Figure 11 the lock screen wallpaper page 702 shown in Figure (c) of

[0349] It should be noted that the operation of the user to set the font of the clock in the lock screen wallpaper through the second pop-up window is similar to the operation of setting the color of the clock above, and this is not elaborated in the embodiments of the present application.

[0350] In some embodiments, after the user edits the lock screen wallpaper by setting the clock, the edited lock screen wallpaper can also be saved to make it take effect. This process may include the following steps 2608 and step 2610.

[0351] Step 2608: The function main body module receives the click operation on the application control.

[0352] By way of example, as Figure 11 shown in Figure (c) of Figure 11 after the user changes the color of the clock in the lock screen wallpaper, the user can directly click on the application control 71 in the wallpaper editing interface 700, and the function main body module will receive the click operation on the application control 71. Or, as Figure 11 shown in Figure (c) of

[0353] After the function main module receives a click operation on the application control, for any one of the multiple layers other than the clock layer, the function main module can process the image of this layer in the currently edited lock screen wallpaper file into a target image. The specific operation can refer to step 2310 above and will not be elaborated here. In this way, the images of the layers other than the clock layer in the subsequently saved lock screen wallpaper file will have the same size as the screen size.

[0354] Step 2609: The function main module sends a wallpaper data storage request to the file system.

[0355] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 2. The lock screen wallpaper file 2 is the currently edited lock screen wallpaper file, which in the embodiment of the present application is the lock screen wallpaper file updated by the function main module according to relevant setting information after the user sets the clock. And here, the image of each layer other than the clock layer in this lock screen wallpaper file is the target image.

[0356] Step 2610: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0357] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 2.

[0358] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display this lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, they can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 2. The user can continue to edit this lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the Figure 36 flowchart shown below and will not be elaborated here for the time being.

[0359] Figure 27 is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 27 The flowchart shown is used to illustrate the specific implementation process of the user setting personalized decorations based on the wallpaper editing interface. Figure 27 The flowchart shown can be executed after step 2309; or, it can be executed after step 2312 when the user enters the wallpaper editing interface in the electronic device again; or, it can be executed after step 2607; or, it can be executed after step 2610 when the user enters the wallpaper editing interface in the electronic device again.

[0360] See Figure 27 , this method may include the following steps:

[0361] Step 2701: The functional main body module receives a click operation on the personalized decoration control.

[0362] In some cases, if the user wants to set the decoration in the lock screen wallpaper, as shown in Figure 12 Figure (a) therein, the user can click on the personalized decoration control 73, and the functional main body module will receive the click operation on the personalized decoration control 73.

[0363] Step 2702: In response to the click operation on the personalized decoration control, the functional main body module displays a third pop-up window.

[0364] Exemplarily, as shown in Figure 12 Figure (b) therein, multiple shape options and multiple color options are displayed in the third pop-up window 7013.

[0365] Step 2703: The functional main body module receives a selection operation on color option 1.

[0366] Exemplarily, as shown in Figure 12 Figure (b) therein, after the user clicks on a color option (hereinafter referred to as color option 1) displayed in the third pop-up window 7013, the functional main body module will receive the selection operation on color option 1.

[0367] Step 2704: In response to the selection operation on color option 1, the functional main body module obtains the color value corresponding to color option 1.

[0368] It should be noted that in the case of multiple decoration layers, color option 1 not only corresponds to a color value but also corresponds to one of the multiple decoration layers. In this case, for which decoration layer the user makes a color adjustment, the color of the corresponding decoration layer is modified.

[0369] Step 2705: The functional main body module modifies the color of the picture of the decoration layer in the currently edited lock screen wallpaper file according to the color value corresponding to color option 1 to obtain the lock screen wallpaper file 3, and then re-obtains the display picture of this decoration layer.

[0370] It should be noted that if Figure 27 the flowchart shown is executed after the above step 2309, or, after step 2312, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if Figure 27 the flowchart shown is executed after the above step 2607, or, after step 2610, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2.

[0371] The functional main module can re-obtain the display picture of the decoration layer according to the picture of the decoration layer in the lock screen wallpaper file 3. For example, the functional main module can use the picture of the decoration layer in the lock screen wallpaper file 3 as the initial picture, process the initial picture to obtain a full-screen picture, and scale the full-screen picture according to a specific scaling ratio to obtain the display picture of the decoration layer.

[0372] The operation of the functional main module to process the initial picture to obtain a full-screen picture can refer to the above step 23073, and this application embodiment will not elaborate on it here.

[0373] Step 2706: The functional main module sends the view identifier and display picture of the decoration layer to the lock screen view module.

[0374] Step 2707: After receiving the view identifier and display picture of the decoration layer, the lock screen view module redraws the layer content in the view identified by the view identifier of the decoration layer according to the display picture of the decoration layer, and displays m views.

[0375] After receiving the view identifier and display picture of the decoration layer, the lock screen view module can, while keeping the hierarchy of the view identified by the view identifier unchanged, redraw the layer content in the view according to the display picture. Specifically, it can determine the target area in the display picture and draw the picture within the target area in the display picture into the view. Then, it can submit the m views to the rendering service for rendering in the order from low to high in terms of hierarchy, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper on the lock screen wallpaper page. For example, the displayed lock screen wallpaper page can be Figure 12 the lock screen wallpaper page 702 shown in Figure (c) of

[0376] In some embodiments, after the user edits the lock screen wallpaper by setting the color of the decoration piece, the edited lock screen wallpaper can also be saved to make it effective. This process can include the following steps 2708 and 2710.

[0377] Step 2708: The functional main module receives a click operation on the corresponding application control.

[0378] For example, as Figure 12 shown in Figure (c) of Figure 12As shown in Figure (c), after the user changes the color of the decorative piece in the lock screen wallpaper, the user can first click on the folding control 713 in the third pop-up window 7013. After that, as Figure 12 shown in Figure (d), the user then clicks on the apply control 71 in the wallpaper editing interface 700, and the functional main module will receive the click operation on the apply control 71.

[0379] After the functional main module receives the click operation on the apply control, for any one of the other layers except the clock layer among the multiple layers, the functional main module can process the picture of this layer in the currently edited lock screen wallpaper file into a target picture. The specific operation can refer to the above step 2310 and will not be elaborated here. In this way, the sizes of the pictures of the other layers except the clock layer in the subsequently saved lock screen wallpaper file are the same as the screen size.

[0380] Step 2709: The functional main module sends a wallpaper data storage request to the file system.

[0381] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 3. The lock screen wallpaper file 3 is the currently edited lock screen wallpaper file, and in the embodiment of the present application, it is the lock screen wallpaper file updated by the functional main module according to the relevant color information after the user sets the color of the decorative piece. Here, the picture of each layer except the clock layer in this lock screen wallpaper file is a target picture.

[0382] Step 2710: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0383] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 3.

[0384] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display this lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 3. The user can continue to edit this lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the flowchart Figure 36 shown below and will not be elaborated here for the time being.

[0385] It should be noted that the operation of the user setting the shape of the decorative piece in the lock screen wallpaper through the third pop-up window is similar to the operation of setting the color of the decorative piece above. A simple description will be given next.

[0386] Figure 28 is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 28The flowchart shown is used to illustrate the specific implementation process of a user setting personalized decorations based on a wallpaper editing interface. Figure 28 The flowchart shown may be executed after step 2309 above; or, it may be executed after step 2312 when the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2607; or, it may be executed after step 2610 when the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2707; or, it may be executed after step 2710 when the user enters the wallpaper editing interface in the electronic device again.

[0387] See Figure 28 , the method may include the following steps:

[0388] Step 2801: The function main body module receives a click operation on the personalized decoration control.

[0389] Step 2802: In response to the click operation on the personalized decoration control, the function main body module displays a third pop-up window.

[0390] Multiple shape options are displayed in the third pop-up window, including Shape Option 1.

[0391] Step 2803: The function main body module receives a selection operation on Shape Option 1.

[0392] Step 2804: In response to the selection operation on Shape Option 1, the function main body module obtains the picture corresponding to Shape Option 1.

[0393] The picture corresponding to Shape Option 1 is a decorative picture containing the pattern shape corresponding to Shape Option 1.

[0394] It should be noted that in the case of multiple decoration layers, Shape Option 1 not only corresponds to a decorative picture but also to one of the multiple decoration layers. In this case, for which decoration layer the user makes a shape adjustment, the shape of the corresponding decoration layer is modified.

[0395] Step 2805: The function main body module modifies the picture name of the picture corresponding to Shape Option 1 to the picture name of the picture of the decoration layer in the currently edited lock screen wallpaper file, updates the picture of the decoration layer in the currently edited lock screen wallpaper file to the picture corresponding to Shape Option 1 to obtain the lock screen wallpaper file 4, and then re-obtains the display picture of this decoration layer.

[0396] It should be noted that if Figure 28The flowchart shown is executed after the above step 2309, or after step 2312, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if Figure 28 The flowchart shown is executed after the above step 2607, or after step 2610, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2. And if Figure 28 The flowchart shown is executed after the above step 2707, or after step 2710, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 3.

[0397] The function main body module can re-obtain the display picture of the decoration layer according to the picture of the decoration layer in the lock screen wallpaper file 4. The specific operation can refer to the above step 2705 and will not be elaborated here.

[0398] Step 2806: The function main body module sends the view identifier and the display picture of the decoration layer to the lock screen view module.

[0399] Step 2807: After receiving the view identifier and the display picture of the decoration layer, the lock screen view module redraws the layer content in the view identified by the view identifier of the decoration layer and displays m views.

[0400] After receiving the view identifier and the display picture of the decoration layer, the lock screen view module can, without changing the level of the view identified by the view identifier, redraw the layer content in the view according to the display picture. Specifically, it can determine the target area in the display picture and draw the picture in the target area of the display picture into the view. Then, in the order from the lowest level to the highest level, the m views can be submitted to the rendering service for rendering, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper on the lock screen wallpaper page. In this case, the shape of the decorative piece of the wallpaper displayed on the lock screen wallpaper page is the shape selected by the user.

[0401] In some embodiments, after the user edits the lock screen wallpaper by setting the shape of the decorative piece, the edited lock screen wallpaper can also be saved to make it take effect. This process can include the following steps 2808 and step 2810.

[0402] Step 2808: The function main body module receives the click operation on the corresponding application control.

[0403] After the function main module receives a click operation on the application control, for any one of the multiple layers other than the clock layer, the function main module can process the image of this layer in the currently edited lock screen wallpaper file into a target image. The specific operation can refer to step 2310 above and will not be elaborated here. In this way, the sizes of the images of the layers other than the clock layer in the subsequently saved lock screen wallpaper file are the same as the screen size.

[0404] Step 2809: The function main module sends a wallpaper data storage request to the file system.

[0405] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 4. The lock screen wallpaper file 4 is the currently edited lock screen wallpaper file, which is the lock screen wallpaper file updated by the function main module according to the relevant shape information after the user sets the shape of the decorative part in the embodiment of the present application. And here, the image of each layer other than the clock layer in this lock screen wallpaper file is a target image.

[0406] Step 2810: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0407] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 4.

[0408] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display this lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, they can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the last edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 4. The user can continue to edit this lock screen wallpaper, and the process of editing the lock screen wallpaper again can refer to the Figure 36 flowchart shown below and will not be elaborated here for the time being.

[0409] Figure 29 is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 29 The flowchart shown below is used to illustrate the specific implementation process of the user setting the depth of field effect based on the wallpaper editing interface. Figure 29The flowchart shown can be executed after step 2309 above; alternatively, it can be executed after step 2312, after the user enters the wallpaper editing interface in the electronic device again; alternatively, it can be executed after step 2607; alternatively, it can be executed after step 2610, after the user enters the wallpaper editing interface in the electronic device again; alternatively, it can be executed after step 2707; alternatively, it can be executed after step 2710, after the user enters the wallpaper editing interface in the electronic device again; alternatively, it can be executed after step 2807; alternatively, it can be executed after step 2810, after the user enters the wallpaper editing interface in the electronic device again.

[0410] See Figure 29 , the method may include the following steps:

[0411] Step 2901: The function main body module receives a click operation on the depth-of-field effect control.

[0412] In some cases, if the user wants to set the depth-of-field effect in the lock screen wallpaper, as shown in Figure 13 Figure (a) therein, the user can click on the depth-of-field effect control 74, and the function main body module will receive the click operation on the depth-of-field effect control 74.

[0413] Step 2902: In response to the click operation on the depth-of-field effect control, the function main body module displays a fourth pop-up window.

[0414] Exemplarily, as shown in Figure 13 Figure (b) therein, a depth-of-field effect switch 7141 is displayed in the fourth pop-up window 7014, and further, a background blur control 7142 may also be displayed.

[0415] Step 2903: The function main body module receives an operation to turn off the depth-of-field effect switch.

[0416] Exemplarily, as shown in Figure 13 Figure (b) therein, the user can turn off the depth-of-field effect switch by clicking on the depth-of-field effect switch 7141, and the function main body module will receive the operation to turn off the depth-of-field effect switch 7141.

[0417] Step 2904: In response to the operation to turn off the depth-of-field effect switch, the function main body module exchanges the level in the text name of the text in the clock layer in the currently edited lock screen wallpaper file with the level in the picture name of the picture in the cutout layer to obtain the lock screen wallpaper file 5, and then re-obtains the levels of the clock layer and the cutout layer.

[0418] It should be noted that if Figure 29The flowchart shown is executed after step 2309 above, or, after step 2312, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if Figure 29 The flowchart shown is executed after step 2607 above, or, after step 2610, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2. And if Figure 29 The flowchart shown is executed after step 2707 above, or, after step 2710, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 3. And if Figure 29 The flowchart shown is executed after step 2807 above, or, after step 2810, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 4.

[0419] The functional main module can re-obtain the level of the clock layer from the text name of the text in the clock layer of the lock screen wallpaper file 5, and re-obtain the level of the cutout layer from the picture name of the picture in the cutout layer of the lock screen wallpaper file 5.

[0420] Generally, when the depth of field effect switch is turned on, the level of the clock layer is lower than that of the cutout layer, so that the depth of field effect can be achieved. And when the depth of field effect switch is turned off, the level of the clock layer is higher than that of the cutout layer, so that the depth of field effect can be turned off.

[0421] It should be noted that in some cases, after the functional main module obtains the wallpaper template file from the file system, if the level of the clock layer in the wallpaper template file is lower than that of the cutout layer, it means that the wallpaper template file can achieve the depth of field effect. In this case, while the functional main module displays the wallpaper on the lock screen wallpaper page based on the wallpaper template file, it will also set the depth of field effect switch to the on state. After that, if the user turns off the depth of field effect switch, the functional main module can exchange the levels of the clock layer and the cutout layer so that the level of the clock layer is higher than that of the cutout layer to turn off the depth of field effect. After that, if the user turns on the depth of field effect switch again, the functional main module can exchange the levels of the clock layer and the cutout layer again so that the level of the clock layer is lower than that of the cutout layer to turn on the depth of field effect.

[0422] In other cases, after the functional main body module obtains the wallpaper template file from the file system, if the level of the clock layer in the wallpaper template file is higher than that of the cutout layer, it indicates that the wallpaper template file cannot achieve the depth-of-field effect. In this case, while the functional main body module displays the wallpaper on the lock screen wallpaper page based on the wallpaper template file, it will also set the depth-of-field effect switch to the off state. After that, if the user turns on the depth-of-field effect switch, the functional main body module can exchange the levels of the clock layer and the cutout layer so that the level of the clock layer is lower than that of the cutout layer to turn on the depth-of-field effect. After that, if the user turns off the depth-of-field effect switch again, the functional main body module can exchange the levels of the clock layer and the cutout layer again so that the level of the clock layer is higher than that of the cutout layer to turn off the depth-of-field effect.

[0423] Step 2905: The functional main body module sends the view identifier and level of the clock layer and the view identifier and level of the cutout layer to the lock screen view module.

[0424] Exemplarily, assume that the level in the text name of the text of the clock layer in the lock screen wallpaper file 1 is 5, and the level in the picture name of the picture of the cutout layer is 6, and the level of the clock layer is lower than that of the cutout layer. Then the depth-of-field effect switch is in the on state. After that, in response to the operation of turning off the depth-of-field effect switch, the functional main body module can exchange the levels of the clock layer and the cutout layer to get the level of the clock layer as 6 and the level of the cutout layer as 5, and the level of the clock layer is higher than that of the cutout layer. After that, the functional main body module can send the levels of the clock layer and the cutout layer to the lock screen view module.

[0425] Step 2906: After receiving the view identifier and level of the clock layer and the view identifier and level of the cutout layer, the lock screen view module resets the levels of the views identified by the view identifier of the clock layer and the views identified by the view identifier of the cutout layer, and displays m views.

[0426] Exemplarily, after the lock screen view module resets the levels of the views identified by the view identifier of the clock layer and the views identified by the view identifier of the cutout layer, it can submit the m views to the rendering service for rendering in the order from the lowest level to the highest level, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, which realizes the display of the wallpaper on the lock screen wallpaper page. Exemplarily, the displayed lock screen wallpaper page can be Figure 13 the lock screen wallpaper page 702 shown in Figure (c) in

[0427] In some embodiments, after the user edits the lock screen wallpaper by turning off the depth-of-field effect switch, the edited lock screen wallpaper can also be saved to make it effective. This process can include the following steps 2907 and 2909.

[0428] Step 2907: The function main body module receives a click operation on the corresponding application control.

[0429] Exemplarily, as shown in FIG. (c) in Figure 13 , after the user turns off the depth-of-field effect of the lock screen wallpaper, the user can directly click on the application control 71 in the wallpaper editing interface 700, and the function main body module will receive the click operation on the application control 71. Or, as shown in FIG. (c) in Figure 13 , after the user turns off the depth-of-field effect of the lock screen wallpaper, the user can first click on the folding control 7143 in the fourth pop-up window 7014, and then, as shown in FIG. (d) in Figure 13 , the user then clicks on the application control 71 in the wallpaper editing interface 700, and the function main body module will receive the click operation on the application control 71.

[0430] After the function main body module receives the click operation on the application control, for any one of the other layers in the multiple layers except the clock layer, the function main body module can process the picture of this layer in the currently edited lock screen wallpaper file into a target picture. The specific operation can refer to the above step 2310 and will not be elaborated here. In this way, the pictures of the other layers except the clock layer in the subsequently saved lock screen wallpaper file have the same size as the screen size.

[0431] Step 2908: The function main body module sends a wallpaper data storage request to the file system.

[0432] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 5. The lock screen wallpaper file 5 is the currently edited lock screen wallpaper file, and in the embodiment of the present application, it is the lock screen wallpaper file updated by the function main body module according to the state of the depth-of-field effect switch after the user turns off the depth-of-field effect switch. Here, the picture of each layer except the clock layer in this lock screen wallpaper file is a target picture.

[0433] Step 2909: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0434] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 5.

[0435] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display this lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 5. The user can continue to edit this lock screen wallpaper, and the process of editing the lock screen wallpaper again can refer to the following text Figure 36The flowchart shown will not be described in detail here.

[0436] Figure 30 It is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 30 The flowchart shown is used to illustrate the specific implementation process of a user setting the background blur degree based on a wallpaper editing interface. Figure 30 The flowchart shown can be executed after step 2309 above; or, it can be executed after step 2312, after the user enters the wallpaper editing interface in the electronic device again; or, it can be executed after step 2607; or, it can be executed after step 2610, after the user enters the wallpaper editing interface in the electronic device again; or, it can be executed after step 2707; or, it can be executed after step 2710, after the user enters the wallpaper editing interface in the electronic device again; or, it can be executed after step 2807; or, it can be executed after step 2810, after the user enters the wallpaper editing interface in the electronic device again; or, it can be executed after step 2906; or, it can be executed after step 2909, after the user enters the wallpaper editing interface in the electronic device again.

[0437] Refer to Figure 30 , the method may include the following steps:

[0438] Step 3001: The function main body module receives a click operation on the depth-of-field effect control.

[0439] Step 3002: In response to the click operation on the depth-of-field effect control, the function main body module displays a fourth pop-up window, and a background blur control is displayed in the fourth pop-up window.

[0440] Step 3003: The function main body module receives a trigger operation on the background blur control.

[0441] Exemplarily, as shown in Figure 13 Figure (b) therein, the background blur control 7142 can be a control in the form of a slider, and there is a slider in the slider, and the position of the slider in the slider can indicate the corresponding blur degree (which can be called the target blur degree). Of course, the background blur control 7142 can also be a control in other forms, and the embodiments of the present application do not limit this.

[0442] The trigger operation on the background blur control can be executed by the user. That is, if the user wants to adjust the background blur degree, it can be achieved by operating the background blur control. For example, the user can drag Figure 13 the slider in the slider 7142 shown in Figure (b) therein to adjust the position of the slider in the slider, so as to set the background blur degree.

[0443] Step 3004: In response to a triggering operation on the background blur control, the functional main body module determines the target blur degree.

[0444] Step 3005: The functional main body module generates a first operation record, and the target blur degree is recorded in the first operation record.

[0445] The target blur degree in the first operation record is determined according to the background blur degree adjusted by the user, and is used to indicate the blur degree of the main picture of the lock screen wallpaper. The target blur degree acts on the original layer.

[0446] After the functional main body module determines the target blur degree, in the case where there is no first operation record currently, it can generate a first operation record and record the target blur degree in the first operation record. And in the case where there is a first operation record, if the user subsequently adjusts the blur degree through the background blur control again, the functional main body module can update the target blur degree in the first operation record.

[0447] It should be noted that if the user subsequently replaces the main picture or re - selects the wallpaper template, the functional main body module can delete the first operation record.

[0448] Step 3006: The functional main body module sends the view identifier of the original layer and the target blur degree to the lock screen view module.

[0449] Step 3007: After receiving the view identifier of the original layer and the target blur degree, the lock screen view module redraws the layer content in the view identified by the view identifier of the original layer according to the target blur degree, and displays m views.

[0450] After receiving the view identifier of the original layer and the target blur degree, the lock screen view module can, without changing the level of the view identified by the view identifier of the original layer, redraw the layer content in this view according to the target blur degree. Specifically, it can first blur the displayed picture of the original layer according to the target blur degree, then determine the target area in this displayed picture, and draw the picture within the target area in this displayed picture into this view. After that, the lock screen view module can submit these m views to the rendering service for rendering in the order from low to high in level, so as to superimpose and display these m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper on the lock screen wallpaper page. In this case, the blur degree of the background part of the wallpaper displayed on the lock screen wallpaper page is the target blur degree set by the user.

[0451] In some embodiments, after the user edits the lock screen wallpaper through the background blur control, the edited lock screen wallpaper can also be saved to make it effective. This process can include the following steps 3008 and 3010.

[0452] Step 3008: The functional main body module receives a click operation on the corresponding application control.

[0453] After the functional main body module receives a click operation on the corresponding application control, for any one of the multiple layers other than the clock layer among the multiple layers, the functional main body module can process the picture of this layer in the currently edited lock screen wallpaper file into a target picture. The specific operation can refer to the above-mentioned step 2310 and will not be elaborated here. In this way, the sizes of the pictures of the layers other than the clock layer in the subsequently saved lock screen wallpaper file are the same as the screen size.

[0454] It should be noted that if Figure 30 the flowchart shown is executed after the above-mentioned step 2309, or is executed after step 2312 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if Figure 30 the flowchart shown is executed after the above-mentioned step 2607, or is executed after step 2610 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2. And if Figure 30 the flowchart shown is executed after the above-mentioned step 2707, or is executed after step 2710 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 3. And if Figure 30 the flowchart shown is executed after the above-mentioned step 2807, or is executed after step 2810 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 4. And if Figure 30 the flowchart shown is executed after the above-mentioned step 2906, or is executed after step 2909 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 5.

[0455] Step 3009: For any one of the multiple layers other than the clock layer among the multiple layers, when there is a first operation record and this layer is the original layer, the functional main body module performs blurring processing on the picture of the original layer in the currently edited lock screen wallpaper file according to the target blur degree in the first operation record to obtain the lock screen wallpaper file 6.

[0456] In the case where there is no first operation record, or in the case where there is a first operation record but this layer is not the original layer, the functional main body module does not process the picture of this layer in the currently edited lock screen wallpaper file.

[0457] Step 3010: The functional main body module sends a wallpaper data storage request to the file system.

[0458] The wallpaper data storage request is used to request the storage of the lock screen wallpaper file 6. The lock screen wallpaper file 6 is the currently edited lock screen wallpaper file. In the embodiment of the present application, it is the lock screen wallpaper file updated by the function main module according to the set target blur degree after the user sets the background blur degree. Here, the pictures of each layer except the clock layer in the lock screen wallpaper file are target pictures, and the pictures of the original layer are target pictures blurred according to the target blur degree in the first operation record.

[0459] Step 3011: After the file system receives the wallpaper data storage request, it updates the lock screen wallpaper file.

[0460] Exemplarily, the file system can update the first file of the lock screen wallpaper to the lock screen wallpaper file 6.

[0461] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display the lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 6. The user can continue to edit the lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the flowchart shown below. Figure 36 It will not be described in detail here.

[0462] Figure 31 It is a flowchart of a wallpaper editing method provided by an embodiment of the present application. Figure 31 The flowchart shown is used to illustrate the specific implementation process of the user replacing the main picture of the wallpaper based on the wallpaper editing interface. Figure 31 The flowchart shown can be executed after step 2309 above; or, it can be executed after step 2312 when the user enters the wallpaper editing interface again in the electronic device; or, it can be executed after step 2607; or, it can be executed after step 2610 when the user enters the wallpaper editing interface again in the electronic device; or, it can be executed after step 2707; or, it can be executed after step 2710 when the user enters the wallpaper editing interface again in the electronic device; or, it can be executed after step 2807; or, it can be executed after step 2810 when the user enters the wallpaper editing interface again in the electronic device; or, it can be executed after step 2906; or, it can be executed after step 2909 when the user enters the wallpaper editing interface again in the electronic device; or, it can be executed after step 3007; or, it can be executed after step 3011 when the user enters the wallpaper editing interface again in the electronic device.

[0463] See Figure 31 , the method may include the following steps:

[0464] Step 3101: The function main body module receives a click operation on the picture replacement control.

[0465] In some cases, if the user wants to change the main picture of the lock screen wallpaper, as shown in Figure (a) of Figure 14 , the user can click on the picture replacement control 75, and the function main body module will receive the click operation on the picture replacement control 75.

[0466] Step 3102: In response to the click operation on the picture replacement control, the function main body module displays a fifth pop-up window.

[0467] Exemplarily, as shown in Figure (b) of Figure 14 , picture options in the gallery are displayed in the fifth pop-up window 7015.

[0468] Step 3103: The function main body module receives a selection operation on picture option 1.

[0469] Exemplarily, as shown in Figure (b) of Figure 14 , the user can click on a picture option (hereinafter referred to as picture option 1) displayed in the fifth pop-up window 7015, and the function main body module will receive the selection operation on picture option 1.

[0470] Step 3104: In response to the selection operation on picture option 1, the function main body module obtains the picture corresponding to picture option 1 as the main picture, and generates a matte picture containing the foreground object in the main picture.

[0471] Step 3105: The function main body module changes the picture name of the main picture to the picture name of the original layer picture in the currently edited lock screen wallpaper file, changes the picture name of the matte picture to the picture name of the matte layer picture in the currently edited lock screen wallpaper file, updates the original layer picture in the currently edited lock screen wallpaper file to the main picture, updates the matte layer picture in the currently edited lock screen wallpaper file to the matte picture, obtains the lock screen wallpaper file 7, and then re-obtains the display picture of the original layer and re-obtains the display picture of the matte layer.

[0472] It should be noted that if Figure 31 the shown flowchart is executed after the above step 2309, or, after step 2312, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if Figure 31The flowchart shown is executed after step 2607 above, or after step 2610, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2. And if Figure 31 The flowchart shown is executed after step 2707 above, or after step 2710, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 3. And if Figure 31 The flowchart shown is executed after step 2807 above, or after step 2810, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 4. And if Figure 31 The flowchart shown is executed after step 2906 above, or after step 2909, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 5. And if Figure 31 The flowchart shown is executed after step 3007 above, or after step 3011, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 6.

[0473] The function main body module can re-obtain the display picture of the original layer according to the picture of the original layer in the lock screen wallpaper file 7. The specific operation can refer to step 23073 above and will not be elaborated here.

[0474] The function main body module can re-obtain the display picture of the cut-out layer according to the picture of the cut-out layer in the lock screen wallpaper file 7. The specific operation can refer to step 23073 above and will not be elaborated here.

[0475] Step 3106: The function main body module sends the view identifier and display picture of the original layer and the view identifier and display picture of the cut-out layer to the lock screen view module.

[0476] Step 3107: After receiving the view identifier and display picture of the original layer and the view identifier and display picture of the cut-out layer, the lock screen view module redraws the layer content in the view identified by the view identifier of the original layer according to the display picture of the original layer, and redraws the layer content in the view identified by the view identifier of the cut-out layer according to the display picture of the cut-out layer, and displays m views.

[0477] After receiving the view identifier and display picture of the original layer, the lock screen view module determines the target area in the display picture while keeping the hierarchy of the view identified by the view identifier of the original layer unchanged, and draws the picture within the target area in the display picture into the view.

[0478] After the lock screen view module receives the view identifier of the cutout layer and the display picture, while keeping the hierarchy of the view identified by the view identifier of the cutout layer unchanged, it determines the target area in the display picture, and draws the picture within the target area in the display picture into the view.

[0479] After that, the lock screen view module can submit the m views to the rendering service for rendering in the order from the lowest to the highest hierarchy, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper on the lock screen wallpaper page. Exemplarily, the displayed lock screen wallpaper page can be Figure 14 the lock screen wallpaper page 702 shown in FIG. (c) in

[0480] In some embodiments, after the user edits the lock screen wallpaper by replacing the main picture, the edited lock screen wallpaper can also be saved to make it effective. This process may include the following steps 3108 and step 3110.

[0481] Step 3108: The functional main body module receives a click operation on the application control.

[0482] Exemplarily, as Figure 14 shown in FIG. (c) in

[0483] After the functional main body module receives the click operation on the application control, for any one of the other layers except the clock layer among the multiple layers, the functional main body module can process the picture of this layer in the currently edited lock screen wallpaper file into a target picture. The specific operation can refer to the above step 2310 and will not be elaborated here. In this way, the pictures of the other layers except the clock layer in the subsequently saved lock screen wallpaper file have the same size as the screen size.

[0484] Step 3109: The functional main body module sends a wallpaper data storage request to the file system.

[0485] This wallpaper data storage request is used to request the storage of the lock screen wallpaper file 7. The lock screen wallpaper file 7 is the currently edited lock screen wallpaper file, which is the lock screen wallpaper file updated by the functional main body module according to the replaced main picture after the user replaces the main picture in the embodiments of the present application. Here, the picture of each layer except the clock layer in this lock screen wallpaper file is a target picture.

[0486] Step 3110: After the file system receives this wallpaper data storage request, it updates the lock screen wallpaper file.

[0487] Exemplarily, the file system may update the first file of the lock screen wallpaper to the lock screen wallpaper file 7.

[0488] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display the lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 7. The user can continue to edit the lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the Figure 36 flow chart shown below and will not be elaborated here.

[0489] Figure 32 It is a flow chart of a wallpaper editing method provided by an embodiment of the present application. Figure 32 The flow chart shown is used to illustrate the specific implementation process of the user scaling the main picture of the wallpaper based on the wallpaper editing interface. Figure 32 The flow chart shown may be executed after step 2309 above; or, it may be executed after step 2312, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2607; or, it may be executed after step 2610, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2707; or, it may be executed after step 2710, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2807; or, it may be executed after step 2810, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 2906; or, it may be executed after step 2909, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 3007; or, it may be executed after step 3011, after the user enters the wallpaper editing interface in the electronic device again; or, it may be executed after step 3107; or, it may be executed after step 3110, after the user enters the wallpaper editing interface in the electronic device again.

[0490] Refer to Figure 32 , the method may include the following steps:

[0491] Step 3201: The function main body module receives the scaling operation performed on the lock screen wallpaper page.

[0492] In some cases, if the user wants to scale the main picture of the lock screen wallpaper, then as Figure 15As shown in Figure (a) or Figure (c), the user can perform a zoom operation on the lock screen wallpaper page 702, and the function main module will receive this zoom operation.

[0493] Step 3202: In response to this zoom operation, the function main module determines the zoom ratio and the target offset corresponding to this zoom operation.

[0494] The target offset corresponding to this zoom operation is obtained by dividing the offset corresponding to this zoom operation by a specific zoom ratio.

[0495] Exemplarily, when this zoom operation is a two-finger zoom-in operation or a two-finger zoom-out operation, the zoom ratio and the offset corresponding to this zoom operation can be determined according to the sliding direction, sliding distance, sliding position, etc. of the two fingers.

[0496] Step 3203: The function main module generates a second operation record, and the zoom ratio and the target offset are recorded in the second operation record.

[0497] The zoom ratio in the second operation record is determined according to the zoom operation of the user on the main picture of the lock screen wallpaper. The zoom ratio in the second operation record is used to indicate how much the main picture after zooming is zoomed compared to the original, and this zoom ratio acts on the original layer and the cut layer.

[0498] The target offset in the second operation record is determined according to the moving operation and the zoom operation of the user on the main picture of the lock screen wallpaper, and is used to indicate how much the center of the main picture after moving is offset relative to the center of the screen. This target offset acts on the original layer and the cut layer.

[0499] After the function main module determines the zoom ratio and the target offset corresponding to this zoom operation, in the case where there is no second operation record currently, it can generate a second operation record and record the zoom ratio and the target offset corresponding to this zoom operation in the second operation record. In the case where there is a second operation record, if the user performs a zoom operation subsequently, the function main module can update the zoom ratio in the second operation record to the product of this zoom ratio and the zoom ratio corresponding to this zoom operation, and update the target offset in the second operation record to the sum of this target offset and the target offset corresponding to this zoom operation.

[0500] It should be noted that if the user replaces the main picture subsequently or the user reselects the wallpaper template, the function main module can delete the second operation record.

[0501] Step 3204: The function main module sends the view identifier of the original layer, the view identifier of the cut layer, the zoom ratio in the second operation record, and a specific offset to the lock screen view module. The specific offset is obtained by multiplying the target offset in the second operation record by a specific zoom ratio.

[0502] Step 3205: After the lock screen view module receives the view identifier of the original layer, the view identifier of the cut layer, the scaling ratio, and the specific offset, it redraws the layer content in the view identified by the view identifier of the original layer and redraws the layer content in the view identified by the view identifier of the cut layer according to the scaling ratio and the specific offset, and displays m views.

[0503] The lock screen view module can determine the target area in the display picture of the original layer according to the scaling ratio and the specific offset without changing the level of the view identified by the view identifier of the original layer, and draw the picture in the target area of the display picture into the view. Moreover, the lock screen view module can determine the target area in the display picture of the cut layer according to the scaling ratio and the specific offset without changing the level of the view identified by the view identifier of the cut layer, and draw the picture in the target area of the display picture into the view.

[0504] Exemplarily, as Figure 33 shown, taking the scaling ratio of 1.5 and the specific offset of [20, 20] as an example, the lock screen view module can determine the target area in the display picture. The target area in the display picture is the area centered on the center of the display picture and having the same size as the view; without changing the center of the display picture, scale the display picture according to the scaling ratio, and then move the scaled display picture according to the specific offset so that the offset between the center of the moved display picture and the center of the target area is the specific offset. After that, draw the picture in the target area of the moved display picture into the view.

[0505] Exemplarily, when the lock screen view module displays m views, it can submit the m views to the rendering service for rendering in the order from the lowest level to the highest level, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, which realizes the display of the wallpaper on the lock screen wallpaper page. Exemplarily, the displayed lock screen wallpaper page can be Figure 15 the lock screen wallpaper page 702 shown in FIG. (b) or FIG. (d) in, where the main picture of the displayed wallpaper is enlarged or reduced accordingly.

[0506] It should be noted that the implementation process of the user moving the main picture of the lock screen wallpaper is similar to the implementation process of the user scaling the main picture of the lock screen wallpaper in the above, and the embodiments of the present application will not elaborate on this.

[0507] In some embodiments, after the user edits the lock screen wallpaper by zooming or moving the main body picture, the edited lock screen wallpaper can be saved to take effect. This process may include the following steps 3206 and 3208.

[0508] Step 3206: The function main body module receives a click operation on the application control.

[0509] Exemplarily, as shown in figures (b), (d), or (f) of Figure 15 After the user zooms or moves the main body picture, the function main body module will receive a click operation on the application control 71 in the wallpaper editing interface 700.

[0510] Step 3207: In the case where there is a second operation record, for any one of the original layer and the cutout layer in the current edited lock screen wallpaper file, the function main body module obtains the picture of this layer in the current edited lock screen wallpaper file as the initial picture. Without changing the picture name, first processes this initial picture to obtain a full-screen picture, then determines a specific area in this full-screen picture according to the zoom ratio and the target offset in the second operation record. The size of the specific area is the same as the screen size, and then crops out the picture within the specific area of this full-screen picture as the target picture of this layer, and updates the picture of this layer in the current edited lock screen wallpaper file with the target picture of this layer to obtain the lock screen wallpaper file 8.

[0511] In the case where there is a second operation record, for any other layer among the multiple layers except the clock layer, the original layer, and the cutout layer, the function main body module can process the picture of this layer in the current edited lock screen wallpaper file into a target picture. The specific operation can refer to the above step 2310 and will not be elaborated here.

[0512] In the case where there is no second operation record, for any layer among the multiple layers except the clock layer, the function main body module can process the picture of this layer in the current edited lock screen wallpaper file into a target picture. The specific operation can refer to the above step 2310 and will not be elaborated here.

[0513] The size of the target picture is the same as the screen size, so that the sizes of the pictures of the other layers except the clock layer in the subsequently saved lock screen wallpaper file are all the same as the screen size.

[0514] Among them, the operation of the functional main body module to determine a specific area in the full-screen picture according to the zoom ratio and the target offset in the second operation record may be: determining a specific area in the full-screen picture, where the specific area in the full-screen picture is an area centered on the center of the full-screen picture and having the same size as the screen size; zooming the full-screen picture according to the zoom ratio while keeping the center of the full-screen picture unchanged, and then moving the zoomed full-screen picture according to the target offset so that the offset between the center of the moved full-screen picture and the center of the specific area is the target offset.

[0515] It should be noted that if Figure 32 the flowchart shown is executed after the above step 2309, or is executed after step 2312 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 1. And if Figure 32 the flowchart shown is executed after the above step 2607, or is executed after step 2610 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 2. And if Figure 32 the flowchart shown is executed after the above step 2707, or is executed after step 2710 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 3. And if Figure 32 the flowchart shown is executed after the above step 2807, or is executed after step 2810 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 4. And if Figure 32 the flowchart shown is executed after the above step 2906, or is executed after step 2909 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 5. And if ​ the flowchart shown is executed after the above step 3007, or is executed after step 3011 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 6. And if ​ the flowchart shown is executed after the above step 3107, or is executed after step 3110 when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be lock screen wallpaper file 7.

[0516] Step 3208: The functional main body module sends a wallpaper data storage request to the file system.

[0517] The wallpaper data storage request is used to request the storage of the lock screen wallpaper file 8. The lock screen wallpaper file 8 is the currently edited lock screen wallpaper file, which in the embodiments of the present application is the lock screen wallpaper file updated by the function main body module according to the relevant zoom ratio or offset amount after the user zooms or moves the main body picture. Here, the pictures of each layer except the clock layer in the lock screen wallpaper file are target pictures, and the pictures of the original layer and the cut layer are target pictures obtained based on the zoom ratio and the target offset amount in the second operation record.

[0518] Step 3209: After the file system receives the wallpaper data storage request, it updates the lock screen wallpaper file.

[0519] Exemplarily, the file system may update the first file of the lock screen wallpaper to the lock screen wallpaper file 8.

[0520] It should be noted that after the user saves the edited lock screen wallpaper, the lock screen application can display the lock screen wallpaper on the lock screen interface. In this case, if the user wants to edit the lock screen wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the lock screen wallpaper completed in the previous edit, that is, the lock screen wallpaper corresponding to the lock screen wallpaper file 8. The user can continue to edit the lock screen wallpaper. The process of editing the lock screen wallpaper again can refer to the ​ flowchart shown below and will not be described in detail here.

[0521] In some embodiments, as ​ shown in Figure (a) in, the user can also slide on the wallpaper editing interface 700 to switch to the desktop wallpaper page 703 for display, and then edit the desktop wallpaper.

[0522] For example, after the above steps 2309, 2607, 2707, 2807, 2906, 3007, 3107, or 3205, the user can slide on the wallpaper editing interface 700 to switch to the desktop wallpaper page 703 for display, and then edit the desktop wallpaper. Or, after the above steps 2312, 2610, 2710, 2810, 2909, 3011, 3110, or 3209, when the user enters the wallpaper editing interface 700 in the electronic device again, the user can slide on the wallpaper editing interface 700 to switch to the desktop wallpaper page 703 for display, and then edit the desktop wallpaper.

[0523] ​ It is a flowchart of a wallpaper editing method provided by an embodiment of the present application. ​ The flowchart shown is used to illustrate the specific implementation process of the user setting the desktop wallpaper based on the wallpaper editing interface. Refer to ​, the method may include the following steps:

[0524] Step 3401: The function main body module receives a click operation on the follow lock screen control.

[0525] In some cases, if the user wants the main picture of the desktop wallpaper to be the same as that of the lock screen wallpaper, as ​ shown in Figure (b), the user can click on the follow lock screen control 76, and the function main body module will receive the click operation on the follow lock screen control 76.

[0526] Step 3402: In response to the click operation on the follow lock screen control, the function main body module generates a desktop wallpaper file 1 and obtains the display information of the original layer according to the desktop wallpaper file 1.

[0527] The desktop wallpaper file 1 contains the picture of the original layer in the currently edited lock screen wallpaper file.

[0528] It should be noted that if ​ the flowchart shown is executed after the above step 2309, or, after step 2312, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 1. And if ​ the flowchart shown is executed after the above step 2607, or, after step 2610, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 2. And if ​ the flowchart shown is executed after the above step 2707, or, after step 2710, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 3. And if ​ the flowchart shown is executed after the above step 2807, or, after step 2810, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 4. And if ​ the flowchart shown is executed after the above step 2906, or, after step 2909, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 5. And if ​ the flowchart shown is executed after the above step 3007, or, after step 3011, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 6. And if ​The flowchart shown is executed after step 3107 above, or, after step 3110, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 7. And if ​ The flowchart shown is executed after step 3205 above, or, after step 3209, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited lock screen wallpaper file can be the lock screen wallpaper file 8.

[0529] The function main body module can save the desktop wallpaper file 1 as the currently edited desktop wallpaper file in the memory, and during subsequent editing processes, the currently edited desktop wallpaper file is modified.

[0530] The operation of the function main body module to obtain the display information of the original layer according to the desktop wallpaper file 1 is similar to the operation of the function main body module to obtain the display information of the original layer according to the wallpaper template file in step 2307 above, and this is not elaborated in this embodiment of the present application.

[0531] Step 3403: The function main body module sends the display information of the original layer to the desktop view module.

[0532] It should be noted that, in the case of the existence of the first operation record, the function main body module can also send the target blur degree in the first operation record to the desktop view module. In the case of the existence of the second operation record, the function main body module can also send the zoom ratio and the specific offset in the second operation record to the desktop view module.

[0533] Step 3404: After receiving the display information of the original layer, the desktop view module redraws the layer content in the corresponding view according to the display information of the original layer, and displays n views.

[0534] Exemplarily, the desktop view module can first blur the display picture in the display information of the original layer according to the target blur degree, then determine the target area in the display picture according to the zoom ratio and the specific offset, and draw the picture in the target area in the display picture into the view identified by the view identifier of the original layer. In this case, the view on which the layer content of the original layer is drawn can be referred to as the original layer.

[0535] Exemplarily, the n views can be the original layer and the desktop icon layer. When the desktop view module displays the n views, it can submit the n views to the rendering service for rendering in the order from low to high in terms of hierarchy, so as to display the n views in the display area of the desktop wallpaper page on the screen, thus realizing the display of the desktop wallpaper and the desktop content in the desktop wallpaper page. Exemplarily, the displayed desktop wallpaper page can be ​The desktop wallpaper page 703 shown in Figure (c) therein, where the displayed wallpaper has the same main picture as the wallpaper on the lock screen wallpaper page 702.

[0536] In some embodiments, after the user edits the desktop wallpaper by following the lock screen control, the edited desktop wallpaper can also be saved to take effect, and this process may include the following steps 3405 and step 3407.

[0537] Step 3405: The function main body module receives a click operation on the application control.

[0538] Exemplarily, as ​ shown in Figure (c) therein, after the user clicks the follow lock screen control, the user can click the application control 71 in the wallpaper editing interface 700, and the function main body module will receive the click operation on the application control 71.

[0539] After the function main body module receives the click operation on the application control, it can obtain the picture of the original layer in the currently edited desktop wallpaper file as the initial picture. Without changing the picture name, it first processes the initial picture to obtain a full-screen picture. Then, in the case where there is no first operation record and no second operation record, it crops the picture within the area centered on the center of the full-screen picture and having the same size as the screen size as the target picture, and updates the picture of the original layer in the currently edited desktop wallpaper file to the target picture; in the case where there is a first operation record but no second operation record, it blurs the full-screen picture according to the target blur degree in the first operation record, crops the picture within the area centered on the center of the full-screen picture and having the same size as the screen size as the target picture, and updates the picture of the original layer in the currently edited desktop wallpaper file to the target picture; in the case where there is no first operation record but there is a second operation record, it determines a specific area in the full-screen picture according to the scaling ratio and the target offset in the second operation record, the size of the specific area is the same as the screen size, and then crops the picture within the specific area in the full-screen picture as the target picture, and updates the picture of the original layer in the currently edited desktop wallpaper file to the target picture; in the case where there is a first operation record and there is a second operation record, it blurs the full-screen picture according to the target blur degree in the first operation record, then determines a specific area in the full-screen picture according to the scaling ratio and the target offset in the second operation record, crops the picture within the specific area in the full-screen picture as the target picture, and updates the picture of the original layer in the currently edited desktop wallpaper file to the target picture. Among them, the size of the target picture is the same as the screen size.

[0540] Step 3406: The function main body module sends a wallpaper data storage request to the file system.

[0541] The wallpaper data storage request is used to request the storage of the desktop wallpaper file 1. The desktop wallpaper file 1 is the currently edited desktop wallpaper file. In the embodiment of the present application, it is the desktop wallpaper file generated by the function main module according to the lock screen wallpaper file after the user selects to follow the lock screen. Here, the picture of the original layer in the desktop wallpaper file is the target picture.

[0542] Step 3407: After the file system receives the wallpaper data storage request, it updates the desktop wallpaper file.

[0543] Exemplarily, the file system can update the first file of the desktop wallpaper to the desktop wallpaper file 1.

[0544] It should be noted that after the user saves the edited desktop wallpaper, the desktop application can display the desktop wallpaper on the desktop. In this case, if the user wants to edit the desktop wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the desktop wallpaper completed in the previous edit, that is, the desktop wallpaper corresponding to the desktop wallpaper file 1. The user can continue to edit the desktop wallpaper. The process of editing the lock screen wallpaper again can refer to the flowchart shown below ​ and will not be elaborated here for the time being.

[0545] In some embodiments, when the desktop wallpaper is in the state of following the lock screen, the function main module can, in the case where the first operation record and / or the second operation record changes, instruct the desktop view module to redraw the layer content of the original layer according to the first operation record and / or the second operation record, so that the desktop wallpaper displayed on the desktop wallpaper page can be consistent with the main picture of the lock screen wallpaper displayed on the lock screen wallpaper page.

[0546] ​ It is a flowchart of a wallpaper editing method provided by an embodiment of the present application. ​ The shown flowchart is used to illustrate the specific implementation process for the user to set the desktop wallpaper based on the wallpaper editing interface. ​ The shown flowchart can be executed after the above step 3404; or, it can be executed after step 3407 when the user enters the wallpaper editing interface again in the electronic device.

[0547] See ​ , and the method may include the following steps:

[0548] Step 3501: The function main module receives a click operation on the color control.

[0549] In some cases, if the user wants to set a solid color wallpaper or a gradient color wallpaper for the desktop, then as ​As shown in Figure (a), the user can click on the color control 77, and the main function module will receive the click operation on the color control 77.

[0550] Step 3502: In response to the click operation on the color control, the main function module displays the sixth pop-up window.

[0551] Exemplarily, as ​ shown in Figure (b), in the sixth pop-up window 7016, a gradient color switch and multiple color options are displayed.

[0552] Step 3503: The main function module receives the selection operation on color option 1.

[0553] Exemplarily, as ​ shown in Figure (b), the user can click on a color option (hereinafter referred to as color option 1) displayed in the sixth pop-up window 7016, and the main function module will receive the selection operation on color option 1.

[0554] Step 3504: In response to the selection operation on color option 1, the main function module determines the color corresponding to color option 1.

[0555] It should be noted that in response to the selection operation on color option 1, the main function module can also turn off the follow lock screen state of the desktop wallpaper.

[0556] Step 3505: When the gradient color switch is in the off state, the main function module generates a solid color picture with the screen size and the color corresponding to color option 1 as the specified picture; when the gradient color switch is in the on state, the main function module generates a gradient color picture with the screen size and the color corresponding to color option 1 as the specified picture.

[0557] Step 3506: The main function module modifies the picture name of the specified picture to the picture name of the original layer picture in the currently edited desktop wallpaper file, updates the original layer picture in the currently edited desktop wallpaper file to the specified picture, obtains the desktop wallpaper file 2, and then re-obtains the display picture of the original layer.

[0558] It should be noted that if ​ the flowchart shown is executed after the above step 3404, or, after step 3407, when the user enters the wallpaper editing interface in the electronic device again, then the currently edited desktop wallpaper file can be the desktop wallpaper file 1.

[0559] The main function module can re-obtain the display picture of the original layer according to the original layer picture in the desktop wallpaper file 2. The specific operation can refer to the above step 23073 and will not be elaborated here.

[0560] Step 3507: The functional main body module sends the view identifier and display image of the original layer to the desktop view module.

[0561] Step 3508: After receiving the view identifier and display image of the original layer, the desktop view module redraws the layer content in the view identified by the view identifier of the original layer according to the display image of the original layer, and displays n views.

[0562] After the desktop view module receives the view identifier and display image of the original layer, it determines the target area in the display image while keeping the hierarchy of the view identified by the view identifier of the original layer unchanged, and draws the image in the target area of the display image into the view. Afterwards, the n views can be submitted to the rendering service for rendering in the order of hierarchy from low to high, so as to display the n views in the display area of the desktop wallpaper page on the screen, thereby realizing the display of the desktop wallpaper and desktop content in the desktop wallpaper page. For example, the displayed desktop wallpaper page can be ​ In the desktop wallpaper page 703 shown in FIG. 8 (d), the wallpaper displayed therein is a solid color wallpaper set by the user.

[0563] In some embodiments, after the user edits the desktop wallpaper by setting a solid color wallpaper or a gradient color wallpaper, the user may also save the edited desktop wallpaper to make it effective. The process may include the following steps 3509 and 3511.

[0564] Step 3509: The functional main body module receives a click operation on the application control.

[0565] For example, ​ As shown in FIG. (c) of FIG. 1 , after the user sets a solid color wallpaper, he can directly click the application control 71 in the wallpaper editing interface 700, and the functional main module will receive the click operation on the application control 71. Or, ​ As shown in FIG. 7(c), after the user sets a solid color wallpaper, he can first click the folding control 7162 in the sixth pop-up window 7016, and then, ​ As shown in FIG. 7( d ), the user then clicks on the application control 71 in the wallpaper editing interface 700 , and the functional main module will receive the click operation on the application control 71 .

[0566] After receiving a click operation on the application control, the functional main body module can obtain the picture of the original layer in the currently edited desktop wallpaper file as the initial picture. While keeping the picture name unchanged, the initial picture is first processed to obtain a full-screen picture, and then the picture in the area of the full-screen picture centered on the center of the full-screen picture and with the same size as the screen size is cropped as the target picture, and the picture of the original layer in the currently edited desktop wallpaper file is updated to the target picture.

[0567] Step 3510: The functional main module sends a wallpaper data storage request to the file system.

[0568] This wallpaper data storage request is used to request the storage of the desktop wallpaper file 2. The desktop wallpaper file 2 is the currently edited desktop wallpaper file. In the embodiment of the present application, it is the desktop wallpaper file updated by the functional main module after the user sets a solid color wallpaper or a gradient color wallpaper. Here, the picture of the original layer in this desktop wallpaper file is the target picture.

[0569] Step 3511: After receiving the wallpaper data storage request, the file system updates the desktop wallpaper file.

[0570] Exemplarily, the file system can update the first file of the desktop wallpaper to the desktop wallpaper file 2.

[0571] It should be noted that after the user saves the edited desktop wallpaper, the desktop application can display this desktop wallpaper on the desktop. In this case, if the user wants to edit the desktop wallpaper again during the use of the electronic device, the user can enter the wallpaper editing interface again. At this time, the wallpaper editing interface can display the desktop wallpaper completed in the previous edit, that is, the desktop wallpaper corresponding to the desktop wallpaper file 2. The user can continue to edit this desktop wallpaper. The process of editing the lock screen wallpaper again can refer to the flowchart shown below, which will not be elaborated here. ​ As shown in the flowchart, it will not be described in detail here.

[0572] In some embodiments, the user can select a picture as the desktop wallpaper through the select wallpaper control in the wallpaper editing interface. This process is similar to the process in which the user replaces the main picture of the lock screen wallpaper through the replace picture control above and will not be elaborated here.

[0573] In some embodiments, the user can adjust the blur degree of the desktop wallpaper through the blur control in the wallpaper editing interface. This process is similar to the process in which the user adjusts the blur degree of the main picture of the lock screen wallpaper through the background blur control above and will not be elaborated here.

[0574] In some embodiments, the user can zoom in or out or move the desktop wallpaper on the desktop wallpaper page. This process is similar to the process in which the user zooms in or out or moves the main picture of the lock screen wallpaper on the lock screen wallpaper page above and will not be elaborated here.

[0575] As an example, after the user edits the lock screen wallpaper and / or the desktop wallpaper through one or more of the above editing functions, if the user does not want to save the edited lock screen wallpaper and / or desktop wallpaper, the user can click the return control in the wallpaper editing interface. In this case, the functional main module can clear the currently edited lock screen wallpaper file and desktop wallpaper file in the memory.

[0576] As another example, after the user edits the lock screen wallpaper and / or the desktop wallpaper through one or more of the above editing functions, the edited lock screen wallpaper and / or desktop wallpaper can also be saved to take effect.

[0577] In some embodiments, as ​ shown in FIG. (a) in, the function main body module can receive a click operation on the application control 71. In response to the click operation, the function main body module takes the currently edited lock screen wallpaper file as the first file of the lock screen wallpaper, updates and stores the first file of the lock screen wallpaper to the file system, and takes the currently edited desktop wallpaper file as the first file of the desktop wallpaper, and updates and stores the first file of the desktop wallpaper to the file system.

[0578] Further, in response to the click operation, the function main body module can also generate a second file of the lock screen wallpaper according to the currently edited lock screen wallpaper file. The second file of the lock screen wallpaper includes a first wallpaper picture, clock setting information, and a second wallpaper picture. Among them, the first wallpaper picture is formed by superimposing the target pictures of all layers in the lock screen wallpaper file that are lower in level than the clock layer. The clock setting information may include the layout, font, and color value of the clock layer, etc. The second wallpaper picture is formed by superimposing the target pictures of all layers in the lock screen wallpaper file that are higher in level than the clock layer. The function main body module can update and store the second file of the lock screen wallpaper to the file system. In this way, when the lock screen application displays the lock screen wallpaper, it can obtain the second file of the lock screen wallpaper from the file system, and then superimpose and display the first wallpaper picture, the clock layer, and the second wallpaper picture in sequence to display the lock screen wallpaper, which is simple and fast.

[0579] Similarly, in response to the click operation, the function main body module can also generate a second file of the desktop wallpaper according to the currently edited desktop wallpaper file. The second file of the desktop wallpaper includes the target pictures of the original layers in the desktop wallpaper file. The function main body module can update and store the second file of the desktop wallpaper to the file system. In this way, when the desktop application displays the desktop wallpaper, it can obtain the second file of the desktop wallpaper from the file system, and then directly display the pictures in the second file of the desktop wallpaper, which is simple and fast.

[0580] The above ​ Embodiments to ​ Embodiments have described in detail the specific implementation process of displaying the wallpaper editing interface and performing wallpaper editing based on the wallpaper editing interface when using the wallpaper editing function for the first time. Next, the specific implementation process when using the wallpaper editing function again will be described.

[0581] ​ is a flowchart of a wallpaper editing method provided by an embodiment of the present application. ​The flowchart shown is used to illustrate the specific implementation process of displaying the wallpaper editing interface when the wallpaper editing function is used again. ​ The flowchart shown may be executed after the above-mentioned step 2312, step 2610, step 2710, step 2810, step 2909, step 3011, step 3110, step 3209, step 3407, or step 3511.

[0582] See ​ , the method may include the following steps:

[0583] Step 3601: The lock screen application receives a first gesture operation.

[0584] The operation of step 3601 is similar to the operation of step 2101 above, and this application embodiment will not elaborate on it.

[0585] Step 3602: In response to the first gesture operation, the lock screen application sends a first message to the gallery application.

[0586] The operation of step 3602 is similar to the operation of step 2102 above, and this application embodiment will not elaborate on it.

[0587] Step 3603: After the function main body module in the gallery application receives the first message, if it determines that the first message comes from the lock screen application, it displays function controls.

[0588] The operation of step 3603 is similar to the operation of step 2103 above, and this application embodiment will not elaborate on it.

[0589] Step 3604: The function main body module sends a first creation instruction to the lock screen view module, and the first creation instruction is used to indicate the creation of m views.

[0590] The operation of step 3604 is similar to the operation of step 2104 above, and this application embodiment will not elaborate on it.

[0591] Step 3605: After the lock screen view module receives the first creation instruction, it creates m views.

[0592] The operation of step 3605 is similar to the operation of step 2105 above, and this application embodiment will not elaborate on it.

[0593] Step 3606: The function main body module sends a second creation instruction to the desktop view module, and the second creation instruction is used to indicate the creation of n views.

[0594] The operation of step 3606 is similar to the operation of step 2106 above, and this application embodiment will not elaborate on it.

[0595] Step 3607: After the desktop view module receives the second creation instruction, n views are created.

[0596] The operation of step 3607 is similar to that of step 2107 above, and this will not be elaborated in the embodiments of the present application.

[0597] Step 3608: The function main body module sends a wallpaper data acquisition request to the file system.

[0598] This wallpaper data acquisition request is used to request the acquisition of the lock screen wallpaper file and the desktop wallpaper file.

[0599] Step 3609: After the file system receives this wallpaper data acquisition request, it sends the lock screen wallpaper file and the desktop wallpaper file to the function main body module.

[0600] After the file system receives the wallpaper data acquisition request sent by the function main body module in the gallery application, it can send the first file of the lock screen wallpaper as the lock screen wallpaper file to the function main body module, and send the first file of the desktop wallpaper as the desktop wallpaper file to the function main body module.

[0601] Since the wallpaper editing function has been used before, the first file of the lock screen wallpaper includes the files of each layer in multiple layers, and the first file of the desktop wallpaper includes the file of the original layer (i.e., the picture).

[0602] Exemplarily, if ​ the shown flowchart is executed after the above step 2312, then in step 3609, the file system sends the lock screen wallpaper file 1 to the function main body module, that is, the wallpaper template file of the wallpaper template selected by the user during the last edit. In this case, the subsequent displayed lock screen wallpaper page can be ​ the lock screen wallpaper page 702 shown in figure (c) in, and the user can continue to edit the wallpaper on the lock screen wallpaper page 702, such as performing operations such as main picture scaling, main picture moving, background blur processing, clock font adjustment, decorative part shape adjustment, clock color adjustment, decorative part color adjustment, depth of field effect setting, etc.

[0603] Exemplarily, if ​ the shown flowchart is executed after the above step 2610, then in step 3609, the file system sends the lock screen wallpaper file 2 to the function main body module, that is, the lock screen wallpaper file obtained after the user adjusted the clock color in the selected wallpaper template during the last edit. In this case, the subsequent displayed lock screen wallpaper page can be ​In the lock screen wallpaper page 702 shown in Figure (d), the user can continue to edit the wallpaper in the lock screen wallpaper page 702. For example, operations such as resizing the main picture, moving the main picture, blurring the background, adjusting the clock font, adjusting the shape of the decorative piece, adjusting the clock color, adjusting the decorative piece color, and setting the depth of field effect can be performed.

[0604] Similarly, if ​ The flowchart shown is executed after step 2710, step 2810, step 2909, step 3011, step 3110, step 3209, step 3407, or step 3511, then in step 3609, the file system sends the corresponding lock screen wallpaper file to the function main body module, and the lock screen wallpaper file is the lock screen wallpaper file obtained by the user's last edit. This time, the wallpaper can be displayed on the lock screen wallpaper page according to this lock screen wallpaper file, and the displayed wallpaper is the wallpaper completed by the user's last edit, and the user can continue to edit it this time.

[0605] Step 3610: After receiving the lock screen wallpaper file and the desktop wallpaper file, the function main body module obtains the display information of each layer in the multiple layers according to the lock screen wallpaper file, and obtains the display information of the original layer according to the desktop wallpaper file.

[0606] The operation of the function main body module obtaining the display information of each layer in the multiple layers according to the lock screen wallpaper file is similar to the operation in step 2307 above, and this embodiment of the present application will not elaborate on it.

[0607] The operation of the function main body module obtaining the display information of the original layer according to the desktop wallpaper file is similar to the operation in step 3402 above, and this embodiment of the present application will not elaborate on it.

[0608] It should be noted that after receiving the lock screen wallpaper file and the desktop wallpaper file, the function main body module can save the lock screen wallpaper file as the currently edited lock screen wallpaper file in the memory, and save the desktop wallpaper file as the currently edited desktop wallpaper file in the memory. During subsequent editing processes, modifications are made to the currently edited lock screen wallpaper file and the currently edited desktop wallpaper file.

[0609] Step 3611: The function main body module sends a first display instruction to the lock screen view module.

[0610] The first display instruction is used to indicate the display of the m views. The first display instruction carries the display information of each layer in the multiple layers.

[0611] Step 3612: After receiving the first display instruction, the lock screen view module draws the layer content in the corresponding view according to the display information of each layer in the multiple layers, and displays the m views.

[0612] The lock screen view module can set the levels of the multiple views corresponding one by one to the multiple layers according to the display information of each layer in the multiple layers, and draw the layer content in each of the m views. After that, the m views can be submitted to the rendering service for rendering in the order from the lowest level to the highest level, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen, thus realizing the display of the wallpaper on the lock screen wallpaper page. In this case, the other views among the m views except the multiple views are blank views. Therefore, after the lock screen view module displays the m views, the user can only see the content drawn in the multiple views.

[0613] Step 3613: The function main body module sends a second display instruction to the desktop view module.

[0614] The second display instruction is used to indicate to display the n views. Exemplarily, when n is equal to 2, the second display instruction may carry the display information of the original layer, the third view identifier, and the desktop thumbnail. When n is greater than 2, the second display instruction may also carry the display information of other layers.

[0615] Step 3614: After receiving the second display instruction, the desktop view module draws the layer content in the corresponding view according to the display information of the original layer, draws the desktop thumbnail in the view identified by the third view identifier, and displays the n views.

[0616] After the desktop view module draws the layer content in the corresponding view according to the display information of the original layer, this view can be called the original layer. After the desktop view module draws the desktop thumbnail in the view identified by the third view identifier, the view with the desktop thumbnail drawn can be called the desktop icon layer. The level of the desktop icon layer is higher than that of the original layer, that is, the desktop icon layer is located above the original layer. When n is greater than 2, the desktop view module can also draw the layer content in the corresponding view according to the display information of other layers carried by the second display instruction.

[0617] After that, the desktop view module can submit the n views to the rendering service for rendering in the order from the lowest level to the highest level, so as to display the n views in the display area of the desktop wallpaper page on the screen, thus realizing the display of the desktop wallpaper and desktop content in the desktop wallpaper page.

[0618] After displaying the function control, the lock screen wallpaper page, and the desktop wallpaper page through the above steps, the display of the wallpaper editing interface is completed. For example, the displayed wallpaper editing interface may be ​ the wallpaper editing interface 700 shown in Figure (b) of

[0619] After the wallpaper editing interface is displayed, the user can edit the lock screen wallpaper or the home screen wallpaper based on the wallpaper editing interface. For example, the wallpaper template can be changed, the clock color and font of the lock screen wallpaper can be changed, the color and shape of the decorative parts of the lock screen wallpaper can be changed, the depth of field effect and background blur of the lock screen wallpaper can be adjusted, the main picture of the lock screen wallpaper can be changed, the main picture of the lock screen wallpaper can be scaled and moved, the home screen wallpaper can be set to follow the lock screen, the color of the home screen wallpaper can be set, etc. The specific editing process has been described in detail in the ​ Examples to ​ Examples and will not be elaborated here.

[0620] For example, assume that the lock screen wallpaper currently displayed on the lock screen wallpaper page corresponds to the first lock screen wallpaper file. After the wallpaper is edited, the third wallpaper is displayed on the lock screen wallpaper page. In this case, the electronic device can update and store the first lock screen wallpaper file, so that the lock screen wallpaper file stored in the file system is the lock screen wallpaper file corresponding to the currently edited third wallpaper. When editing again, the lock screen wallpaper file of the latest wallpaper can be obtained from the file system, thus ensuring the continuity of wallpaper editing.

[0621] It should be noted that in some embodiments, the user can also enter the wallpaper editing interface through the home screen of the electronic device. The specific process may include the following steps (1) to (16):

[0622] (1) The home screen application receives a second gesture operation.

[0623] The second gesture operation can be a pre-defined gesture operation. For example, the second gesture operation can be a two-finger pinch operation, a long press operation, a double tap operation, an S-shaped slide operation, etc. The embodiments of the present application do not limit this.

[0624] For example, assume that the second gesture operation is a two-finger pinch operation. As shown in ​ Figure (a), when the electronic device displays the home screen 900, the user can perform a two-finger pinch on the home screen 900. In this case, the home screen application can receive this two-finger pinch operation on the home screen 900. Among them, the two-finger pinch operation triggered on the home screen 900 is used to indicate entering the home screen editing interface.

[0625] (2) In response to the second gesture operation, the home screen application displays the home screen editing interface.

[0626] For example, as shown in ​ Figure (b), the home screen editing interface can display relevant controls for editing the home screen, such as wallpaper controls, card controls, switching effect controls, home screen setting controls, etc.

[0627] (3) The desktop application receives a click operation on the wallpaper control.

[0628] For example, as ​ shown in figure (b) of , the user can click on the wallpaper control in the desktop editing interface to indicate entering the wallpaper editing function.

[0629] (4) In response to the click operation on the wallpaper control, the desktop application sends a second message to the gallery application.

[0630] For example, the second message can be an intent message.

[0631] The second message can carry source information, which is used to indicate which application the second message comes from. For example, the source information in the second message can be the application identifier of the desktop application.

[0632] In some implementations, the second message can also carry the storage path of the desktop wallpaper.

[0633] Since the click operation on the wallpaper control is used to indicate entering the wallpaper editing function, after the desktop application receives the click operation on the wallpaper control, it can send a second message to the gallery application to indicate that the gallery application displays the wallpaper editing interface.

[0634] (5) After the function main body module in the gallery application receives the second message, if it determines that the second message comes from the desktop application, it displays function controls.

[0635] The function main body module can determine whether the second message comes from the desktop application according to the source information in the second message.

[0636] In some embodiments, if the function main body module determines that the second message comes from the desktop application, then the function main body module can determine that the display area of the desktop wallpaper page is a preset third display area within the screen, and the display area of the lock screen wallpaper page is a preset fourth display area, where only part of the fourth display area is within the screen or the fourth display area is completely outside the screen. In this case, as ​ shown in figure (c) of , the function main body module can first display the main function controls and the related function controls for editing the desktop wallpaper, and temporarily not display the related function controls for editing the lock screen wallpaper.

[0637] In some embodiments, the size of the third display area is the same as the size of the fourth display area. The area ratio of the third display area and the area ratio of the fourth display area are both the same as the screen ratio of the electronic device.

[0638] For example, as ​As shown, when the second message comes from the desktop application, the functional main body module can determine that the display area of the desktop wallpaper page is the preset display area C within the screen, while the display area of the lock screen wallpaper page is the preset display area D. Only a very small part of the display area D is within the screen, and most of it is outside the screen. In this case, the user can see the complete desktop wallpaper page, but only a very small part of the lock screen wallpaper page.

[0639] In some embodiments, if the functional main body module determines that the second message comes from the desktop application, it can also display a mask layer.

[0640] As an example, the functional main body module can obtain the corresponding picture according to the storage path of the picture carried in the second message (i.e., the desktop wallpaper mentioned above), or the functional main body module can obtain a preset picture. Then, the functional main body module can adjust the picture according to the screen information so that the size of the picture is the screen size, and then blur the picture to obtain the mask layer, and then display the mask layer.

[0641] (6) The functional main body module sends a first creation instruction to the lock screen view module, and the first creation instruction is used to instruct to create m views.

[0642] The operation in step (6) is similar to the operation in step 2104 above, and this embodiment of the present application will not elaborate on it.

[0643] (7) After receiving the first creation instruction, the lock screen view module creates m views.

[0644] The operation in step (7) is similar to the operation in step 2105 above, and this embodiment of the present application will not elaborate on it.

[0645] (8) The functional main body module sends a second creation instruction to the desktop view module, and the second creation instruction is used to instruct to create n views.

[0646] The operation in step (8) is similar to the operation in step 2106 above, and this embodiment of the present application will not elaborate on it.

[0647] (9) After receiving the second creation instruction, the desktop view module creates n views.

[0648] The operation in step (9) is similar to the operation in step 2107 above, and this embodiment of the present application will not elaborate on it.

[0649] (10) The functional main body module sends a wallpaper data acquisition request to the file system.

[0650] This wallpaper data acquisition request is used to request to obtain the lock screen wallpaper file and the desktop wallpaper file.

[0651] (11) After the file system receives the wallpaper data acquisition request, it sends the lock screen wallpaper file and the desktop wallpaper file to the function main body module.

[0652] The operation in step (11) is similar to the operation in step 3609 above, and this embodiment of the present application will not elaborate on it.

[0653] (12) After the function main body module receives the lock screen wallpaper file and the desktop wallpaper file, it obtains the display information of each layer in the multiple layers according to the lock screen wallpaper file, and obtains the display information of the original layer according to the desktop wallpaper file.

[0654] The operation in step (12) is similar to the operation in step 3610 above, and this embodiment of the present application will not elaborate on it.

[0655] (13) The function main body module sends a first display instruction to the lock screen view module.

[0656] The operation in step (13) is similar to the operation in step 3611 above, and this embodiment of the present application will not elaborate on it.

[0657] (14) After the lock screen view module receives the first display instruction, it draws the layer content in the corresponding view according to the display information of each layer in the multiple layers, and displays the m views.

[0658] The operation in step (14) is similar to the operation in step 3612 above, and this embodiment of the present application will not elaborate on it.

[0659] When the lock screen view module displays the m views, it can submit the m views to the rendering service for rendering in the order from low to high in terms of hierarchy, so as to superimpose and display the m views in the display area of the lock screen wallpaper page on the screen (i.e., the third display area), thus realizing the display of the wallpaper on the lock screen wallpaper page.

[0660] It should be noted that in some cases, such as ​ shown, since the third display area is a display area D where only a small part is located within the screen and most of it is located outside the screen, after the lock screen view module displays the m views, as ​ shown in figure (c) of, the user cannot see the lock screen wallpaper in the lock screen wallpaper page.

[0661] In other cases, most of the third display area can be located within the screen or completely within the screen. In this case, after the lock screen view module displays the m views, the user can see some or all of the lock screen wallpaper in the lock screen wallpaper page.

[0662] (15) The function main body module sends a second display instruction to the desktop view module.

[0663] The operation of step (15) is similar to that of step 3613 above, and details are not described herein again in the embodiments of this application.

[0664] (16) After the desktop view module receives the second display instruction, it draws the layer content in the corresponding view according to the display information of the original layer, draws a desktop thumbnail in the view identified by the third view identifier, and displays the n views.

[0665] The operation of step (16) is similar to that of step 3614 above, and details are not described herein again in the embodiments of this application.

[0666] When the desktop view module displays the n views, it may submit the n views to the rendering service for rendering in the order from the lowest level to the highest level, so as to display the n views in the display area (i.e., the fourth display area) of the desktop wallpaper page on the screen, thus realizing the display of the desktop wallpaper and desktop content in the desktop wallpaper page.

[0667] It should be noted that, as ​ shown, since the fourth display area is the display area C completely located within the screen, after the desktop view module displays the n views, as ​ shown in figure (c) of

[0668] After the display function control, the lock screen wallpaper page, and the desktop wallpaper page are displayed through the above steps, the display of the wallpaper editing interface is completed. For example, the displayed wallpaper editing interface may be the wallpaper editing interface 700 shown in figure (c) of ​

[0669] After the wallpaper editing interface is displayed, the user can edit the lock screen wallpaper or the desktop wallpaper based on the wallpaper editing interface. For example, the wallpaper template can be changed, the clock color and clock font of the lock screen wallpaper can be changed, the color and shape of the decorative parts of the lock screen wallpaper can be changed, the depth of field effect and background blur degree of the lock screen wallpaper can be adjusted, the main picture of the lock screen wallpaper can be changed, the main picture of the lock screen wallpaper can be scaled and moved, the desktop wallpaper can be set to follow the lock screen, the color of the desktop wallpaper can be set, etc. The specific editing process has been described in detail in the above ​ embodiment to ​ embodiment, and details are not described herein again.

[0670] ​ is a flowchart of a wallpaper editing method provided by an embodiment of this application. Refer to ​ , the method may include the following steps:

[0671] Step 3801: The electronic device displays a wallpaper editing interface, which includes a lock screen wallpaper page, a first control, and a second control.

[0672] The first control is a control for changing the wallpaper template. For example, the first control can be ​ the lock screen style control 72 shown in Figure (a) of

[0673] The second control is a control for saving the wallpaper. For example, the second control can be ​ the application control 71 shown in Figure (a) of

[0674] It should be noted that after the electronic device displays the wallpaper editing interface, the second control can be displayed in the wallpaper editing interface. Optionally, the lock screen wallpaper page and the first control can also be displayed in the wallpaper editing interface, or the lock screen wallpaper page and the first control can also not be displayed.

[0675] In some embodiments, the electronic device can receive a second gesture operation on the desktop; in response to the second gesture operation, the electronic device can display a desktop editing interface, which includes a third control; in response to an operation on the third control, the electronic device displays the wallpaper editing interface. In this case, as ​ shown in Figure (c) of

[0676] The third control is a control for setting the desktop wallpaper. For example, the third control can be ​ the wallpaper control in the desktop editing interface shown in Figure (b) of

[0677] In the case where the lock screen wallpaper page is not displayed in the displayed wallpaper editing interface, or a part of the lock screen wallpaper page is displayed, in response to a fourth gesture operation on the wallpaper editing interface, the electronic device displays the lock screen wallpaper page, the first control, and the second control in the wallpaper editing interface.

[0678] The fourth gesture operation can be a pre-defined gesture operation. For example, the fourth gesture operation can be a left swipe operation, a right swipe operation, etc., and the embodiments of the present application do not make any limitations in this regard. For example, when the user ​ performs a right swipe operation in the wallpaper editing interface 700 shown in Figure (c) of ​ as shown in Figure (d) of

[0679] In the embodiments of the present application, a user can quickly enter the wallpaper editing interface from the desktop to edit the wallpaper, thereby improving the convenience of wallpaper editing. Moreover, the user can also switch between the desktop wallpaper page and the lock screen wallpaper page in the wallpaper editing interface through gesture operations to perform corresponding wallpaper editing, thereby improving the flexibility of wallpaper editing.

[0680] In some other embodiments, the electronic device can receive a first gesture operation on the lock screen interface, and in response to the first gesture operation, the electronic device displays the wallpaper editing interface. In this case, as ​ shown in figure (b) of [reference], the displayed wallpaper editing interface 700 displays the lock screen wallpaper page 702, the first control 72, and the second control 71. Optionally, the desktop wallpaper page may not be displayed in the displayed wallpaper editing interface, or a part or all of the desktop wallpaper page may be displayed.

[0681] In the embodiments of the present application, a user can quickly enter the wallpaper editing interface from the lock screen interface through a first gesture operation to edit the wallpaper, thereby improving the convenience of wallpaper editing.

[0682] As an example, the operation of the electronic device to display the wallpaper editing interface in response to the first gesture operation may be: in response to the first gesture operation, the electronic device displays the first control and the second control; create m first views, where m is an integer greater than or equal to 2; draw layer content in at least one of the m first views according to the lock screen wallpaper file to obtain m second views, and display the m second views.

[0683] The operation of the electronic device to display the first control and the second control can refer to the above step 2103, and the embodiments of the present application will not elaborate on this.

[0684] The operation of the electronic device to create m first views can refer to the above steps 2104 and 2105, and the embodiments of the present application will not elaborate on this.

[0685] The operation of the electronic device to draw layer content in at least one of the m first views according to the lock screen wallpaper file to obtain m second views and display the m second views can refer to the above steps 2108 to 2115, or can refer to the above steps 3608 to 3614, and the embodiments of the present application will not elaborate on this.

[0686] It should be noted that after creating m first views, all the newly created m first views are blank views. After that, after drawing the layer content in at least one of the m first views according to the lock screen wallpaper file, when displayed subsequently, the user can see the content drawn in the at least one first view, while the other first views among the m first views except the at least one first view remain blank views and the user cannot see them even when displayed.

[0687] In addition, the layer content of the m second views is not necessarily completely different from that of the m first views, and it can be only a change in the layer content of some layers. That is to say, in the embodiments of the present application, after drawing the layer content in some or all of the m first views, the m first views can be referred to as m second views.

[0688] In the embodiments of the present application, when it is necessary to display the wallpaper editing interface, m views can be created first, and then the layer content is drawn and displayed in at least one of the m views based on the lock screen wallpaper file. In this way, the wallpaper corresponding to the lock screen wallpaper file can be quickly displayed through the m views created.

[0689] Step 3802: In response to an operation on the first control, the electronic device displays a plurality of wallpaper template options.

[0690] The operation on the first control here can be a triggering operation on the first control, such as a click operation, etc., to indicate the display of a plurality of wallpaper template options.

[0691] The plurality of wallpaper template options include a first wallpaper template option, and the first wallpaper template option can be any one of the plurality of wallpaper template options. The wallpaper template corresponding to the first wallpaper template option includes a plurality of layers, and the plurality of layers have been described in detail in the above embodiments and will not be elaborated here. The wallpaper template file corresponding to the first wallpaper template option includes the files of each layer among the plurality of layers, and the file of any one of the plurality of layers is text or a picture. The wallpaper template file has been described in detail in the above embodiments and will not be elaborated here.

[0692] The operation of step 3802 can refer to step 2302, and the embodiments of the present application will not elaborate on this.

[0693] Step 3803: In response to an operation on the first wallpaper template option, the electronic device displays a first wallpaper on the lock screen wallpaper page according to the wallpaper template file corresponding to the first wallpaper template option. The first wallpaper includes a plurality of layers.

[0694] The operation on the first wallpaper template option here is a selection operation on the first wallpaper template option to indicate the display of the wallpaper template corresponding to the first wallpaper template option, that is, the first wallpaper.

[0695] Optionally, in response to an operation on the first wallpaper template option, the electronic device may also save the wallpaper template file corresponding to the first wallpaper template option in the memory.

[0696] In some embodiments, the operation in step 3803 may be: in response to an operation on the first wallpaper template option, the electronic device obtains the display information of each layer in the multiple layers according to the wallpaper template file corresponding to the first wallpaper template option; clears the hierarchy and layer content of the m second views; sets the hierarchy of the corresponding second views according to the display information of each layer in the multiple layers and draws the layer content in the corresponding second views to obtain m third views; and displays the m third views. Displaying the m third views realizes the display of the first wallpaper.

[0697] It should be noted that the layer content of the m third views is not necessarily completely different from that of the m second views, and may only be a change in the layer content of some layers. That is, in the embodiments of the present application, after redrawing the layer content in some or all of the second views among the m second views, the m second views can be referred to as m third views.

[0698] In the embodiments of the present application, after each selection of a wallpaper template, the hierarchy and layer content of the m views can be cleared, and the hierarchy and layer content of the multiple views corresponding to the multiple layers in the wallpaper template in the m views are reset and displayed, so that the wallpaper template can be displayed quickly and accurately.

[0699] The operation of the electronic device to obtain the display information of each layer in the multiple layers according to the wallpaper template file corresponding to the first wallpaper template option may refer to step 2307 above, and details are not described herein again in the embodiments of the present application.

[0700] Exemplarily, the display information of a layer may include the view identifier, hierarchy, and drawing information of the layer, and the drawing information may be clock setting information or a displayed picture. The second view corresponding to a layer is the view identified by the view identifier of the layer.

[0701] In this case, the operation of the electronic device to set the hierarchy of the corresponding second views according to the display information of each layer in the multiple layers and draw the layer content in the corresponding second views to obtain m third views may be: for the second layer in the multiple layers, set the hierarchy of the second view identified by the view identifier of the second layer to the hierarchy of the second layer, and draw the layer content in the second view identified by the view identifier of the second layer according to the drawing information of the second layer to obtain a third view, where the second layer is any one of the multiple layers. The specific operation may refer to step 2308 and step 2309 above, and details are not described herein again in the embodiments of the present application.

[0702] Step 3804: In response to an editing operation on the first wallpaper, the electronic device modifies the layer content of multiple layers of the first wallpaper and displays the second wallpaper.

[0703] The electronic device can modify the layer content of at least one layer among the multiple layers of the first wallpaper to obtain the second wallpaper and display it.

[0704] As a first optional method, the operation of step 3804 can be: in response to an editing operation on the first wallpaper, the electronic device updates the wallpaper template file to obtain the first lock screen wallpaper file; redraws the layer content in at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views, or resets the hierarchy of at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views; displays the m fourth views. Displaying the m fourth views realizes the display of the second wallpaper.

[0705] It should be noted that the m fourth views are not necessarily completely different from the layer content of the m third views, and only the layer content or hierarchy of some layers may be changed. That is, in the embodiments of the present application, after redrawing the layer content in some or all of the m third views, or after resetting the hierarchy of some or all of the m third views, the m third views can be referred to as m fourth views.

[0706] In the embodiments of the present application, the currently edited lock screen wallpaper file can be updated according to the user's editing operation on the first wallpaper, and based on this, the layer content is redrawn and displayed in at least one of the m views, or the hierarchy of the m views can be reset and displayed accordingly. In this way, the display of the edited wallpaper can be realized simply and quickly.

[0707] Exemplarily, the editing operation can be an editing operation on the third layer among the multiple layers, and the third layer is any one layer among the multiple layers. In this case, the operation of the electronic device to update the wallpaper template file to obtain the first lock screen wallpaper file in response to the editing operation on the first wallpaper can be: in response to the editing operation on the third layer, when the third layer is the clock layer, the electronic device updates the clock setting information in the text content of the third layer in the wallpaper template file, or when the third layer is not the clock layer, the electronic device updates the picture of the third layer in the wallpaper template file to obtain the first lock screen wallpaper file.

[0708] Assume that the editing operation is an operation of selecting a clock color option. Then, the electronic device may update the color value in the text content of the text in the clock layer of the wallpaper template file to the color value corresponding to the clock color option, so as to obtain a first lock screen wallpaper file. For the specific operation, reference may be made to steps 2603 to 2605 above, and details are not described herein again in the embodiments of this application.

[0709] Assume that the editing operation is an operation of selecting a color option for the decoration layer. Then, the electronic device may modify the color of the picture in the decoration layer of the wallpaper template file according to the color value corresponding to the color option, so as to obtain a first lock screen wallpaper file. For the specific operation, reference may be made to steps 2703 to 2705 above, and details are not described herein again in the embodiments of this application.

[0710] Assume that the editing operation is an operation of selecting a shape option for the decoration layer. Then, the electronic device may obtain a third picture corresponding to the shape option, modify the picture name of the third picture to the picture name of the picture in the decoration layer of the wallpaper template file, and update the picture in the decoration layer of the wallpaper template file to the third picture, so as to obtain a first lock screen wallpaper file. For the specific operation, reference may be made to steps 2803 to 2805 above, and details are not described herein again in the embodiments of this application.

[0711] Assume that the editing operation is an operation of selecting a picture option. Then, the electronic device may obtain a fourth picture (i.e., the main picture) corresponding to the picture option, and generate a fifth picture (i.e., the cut-out picture) according to the fourth picture; modify the picture name of the fourth picture to the picture name of the picture in the original layer of the wallpaper template file, and modify the picture name of the fifth picture to the picture name of the picture in the cut-out layer of the wallpaper template file; update the picture in the original layer of the wallpaper template file to the fourth picture, and update the picture in the cut-out layer of the wallpaper template file to the fifth picture, so as to obtain a first lock screen wallpaper file. For the specific operation, reference may be made to steps 3103 to 3105 above, and details are not described herein again in the embodiments of this application.

[0712] Wherein, the fifth picture includes the foreground object in the fourth picture and does not include the content in the fourth picture other than the foreground object. That is to say, the foreground object exists in the fifth picture, and the part other than the foreground object is a blank part (i.e., a transparent part).

[0713] Exemplarily, the editing operation may be an operation of turning off the depth of field effect switch. In this case, in response to the editing operation on the first wallpaper, the operation for the electronic device to update the wallpaper template file to obtain a first lock screen wallpaper file may be: in response to the operation of turning off the depth of field effect switch, exchange the hierarchy in the text name of the text in the clock layer of the wallpaper template file with the hierarchy in the picture name of the picture in the cut-out layer, so as to obtain a first lock screen wallpaper file. For the specific operation, reference may be made to steps 2903 to 2904 above, and details are not described herein again in the embodiments of this application.

[0714] As a second optional manner, the editing operation may be a triggering operation on a fourth control, and the fourth control is used to adjust the background blur degree of the lock screen wallpaper. For example, the fourth control may be the background blur control 7142 shown in FIG. (b) of ​ . In this case, the operation in step 3804 may be: in response to the triggering operation on the fourth control, determining a target blur degree; generating a first operation record in which the target blur degree is recorded; redrawing the layer content in at least one of the m third views according to the first operation record to obtain m fourth views; and displaying the m fourth views. For the specific operation, reference may be made to the above steps 3003 to 3007, and details are not described herein again in the embodiments of the present application.

[0715] As a third optional manner, the editing operation may be a zooming operation performed on the lock screen wallpaper page. In this case, the operation in step 3804 may be: in response to the zooming operation performed on the lock screen wallpaper page, determining a zoom ratio and a target offset corresponding to the zooming operation; generating a second operation record in which the zoom ratio and the target offset are recorded; redrawing the layer content in at least one of the m third views according to the second operation record to obtain m fourth views; and displaying the m fourth views. For the specific operation, reference may be made to the above steps 3201 to 3205, and details are not described herein again in the embodiments of the present application.

[0716] Step 3805: After the electronic device displays the second wallpaper, in response to an operation on the second control, set the second wallpaper as the lock screen wallpaper.

[0717] The operation on the second control here is a triggering operation on the second control, such as a click operation, etc., to indicate that the second wallpaper is set as the lock screen wallpaper.

[0718] Exemplarily, in the case where there is no first operation record and second operation record, the operation in step 3805 may be: after displaying the second wallpaper, in response to an operation on the second control, the electronic device stores the first lock screen wallpaper file in the file system. For the specific operation, reference may be made to the above steps 2608 to 2610, or reference may be made to the above steps 2708 to 2710, or reference may be made to the above steps 2808 to 2810, or reference may be made to the above steps 2907 to 2909, or reference may be made to the above steps 3108 to 3110, and details are not described herein again in the embodiments of the present application.

[0719] Exemplarily, in the presence of the first operation record and / or the second operation record, the operation in step 3805 may be: after displaying the second wallpaper, in response to an operation on the second control, update the wallpaper template file according to the target blur degree in the first operation record and / or the scaling ratio and the target offset in the second operation record to obtain a second lock screen wallpaper file; store the second lock screen wallpaper file in the file system. The specific operations may refer to the above steps 3008 to 3011, and / or, may refer to the above steps 3206 to 3209, which are not elaborated in this embodiment of the present application.

[0720] In some embodiments, the wallpaper editing interface further includes a home screen wallpaper page and a fifth control.

[0721] The fifth control is used to indicate that the home screen wallpaper follows the lock screen. For example, the fifth control may be ​ the follow lock screen control 76 in the wallpaper editing interface 700 shown in FIG. (b) below.

[0722] Exemplarily, when the lock screen wallpaper page is displayed in the wallpaper editing interface, if the displayed wallpaper editing interface does not display the home screen wallpaper page, or displays a part of the home screen wallpaper page, in response to a third gesture operation on the wallpaper editing interface, the electronic device displays the home screen wallpaper page, the fifth control, and the second control in the wallpaper editing interface.

[0723] The third gesture operation may be a pre-defined gesture operation. For example, the third gesture operation may be a left swipe operation, a right swipe operation, etc., which are not limited in this embodiment of the present application. For example, when the user ​ performs a left swipe operation in the wallpaper editing interface 700 shown in FIG. (a) below, then as shown in ​ FIG. (b) below, the electronic device may display the home screen wallpaper page 703, the fifth control 76, and the second control 71 in the wallpaper editing interface 700.

[0724] In this case, in response to an operation on the fifth control, the electronic device may display the main picture of the wallpaper in the lock screen wallpaper page in the home screen wallpaper page. The specific operations may refer to the above steps 3401 to 3404, which are not elaborated in this embodiment of the present application.

[0725] The operation on the fifth control here may be a triggering operation on the fifth control, such as a click operation, etc., to indicate that the home screen wallpaper follows the lock screen.

[0726] In some embodiments, after the electronic device sets the second wallpaper as the lock screen wallpaper, it can also display a wallpaper editing interface in response to a preset user operation. At this time, the second wallpaper is displayed on the lock screen wallpaper page in the wallpaper editing interface. Then, in response to an editing operation on the second wallpaper, the layer content of multiple layers of the second wallpaper is modified, and a third wallpaper is displayed. After the third wallpaper is displayed, in response to an operation on the second control, the electronic device stores the third lock screen wallpaper file in the file system to set the third wallpaper as the lock screen wallpaper. The third lock screen wallpaper file is obtained by updating the first lock screen wallpaper file or the second lock screen wallpaper file based on the editing operation on the second wallpaper.

[0727] In this way, the user can continue to edit the wallpaper that was edited last time, thereby further improving the flexibility of wallpaper editing. Moreover, after editing the second wallpaper, the lock screen wallpaper file is updated, so that the lock screen wallpaper file stored in the file system is the lock screen wallpaper file corresponding to the currently updated third wallpaper. In this way, when editing again, the lock screen wallpaper file of the latest wallpaper can be obtained from the file system, thus ensuring the continuity of wallpaper editing.

[0728] The preset user operation can be a pre-defined operation for indicating the display of the wallpaper editing interface. For example, the preset user operation can be a first gesture operation received on the lock screen interface, or it can be an operation on a third control in the desktop editing interface. The embodiments of the present application do not limit this.

[0729] When the electronic device displays the wallpaper editing interface, it can obtain the lock screen wallpaper file from the file system and display the second wallpaper on the lock screen wallpaper page in the wallpaper editing interface according to the lock screen wallpaper file. The lock screen wallpaper file can be the first lock screen wallpaper file or the second lock screen wallpaper file mentioned above.

[0730] In response to an editing operation on the second wallpaper, the operation of the electronic device to modify the layer content of multiple layers of the second wallpaper and display the third wallpaper is similar to the operation in step 3804 above, where in response to an editing operation on the first wallpaper, the electronic device modifies the layer content of multiple layers of the first wallpaper and displays the second wallpaper. The embodiments of the present application will not elaborate on this again.

[0731] In an embodiment of the present application, an electronic device displays a wallpaper editing interface, which includes a lock screen wallpaper page, a first control, and a second control. In response to an operation on the first control, the electronic device displays a plurality of wallpaper template options, including a first wallpaper template option. The wallpaper template file corresponding to the first wallpaper template option includes files of each layer in a plurality of layers, and the file of any one layer in the plurality of layers is text or a picture. Subsequently, in response to an operation on the first wallpaper template option, the electronic device displays the first wallpaper on the lock screen wallpaper page. The user can edit the first wallpaper. In response to an editing operation on the first wallpaper, the electronic device modifies the layer content of the plurality of layers of the first wallpaper and displays a second wallpaper, which is the edited wallpaper. Subsequently, in response to an operation on the second control, the second wallpaper is set as the lock screen wallpaper. In this way, the user can select a wallpaper template with a plurality of layers provided in the embodiment of the present application through the wallpaper editing interface, and display and edit the wallpaper template based on the wallpaper template file to obtain a lock screen wallpaper that meets their own personalized needs, thereby improving the flexibility of wallpaper setting.

[0732] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not imply the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0733] In the above embodiments, the descriptions of the various embodiments have their own emphases. For parts not detailed or recorded in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

[0734] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above various method embodiments can be implemented.

[0735] The embodiment of the present application further provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above various method embodiments.

[0736] The embodiment of the present application further provides a chip system, which includes a processor. The processor is coupled to a memory, and the processor executes a computer program stored in the memory to implement the steps in any method embodiment of the present application. The chip system can be a single chip or a chip module composed of multiple chips.

[0737] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center in a wired manner (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a Digital Versatile Disc (DVD)), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.

[0738] The foregoing are optional embodiments provided by the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the scope of the technology disclosed in the present application shall be included within the protection scope of the present application.

Claims

1. A wallpaper editing method, characterized in that, Applied to an electronic device, the method includes: Displaying a wallpaper editing interface, the wallpaper editing interface including a lock screen wallpaper page, a first control, and a second control; In response to an operation on the first control, displaying a plurality of wallpaper template options, the plurality of wallpaper template options including a first wallpaper template option, and the wallpaper template file corresponding to the first wallpaper template option including files of each layer in a plurality of layers, and the file of any one layer in the plurality of layers being text or a picture; In response to an operation on the first wallpaper template option, displaying a first wallpaper on the lock screen wallpaper page according to the wallpaper template file, the first wallpaper including the plurality of layers; In response to an editing operation on the first wallpaper, modifying the layer content of the plurality of layers and displaying a second wallpaper; After displaying the second wallpaper, in response to an operation on the second control, setting the second wallpaper as the lock screen wallpaper.

2. The method according to claim 1, wherein Before displaying the wallpaper editing interface, the method further includes: Receiving a second gesture operation on the desktop; In response to the second gesture operation, displaying a desktop editing interface, the desktop editing interface including a third control; The displaying of the wallpaper editing interface includes: In response to an operation on the third control, displaying the wallpaper editing interface.

3. The method according to claim 1, wherein Before displaying the wallpaper editing interface, the method further includes: Receiving a first gesture operation on the lock screen interface; The displaying of the wallpaper editing interface includes: In response to the first gesture operation, displaying the wallpaper editing interface.

4. The method according to claim 3, characterized in that The displaying of the wallpaper editing interface in response to the first gesture operation includes: In response to the first gesture operation, displaying the first control and the second control; Creating m first views, where m is an integer greater than or equal to 2; Drawing layer content in at least one of the m first views according to a lock screen wallpaper file to obtain m second views; Displaying the m second views.

5. The method according to claim 4, wherein The displaying of the first wallpaper on the lock screen wallpaper page according to the wallpaper template file in response to an operation on the first wallpaper template option includes: In response to an operation on the first wallpaper template option, obtaining display information of each layer in the plurality of layers according to the wallpaper template file; Clearing the hierarchy and layer content of the m second views; Setting the hierarchy of the corresponding second views and drawing layer content in the corresponding second views according to the display information of each layer in the plurality of layers to obtain m third views; Displaying the m third views.

6. The method according to claim 5, wherein The plurality of layers include an original layer and a clock layer, the picture of the original layer being a main picture, and the clock layer being used to display time; The file of the clock layer in the wallpaper template file is text, the text name of the text of the clock layer including one or more of a view identifier, a layer type, and a hierarchy, the text content of the text of the clock layer including clock setting information, and the display information of the clock layer including one or more of a view identifier, a hierarchy, and clock setting information; The files of the other layers in the wallpaper template file except the clock layer among the multiple layers are pictures. The picture names of the other layers include one or more of view identifiers, layer types, and hierarchies. The display information of the other layers includes one or more of view identifiers, hierarchies, and displayed pictures.

7. The method according to claim 6, characterized in that, The multiple layers further include one or more of a decoration layer, a color background layer, and a cutout layer; The picture of the decoration layer is used to form a decoration effect on the main picture. The picture of the color background layer is a solid color picture or a gradient color picture. The picture of the cutout layer includes the foreground object in the main picture.

8. The method according to claim 6 or 7, characterized in that, Obtaining the display information of each layer in the multiple layers according to the wallpaper template file includes: For the first layer in the multiple layers, obtain the view identifier, layer type, and hierarchy of the first layer from the file name of the file of the first layer in the wallpaper template file. The first layer is any one of the multiple layers; If the layer type of the first layer is a clock layer, obtain the clock setting information of the first layer from the text content of the text of the first layer in the wallpaper template file; If the layer type of the first layer is not a clock layer, obtain the picture of the first layer from the wallpaper template file, process the picture of the first layer to obtain a full-screen picture, and scale the full-screen picture according to a specific scaling ratio to obtain the displayed picture of the first layer.

9. The method according to any one of claims 5 to 8, characterized in that The display information includes a view identifier, a hierarchy, and drawing information. The drawing information is clock setting information or a displayed picture. Setting the hierarchy of the corresponding second view and drawing the layer content in the corresponding second view according to the display information of each layer in the multiple layers to obtain m third views includes: For the second layer in the multiple layers, set the hierarchy of the second view identified by the view identifier of the second layer to the hierarchy of the second layer, and draw the layer content in the second view identified by the view identifier of the second layer according to the drawing information of the second layer to obtain a third view. The second layer is any one of the multiple layers.

10. The method according to any one of claims 5 to 9, characterized in that The method further includes: In response to an operation on the first wallpaper template option, save the wallpaper template file in memory.

11. The method according to claim 10, wherein Responding to an editing operation on the first wallpaper, modifying the layer content of the multiple layers, and displaying a second wallpaper includes: In response to an editing operation on the first wallpaper, update the wallpaper template file to obtain a first lock screen wallpaper file; Redraw the layer content in at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views, or reset the hierarchy of at least one of the m third views according to the first lock screen wallpaper file to obtain m fourth views; Display the m fourth views.

12. The method according to claim 11, wherein The editing operation is an editing operation on the third layer among the multiple layers. The updating of the wallpaper template file in response to the editing operation on the first wallpaper to obtain the first lock screen wallpaper file includes: In response to the editing operation on the third layer, when the third layer is a clock layer, updating the clock setting information in the text content of the text of the third layer in the wallpaper template file, or when the third layer is not a clock layer, updating the picture of the third layer in the wallpaper template file to obtain the first lock screen wallpaper file.

13. The method according to claim 12, wherein The editing operation is a selection operation on the clock color option. The updating of the wallpaper template file in response to the editing operation on the third layer to obtain the first lock screen wallpaper file when the third layer is a clock layer includes: In response to the selection operation on the clock color option, updating the color value in the text content of the text of the clock layer in the wallpaper template file to the color value corresponding to the clock color option to obtain the first lock screen wallpaper file.

14. The method according to claim 12, wherein The editing operation is a selection operation on the color option of the decoration layer. The updating of the wallpaper template file in response to the editing operation on the third layer to obtain the first lock screen wallpaper file when the third layer is not a clock layer includes: In response to the selection operation on the color option of the decoration layer, modifying the color of the picture of the decoration layer in the wallpaper template file according to the color value corresponding to the color option to obtain the first lock screen wallpaper file.

15. The method according to claim 12, wherein The editing operation is a selection operation on the shape option of the decoration layer. The updating of the wallpaper template file in response to the editing operation on the third layer to obtain the first lock screen wallpaper file when the third layer is not a clock layer includes: In response to the selection operation on the shape option of the decoration layer, obtaining a third picture corresponding to the shape option; Modifying the picture name of the third picture to the picture name of the picture of the decoration layer in the wallpaper template file; Updating the picture of the decoration layer in the wallpaper template file to the third picture to obtain the first lock screen wallpaper file.

16. The method according to claim 12, wherein The editing operation is a selection operation on the picture option. The updating of the wallpaper template file in response to the editing operation on the third layer to obtain the first lock screen wallpaper file when the third layer is not a clock layer includes: In response to the selection operation on the picture option, obtaining a fourth picture corresponding to the picture option; Generating a fifth picture according to the fourth picture, where the fifth picture contains the foreground object in the fourth picture; Modifying the picture name of the fourth picture to the picture name of the picture of the original layer in the wallpaper template file, and modifying the picture name of the fifth picture to the picture name of the picture of the cut-out layer in the wallpaper template file; Update the picture of the original layer in the wallpaper template file to the fourth picture, and update the picture of the cut-out layer in the wallpaper template file to the fifth picture to obtain the first lock screen wallpaper file.

17. The method according to claim 11, wherein The editing operation is an operation to turn off the depth of field effect switch. The updating of the wallpaper template file in response to the editing operation on the first wallpaper to obtain the first lock screen wallpaper file includes: In response to the operation to turn off the depth of field effect switch, exchange the hierarchy in the text name of the text in the clock layer and the hierarchy in the picture name of the picture in the cut-out layer in the wallpaper template file to obtain the first lock screen wallpaper file.

18. The method according to claim 10, wherein The editing operation is a triggering operation on the fourth control. The modifying of the layer content of the multiple layers and the displaying of the second wallpaper in response to the editing operation on the first wallpaper include: In response to the triggering operation on the fourth control, determine the target blur degree; Generate a first operation record, in which the target blur degree is recorded; Redraw the layer content in at least one of the m third views according to the first operation record to obtain m fourth views; Display the m fourth views.

19. The method according to claim 10, wherein, The editing operation is a zooming operation performed on the lock screen wallpaper page. The modifying of the layer content of the multiple layers and the displaying of the second wallpaper in response to the editing operation on the first wallpaper include: In response to the zooming operation performed on the lock screen wallpaper page, determine the zoom ratio and the target offset corresponding to the zooming operation; Generate a second operation record, in which the zoom ratio and the target offset are recorded; Redraw the layer content in at least one of the m third views according to the second operation record to obtain m fourth views; Display the m fourth views.

20. The method according to any one of claims 11 to 17, characterized in that The setting of the second wallpaper as the lock screen wallpaper in response to the operation on the second control includes: In response to the operation on the second control, store the first lock screen wallpaper file in the file system.

21. The method according to claim 18 or 19, characterized in that The setting of the second wallpaper as the lock screen wallpaper in response to the operation on the second control includes: In response to the operation on the second control, in the case of the existence of the first operation record and / or the second operation record, update the wallpaper template file according to the target blur degree in the first operation record and / or the zoom ratio and the target offset in the second operation record to obtain a second lock screen wallpaper file; Store the second lock screen wallpaper file in the file system.

22. The method according to any one of claims 1 to 21, characterized in that, The wallpaper editing interface further includes a home screen wallpaper page and a fifth control. The method further includes: In response to the operation on the fifth control, display the main picture of the wallpaper in the lock screen wallpaper page on the home screen wallpaper page.

23. The method according to claim 22, wherein Before the main picture of the wallpaper in the lock screen wallpaper page is displayed on the home screen wallpaper page in response to the operation on the fourth control, the method further includes: In response to the third gesture operation on the wallpaper editing interface, display the home screen wallpaper page, the fifth control, and the second control on the home screen editing interface. The method further includes: In response to a fourth gesture operation acting on the wallpaper editing interface, displaying the lock screen wallpaper page, the first control, and the second control in the wallpaper editing interface.

24. The method according to claim 20, wherein After setting the second wallpaper as the lock screen wallpaper, the method further includes: In response to a preset user operation, obtaining the first lock screen wallpaper file from the file system; Displaying the second wallpaper on the lock screen wallpaper page in the wallpaper editing interface according to the first lock screen wallpaper file; In response to an editing operation on the second wallpaper, modifying the layer content of the multiple layers and displaying a third wallpaper; After displaying the third wallpaper, in response to an operation acting on the second control, storing a third lock screen wallpaper file to the file system to set the third wallpaper as the lock screen wallpaper, where the third lock screen wallpaper file is obtained by updating the first lock screen wallpaper file based on the editing operation on the second wallpaper.

25. An electronic device, characterized in that, The electronic device includes: one or more processors, and a memory; The memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method according to any one of claims 1 to 24.

26. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes instructions that, when running on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 24.

Citation Information

Patent Citations

  • Synthetic method and synthetic system for tabletop as well as mobile terminal

    CN102508647A

  • Method and device for replacing screen locking application wallpaper

    CN104679379A

  • Method for editing screen lock wallpaper and mobile terminal

    CN106354517A

  • Desktop display method and electronic equipment

    CN114721567A

  • Wallpaper display method, electronic equipment and storage medium

    CN115695634A