A window display method, device, apparatus and storage medium

CN117472501BActive Publication Date: 2026-09-29深圳开鸿数字产业发展有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311439268.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-09-29
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

[0004]本申请实施例提供一种窗口显示方法、装置、设备及存储介质,以解决上述现有鸿蒙设备提升窗口的可视性的过程繁琐,不利于优化窗口的显示效果的技术问题

Benefits of technology

[0038]本申请实施例提供了一种窗口显示方法、装置、设备及存储介质,方法包括:所述鸿蒙设备获取用户界面处于顶层的窗口;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117472501B_ABST
    Figure CN117472501B_ABST
Patent Text Reader

Abstract

The application discloses a window display method, device, equipment and storage medium, the method comprises the following steps: obtaining the window of the user interface in the top layer; obtaining the blur effect to be added to the window; in the blur effect, obtaining the current attribute name of the window and the blur radius corresponding to the current attribute name; in the Hongmeng system, it is inquired whether the current attribute name exists; obtaining the query result of the current attribute name, judging whether the predefined attribute name corresponding to the window includes the current attribute name according to the query result; if the current attribute name is included, the preset interface corresponding to the predefined attribute is called in the corresponding relationship between the predefined attribute and the preset interface established in advance; the preset interface corresponding to the predefined attribute is set as the target interface corresponding to the current attribute name, the window is added with the blur effect through the target interface and the blur radius, and the window with the added blur effect is displayed on the user interface. The application is beneficial to optimizing the display effect of the window.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a window display method, apparatus, device and storage medium. Background Technology

[0002] As technology advances, HarmonyOS devices have more and more functions, and a single window layout on the user interface can no longer meet the needs. The user interface often needs to display multiple windows.

[0003] However, the process of improving window visibility on existing HarmonyOS devices is cumbersome and detrimental to optimizing window display. This is because existing HarmonyOS devices display numerous windows. Manually writing code to improve the visibility of each window individually would be extremely labor-intensive and time-consuming. Therefore, the current process of improving window visibility on HarmonyOS devices is cumbersome and detrimental to optimizing window display. Summary of the Invention

[0004] This application provides a window display method, apparatus, device, and storage medium to solve the technical problem that the existing HarmonyOS devices have a cumbersome process for improving window visibility, which is not conducive to optimizing the window display effect.

[0005] In a first aspect, embodiments of this application provide a window display method, the window display method comprising:

[0006] The HarmonyOS device obtains the user interface window at the top level;

[0007] Obtain the blur effect to be added to the window;

[0008] In the blur effect, the current attribute name of the window and the blur radius corresponding to the current attribute name are obtained;

[0009] In the HarmonyOS system, query whether the current attribute name exists;

[0010] Obtain the query result of the current attribute name, and based on the query result, determine whether the predefined attribute name corresponding to the window includes the current attribute name;

[0011] If the predefined attribute name corresponding to the window includes the current attribute name, then the preset interface corresponding to the predefined attribute is retrieved from the pre-established correspondence between the predefined attributes and preset interfaces.

[0012] Set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

[0013] As an optional implementation, the window includes window content and window background, the blur effect includes content blur effect and background blur effect, and the blur radius includes content blur radius and background blur radius;

[0014] The step of setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface includes:

[0015] Set the preset interface corresponding to the predefined attribute to the target interface corresponding to the current attribute name;

[0016] Using the target interface and the content blur radius, a content blur effect is added to the specified content of the window content; using the target interface and the background blur radius, a background blur effect is added to the window background.

[0017] The user interface displays the window background with the background blur effect added and the window content with the content blur effect added.

[0018] As an optional implementation, the HarmonyOS device acquires the top-level window of the user interface, including:

[0019] The HarmonyOS device obtains the user interface and the window component that constructs the user interface;

[0020] The window at the top level is obtained through the window component.

[0021] As an optional implementation, obtaining the blur effect to be added to the window includes:

[0022] Obtain the image effect of any one of the multiple sample images;

[0023] Set the image effect to the blur effect to be added to the window.

[0024] As an optional implementation, obtaining the query result of the current attribute name and determining whether the predefined attribute name corresponding to the window includes the current attribute name based on the query result includes:

[0025] Retrieve the query results for the current attribute name;

[0026] If the query result is found to exist, it is determined that the predefined attribute name corresponding to the window includes the current attribute name;

