Search

CN-122019027-A - Interface display method and electronic equipment

CN122019027ACN 122019027 ACN122019027 ACN 122019027ACN-122019027-A

Abstract

The application discloses an interface display method and electronic equipment, relates to the technical field of terminals, and can realize the spatial fusion of interface elements and theme wallpaper on a display interface through the light and shadow interaction of the interface elements on the theme wallpaper, so that the visual experience brought by the display interface to a user is improved. According to the application, when the electronic equipment needs to display the theme wallpaper and the interface elements, the projection of one or more interface elements on the theme wallpaper is determined according to the light source information, and then the projection of the interface elements is displayed at the corresponding position of the theme wallpaper while the theme wallpaper and the interface elements are displayed. According to the scheme, the position relation between the light source information and the interface element can be fully considered without adding extra hardware or performing excessive complex calculation and processing, and the light and shadow effect simulation consistent with the real world is performed on the theme wallpaper, so that a spatial relation is formed between the interface element and the theme wallpaper visually, and a stereoscopic visual effect is created visually.

Inventors

  • SIMON EKESTRAND
  • Frederick Andresson
  • JIANG SHUNJI

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260512
Application Date
20251105

Claims (20)

  1. 1. An interface display method, wherein the method is applied to an electronic device, and the method comprises: acquiring first theme wallpaper to be displayed and a plurality of first interface elements; Determining the projection of at least one second interface element of the plurality of first interface elements on the first theme wallpaper according to light source information, wherein the light source information comprises a light source position; and displaying a first interface, wherein the first interface comprises projections corresponding to the first theme wallpaper, the plurality of first interface elements and the at least one second interface element.
  2. 2. The method according to claim 1, wherein the method further comprises: And determining the light source information according to the scene information of the electronic equipment, wherein the scene information comprises any one or more of time information, weather information and position information.
  3. 3. The method according to claim 1 or 2, wherein said determining the light source information from the scene information of the electronic device comprises: determining the position of the light source from the moving track of the light source according to the scene information of the electronic equipment; Wherein the light source movement track comprises a solar movement track determined according to a movement track of the sun compared with the earth.
  4. 4. The method according to claim 1 or 2, wherein the projection corresponding to the at least one second interface element comprises a plurality of projection points, and the determining the projection of the at least one second interface element of the plurality of first interface elements on the first theme wallpaper according to the light source information comprises: Determining a projection direction and a projection length of each pixel point according to the position relation between the light source position and the pixel point of the at least one second interface element, wherein the projection length is used for representing the distance between the pixel point of the interface element and the corresponding pixel point on projection; and determining the projection of the at least one second interface element on the first theme wallpaper according to the projection direction and the projection length corresponding to each pixel point.
  5. 5. The method of claim 4, wherein determining the projection of the at least one second interface element on the first theme wallpaper according to the projection direction and the projection length corresponding to each pixel point comprises: Acquiring first depth information of a plurality of pixel points in a wallpaper area where at least one second interface element is located, and acquiring second depth information of a plurality of pixel points in the at least one second interface element; And according to the first depth information and the second depth information, determining a projection point of the at least one second interface element on the first theme wallpaper after performing offset calculation on the projection direction and the projection length of each pixel point.
  6. 6. The method of claim 5, wherein the calculating the offset of the projection direction and the projection length of each pixel point according to the first depth information and the second depth information comprises: Determining an offset coefficient corresponding to each pixel point according to the first depth information and the second depth information, wherein the larger the difference value between the second depth information and the first depth information is, the larger the offset coefficient is; and carrying out offset calculation on the projection direction and the projection length of the corresponding pixel point according to the offset coefficient.
  7. 7. The method according to claim 5 or 6, wherein the obtaining second depth information of the plurality of pixels in the at least one second interface element comprises: If the pixel point with the largest depth value on the wallpaper area is positioned in the central area of the wallpaper area, determining that the depth value of each pixel point of a second interface element at the corresponding position of the wallpaper area is smaller than a first value, wherein the first value is the minimum depth value of the wallpaper area; If the pixel point with the largest depth value on the wallpaper area is located in the edge area of the wallpaper area, determining that the depth value of each pixel point of the second interface element at the corresponding position of the wallpaper area is larger than or equal to a second value and smaller than a third value, wherein the second value is the average depth value of the wallpaper area, and the third value is the maximum depth value of the wallpaper area.
  8. 8. The method according to any one of claims 4-7, further comprising: And determining a first display attribute of the corresponding projection point according to the projection length, wherein the first display attribute comprises one or more of brightness and transparency.
  9. 9. The method according to any of claims 4-8, characterized in that the longer the projection length, the lower the brightness and/or the higher the transparency of the corresponding projection point.
  10. 10. The method of any one of claims 4-9, wherein the light source information further comprises a light source intensity, the method further comprising: And determining a second display attribute of the projection point on the first theme wallpaper according to the light source intensity, wherein the second display attribute comprises one or more of brightness and transparency.
  11. 11. The method according to claim 10, wherein the stronger the intensity of the light source, the higher the brightness and/or the lower the transparency of the corresponding proxel.
  12. 12. The method according to any one of claims 1 to 11, wherein, The first interface displaying step comprises the step of displaying the first interface when the electronic equipment is in an unlocking state, wherein the first theme wallpaper is desktop wallpaper of the electronic equipment, and the plurality of first interface elements are elements on any desktop page of the electronic equipment; Or alternatively The first interface displaying step comprises the step of displaying the first interface when the electronic equipment is in an off-screen display (AOD) state, wherein the first theme wallpaper is the AOD wallpaper of the electronic equipment, and the plurality of first interface elements are the AOD elements of the electronic equipment; Or alternatively The first interface is a wallpaper setting interface for setting wallpaper, the first theme wallpaper is the theme wallpaper selected on the wallpaper setting interface, and the plurality of first interface elements are elements on a desktop main screen of the electronic device.
  13. 13. The method of any of claims 1-12, wherein the plurality of first interface elements are elements on a first desktop page of the electronic device, the method further comprising: acquiring second theme wallpaper and a plurality of third interface elements which are to be displayed and correspond to the second desktop paging; Determining the projection of at least one fourth interface element of the plurality of third interface elements on the second theme wallpaper according to the light source information; and in response to the operation of switching from the first desktop pagination to the second desktop pagination, displaying a second interface, wherein the second interface comprises projections corresponding to the second theme wallpaper, the plurality of third interface elements and the at least one fourth interface element.
  14. 14. The method of claim 13, wherein the method further comprises: And displaying a continuous multi-frame third interface in the process of switching the first desktop page to the second desktop page, wherein the continuous multi-frame third interface is used for presenting the change of the projection of at least one second interface element on the first theme wallpaper along with the switching process and the change of the projection of at least one fourth interface element on the second theme wallpaper along with the switching process in the process of switching the first desktop page to the second desktop page.
  15. 15. The method of any of claims 1-14, wherein prior to displaying the first interface, the method further comprises: And in response to the operation of unlocking the electronic equipment, displaying a continuous multi-frame fourth interface, wherein the continuous multi-frame fourth interface is used for presenting the position change process of projection of the at least one second interface element on the first theme wallpaper in the process of moving the light source position from the first preset moment to the current moment.
  16. 16. The method according to any one of claims 1-14, wherein: And when the electronic equipment is in an AOD state to display the first interface, displaying the first theme wallpaper with a night illumination effect, and displaying the projection of the AOD element on the first theme wallpaper with a night projection effect.
  17. 17. The method of any of claims 1-16, wherein prior to the displaying the first interface, the method further comprises: and determining the shielding relation between at least one fifth interface element in the first interface elements and the wallpaper element on the first theme wallpaper.
  18. 18. The method of claim 17, wherein the at least one fifth interface element is included in the at least one second interface element.
  19. 19. The method of claim 18, wherein the determining an occlusion relationship of at least a fifth interface element of the plurality of first interface elements with a wallpaper element on the first theme wallpaper comprises: Acquiring third depth information of each pixel point in a wallpaper area where at least one fifth interface element is located, and acquiring fourth depth information of each pixel point in the at least one fifth interface element; And determining the shielding relation between each pixel point of the at least one fifth interface element and each pixel point of the wallpaper element on the wallpaper region according to the third depth information and the fourth depth information.
  20. 20. The method of claim 19, wherein determining the occlusion relationship of each pixel point of the at least one fifth interface element to each pixel point of a wallpaper element on the wallpaper region based on the third depth information and the fourth depth information comprises: the at least one fifth interface element comprises a first pixel point, and if the depth value of the first pixel point is smaller than the depth value of the pixel point of the wallpaper element at the corresponding position according to the third depth information and the fourth depth information, the pixel point of the wallpaper element at the corresponding position is blocked by the first pixel point; And/or the number of the groups of groups, And the at least one fifth interface element comprises a second pixel point, and if the depth value of the first pixel point is larger than or equal to the depth value of the pixel point of the wallpaper element at the corresponding position according to the third depth information and the fourth depth information, the first pixel point is blocked by the pixel point of the wallpaper element at the corresponding position.

