Display method and device of electronic equipment and storage medium
1. A display method of an electronic device, wherein an operation control is displayed on a display interface of the electronic device, the method comprising:
determining a display area where the operation control is currently located on the display interface;
determining a target background gray scale of a current background image corresponding to the display area;
and adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
2. The method of claim 1, wherein adjusting the control gray level of the operational control based on the target background gray level and the target transparency parameter of the operational control comprises:
and adjusting the control gray scale of the operation control to be a target control gray scale based on the target background gray scale and the target transparency parameter of the operation control, wherein the target control gray scale is used for enabling a target superposition gray scale to meet a preset display condition, the target superposition gray scale is a gray scale presented by the operation control after the operation control is superposed with the current background image, and the preset display condition is that the difference value between the target superposition gray scale and the target background gray scale is smaller than a preset threshold value.
3. The method of claim 2, wherein adjusting the control gray scale of the operational control to a target control gray scale based on the target background gray scale and a target transparency parameter of the operational control comprises:
and determining a target control gray scale corresponding to the target background gray scale under the condition that the transparency parameter of the operation control is the target transparency parameter based on the preset corresponding relation.
4. The method according to claim 3, wherein the preset correspondence includes correspondence between a background gray scale and a control gray scale under different transparency parameters, and the determining, based on the preset correspondence, before the target control gray scale corresponding to the target background gray scale when the transparency parameter of the operation control is the target transparency parameter further includes:
determining a gray scale functional relation, wherein the gray scale functional relation is used for representing the functional relation among the transparency parameter, the background gray scale, the superposition gray scale and the control gray scale;
determining a first corresponding relation between different background gray scales and a target superposition gray scale under different transparency parameters of the operation control;
and under each different transparency parameter, determining a second corresponding relation between the background gray scale and the control gray scale as the preset corresponding relation according to the gray scale function relation and the first corresponding relation.
5. The method according to any one of claims 1 to 4, wherein the electronic device comprises a screen, the display interface is located on the screen, the screen comprises a preset area, a functional component is arranged below the preset area, and the display area of the operation control covers or surrounds the preset area.
6. The method according to claim 5, wherein the operation control is in a ring shape, and a display area of the operation control surrounds the preset area.
7. The method according to claim 5, wherein the operation control is in a circular shape, and a display area of the operation control covers the preset area.
8. The method according to claim 5, wherein the position of the center point of the display area of the operation control coincides with the position of the center point of the preset area.
9. The method of claim 6, wherein the functional component is a camera.
10. The method of any of claims 1-4, wherein determining a target background gray level of a current background image corresponding to the display area comprises:
acquiring a gray value of each pixel of a current background image corresponding to the display area;
and determining the target background gray scale according to the gray scale value of each pixel.
11. The method of claim 1, wherein the adjusting the control gray scale of the operational control based on the target background gray scale and the target transparency parameter of the operational control comprises:
and when the operation control is in a standby mode, adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
12. The method of claim 11, wherein after adjusting the control gray level of the operational control based on the target background gray level and the target transparency parameter of the operational control while the operational control is in the standby mode, further comprising:
when touch operation aiming at the operation control is detected, the transparency of the operation control is adjusted to be a preset transparency, wherein the preset transparency is smaller than the target transparency parameter, and the size of the operation control is a first preset size.
13. The method according to claim 12, wherein after adjusting the transparency of the operation control to the preset transparency, further comprising:
and expanding the size of the operation control according to the duration of the touch operation.
14. The method of claim 13, further comprising:
when the touch operation disappears, the size of the operation control is reduced to a second preset size within a first preset time, wherein the second preset size is larger than the first preset size.
15. The method of claim 14, wherein after reducing the size of the operational control to a second preset size, the method further comprises:
controlling the operation control to keep a second preset duration at a second preset size;
and after the second preset time, reducing the size of the operation control to a first preset size.
16. A display device of an electronic device, wherein an operation control is displayed on a display interface of the electronic device, the device comprising:
the first determining unit is used for determining a display area where the operation control is located on the display interface currently;
the second determining unit is used for determining a target background gray scale of the current background image corresponding to the display area;
and the adjusting unit is used for adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
17. An electronic device, comprising a processor, a memory, and a computer program stored in the memory, wherein the processor is configured to execute the display method of the electronic device according to any one of claims 1 to 15 by calling the computer program.
18. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 15.
Background
At present, with the development of graphical user interfaces, the electronic equipment greatly improves the user operation efficiency by using a mode of providing shortcut operation icons for users by using operation controls. The operation control is displayed on the display interface of the equipment, and the pictures of the operation control and the display interface are mixed, so that the display effect of the operation control is poor.
Disclosure of Invention
The application provides a display method and device of an electronic device and a storage medium, so as to overcome the defects.
In a first aspect, an embodiment of the present application provides a display method for an electronic device, where an operation control is displayed on a display interface of the electronic device, and the method includes: determining a display area where the operation control is currently located on the display interface; determining a target background gray scale of a current background image corresponding to the display area; and adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
In a second aspect, an embodiment of the present application further provides a display device of an electronic device. The device comprises an operation control displayed on a display interface of the electronic equipment, and comprises: the device comprises a first determining unit, a second determining unit and an adjusting unit. The first determining unit is used for determining a display area where the operation control is located on the display interface currently; the second determining unit is used for determining a target background gray scale of the current background image corresponding to the display area; and the adjusting unit is used for adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, where an operation control is displayed on a display interface of the electronic device, the memory stores a computer program, and the processor executes the following operations by invoking the computer program: determining a display area where the operation control is located on the display area currently; determining a target background gray scale of a current background image corresponding to the display area; and adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the above-mentioned method.
According to the display method, the display device and the storage medium of the electronic equipment, the display area of the operation control on the display interface of the electronic equipment is determined, the background gray scale of the current background image corresponding to the display area is determined, and the control gray scale of the operation control is adjusted based on the background gray scale and the transparency parameter of the operation control, so that the display effect of the operation control can be adjusted based on the control gray scale of the background image and the transparency parameter of the operation control, the operation control can be prevented from shielding the background image, meanwhile, the position of the operation control can be prompted, the operation control seen by human eyes can present the best display effect under the contrast of the background display image, and the use experience of a user is improved.
Additional features and advantages of embodiments of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of embodiments of the present application. The objectives and other advantages of the embodiments of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a display interface of an electronic device according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a display interface of an electronic device according to another embodiment of the present application;
fig. 3 is a flowchart illustrating a method of displaying a display method of an electronic device according to another embodiment of the present application;
FIG. 4 is a schematic diagram illustrating an application scenario provided by another embodiment of the present application;
FIG. 5 is a display diagram illustrating an operation control in a light background provided by an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a display of an operation control in a dark background according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating a method of displaying on an electronic device according to another embodiment of the present application;
FIG. 8 is a schematic view of a gray scale fit curve for an operation control according to another embodiment of the present application;
FIG. 9 is a diagram illustrating a screen of an electronic device according to an embodiment of the present application;
FIG. 10 is a diagram illustrating a display difference of a preset area of a screen according to an embodiment of the present application;
FIG. 11 is a schematic diagram illustrating a display interface of a preset area of a screen according to an embodiment of the present application;
FIG. 12 is a flowchart illustrating a method of displaying on an electronic device according to yet another embodiment of the present application;
fig. 13 is a schematic diagram illustrating a display state of an operation control in each working mode according to still another embodiment of the present application;
fig. 14 is a block diagram illustrating a display device of an electronic device according to an embodiment of the present application;
fig. 15 shows a block diagram of an electronic device provided in an embodiment of the present application;
fig. 16 illustrates a computer-readable medium for storing or carrying program codes for implementing a display method of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
At present, due to the popularization of electronic equipment such as mobile phones and intelligent wearable equipment, more and more users can not leave the electronic equipment in life, entertainment and work. Along with the development of a graphical user interface, the electronic equipment adopts the operation control to provide a shortcut operation icon for a user, so that the operation efficiency of the user is greatly improved. However, since the user may switch the display screen of the interface at any time during use, if the color of the operation control is fixed, the display effect may be different in different display screens. For example, the color of the display screen in the standby interface belongs to a light color system, and in order to ensure the best display effect, the color of the operation control in the standby interface should also adopt a lighter color, but when the user switches to the application operation interface, the color just changes greatly relative to the standby interface and belongs to a dark color system, and then the user feels sharp in the application operation interface by adopting the lighter color operation control, which affects the user experience. Similarly, the operation control adopts a dark color, so that a user can feel obtrusive when switching from the dark color interface to the light color interface, and even can shield a display picture, so that the operation control is more inconvenient to use.
The inventor finds that the display color of the operation control can be adjusted by utilizing the picture color of the display interface and the transparency parameter of the control, and the operation control seen by human eyes can present the best effect under the contrast of the background display picture by self-adapting to different background display pictures.
Therefore, in order to improve the above drawbacks, the application embodiments provide a display method, a display apparatus and a storage medium for an electronic device, where an execution subject of the method may be the display apparatus of the electronic device provided in the embodiments of the application, or the electronic device integrated with the display apparatus, and the display apparatus of the electronic device may be implemented in a hardware or software manner. The electronic device may be a tablet Computer, a game console, an electronic book reader, a multimedia player, a smart watch, a mobile phone, a PC (Personal Computer), or the like. The electronic device is provided with a plurality of application programs, and a user can use the plurality of application programs to realize different functions and purposes. For example, video playing software is used to watch videos, electronic game software is used to play games, an instant chat application is used to perform text, voice or video chat, and social networking platform software is used to perform information sharing, transmission and browsing.
It should be noted that the operation control may be displayed through a display interface of the electronic device. The display interface of the electronic device may be a screen of the electronic device, such as a screen integrated with the electronic device and a screen externally connected to the electronic device, and the external screen displays corresponding pictures through a screen connected by wire or wirelessly, or by projection. The screen may include an LCD, a Light Emitting Diode (LED) Display, a Three Dimensional (3D) Display, a Plasma Display Panel (PDP), or the like, and further, the screen may have a full-screen, a curved-surface screen, a special-shaped screen, a folding screen, or other screen forms. Besides, the display interface of the electronic device may also be a floating display screen, as shown in fig. 1, which shows a floating display screen provided in an embodiment of the present application, and unlike a physical display screen, the floating display screen does not depend on an electronic display device, and can directly project an image in the air, for example, display a picture by means of holographic imaging or the like.
The method includes the steps that an operation control is displayed on a display interface of the electronic equipment, a user can be prompted to operate the position of the control, different functions can be achieved by selecting the operation control in a display area of the operation control through predefined or user-set touch operation, for example, the touch operation for triggering the operation control can include clicking, double clicking, long pressing and the like, and the touch operation for moving the suspension ring can include sliding, sliding after double clicking and the like.
In some embodiments, the triggered operation control displays shortcut operation icons in a manner of circular arc or pop-up window, and different icons correspond to different shortcut functions or application programs. The icons may include a screen locking icon, a screen recording icon, a screenshot icon, a recording icon, a memory cleaning icon, an application icon, a sliding desktop icon, a recording icon, a screen locking icon, and the like, and the specific type of the icon is not limited in the embodiment of the present application. Optionally, in the user interfaces corresponding to different application programs, the types of the icons displayed after the control is triggered to operate are different. For example, in the user interface of the game application program, the icons triggered and displayed include a screen recording icon, a memory cleaning icon and the like; and in the user interface of the social application program, the icons triggered to be displayed comprise a screenshot icon, a search icon and the like. The embodiment of the application does not limit the specific types of the icons triggered and displayed in different user interfaces. For example, as shown in fig. 2, which shows a display interface schematic diagram of an electronic device according to a further embodiment of the present application, an operation control 220 is displayed on a display interface 210 of an electronic device 200, and 4 shortcut icons are displayed in an arc manner after clicking the operation control 220: the icon 230 is a screen locking icon, and a display interface can be quickly locked after the icon 230 is selected; the icon 240 is a screenshot icon, and a current display picture can be intercepted after the icon 240 is selected; the icon 250 is a recording icon, and a recording page can be opened after the icon 250 is selected; icon 260 is a return icon, and when icon 260 is selected, the user can return to the previous display interface. Optionally, the user can customize the type of the shortcut operation icon displayed after triggering the post-operation control, so as to provide personalized service. Under the condition, in order to avoid the shielding of the background picture by the operation control, the display difference between the operation control and the background picture can be reduced, so that the harmony of the whole picture is not influenced while the operation control is slightly visible. It should be noted that, if the user desires to be able to clearly identify the operation control, the display difference between the operation control and the background picture may also be increased in the embodiment of the present application.
In other embodiments, the operation control may be an operation icon, for example, a desktop icon, a status bar icon, or the like, and after the operation control is triggered, a shortcut function corresponding to the operation icon may be directly implemented or a corresponding application program may be opened.
Referring to fig. 3, a flowchart of a method for displaying a display method of an electronic device according to another embodiment of the present application is shown, where an operation control is displayed on a display interface of the electronic device. The method comprises the following steps: s310 to S330.
S310: and determining a display area where the operation control is currently located on the display interface.
In some embodiments, the operation control can be moved and changed in display position by dragging of the user, for example, when the operation control is far away from a holding hand of the user, the user can drag the operation control to a region that can be touched by the holding hand, but at the same time, the operation may cause shielding to other controls in the display interface, causing control mis-touching. When a user wants to adjust the display position of the operation control, the user can manually drag the operation control to the target display position, and in addition, the display position of the operation control in the display interface can be dynamically adjusted based on the holding state and the distribution condition of the touch control elements in the display interface.
In some exemplary embodiments, to determine the display position and color of each control or image on the display interface, a coordinate system of the display interface is defined in units of pixels. For example, the lower left corner of the display interface is the origin of coordinates (0,0), and the upper right corner is the coordinates (width, height), where width is the pixel width of the display interface and height is the pixel height of the display interface. And after the display position of the operation control in the display interface is fixed, the operation control also has corresponding coordinates. The operation control can be designed into a regular graph, and at the moment, the display area of the operation control can be determined according to the coordinate and the size of the central point of the graph. For example, if the operation control is designed to be a regular circle, the current coordinates of the center point are (x, y), and the diameter of the regular circle is 1cm, it may be determined that the display area of the operation control on the display interface of the electronic device is a circular area with the coordinates (x, y) as the dots and the diameter of 1 cm. Similarly, if the operation control is designed as another regular graph such as a rectangle or an irregular graph, the display area of the operation control can be determined according to the coordinates and the size of the center point of the graph by using the method, and the size of the graph at this time can be the side length of the rectangle, the display area of the icon, and the like.
It should be noted that, if the position of the operation control is moved, correspondingly, the display area of the operation control is also changed, and the display area of the operation control is determined according to the current position of the operation control on the display interface.
S320: and determining the target background gray scale of the current background image corresponding to the display area.
As shown in fig. 4, in some embodiments of the present application, a display interface 410 including a background application screen is first displayed on the display interface, and then a new layer is added to an upper layer of the display interface to display an operation control 420. The method has the advantages that the mode of multi-layer superposition display is adopted, the transparency and the color of the layer displaying the operation control can be independently set, when the transparency and the color are set to be proper values, a user can see the operation control, can see the image of the area below the control through the operation control layer, and is integrated with the images of other areas not displaying the control, so that the content of a display interface is completely presented.
In practical use, a user may switch the display picture of the display interface at any time, so that the display effect of the operation control seen by human eyes under the contrast of the background display picture is optimal under the observation of human eyes, and correspondingly, the control gray scale of the operation control should be changed correspondingly. The optimal display effect can be preset by a user according to personal habits, and can also be preset by a system, for example, the optimal display effect is determined according to the display attribute of the operation control, for example, when the operation control is a desktop application icon, firstly, it should be ensured that the icon is clearly visible, and then the optimal display effect can be preset to be clearly displayed. Illustratively, the display effect can be described by the display difference between the operation control and the background picture, and if the preset optimal display effect is that the display of the operation control is not abrupt, the display difference between the operation control and the current background picture should be reduced; if the preset optimal display effect is that the operation control is displayed clearly, the display difference between the operation control and the current background image should be increased. In order to better represent the influence of different background images on the gray scale of the operation control, the background images are assumed to be uniformly gray. The gray is also provided with a plurality of levels of color depth between black and white, the color depth is represented by gray scale, and the larger the gray scale is, the closer the gray scale is to the black, and the smaller the gray scale is, the closer the gray scale is to the white.
In fact, background pictures are usually complex colors with different shades, and these complex colors are usually represented by different combinations of RGB three-channel values on the display interface of the electronic device, wherein the RGB mode also represents the color depth of three channels by gray scale. The embodiments of the present application take the RGB color scheme as an example for explanation. It is understood that the embodiment of the present application does not limit the color mode of the electronic device, and the present application is still applicable to other color modes. As described above, whether the preset optimal display effect is to make the operation control display unobtrusive or clear, to determine the control gray scale value of the operation control, the background gray scale of the current background image, i.e., the target background gray scale, needs to be determined first. For a background picture with complex colors, the target background gray scale can be determined according to the color of the background image shown in the area below the operation control, and in some embodiments, the target background gray scale of the background image can be determined according to the gray scales of three channels of RGB. The background image shown in the background picture of the picture layer area below the operation control is the current background image corresponding to the operation control in the display area range on the display interface, and the target background gray scale can be determined according to the RGB value of the background image.
S330: and adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
The transparency of the operational controls may be a default set value for the system, and in some exemplary embodiments, the transparency may be set to around 70%. Meanwhile, the user can set the transparency of the operation control according to personal habits.
The effect of the superimposed operation control and the current background image of the layer below is the display effect presented to the user, and the display effect of the operation control is determined by the color of the current background image, the transparency of the operation control and the control gray scale of the operation control. In order to better describe the influence of the color of the current background image and the transparency of the operation control on the operation control, the application will respectively explain the background image and the transparency.
Firstly, when the transparency of the operation control is a determined value and the background image is changed, the gray scale of the operation control should be changed correspondingly, and the gray scale of the operation control can be adjusted based on the target background gray scale representing the color of the current background image to achieve the best display effect. The following will describe how to adjust the control gray scale of the operation control by taking the best display effect that the operation control is not obtrusive when the operation control is seen by human eyes under the contrast of the current background display picture as an example. In this case, the display difference between the operation control and the current background image should be reduced. For example, as shown in fig. 5, the color of the background image belongs to a light color system, and in order to ensure that the display effect is optimal, the color of the operation control in the standby interface should also adopt a lighter color, but when the user switches to the interface shown in fig. 6, the color of the background image changes greatly from that in fig. 5 and belongs to a dark color system, the user feels sharp when the operation control adopting the lighter color is applied to the operation interface, which affects the user experience, and at this time, if the color of the operation control is adjusted to the darker color according to the background image of the dark color system, the sharp sensation is reduced, so that the entire image is more harmonious. Similarly, the user may feel as obtrusive when switching from the dark color interface to the light color interface, and may even cause a blocking on the display screen.
Secondly, when the background image of the operation control is not changed and the transparency of the operation control is changed, the gray scale of the operation control should be changed correspondingly. If the transparency is increased and the gray scale of the control of the operation control is not changed, when the value of the increased transparency reaches the highest threshold value, the user can not even clearly distinguish the position of the operation control from the background image; if the transparency is reduced, the gray scale of the control of the operation control is fixed, and when the value of the reduced transparency reaches the minimum threshold value, the operation control can shield the background image and affect the normal use of the electronic equipment. Therefore, the control gray scale of the operation control should be adjusted based on the target transparency parameter representing the current transparency of the operation control. However, when the transparency setting exceeds a certain threshold range, the optimal display effect cannot be achieved no matter how the operation control is adjusted. For example, when the transparency is set to 0, the operation control is completely opaque regardless of the gray scale of the control, only the operation control can be seen in the display area of the operation control, and the lower background image is seen through the operation control, so that the key information in the background image is easily shielded; when the transparency is set to 100%, the operation control is completely transparent, and the operation control cannot be seen in the display area of the electronic device. To avoid the similar situation, in some typical embodiments, the transparency of the operation control in standby should be set to be in the range of 70% to 100% and not equal to 100%.
In other embodiments, the user may also set the operation control to be obviously different from the background picture, for example, to make the display of the operation control clear, the display difference between the operation control and the background picture may be increased, so as to achieve the best display effect capable of clearly and definitely distinguishing the position of the operation control from the background image, in which case, the obtrusive feeling of the operation control in the background display picture should be increased, and the color of the icon needs to be dynamically adjusted according to the transparency of the control and the background gray scale.
As mentioned above, the color of the current background image and the transparency of the operation control both affect the display effect of the operation control, and therefore, in order to make the display effect of the operation control presented to the user meet the best effect observed by human eyes, the gray scale of the operation control should be adjusted according to the target background gray scale representing the color of the current background image and the target transparency parameter representing the current transparency of the operation control.
In summary, the embodiment of the present application provides a technical solution, a display area of an operation control on a display interface of an electronic device is determined, a target background gray scale of a current background image corresponding to the display area is determined, and then a control gray scale of the operation control is adjusted based on the target background gray scale of the current background image and a target transparency parameter of the operation control, so that the control gray scale of the operation control can be adjusted based on the background gray scale of the background image and the transparency parameter of the operation control, and thus the operation control seen by human eyes can present an optimal display effect under the support of a background display picture, and user experience is improved.
Referring to fig. 7, a flowchart of a method for displaying a display method of an electronic device according to another embodiment of the present application is shown, where an operation control is displayed on a display interface of the electronic device. The method comprises the following steps: s710 to S740.
S710: and determining a display area where the operation control is currently located on the display interface.
S720: and determining the target background gray scale of the current background image corresponding to the display area.
As described above, if the control gray scale of the operation control needs to be determined, the display area where the operation control is located on the display interface of the electronic device may be determined according to the display position and size of the operation control, and then the target background gray scale of the current background image of the lower layer within the display area of the operation control is determined.
Since the background image is usually complex colors with different color shades, the smallest element for describing the image picture is called a pixel, each pixel is assigned with a definite color and position coordinate, and the pixels with various colors are combined according to the position coordinates to be displayed on the display interface to be a complete picture. Therefore, in some embodiments, calculating the background gray scale of the background image with complex colors requires determining the gray scale of each pixel in the background image within the area coordinate range according to the display area of the operation control, and then counting the gray scale of each pixel and converting the gray scale into the background gray scale of the background image. An exemplary manner of determining the background gray level according to the pixel gray level is illustrated below.
The display interface of the electronic device typically displays these colors with different combinations of the values of the three channels RGB, it being understood that the color assigned to each pixel may also be represented by RGB color values. In an exemplary embodiment of the present application, the RGB values of each pixel of the background image in the display area of the operation control are normalized, the respective luminance is calculated through gamma correction, the luminance of each pixel is counted, the average value is obtained, and then multiplied by 3, so as to obtain the average luminance of gray scales, and the normalized gray scale value obtained through inverse gamma correction is used as the background gray scale value. And finally, determining the control gray scale of the operation control based on the background gray scale value and the transparency parameter.
In the embodiment of the application, the 8-bit display interface is taken as an example to clearly show the gray scale of the interface. 8bit represents that the display interface can distinguish 256 levels of gray scale, namely the gray scale value range is 0-255. It can be understood that the display interface in the embodiment of the present application may also be a 6-bit display interface, a 10-bit display interface, or a 16-bit display interface, and correspondingly, the distinguishable gray scale levels of different digital display interfaces are different, and the gray scale value ranges are also different, which is not limited in the embodiment of the present application.
S730: and determining a target control gray scale corresponding to the target background gray scale under the condition that the transparency parameter of the operation control is a target transparency parameter based on a preset corresponding relation, wherein the preset corresponding relation comprises the corresponding relation between the background gray scale and the control gray scale under different transparency parameters.
In the foregoing embodiment, the control gray scale of the operation control is determined by two factors, i.e., the transparency parameter of the operation control and the background gray scale of the background image. In some embodiments of the present application, the preset corresponding relationship includes a corresponding relationship between a background gray scale and a control gray scale under different transparency parameters. Therefore, according to the display effect to be obtained, the control gray scale value of the corresponding operation control can be obtained through the value of each pair of transparency parameters and background gray scale, and the one-to-one corresponding relation between the background gray scale and the control gray scale under different transparency parameters can be determined through repeated tests. Under any preset operation control transparency parameter and any background image, firstly, obtaining a current transparency parameter and a background gray scale value of the background image as a target transparency parameter and a target background gray scale respectively, then, according to a one-to-one correspondence relation of the transparency parameter, the background gray scale and the control gray scale obtained by a test as a preset correspondence relation, determining a target control gray scale corresponding to the target transparency parameter and the target background gray scale, and finally, adjusting the control gray scale of the operation control to the target control gray scale, so that the overlapped gray scale of the operation control and the background image observed by human eyes can meet the optimal display effect.
In other embodiments, the transparency parameter, the background gray scale, the superimposed gray scale of the operation control and the background image, and the control gray scale may be represented by a definite gray scale functional relationship. In some exemplary embodiments, the gray scale function relationship is L2 ═ L1 (1-a) + L0 ×, where L2 is the superimposed gray scale, L1 is the control gray scale, L0 is the background gray scale, and a is the transparency parameter. As mentioned above, the effect of the superimposed operation control and the background image of the lower layer is the display effect presented to the user, that is, the superimposed gray level L2 represents the display effect of the superimposed operation control and the background image. Therefore, as can be seen from the gray scale function relationship, the control gray scale L1 of the operation control is determined by the transparency parameter a and the background gray scale L0, so as to adjust the superimposed gray scale L2, thereby controlling the display effect of the control. On the contrary, if the transparency parameter a, the background gray level L0 and the superimposition gray level L2 are determined, the control gray level L1 of the operation control can also be determined.
In some embodiments, the first correspondence of different background grayscales and target superimposed grayscales with different transparency parameters of the operation control is determined by trial and error under darkroom and indoor light, respectively. In the experiment, under the condition of different transparency parameters, the data of the superimposed gray scale L2 are changed according to different background gray scales L0, so that the display effect of each operation control observed by human eyes meets the preset display effect, and the corresponding relation between L2 and L0 meets hyperbolic fitting. The preset display effect is that the operation control is slightly visible but the display is not obtrusive. In addition, it was found that, when the ambient light was different, the parameters of the fitting hyperbolas of L2 and L0 were also different. As shown in fig. 8, it shows a schematic diagram of the fitted curve obtained experimentally in the case of the transparency parameter a of 70% in the dark. Repeated experiments show that as L0 increases, the curve corresponding to L2 is close to the 45 DEG straight line of L2 ^ L0, so that a hyperbolic curve fitting is carried out, the curve is approximate to a hyperbolic curve of (y ^2/a ^2) - (x ^2/b ^2) ^ 1 except the last point, all curves can be approximate, and the last point L2 needs to be changed into 2 ^ 255-L2. In addition, in the experiment, the display data of the operation control is fitted to obtain that the semi-real axis parameter of the hyperbola floats between 55 and 65, the semi-virtual axis parameter floats between 56 and 60, and the two typical parameter values are that the semi-real axis parameter is 60 and the semi-virtual axis parameter is 58.40. In particular, the last point of the graph indicates that the background gray level L0 is at its maximum, and the superimposed gray level L2 needs to be changed to 2 × 255-L2.
And performing hyperbolic fitting under the condition of indoor light and the transparency parameter a of 70%, so as to obtain that the semi-real axis parameter of a hyperbola of which the value is (y ^2/a ^2) - (x ^2/b ^2) ═ 1 floats between 15 and 25, the semi-imaginary axis parameter floats between 18 and 20, and the values of the two typical parameters are that the semi-real axis parameter is 20 and the semi-imaginary axis parameter is 19.66.
In addition, when the transparency is fixed, the superimposed gray scale of the operation control is also related to the ambient light and the brightness of the display interface. For example, in order to achieve the preset display effect of the operation control being slightly visible but not obtrusive, in a dark room without ambient light and in a room with ambient light, the hyperbolic parameters of the fitting background gray level L0 and the superimposed gray level L2 are different, and it can be said that the superimposed gray level L2 corresponding to the background gray level L0 is different under different ambient light. It can be understood that the display effect of the display interface under different brightness levels of the display interface is greatly different, and the superimposed gray scale represents the brightness of the color and is also influenced by the brightness of the display interface. Repeated experiments prove that the hyperbolic fitting is suitable for darkrooms and indoor environments and can meet the reflecting states of most ambient light and display screens.
In some exemplary embodiments of the present application, the first correspondence relationship is that the relationship between the background gray scale and the superimposed gray scale satisfies hyperbolic fitting, and the difference in transparency parameters affects function parameters of the hyperbolic curve. Therefore, under different transparency parameters of the operation control, the first corresponding relation between the background gray scale and the superposition gray scale is substituted into the gray scale function relation, and the second corresponding relation between the background gray scale and the control gray scale can be obtained. And taking the second corresponding relation as a preset corresponding relation, and determining a target control gray scale corresponding to the target background gray scale according to the second corresponding relation under the condition that the transparency parameter of the operation control is the target transparency parameter.
S740: and adjusting the control gray scale of the operation control to be a target control gray scale, wherein the target control gray scale is used for enabling a target superposition gray scale to meet a preset display condition, the target superposition gray scale is a gray scale displayed by the operation control after the operation control is superposed with the current background image, and the preset display condition is that the difference value between the target superposition gray scale and the target background gray scale is smaller than a preset threshold value.
The target control gray scale refers to a control gray scale which enables the display effect of the superposed gray scale of the operation control to meet the preset display condition, and the superposed gray scale of the operation control is the target superposed gray scale under the condition. Taking the unobtrusive display effect of the operation control seen by human eyes under the contrast of the background display picture as an example, the preset display condition should satisfy that the difference between the target superimposed gray scale of the target control gray scale and the target background gray scale after the target superimposed gray scale and the target background gray scale is smaller than the target background gray scale, and particularly, the preset display condition may be that the difference between the target superimposed gray scale and the target background gray scale is smaller than the preset threshold. The preset threshold value can be set by the system or set by the user according to habits. Illustratively, the embodiment of the present application obtains a typical range of the preset threshold value from 13 to 60 gray-scale values through repeated experiments. In the above embodiment, in the first corresponding relationship between the background gray scale and the target superimposed gray scale obtained under different transparency parameters of the operation control, the difference between the background gray scale and the corresponding target superimposed gray scale satisfies the range of the preset threshold, so that the target superimposed gray scale can also satisfy the preset display condition by using the second corresponding relationship as the target control gray scale obtained by using the preset corresponding relationship. Therefore, if the control gray scale of the operation control is adjusted to the target control gray scale, the operation control can achieve the effect of unobtrusive display.
In this embodiment of the present application, the operation control may be an annular operation control, a circular operation control, a rectangular operation control, or an irregular graph, which is not limited in this embodiment of the present application. However, in particular, to ensure that the operation control does not obstruct the display screen or other icons on the display interface, the display area of the operation control should be limited, for example, the display area of the operation control is set to be smaller than a preset area. In addition, the display area of the operation control can also be set to be an area range, for example, for a circular operation control, the diameter of the circular operation control is set to be between 0.2cm and 1.2 cm.
In summary, the embodiment of the present application provides a technical solution, a display area of an operation control on a display interface of an electronic device is determined, a target background gray scale of a current background image corresponding to the display area is determined, and then a corresponding relationship between the background gray scale and the control gray scale is determined under different transparency parameters, so that the target control gray scale corresponding to the target background gray scale can be determined under the condition of the target transparency parameter of the operation control, and finally the control gray scale of the operation control is adjusted to the target control gray scale. By self-adapting to different background display pictures and the transparency of the control, the operation control seen by human eyes can present the best display effect under the contrast of the background display pictures, the position of the operation control can be prompted, and the use experience of a user is improved.
Fig. 9 is a schematic screen diagram of an electronic device according to still another embodiment of the present application. In this embodiment, the electronic device 200 includes a screen, and the display interface 210 of the electronic device is located on the screen, where the screen includes a preset area 910, and a functional component 920 is disposed below the preset area 910. When the functional element 920 is not enabled, the functional element is hidden and cannot be observed by human eyes through the predetermined area 910, and the predetermined area 910 and the main display area display the same sub-screen. When the functional component 920 is enabled, the functional component will appear, and the functional component can be observed through the preset region 910, and the preset region does not display any picture.
In an embodiment of the application, the display area of the operation control may cover or surround the preset area. Further, the center point position of the display area of the operation control coincides with the center point position of the preset area. In some embodiments, the operational control is in an annular shape and a display area of the operational control surrounds the preset area. In addition, the diameter of the inner circle of the ring-shaped operation control may be set to be the same as the diameter of the preset region. In other embodiments, the operation control is in a circular shape and the display area of the operation control covers the preset area. Further, to ensure that the circular operation control can cover the preset area, the diameter of the operation control should be set to be greater than or equal to the diameter of the preset area. The diameter of the circular operation control is not suitable to be too large, and exemplarily, the maximum value of the inner diameter of the display area of the operation control can be larger than the radius of the preset area by 0.1mm at most through repeated experiments in the embodiment of the present application.
The display effect of the preset area is different from that of other areas of the screen due to the existence of the functional component, even the displayed image quality is lower than that of other areas of the screen, therefore, when the functional component is not started, as the shape of the operation control is matched with the outline of the preset area, and the display quality of the preset area is low, the presented visual effect is as follows: the operation control and the preset area are combined into a whole and are similarly positioned in the same layer, and other areas are equivalent to background images and are positioned in another layer. The method is just consistent with the method of superposing a new layer display operation control on the layer of the background image, and a user cannot generate a sense of incongruity. In other embodiments, the functional component is a camera.
Because the display area screen material that the camera corresponds under the screen is different with main display area, the display effect also has the difference with main display area. In particular, as shown in fig. 10, the display effect of the preset area and the main display area is different under a specific brightness and a specific gray level, especially under a low brightness and a low gray level, the brightness and color difference of the preset area is especially obvious, and when the brightness value is low, the picture is different no matter how the gray level of the control is adjusted.
As shown in fig. 11, by setting the annular operation control 1110 in the circular area where the camera is located under the screen and designing the annular operation control to surround the circular area where the camera is located under the screen, the radius of the inner ring of the annular operation control is the same as the radius of the circular area of the camera under the screen, and the coordinates of the central point are overlapped. When the off-screen camera is not started, the annular operation control is displayed through the gray scale of the control determined by the embodiment, and human eyes ignore different display effects of the display area where the off-screen camera is located, so that the annular operation control and the display area corresponding to the off-screen camera are integrated into a whole, and a harmonious and unobtrusive visual effect is presented. It is understood that the functional component may be other sensing devices of the electronic device besides the camera, including but not limited to a gravity sensor, an optical sensor, a distance sensor, a temperature sensor, etc.
To sum up, the technical scheme provided by the embodiment of the application displays the operation control near the preset area provided with the functional component in a covering or surrounding manner, and the control gray scale of the operation control is determined based on the background image of the display area and the transparency parameter of the operation control, so that the display difference between the preset area and the main display area can be reduced, the overall display effect of the equipment is improved, and the use experience of a user is improved.
Referring to fig. 12, a flowchart of a method for displaying a display method of an electronic device according to another embodiment of the present application is shown. The method comprises the following steps: s1210 to S1280.
S1210: and determining a display area where the operation control is currently located on the display interface.
S1220: and determining the target background gray scale of the current background image corresponding to the display area.
As described above, if the control gray scale of the operation control needs to be determined, firstly, the display area of the operation control on the display interface of the electronic device needs to be determined according to the display position and size of the operation control, and then the background gray scale of the background image of the lower layer within the display area range of the operation control is determined. In this embodiment, the gray levels of the pixels of the current background image corresponding to the display area may be counted to determine the target background gray level, and the specific process of determining the target background gray level according to the gray levels of the pixels may refer to the corresponding process in the foregoing embodiment, which is not described herein again.
S1230: and when the operation control is in a standby mode, adjusting the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
In the embodiment of the present application, the standby mode refers to that the operation control is in a non-operation state, and is different from a standby mode that is also in a non-operation state, the standby mode has no time limitation, only when the touch operation is detected, the operation control is changed from the standby mode to a display state corresponding to the touch operation, and the standby mode is an intermediate state, and when the standby mode is entered and exceeds the standby time or the touch operation is detected within the standby time range, the operation control changes the display state.
It is understood that the operation control should be in the standby mode in several cases: firstly, the operation control should be in a standby mode in an initial state of starting up and running of the equipment; secondly, setting the display parameters or functions of the operation control, and then enabling the operation control to be in a standby mode; and finally, detecting the touch operation aiming at the operation control, and making a corresponding response by the operation control, after the touch operation disappears, passing through the waiting mode, and changing the display state after passing through the waiting mode, and finally, because no substantial touch operation aiming at the operation control is detected, the operation control can be recovered to the standby mode.
In the standby mode, the display state of the operation control should avoid shielding the background picture and prompt the position of the operation control, and according to the embodiment, the control gray scale of the operation control can be adjusted based on the target background gray scale and the target transparency parameter of the operation control, so that the slightly visible and unobtrusive display effect of the operation control is achieved.
Steps S1240 to S1280 represent the switching process in different display states. As shown in fig. 13, it shows a display state in each operation mode of the operation control. The following describes, by taking an annular operation control as an example, an exemplary switching process of each display state provided in the embodiment of the present application with reference to fig. 13.
In fig. 13, the state 1 is a display state in the standby mode, in order to ensure that the operation control is hidden and visible during standby, and is highlighted after receiving the touch operation, the control gray scale value of the operation control dynamically changes with the background gray scale and the transparency parameter, and the transparency of the state 1 is high, and in some typical embodiments, the transparency of the operation control in the state 1 should be set to be in a range of 70% to 100% and not equal to 100%. The size of the operating control in state 1 is the initial size, and in some exemplary embodiments, the initial size of the operating control in state 1 may be 0.1mm, preferably not greater than 2 mm.
S1240: when touch operation aiming at the operation control is detected, the transparency of the operation control is adjusted to be a preset transparency, wherein the preset transparency is smaller than a target transparency parameter, and the size of the operation control is a first preset size.
The detected touch operation may include clicking, double-clicking, long-pressing, sliding after double-clicking, and the like, which is not limited in this embodiment of the application. In the embodiment of the application, when the touch operation on the operation control is detected, the display state of the operation control is immediately changed from the state 1 to the state 2 for one frame time. The frame number is the number of images rendered by the electronic device per second, and is an inherent parameter of the electronic device, and the one-frame time is 1/frame number, which represents the time consumed for rendering one frame of image.
After the touch operation such as clicking and the like, the operation control should be highlighted to remind the user that the operation is in a correct state, and the transparency of the state 2 is the preset transparency, so that the preset transparency should be smaller than the target transparency parameter of the state 1 in the standby mode. In some exemplary embodiments, the preset transparency of the state 2 should be set within a range of 0-30% and not equal to 0. The size of the operation control in the state 2 is a first preset size, and the first preset size should be the same as the initial size.
S1250: and expanding the size of the operation control according to the duration of the touch operation.
If the touch operation is a continuous touch operation, such as a long press, the size of the operation control should be expanded according to the duration of the touch operation, the state before the size of the operation control is changed may refer to state 2, and the state after the size of the operation control is expanded may refer to state 3. Correspondingly, the process of changing the operation control from the state 2 to the state 3 is a process of gradually increasing the size of the ring, and the maximum duration of the enlarged size may be set to 0.2s, for example. If the touch operation disappears in the process of changing the state 2 into the state 3, namely the duration of the touch operation is less than 0.2s, the operation control stays in the display frame when the touch operation disappears and does not continuously change to the state 3. If the duration of the touch operation is longer than 0.2s, the size of the operation control changes to the state 3 when the touch operation lasts for 0.2s, and even if the touch operation lasts for a long time, the size of the operation control does not continue to be enlarged, but stays in the state 3. The size of the operation control in state 3 is larger than that of state 2, i.e. larger than the first preset size and the initial size, and in some exemplary embodiments, the size of the operation control in state 3 may be 0.5mm, preferably not larger than 2 mm.
S1260: when the touch operation disappears, the size of the operation control is reduced to a second preset size within a first preset time, wherein the second preset size is larger than the first preset size.
When it is detected that the touch operation disappears, the display state of the operation control may be in a certain temporary display state in the process of changing from the state 2 to the state 3, or may have changed to the state 3. After the touch operation disappears, the size of the operation control gradually becomes smaller. Correspondingly, the size of the operation control may be gradually reduced from the temporary display state, and may also be reduced from the state 3. Illustratively, the present embodiment describes the maximum change time of the size reduction as gradually decreasing from state 3, i.e., the first preset time period. And gradually changing the size from the state 3, and operating the control to be in a waiting mode when the size is reduced to the state 4, wherein the size is a second preset size from the state 4, and the second preset size is larger than the first preset size in the embodiment of the application. In some exemplary embodiments, the size of the operating controls in State 4 may be 0.3mm, preferably no greater than 2 mm. When the touch operation disappears, the operation control is not necessarily changed to the state 3, but may be in a temporary display state between the size state 2 and the state 3, in which case the size is reduced until the change time to the state 4 is necessarily less than the first preset time. In some exemplary embodiments, the first preset time period may be 0.2 s. In addition, the reduction process may also be interrupted, for example, the touch operation is re-detected, and the size of the operation control at the time when the touch operation is interrupted should be greater than or equal to the second preset size.
S1270: and controlling the operation control to keep the second preset time length at the second preset size.
And operating the control in the waiting mode from the state 4, keeping the control in the waiting mode for a period of waiting time in a second preset size, and reaching the state 5, wherein the waiting time is a second preset time length, and the display state of the control operated in the state 5 is consistent with the state 4. In some exemplary embodiments, the second predetermined period of time is about 2 s. In addition, in the waiting mode, a touch operation on the operation control may still be detected, in this case, since the touch operation is detected, the waiting mode is interrupted, and the size of the operation control is expanded from the state 4, which is similar to the expanding process shown in step S1250, except that the state before the size of the operation control is changed is the state 4, and the state after the size of the operation control is expanded still refers to the state 3.
S1280: and after the second preset time length, reducing the size of the operation control to the first preset size.
After the waiting time expires, the operation control display state reaches the state 5, at which time the size of the operation control will start to gradually decrease, eventually reaching the state 6. The state 6 is consistent with the state 2, and therefore, the state 6 is also the first preset size, and if the touch operation for the operation control is not detected in the size reduction process of the state 5, the final size is reduced to the first preset size. In some exemplary embodiments, the time for state 5 to change to state 6 may be 0.2 s. If a touch operation for the operation control is detected in the size reduction process, in this case, the size reduction process is interrupted from the detection of the touch operation, and the size of the operation control is enlarged from the current state, which is similar to the enlargement process shown in step S1250, except that the state before the size change of the operation control is the current state when the touch operation is detected, and the state after the size enlargement of the operation control still refers to state 3. Since the change time from the state 5 to the state 6 is very short, the probability that the touch operation on the operation control is detected during the change time is very low and can be ignored.
In addition, in the embodiment of the application, the operation controls in the states 3 to 6 need to be highlighted to remind a user that the operation is in a correct state, and the transparency of the operation controls in the states 3, 4, 5, and 6 is set to be a low value, and should be consistent with the transparency in the state 2, which are all preset transparencies.
As described above, the touch operation disappears, the display state changes to the state 5 after the waiting mode, and then changes to the state 6, and finally, since no substantial touch operation for the operation control is still detected, the operation control will return to the standby mode, i.e., the state 7 and the state 1 are both the standby mode, and the display state is consistent, i.e., the state 6 needs to be changed to the state 7. The change process is as follows: the size of the state 6 is a first preset size, the first preset size is the same as the initial size of the state 1, and the first preset size is also the same as the size of the state 7 without changing; the transparency of the state 6 is consistent with that of the state 2, is a preset transparency, is smaller than the target transparency parameter of the state 1, and the change is made to the state 7, and the transparency of the operation control needs to be increased from the preset transparency to the target transparency parameter.
In summary, the embodiment of the present application provides a technical solution, a display area where an operation control is located on a display interface of an electronic device is determined, a background gray scale of a current background image corresponding to the display area is determined, and then a control gray scale of the operation control in a standby state is adjusted based on the background gray scale and a transparency parameter of the operation control. The display state of the operation control is changed by changing the size and the transparency of the operation control in different working modes and setting different change times, so that a user can be guided to correctly use the operation control, the functions of the operation control are enriched, and the use experience of the user is improved.
Referring to fig. 14, a block diagram of a display device of an electronic device according to an embodiment of the present application is shown. Specifically, an operation control is displayed on a display interface of the electronic device, and the apparatus includes: a first determination unit 1410, a second determination unit 1420, and an adjustment unit 1430.
A first determining unit 1410, configured to determine a display area where the operation control is currently located on the display interface; a second determining unit 1420, configured to determine a target background gray level of the current background image corresponding to the display area; the adjusting unit 1430 is configured to adjust the control gray scale of the operation control based on the target background gray scale and the target transparency parameter of the operation control.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 15, a block diagram of an electronic device provided in the embodiment of the present application is shown, specifically, the electronic device 1500 includes one or more of the following components: memory 1510, processor 1520, and one or more application programs. One or more application programs may be stored in the memory 1510 and configured to be executed by the one or more processors 1520, the one or more programs configured to perform the methods as described in the foregoing method embodiments.
The electronic device 1500 may be any of various types of computer system devices that are mobile, portable, and that perform wireless communications. In particular, the electronic device 1500 may be a mobile phone or smart phone (e.g., an iPhone (TM) based, Android (TM) based phone), a Portable gaming device (e.g., Nintendo DS (TM), PlayStation Portable (TM), game Advance (TM), iPhone (TM)), a laptop, a PDA, a Portable internet device, a music player and data storage device, other handheld devices and devices such as a smart watch, smart band, headset, pendant, etc., and the electronic device 1500 may also be other wearable devices (e.g., such as electronic glasses, electronic clothing, electronic bracelets, electronic necklaces, electronic tattoos, electronic devices, or Head Mounted Devices (HMDs)).
The electronic device 1500 may also be any of a number of electronic devices including, but not limited to, cellular phones, smart watches, smart bracelets, other wireless communication devices, personal digital assistants, audio players, other media players, music recorders, video recorders, cameras, other media recorders, radios, medical devices, vehicle transportation equipment, calculators, programmable remote controls, pagers, laptop computers, desktop computers, printers, netbooks, Personal Digital Assistants (PDAs), Portable Multimedia Players (PMPs), moving Picture experts group (MPEG-1 or MPEG-2) Audio layer 3(MP3) players, portable medical devices, and digital cameras and combinations thereof.
In some cases, electronic device 1500 may perform multiple functions (e.g., playing music, displaying videos, storing pictures, and receiving and sending telephone calls). If desired, the electronic device 1500 may be a device such as a cellular telephone, media player, other handheld device, wristwatch device, pendant device, earpiece device, or other compact portable device.
Processor 1510 may include one or more processing cores. The processor 1510 interfaces with various parts throughout the electronic device 1500 using various interfaces and lines, and performs various functions of the electronic device 1500 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1520, and calling data stored in the memory 1520. Alternatively, the processor 1510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is to be appreciated that the modem can be implemented as a single communication chip without being integrated into the processor 1510.
The Memory 1520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 1520 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1520 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, and the like), determine a display area where the operation control is currently located on the display interface of the electronic device, determine a target background grayscale of a current background image corresponding to the display area, and then adjust a control grayscale of the operation control based on the target background grayscale and a target transparency parameter of the operation control. The data storage area may also store data created by the electronic device 1500 during use (e.g., phone book, audio-video data, chat log data), etc.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the processing 1510 and the memory 1520 of the electronic device described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the display method of the electronic device according to any one of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Referring to fig. 16, a computer readable medium for storing or carrying program codes for implementing a display method of an electronic device according to an embodiment of the present application is shown. The computer readable medium 1600 has stored therein program code 1610, which can be called by a processor to execute the display method of the electronic device described in the above method embodiments.
The computer-readable storage medium 1600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 1600 includes a non-volatile computer-readable medium. The computer readable storage medium 1600 has storage space for program code 1510 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 1610 may be compressed, for example, in a suitable form.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first region and the second region, etc. are for distinguishing different regions, and are not for describing a particular order of the regions. In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
In embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
Finally, it should be noted that: the above examples are only for illustrating the technical solutions of the present application, and are not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.