[0027] If the query result is not found, it is determined that the predefined attribute name corresponding to the window does not include the current attribute name.

[0028] As an optional implementation, after setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface, the window display method further includes:

[0029] Obtain the execution operation of the blurring effect and identify the execution object of the execution operation;

[0030] If the target object is identified as the save button, then the blur effect is saved;

[0031] If the target of the action is identified as a share button, the blur effect is updated to other HarmonyOS devices on the same local area network.

[0032] As an optional implementation, the step of updating the blur effect to other HarmonyOS devices on the same local area network if the target of the operation is identified as the share button includes:

[0033] If the target of the operation is identified as the share button, a share command with the blurred effect is generated.

[0034] According to the sharing instruction, the blurring effect is shared to the other HarmonyOS devices through the distributed soft bus of the HarmonyOS system.

[0035] Secondly, embodiments of this application also provide a window display device, which includes a processor and a memory. The memory stores a computer program, and the processor executes the above-described window display method when it calls the computer program in the memory.

[0036] Thirdly, embodiments of this application also provide an apparatus, which includes the window display device as described above.

[0037] Fourthly, embodiments of this application also provide a storage medium for storing a computer program, which, when executed by a processor, causes the processor to implement the above-described window display method.

[0038] This application provides a window display method, apparatus, device, and storage medium. The method includes: the HarmonyOS device acquiring the window whose user interface is at the top level;

[0039] Obtain the blur effect to be added to the window;

[0040] In the blur effect, the current attribute name of the window and the blur radius corresponding to the current attribute name are obtained;

[0041] In the HarmonyOS system, query whether the current attribute name exists;

[0042] Obtain the query result of the current attribute name, and based on the query result, determine whether the predefined attribute name corresponding to the window includes the current attribute name;

[0043] If the predefined attribute name corresponding to the window includes the current attribute name, then the preset interface corresponding to the predefined attribute is retrieved from the pre-established correspondence between the predefined attributes and preset interfaces.

[0044] Set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

[0045] The beneficial effects of this application embodiment are twofold. Firstly, by setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, and adding the blur effect to the window through the target interface and the blur radius, the window with the added blur effect is displayed on the user interface. This simplifies the process of improving the visibility of the window and helps to optimize the display effect of the window. Secondly, since the user interface presents a window with the added blur effect, it helps to improve the readability and visibility of the user interface, and also helps to make the user interface look more beautiful and concise. Attached Figure Description

[0046] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is a flowchart illustrating the window display method provided in an embodiment of this application;

[0048] Figure 2A flowchart with added blur effect is provided for the embodiments of this application;

[0049] Figure 3 A flowchart illustrating the acquisition window provided in this application embodiment;

[0050] Figure 4 This is an application scenario diagram of the window display method provided in the embodiments of this application;

[0051] Figure 5 A schematic block diagram illustrating a window display method provided in an embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.

[0053] It should be noted that the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.

[0054] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in some embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0055] Furthermore, the technical solutions of the various embodiments can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed in this application.

[0056] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.

[0057] Please see Figure 1 , Figure 1 This is a flowchart illustrating the window display method provided in this application embodiment. This method can be applied to HarmonyOS devices, where the HarmonyOS device can be any of the following: sensor, camera, smartwatch, smart bracelet, mobile phone, camera, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, personal computer (PC), netbook, or personal digital assistant (PDA). No limitations are imposed in this application embodiment. Figure 1 As shown in the embodiments of this application, the window display method includes the following steps.

[0058] S101, the HarmonyOS device obtains the top-level window of the user interface;

[0059] The HarmonyOS device acquires the top-level window of the user interface, including:

[0060] The HarmonyOS device obtains the user interface and the window component that constructs the user interface;

[0061] The window at the top level is obtained through the window component.

[0062] The HarmonyOS device is a device equipped with the open-source HarmonyOS system.

[0063] HarmonyOS devices acquire window components for building the user interface, and through these window components, obtain multiple windows.

[0064] Determine the top-level window among multiple windows.

[0065] S102, Obtain the blur effect to be added to the window;

[0066] The step of obtaining the blur effect to be added to the window includes:

[0067] Obtain the image effect of any one of the multiple sample images;

[0068] Set the image effect to the blur effect to be added to the window.

[0069] The image effect is stored in the memory or storage of the HarmonyOS device, and then the image effect in the memory or storage is set as the blur effect to be added to the window. This can save the time of setting the image effect in the HarmonyOS system.