Description

Interface display method and electronic equipment Technical Field The present application relates to the field of terminal technologies, and in particular, to an interface display method and an electronic device. Background Currently, electronic devices such as smart phones, tablet computers, smart watches, smart bracelets, personal computers (personal computer, PCs) and the like have become necessary tools in work, study and life of people. In order to improve the use experience of users in the process of using electronic equipment, theme applications emerge with more and more rich theme interfaces, for example, diversified spatial stereoscopic theme wallpapers can bring rich visual experience to users. In the traditional scheme, interface elements on interfaces such as a screen locking interface and a desktop are independent of the theme wallpaper, for example, a layer where the interface elements are located is fixedly suspended on the upper layer of the layer where the theme wallpaper is located. When the user changes the display of the interface element, the display of the theme wallpaper is not affected. Therefore, interaction and fusion of interface elements on interfaces such as a screen locking interface and a desktop and theme wallpaper become an important research direction for improving visual experience of a display interface. Disclosure of Invention The application provides an interface display method and electronic equipment, which can realize the spatial fusion of interface elements and theme wallpaper on a display interface through the light and shadow interaction of the interface elements on the theme wallpaper, and improve the visual experience brought by the display interface to a user. In order to achieve the above purpose, the application adopts the following technical scheme: The first aspect provides an interface display method, which comprises the steps that an electronic device obtains first theme wallpaper to be displayed and a plurality of first interface elements, the electronic device determines projection of at least one second interface element in the plurality of first interface elements on the first theme wallpaper according to light source information, the light source information comprises a light source position, and the electronic device displays a first interface, wherein the first interface comprises the first theme wallpaper, the plurality of first interface elements and the projection corresponding to the at least one second interface element. Wherein the second interface element is an interface element having a projection from among the plurality of first interface elements. I.e. the plurality of first interface elements may all have projections or may have projections in part. According to the scheme provided by the first aspect, the electronic device can determine the projection of one or more interface elements on the theme wallpaper according to the light source information in the interface display scene, such as the screen-off display (always on display, AOD) scene, the desktop scene, the wallpaper setting scene and the like, where the theme wallpaper and the interface elements need to be displayed, and then display the projection of the interface elements at the corresponding positions of the theme wallpaper while displaying the theme wallpaper and the interface elements. The scheme can be realized based on the existing module of the electronic equipment without adding extra hardware, so that extra cost is not increased. In addition, the position relation between the light source information and the interface element can be fully considered, the light effect simulation consistent with the real world is performed on the theme wallpaper, so that a spatial relation is formed between the interface element and the theme wallpaper visually, a stereoscopic visual effect is created visually, for example, a visual effect close to the naked eye 3D is realized visually, and the visual experience brought by a display interface to a user is improved. In addition, the scheme does not need to carry out excessive complex calculation and processing, so that the power consumption caused by related calculation and processing is small, the time delay is low, and a smooth stereoscopic vision effect can be provided. The light source information here may refer to the position of the light source. Whereas the actual sun or moon position is associated with a specific moment. The light source position may also be equivalent to the time information. As a possible implementation manner, the method further comprises the step that the electronic device determines the light source information according to scene information of the electronic device, wherein the scene information comprises any one or more of time information, weather information and position information. Therefore, the electronic equipment can accurately calculate the projection of at least one second interface element on th