[0070] The process of obtaining the image effect of any one of the multiple sample images includes:

[0071] Read the preset update time, and when the update time is reached, connect to the server and download the updated sample image;

[0072] Obtain the image effect of any one of the updated sample images.

[0073] For ease of explanation, the following example is provided:

[0074] The updated sample images include sample image 1, sample image 2, sample image 3, sample image 4, sample image 5, and sample image 6. If the user finds sample image 6 to be of good quality, they can set its image effect to the blur effect to be added to the window.

[0075] S103, in the blur effect, obtain the current attribute name of the window and the blur radius corresponding to the current attribute name;

[0076] It should be noted that S103 includes:

[0077] In the blur effect, obtain the current attribute name of the window;

[0078] The fuzzy radius corresponding to the current attribute name is retrieved by a preset fuzzy radius call function. The fuzzy radius call function is a call function of the open source HarmonyOS system. The fuzzy radius call function is used to instruct the open source HarmonyOS system to obtain the fuzzy radius corresponding to the current attribute name.

[0079] S104, in the HarmonyOS system, query whether the current attribute name exists;

[0080] It should be noted that S104 includes:

[0081] In the HarmonyOS system, a pre-established correspondence between the window and the predefined attribute name is obtained. Based on the correspondence, the predefined attribute name corresponding to the window is obtained. The current attribute name is then queried among the predefined attribute names corresponding to the window.

[0082] S105, obtain the query result of the current attribute name, and determine whether the predefined attribute name corresponding to the window includes the current attribute name based on the query result;

[0083] The step of obtaining the query result of the current attribute name, and determining whether the predefined attribute name corresponding to the window includes the current attribute name based on the query result, includes:

[0084] Retrieve the query results for the current attribute name;

[0085] If the query result is found to exist, it is determined that the predefined attribute name corresponding to the window includes the current attribute name;

[0086] If the query result is not found, it is determined that the predefined attribute name corresponding to the window does not include the current attribute name.

[0087] S106, if the predefined attribute name corresponding to the window includes the current attribute name, then retrieve the preset interface corresponding to the predefined attribute from the pre-established correspondence between the predefined attribute and the preset interface;

[0088] S107, set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

[0089] Wherein, after S107, the window display method further includes:

[0090] Step A: Obtain the execution operation of the blurring effect and identify the execution object of the execution operation;

[0091] If the target object is identified as the save button, then the blur effect is saved;

[0092] If the target of the action is identified as a share button, the blur effect is updated to other HarmonyOS devices on the same local area network.

[0093] The step of updating the blur effect to other HarmonyOS devices on the same local area network if the target of the operation is identified as the share button includes:

[0094] If the target of the operation is identified as the share button, a share command with the blurred effect is generated.

[0095] According to the sharing instruction, the blurring effect is shared to the other HarmonyOS devices through the distributed soft bus of the HarmonyOS system.

[0096] Specifically, according to the sharing instruction, the blurring effect is stored in the update directory of the distributed soft bus, and the blurring effect in the update directory is shared to the other HarmonyOS devices through the distributed soft bus of the HarmonyOS system.

[0097] Specifically, the blurring effect is shared with other HarmonyOS devices through the distributed soft bus of the HarmonyOS system, so that the local HarmonyOS device can share the blurring effect with other HarmonyOS devices.

[0098] It should be noted that, following S107, the method also includes:

[0099] Step B involves obtaining the background of the user interface, blurring the background, and then displaying the window with the blurred effect applied on the blurred background. This process of blurring both the background and the window improves the readability and visibility of the user interface, thus optimizing the user experience.

[0100] Step A can be executed before or after step B, or it can be executed simultaneously with step B. The specific execution order is not restricted here.

[0101] The beneficial effects of this application embodiment are twofold. Firstly, by setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, and adding the blur effect to the window through the target interface and the blur radius, the window with the added blur effect is displayed on the user interface. This simplifies the process of improving the visibility of the window and helps to optimize the display effect of the window. Secondly, since the user interface presents a window with the added blur effect, it helps to improve the readability and visibility of the user interface, and also helps to make the user interface look more beautiful and concise.

[0102] Please see Figure 2 , Figure 2 The flowchart with added blur effect provided for the embodiments of this application is described in detail below:

[0103] S201, set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name;

[0104] S202, using the target interface and the content blur radius, add a content blur effect to the specified content of the window content, and use the target interface and the background blur radius to add a background blur effect to the window background;

[0105] Specifically, by using the target interface and the content blur radius, a content blur effect is added to the specified content of the window content. This allows for the addition of a content blur effect to the specified content of the window content, while leaving the non-specified content of the window content unaffected. This improves the flexibility of adding content blur effects and can meet the personalized needs of users.

[0106] The specified content of the window includes the content of the Nth row and the content of the Mth column of the window, where N and M are positive integers.

[0107] For ease of explanation, the following example is provided:

[0108] For example, by using the target interface and the content blur radius, a content blur effect can be added to the content of the first row of the window. This allows for the addition of a content blur effect to the content of the first row of the window, while leaving the content of other rows of the window unaffected. This improves the flexibility of adding content blur effects and can meet the personalized needs of users.

[0109] For example, by using the target interface and the content blur radius, a content blur effect can be added to the content of the first and second rows of the window. This allows for the addition of a content blur effect to the content of the first and second rows of the window, while leaving the content of other rows of the window unaffected. This improves the flexibility of adding content blur effects and can meet the personalized needs of users.

[0110] For example, by using the target interface and the content blur radius, a content blur effect can be added to the content of the first column of the window. This allows the content blur effect to be added to the content of the first column of the window, while the content blur effect is not added to the content of other columns of the window. This improves the flexibility of adding content blur effects and can meet the personalized needs of users.

[0111] For example, by using the target interface and the content blur radius, a content blur effect can be added to the content of the first and second columns of the window. This allows for the addition of a content blur effect to the content of the first and second columns of the window, while leaving the content of other columns unaffected. This improves the flexibility of adding content blur effects and can meet the personalized needs of users.

[0112] S203, the window background with the background blur effect and the window content with the content blur effect are displayed on the user interface.

[0113] The window includes window content and window background, the blur effect includes content blur effect and background blur effect, and the blur radius includes content blur radius and background blur radius.

[0114] In this embodiment of the application, displaying the window background with the background blur effect and the window content with the content blur effect on the user interface is beneficial to improving the readability and visibility of the user interface, keeping the user focused, making it easier for the user to understand and use the user interface, and optimizing the user experience.

[0115] Please see Figure 3 , Figure 3 The flowchart for the acquisition window provided in the embodiments of this application is described in detail below:

[0116] S301, the HarmonyOS device obtains the user interface and obtains the window component that constructs the user interface;

[0117] S302, obtain the top-level window through the window component.

[0118] In this embodiment of the application, the window component can be used to obtain the top-level window in a timely manner.

[0119] Please see Figure 4 , Figure 4 The application scenario diagram of the window display method provided in the embodiments of this application is described in detail below:

[0120] After the application is opened on the HarmonyOS device, the required information is obtained through the interface. The window retrieval interface of the HarmonyOS system can be called to obtain the last window displayed by the current application, that is, the window at the top level.

[0121] The first fuzzing interface of the HarmonyOS system is called to blur the top-level window, creating a blur effect. The blurred area is the window.

[0122] The blurring effect includes a frosted glass effect.

[0123] Specifically, the second fuzzy interface of the HarmonyOS system is called to blur the background of the user interface and create a depth-of-field effect. The blurred area is the background of the user interface.

[0124] HarmonyOS devices include any one or a combination of sensors, cameras, smartwatches, smart bracelets, mobile phones, cameras, tablets, wearable devices, and in-vehicle devices.

[0125] In this embodiment, blurring the background and window of the user interface can improve the readability and visibility of the user interface and optimize the user experience.

[0126] Please see Figure 5 , Figure 5 A schematic block diagram of a window display device provided in an embodiment of this application.

[0127] like Figure 5As shown, the window display device 200 may include a processor 211 and a memory 212, which are connected by a bus, such as an I2C (Inter-integrated Circuit) bus.

[0128] Specifically, the processor 211 can be a microcontroller unit (MCU), a central processing unit (CPU), or a digital signal processor (DSP), etc.

[0129] Specifically, the memory 212 can be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a portable hard drive, etc. The memory 212 stores various computer programs for the processor 211 to execute.

[0130] The processor 211 is used to run a computer program stored in the memory processor 211, and performs the following steps when executing the computer program:

[0131] The HarmonyOS device obtains the user interface window at the top level;

[0132] Obtain the blur effect to be added to the window;

[0133] In the blur effect, the current attribute name of the window and the blur radius corresponding to the current attribute name are obtained;

[0134] In the HarmonyOS system, query whether the current attribute name exists;

[0135] Obtain the query result of the current attribute name, and based on the query result, determine whether the predefined attribute name corresponding to the window includes the current attribute name;

[0136] If the predefined attribute name corresponding to the window includes the current attribute name, then the preset interface corresponding to the predefined attribute is retrieved from the pre-established correspondence between the predefined attributes and preset interfaces.

[0137] Set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

[0138] In some embodiments, processor 211 is configured to implement:

[0139] The window includes window content and window background; the blur effect includes content blur effect and background blur effect; the blur radius includes content blur radius and background blur radius.

[0140] The step of setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface includes:

[0141] Set the preset interface corresponding to the predefined attribute to the target interface corresponding to the current attribute name;

[0142] Using the target interface and the content blur radius, a content blur effect is added to the specified content of the window content; using the target interface and the background blur radius, a background blur effect is added to the window background.

[0143] The user interface displays the window background with the background blur effect added and the window content with the content blur effect added.

[0144] In some embodiments, the processor 211 is configured to: the HarmonyOS device acquire the top-level window of the user interface, including:

[0145] The HarmonyOS device obtains the user interface and the window component that constructs the user interface;

[0146] The window at the top level is obtained through the window component.

[0147] In some embodiments, processor 211 is configured to implement:

[0148] Obtain the image effect of any one of the multiple sample images;

[0149] Set the image effect to the blur effect to be added to the window.

[0150] In some embodiments, processor 211 is configured to implement:

[0151] The step of obtaining the query result of the current attribute name, and determining whether the predefined attribute name corresponding to the window includes the current attribute name based on the query result, includes:

[0152] Retrieve the query results for the current attribute name;

[0153] If the query result is found to exist, it is determined that the predefined attribute name corresponding to the window includes the current attribute name;

[0154] If the query result is not found, it is determined that the predefined attribute name corresponding to the window does not include the current attribute name.

[0155] In some embodiments, processor 211 is configured to implement:

[0156] The window display method further includes, after setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface, as follows:

[0157] Obtain the execution operation of the blurring effect and identify the execution object of the execution operation;

[0158] If the target object is identified as the save button, then the blur effect is saved;

[0159] If the target of the action is identified as a share button, the blur effect is updated to other HarmonyOS devices on the same local area network.

[0160] In some embodiments, processor 211 is configured to implement:

[0161] The step of updating the blur effect to other HarmonyOS devices on the same local area network if the target of the operation is identified as the share button includes:

[0162] If the target of the operation is identified as the share button, a share command with the blurred effect is generated.

[0163] According to the sharing instruction, the blurring effect is shared to the other HarmonyOS devices through the distributed soft bus of the HarmonyOS system.

[0164] The embodiments of this application also provide a device, the type of which includes, but is not limited to, any of the following: sensor, camera, smartwatch, smart bracelet, mobile phone, camera, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, personal computer (PC), netbook, personal digital assistant (PDA). No limitations are imposed on the embodiments of this application.

[0165] The device includes a window display apparatus, which, exemplarily, can be the window display apparatus 200 described in the above embodiments. The device can execute any of the window display methods provided in the embodiments of this application, and therefore can achieve the beneficial effects achievable by any of the window display methods provided in the embodiments of this application, as detailed in the preceding embodiments, which will not be repeated here.

[0166] This application also provides a storage medium storing a computer program, which includes program instructions. The processor executes the program instructions to implement the steps of the window display method provided in the above embodiments. For example, when the computer program is loaded by the processor, it can perform the following steps:

[0167] The HarmonyOS device obtains the user interface window at the top level;

[0168] Obtain the blur effect to be added to the window;

[0169] In the blur effect, the current attribute name of the window and the blur radius corresponding to the current attribute name are obtained;

[0170] In the HarmonyOS system, query whether the current attribute name exists;

[0171] Obtain the query result of the current attribute name, and based on the query result, determine whether the predefined attribute name corresponding to the window includes the current attribute name;

[0172] If the predefined attribute name corresponding to the window includes the current attribute name, then the preset interface corresponding to the predefined attribute is retrieved from the pre-established correspondence between the predefined attributes and preset interfaces.

[0173] Set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

[0174] The beneficial effects of this application embodiment are twofold. Firstly, by setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, and adding the blur effect to the window through the target interface and the blur radius, the window with the added blur effect is displayed on the user interface. This simplifies the process of improving the visibility of the window and helps to optimize the display effect of the window. Secondly, since the user interface presents a window with the added blur effect, it helps to improve the readability and visibility of the user interface, and also helps to make the user interface look more beautiful and concise.

[0175] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0176] The storage medium can be an internal storage unit of the window display device or equipment described in the foregoing embodiments, such as a hard disk or memory of the window display device or equipment. The storage medium can also be an external storage device of the window display device or equipment, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the window display device or equipment.

[0177] Since the computer program stored in the storage medium can execute any of the window display methods provided in the embodiments of this application, the beneficial effects that any of the window display methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0178] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A window display method, characterized in that, Applied to HarmonyOS devices, the window display method includes: The HarmonyOS device obtains the user interface window at the top level; Obtain the blur effect to be added to the window; In the blur effect, the current attribute name of the window and the blur radius corresponding to the current attribute name are obtained; In the HarmonyOS system, query whether the current attribute name exists; Obtain the query result of the current attribute name, and based on the query result, determine whether the predefined attribute name corresponding to the window includes the current attribute name; If the predefined attribute name corresponding to the window includes the current attribute name, then the preset interface corresponding to the predefined attribute is retrieved from the pre-established correspondence between the predefined attributes and preset interfaces. Set the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, add the blur effect to the window through the target interface and the blur radius, and display the window with the added blur effect on the user interface.

2. The window display method according to claim 1, characterized in that, The window includes window content and window background; the blur effect includes content blur effect and background blur effect; the blur radius includes content blur radius and background blur radius. The step of setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface includes: Set the preset interface corresponding to the predefined attribute to the target interface corresponding to the current attribute name; Using the target interface and the content blur radius, a content blur effect is added to the specified content of the window content; using the target interface and the background blur radius, a background blur effect is added to the window background. The user interface displays the window background with the background blur effect added and the window content with the content blur effect added.

3. The window display method according to claim 1, characterized in that, The HarmonyOS device acquires the top-level window of the user interface, including: The HarmonyOS device obtains the user interface and the window component that constructs the user interface; The window at the top level is obtained through the window component.

4. The window display method according to claim 1, characterized in that, The step of obtaining the blur effect to be added to the window includes: Obtain the image effect of any one of the multiple sample images; Set the image effect to the blur effect to be added to the window.

5. The window display method according to claim 1, characterized in that, The step of obtaining the query result of the current attribute name, and determining whether the predefined attribute name corresponding to the window includes the current attribute name based on the query result, includes: Retrieve the query results for the current attribute name; If the query result is found to exist, it is determined that the predefined attribute name corresponding to the window includes the current attribute name; If the query result is not found, it is determined that the predefined attribute name corresponding to the window does not include the current attribute name.

6. The window display method according to claim 1, characterized in that, The window display method further includes, after setting the preset interface corresponding to the predefined attribute as the target interface corresponding to the current attribute name, adding the blur effect to the window through the target interface and the blur radius, and displaying the window with the added blur effect on the user interface, as follows: Obtain the execution operation of the blurring effect and identify the execution object of the execution operation; If the target object is identified as the save button, then the blur effect is saved; If the target of the action is identified as a share button, the blur effect is updated to other HarmonyOS devices on the same local area network.

7. The window display method according to claim 6, characterized in that, The step of updating the blur effect to other HarmonyOS devices on the same local area network if the target of the operation is identified as the share button includes: If the target of the operation is identified as the share button, a share command with the blurred effect is generated. According to the sharing instruction, the blurring effect is shared to the other HarmonyOS devices through the distributed soft bus of the HarmonyOS system.

8. A window display device, characterized in that, The window display device includes a processor and a memory. The memory stores a computer program that can be executed by the processor. When the computer program is executed by the processor, it implements the window display method as described in any one of claims 1 to 7.

9. A device, characterized in that, The device includes the window display device as described in claim 8.

10. A storage medium for computer-readable storage, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the steps of the window display method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Window fuzzy transparent display method and device, electronic equipment and storage medium

    CN113791861A

  • User interface display method and device

    CN114115624A