CN106843713B - Method and device for displaying virtual keys - Google Patents

Method and device for displaying virtual keys Download PDF

Info

Publication number
CN106843713B
CN106843713B CN201611004882.4A CN201611004882A CN106843713B CN 106843713 B CN106843713 B CN 106843713B CN 201611004882 A CN201611004882 A CN 201611004882A CN 106843713 B CN106843713 B CN 106843713B
Authority
CN
China
Prior art keywords
desktop
mobile terminal
displayed
wallpaper
virtual key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611004882.4A
Other languages
Chinese (zh)
Other versions
CN106843713A (en
Inventor
刘中洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201611004882.4A priority Critical patent/CN106843713B/en
Publication of CN106843713A publication Critical patent/CN106843713A/en
Application granted granted Critical
Publication of CN106843713B publication Critical patent/CN106843713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and a device for displaying virtual keys, which comprises the following steps: monitoring a starting event of a desktop of the mobile terminal; when a starting event of the desktop of the mobile terminal is monitored, acquiring a brightness value of wallpaper displayed on the desktop of the mobile terminal; judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged. In addition, the process of changing the color of the virtual keys displayed on the desktop of the mobile terminal is not sensible to the user, and the mobile terminal is very intelligent and convenient, and provides more perfect use experience for the user.

Description

Method and device for displaying virtual keys
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for displaying virtual keys.
Background
With the rapid development of the mobile internet technology, the mobile terminal has been widely applied to various aspects of people's life, study, work, entertainment, etc., and has become an indispensable necessity for modern people. However, in the prior art, the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal is white by default, and the other parts except the pattern in the virtual key icon are transparent, based on the situation, when the brightness of the wallpaper displayed on the desktop of the mobile terminal is too high (close to white), the wallpaper is similar to the color of the virtual key, and the virtual key displayed on the desktop of the mobile terminal is easily merged into the background of the wallpaper, so that the user is difficult to distinguish the position of the virtual key on the desktop of the mobile terminal, which causes troubles to the use of the user.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for displaying virtual keys that overcomes or at least partially solves the above-mentioned problems.
According to an aspect of the present invention, there is provided a method of displaying virtual keys, including:
monitoring a starting event of a desktop of the mobile terminal;
when a starting event of the desktop of the mobile terminal is monitored, acquiring a brightness value of wallpaper displayed on the desktop of the mobile terminal;
judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Optionally, the method further comprises:
monitoring an event of wallpaper change of a desktop of the mobile terminal;
when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after the change, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before the change, and judging whether the absolute difference value of the two is greater than a second preset threshold value;
if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Optionally, the method further comprises: adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
Optionally, the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal includes:
acquiring a distribution range of virtual keys displayed on a mobile terminal desktop on the mobile terminal desktop from a desktop configuration database;
and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
Optionally, the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range includes:
for each pixel in the distribution range, acquiring an R value, a G value and a B value corresponding to the pixel, and calculating a luminance value L corresponding to the pixel by the following formula:
L=0.2126R+0.7152G+0.0722B;
and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
Optionally, the method further comprises: presetting icons of a plurality of virtual keys with different patterns and colors in a desktop configuration database;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and acquiring an icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
Optionally, the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes:
and redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
Optionally, the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes:
and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.
According to another aspect of the present invention, there is provided an apparatus for displaying virtual keys, comprising:
the monitoring unit is suitable for monitoring a starting event of the desktop of the mobile terminal; when a starting event of the desktop of the mobile terminal is monitored, a first notice is sent to a display processing unit;
the display processing unit is suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal when receiving the first notification; judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Optionally, the monitoring unit is further adapted to monitor an event of wallpaper change on a desktop of the mobile terminal; when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, sending a second notice to the display processing unit;
the display processing unit is further suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after replacement, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before replacement and judging whether the absolute difference value of the two is greater than a second preset threshold value or not when receiving a second notification; if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Optionally, the display processing unit is further adapted to add an interface for changing a color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the display processing unit is adapted to change the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
Optionally, the display processing unit is adapted to obtain a distribution range of virtual keys displayed on a desktop of the mobile terminal on the desktop of the mobile terminal from a desktop configuration database; and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
Optionally, the display processing unit is adapted to, for each pixel in the distribution range, obtain an R value, a G value, and a B value corresponding to the pixel, and calculate the luminance value L corresponding to the pixel by using the following formula: l ═ 0.2126R +0.7152G + 0.0722B; and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
Optionally, the display processing unit is further adapted to preset icons of a plurality of virtual keys with different patterns and colors in a desktop configuration database;
the display processing unit is suitable for acquiring the icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
Optionally, the display processing unit is adapted to redraw the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
Optionally, the display processing unit is adapted to change a color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal from white to another color.
As can be seen from the above, the lighter the wallpaper is, the closer the wallpaper color is to white, the larger the brightness value of the wallpaper displayed on the desktop of the mobile terminal is; after the desktop of the mobile terminal is started, the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal is default to white, and the part except the pattern in the icon of the virtual key is transparent; the technical scheme provided by the invention obtains the brightness value of the wallpaper displayed on the desktop of the mobile terminal and judges the brightness value when the starting event on the desktop of the mobile terminal is monitored, when the brightness value of the wallpaper is judged to reach a certain degree, the color of the wallpaper is similar to that of the virtual key at the moment, the virtual key displayed on the desktop of the mobile terminal is easily merged into the wallpaper background, therefore, the scheme needs to make the virtual keys appear from the wallpaper background by changing the colors of the patterns in the icons of the virtual keys displayed on the desktop of the mobile terminal, the position of the virtual key on the desktop of the mobile terminal can be easily distinguished by a user, the user requirement is met, in addition, the process of changing the color of the virtual key displayed on the desktop of the mobile terminal is insensitive to the user, the method is very intelligent and convenient, and more perfect use experience is provided for the user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow diagram of a method of displaying virtual keys in accordance with one embodiment of the present invention;
FIG. 2 illustrates a flow diagram of a method of displaying virtual keys in accordance with another embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an apparatus for displaying virtual keys according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a flow diagram of a method of displaying virtual keys, according to one embodiment of the invention. As shown in fig. 1, the method includes:
step S110, monitoring a starting event of the desktop of the mobile terminal.
The starting event of the mobile terminal desktop comprises a first starting event of the mobile terminal desktop after the mobile terminal is started, and also comprises a corresponding starting event of the mobile terminal desktop when the mobile terminal jumps back to the mobile terminal desktop from interfaces of other application programs in the using process. After the desktop of the mobile terminal is started every time, the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal is default to white, and the part except the pattern in the icon of the virtual key is transparent.
Step S120, when the starting event of the desktop of the mobile terminal is monitored, the brightness value of the wallpaper displayed on the desktop of the mobile terminal is obtained.
The brightness value of the wallpaper is used for representing the proximity degree of the wallpaper and the full white background, and the larger the brightness value is, the closer the wallpaper and the full white background is.
Step S130, judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Therefore, the lighter the wallpaper color is, the closer the wallpaper color is to white, the larger the brightness value of the wallpaper displayed on the desktop of the mobile terminal is; after the desktop of the mobile terminal is started, the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal is default to white, and the part except the pattern in the icon of the virtual key is transparent; the method shown in fig. 1 acquires the brightness value of the wallpaper displayed on the desktop of the mobile terminal and makes a determination when it is monitored that a start event occurs on the desktop of the mobile terminal, when the brightness value of the wallpaper is judged to reach a certain degree, the color of the wallpaper is similar to that of the virtual key at the moment, the virtual key displayed on the desktop of the mobile terminal is easily merged into the wallpaper background, therefore, the scheme needs to make the virtual keys appear from the wallpaper background by changing the colors of the patterns in the icons of the virtual keys displayed on the desktop of the mobile terminal, the position of the virtual key on the desktop of the mobile terminal can be easily distinguished by a user, the user requirement is met, in addition, the process of changing the color of the virtual key displayed on the desktop of the mobile terminal is insensitive to the user, the method is very intelligent and convenient, and more perfect use experience is provided for the user.
Specifically, since the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal defaults to white after the start event occurs, the step S130 of changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal actually means: and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.
Further, in order to solve the problem that the wallpaper and the virtual key may be visually merged into a whole due to the similar color after the wallpaper on the desktop of the mobile terminal is replaced, in an embodiment of the present invention, the method shown in fig. 1 further includes:
step S140, monitoring the event of wallpaper change of the desktop of the mobile terminal.
Step S150, when an event of wallpaper replacement of the mobile terminal desktop is monitored, acquiring a brightness value of the wallpaper displayed on the mobile terminal desktop after the wallpaper replacement, acquiring a brightness value of the wallpaper displayed on the mobile terminal desktop before the wallpaper replacement, and judging whether an absolute difference value between the two is larger than a second preset threshold value.
And step S160, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
It can be seen that, after an event of changing the wallpaper occurs in the desktop of the mobile terminal, if the absolute difference between the brightness values of the wallpapers displayed on the desktop of the mobile terminal for changing the wallpaper back and forth is greater than the second preset threshold, it indicates that the brightness of the wallpaper displayed on the desktop of the mobile terminal for changing the wallpaper back and forth changes greatly, and the color of the virtual key that can be displayed on the wallpaper displayed on the desktop of the mobile terminal before changing the wallpaper cannot be displayed on the wallpaper displayed on the desktop of the mobile terminal after changing the wallpaper, and the color of the virtual key needs to be adjusted. If the absolute difference value between the brightness values of the wallpaper displayed on the wallpaper changing front-and-back movement terminal desktop is not larger than the second preset threshold value, the brightness change of the ratio displayed on the wallpaper changing front-and-back movement terminal desktop is not large, the color of the virtual key displayed on the wallpaper displayed on the mobile terminal desktop before the wallpaper is changed can be displayed on the wallpaper displayed on the mobile terminal desktop after the wallpaper is changed, and the color of the virtual key does not need to be adjusted.
For example, a mobile terminal is loaded with an Android system, after the mobile terminal is started, a desktop of the mobile terminal is started for the first time, the desktop of the mobile terminal is displayed on a screen of the mobile terminal, two virtual key icons are displayed in the desktop of the mobile terminal, a pattern in the first virtual key icon is a mark "←" for returning to the previous page ", and a pattern in the second virtual key icon is a mark" ← "for returning to the home page
Figure BDA0001153361930000071
The pattern in the two virtual key icons defaults to white, i.e., pattern "←" and pattern
Figure BDA0001153361930000072
The color of the line of (1) is white, and the rest part is transparent. At the moment, the brightness value of the wallpaper A currently displayed on the desktop of the mobile terminal is obtained, and whether the brightness value is greater than a first preset threshold value or not is judged; if the current wallpaper A is close to white, the virtual key icons of the two white patterns cannot be shown on the current wallpaper, the colors of the patterns in the two virtual key icons need to be adjusted, for example, the colors of the patterns in the two virtual key icons are adjusted to be black, namely the pattern "←" and the pattern
Figure BDA0001153361930000073
The line color of the key is black, and the rest parts are transparent, so that the virtual key icons of the two black patterns can be displayed on the current wallpaper A, and the user can conveniently check the virtual key icons. If the brightness value of the wallpaper A is not larger than the first preset threshold value, the current wallpaper A is not close to white, the virtual key icons of the two white patterns can be displayed on the current wallpaper A, and adjustment is not needed.
While the mobile terminal is continuously used by the user, the user moves oppositelyAnd changing the wallpaper displayed on the desktop of the mobile terminal from the previous wallpaper A to a wallpaper B, wherein the brightness value of the wallpaper A before changing is obtained in the previous step and is recorded in the desktop configuration database, and through the adjustment of the previous step, the color of the patterns in the two virtual key icons displayed on the desktop of the mobile terminal is the color capable of being displayed on the wallpaper A, and if the wallpaper A is the wallpaper with higher brightness value and lighter color, the color of the patterns in the two virtual key icons is adjusted to be black through the previous step. On this basis, when the wallpaper a is changed into the wallpaper B, the brightness value of the wallpaper B is obtained, the brightness value of the wallpaper B is compared with the brightness value of the wallpaper a obtained before, and whether the absolute difference value between the two is greater than the second preset threshold value is judged, if yes, the difference between the brightness values of the wallpaper a and the wallpaper B is large, since the wallpaper a is a wallpaper with a higher brightness value and a lighter color, the wallpaper B is a wallpaper with a lower brightness value and a darker color, at this time, the virtual key icons of the two black patterns which can be displayed on the wallpaper a before will not be easily displayed on the wallpaper B, and therefore, the color of the pattern in the virtual key icon needs to be adjusted, if the color of the pattern in the virtual key icon is adjusted to white, namely, "←" and "←", and the pattern
Figure BDA0001153361930000081
The line color of the white wallpaper B is white, and the rest parts of the white wallpaper B are transparent, so that the virtual key icons of the two white patterns can be displayed on the current wallpaper B, and the user can conveniently check the virtual key icons. If the absolute difference value of the brightness values of the wallpaper A and the wallpaper B is not larger than the second preset threshold value, the brightness of the wallpaper A is close to that of the wallpaper B, and the wallpaper B is the wallpaper with higher brightness and lighter color like the wallpaper A, then the virtual key icons of the two black patterns which can be displayed on the wallpaper A before are also easily displayed on the wallpaper B, and the colors of the patterns in the virtual key icons are not required to be adjusted.
Based on the above example, each time a start event of the desktop of the mobile terminal or an event that the wallpaper displayed on the desktop of the mobile terminal is changed occurs in the using process of the mobile terminal, whether the color of the pattern in the virtual key icon needs to be adjusted can be judged according to the principle of the above example, the logic is consistent, and the description is omitted here, so that the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal can be correspondingly adjusted along with the change of the wallpaper in the using process of the mobile terminal, so that the user can always easily distinguish the position of the virtual key, and the use by the user is facilitated.
In an embodiment of the present invention, the most important thing for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the above steps S120 and S150 is: the method for obtaining the brightness value of the wallpaper corresponding to the area where the virtual key on the desktop of the mobile terminal is located specifically comprises the following steps:
step S121, obtaining the distribution range of the virtual keys displayed on the mobile terminal desktop from the desktop configuration database.
And S122, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
Following the above example, when the mobile terminal desktop is started, the brightness value of the currently displayed wallpaper a is obtained, and the distribution range of the two virtual key icons displayed on the mobile terminal desktop obtained from the desktop configuration database is (x ═ 0-100, y ═ 0-30) pix, where the lower left corner of the mobile terminal desktop is taken as the coordinate origin (x ═ 0, y ═ 0), x represents the width, and y represents the height, then the distribution range of the two virtual keys displayed on the current mobile terminal desktop is described as follows: a range of 100 pixels from the leftmost side of the mobile terminal desktop to the right and 30 pixels from the bottommost side of the mobile terminal desktop up. Acquiring the brightness value of the wallpaper A in the (x is 0-100, y is 0-30) pix area, judging whether the brightness value is greater than a first preset threshold value, if so, changing the colors of the patterns in the two virtual key icons, otherwise, not adjusting. And, the above example obtains the brightness value of the wallpaper B after replacement when the wallpaper displayed on the desktop of the mobile terminal is replaced, also obtains the brightness value of the wallpaper B in the (x-0-100, y-0-30) pix area based on the above principle, determines whether the absolute difference between the obtained brightness value of the wallpaper B and the brightness value of the wallpaper a is greater than the second preset threshold, if so, changes the color of the pattern in the two virtual key icons currently displayed on the desktop of the mobile terminal, otherwise, does not perform adjustment.
Specifically, the specific way of acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range in step S122 is as follows: for each pixel in the distribution range, acquiring an R value, a G value and a B value corresponding to the pixel, and calculating a luminance value L corresponding to the pixel by the following formula:
L=0.2126R+0.7152G+0.0722B;
and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
In one embodiment of the present invention, a plurality of schemes are provided to implement the change of the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal, including:
the first scheme is as follows: adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal in advance; changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal in step S130 and step S160 of the method shown in fig. 1 includes: and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
For example, an interface M for changing the color of a pattern in a virtual key icon displayed on a desktop of the mobile terminal is added in advance in a system interface system ui of the mobile terminal, so that when the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal needs to be changed, the interface M can be directly called, and corresponding parameters are transmitted through the interface M to realize color conversion of the pattern in the virtual key icon.
Scheme II: presetting a plurality of icons of virtual keys with different patterns and colors in a desktop configuration database in advance; changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal in step S130 and step S160 of the method shown in fig. 1 includes: and acquiring an icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
For example, a black pattern virtual key icon and a white pattern virtual key icon are preset in the desktop configuration database in advance, when the color of the pattern in the virtual key icons displayed on the desktop of the mobile terminal needs to be changed, if the white pattern virtual key icon is currently displayed, the black pattern virtual key icon is obtained from the desktop configuration database, and the originally displayed white pattern virtual key icon is replaced by the black pattern virtual key icon and displayed on the desktop of the mobile terminal, and the other conditions are the same.
Third, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal in step S130 and step S160 of the method shown in fig. 1 includes: and redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
For example, when the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal needs to be changed, if the virtual key icon with a white pattern is currently displayed, the virtual key icon on the desktop of the mobile terminal is redrawn, so that the color of the pattern in the virtual key icon on the desktop of the mobile terminal after redrawing is not white, but other colors.
FIG. 2 illustrates a flow diagram of a method of displaying virtual keys according to another embodiment of the invention. As shown in fig. 2, the method includes:
step S210, monitoring a starting event/wallpaper changing event of the desktop of the mobile terminal.
Step S220, when a starting event/wallpaper replacing event of the desktop of the mobile terminal is monitored, the brightness value of the wallpaper currently displayed on the desktop of the mobile terminal is obtained.
Step S230, determining whether the brightness value of the wallpaper currently displayed on the desktop of the mobile terminal is greater than a first preset threshold, if so, executing step S240, otherwise, executing step S250.
Step S240, determining whether the color of the pattern in the virtual key icon currently displayed on the desktop of the mobile terminal is white, if yes, performing step S260, otherwise, performing step S270.
Step 250, judging whether the color of the pattern in the virtual key icon currently displayed on the desktop of the mobile terminal is white, if so, executing step 270, otherwise, executing step 260.
And step S260, changing the color of the pattern in the virtual key icon currently displayed on the desktop of the mobile terminal.
And step S270, keeping the color of the virtual key icon seed pattern currently displayed on the desktop of the mobile terminal unchanged.
It can be seen that, compared with the method shown in fig. 1, the method shown in fig. 2 does not distinguish a mobile terminal desktop startup scene and a mobile terminal desktop wallpaper replacement scene, but executes processing in a unified flow when a startup event or a wallpaper replacement event occurs on the mobile terminal desktop, first determines whether the current wallpaper is close to white, and then determines whether the current pattern color of the virtual key icon is white, if so, the pattern color of the virtual key icon needs to be adjusted, otherwise, the method does not need to; if the current wallpaper is not close to white, judging whether the pattern color of the current virtual key icon is white, if so, adjusting the pattern color of the virtual key icon is not needed, otherwise, adjusting the pattern color of the virtual key icon is needed. This embodiment is more complicated in flow than the embodiment shown in fig. 1, but since it unifies the flows in both scenarios, the implementability is also improved from another point of view. The specific way of obtaining the brightness value of the wallpaper currently displayed on the desktop of the mobile terminal is described in detail in the foregoing, and the specific way of changing the color of the pattern in the virtual key icon currently displayed on the desktop of the mobile terminal is also described in detail in the foregoing, which is not repeated herein.
Fig. 3 is a schematic diagram illustrating an apparatus for displaying virtual keys according to an embodiment of the present invention. As shown in fig. 3, the apparatus 300 for displaying virtual keys includes:
a monitoring unit 310, adapted to monitor a start event of a desktop of the mobile terminal; when a start event of the desktop of the mobile terminal is monitored, a first notification is sent to the display processing unit 320.
A display processing unit 320 adapted to acquire a brightness value of the wallpaper displayed on the desktop of the mobile terminal when the first notification is received; judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
Therefore, the lighter the wallpaper color is, the closer the wallpaper color is to white, the larger the brightness value of the wallpaper displayed on the desktop of the mobile terminal is; after the desktop of the mobile terminal is started, the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal is default to white, and the part except the pattern in the icon of the virtual key is transparent; the apparatus shown in fig. 3 acquires the brightness value of the wallpaper displayed on the desktop of the mobile terminal and makes a determination when it is monitored that a start event occurs on the desktop of the mobile terminal, when the brightness value of the wallpaper is judged to reach a certain degree, the color of the wallpaper is similar to that of the virtual key at the moment, the virtual key displayed on the desktop of the mobile terminal is easily merged into the wallpaper background, therefore, the scheme needs to make the virtual keys appear from the wallpaper background by changing the colors of the patterns in the icons of the virtual keys displayed on the desktop of the mobile terminal, the position of the virtual key on the desktop of the mobile terminal can be easily distinguished by a user, the user requirement is met, in addition, the process of changing the color of the virtual key displayed on the desktop of the mobile terminal is insensitive to the user, the method is very intelligent and convenient, and more perfect use experience is provided for the user.
In an embodiment of the present invention, the display processing unit 320 is adapted to change the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to another color.
Further, in an embodiment of the present invention, the monitoring unit 310 is further adapted to monitor an event of changing wallpaper on a desktop of the mobile terminal; when an event of wallpaper change of the mobile terminal desktop is monitored, sending a second notification to the display processing unit 320; the display processing unit 320 is further adapted to, when receiving the second notification, obtain a brightness value of the wallpaper displayed on the desktop of the mobile terminal after the replacement, obtain a brightness value of the wallpaper displayed on the desktop of the mobile terminal before the replacement, and determine whether an absolute difference value between the two is greater than a second preset threshold; if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
In an embodiment of the present invention, the display processing unit 320 is adapted to obtain, from the desktop configuration database, a distribution range of virtual keys displayed on the desktop of the mobile terminal; and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
Specifically, the display processing unit 320 is adapted to obtain, for each pixel in the distribution range, an R value, a G value, and a B value corresponding to the pixel, and calculate the luminance value L corresponding to the pixel by the following formula: l ═ 0.2126R +0.7152G + 0.0722B; and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
The display processing unit 320 in the embodiment of the present invention may change the color of the pattern in the virtual key icon displayed on the desktop of the mobile terminal through the following interaction manners:
in a first aspect, the display processing unit 320 is further adapted to add an interface for changing colors of patterns in icons of virtual keys displayed on a desktop of the mobile terminal in a system interface of the mobile terminal; the display processing unit 320 is adapted to change the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
The display processing unit 320 is further adapted to preset a plurality of icons of virtual keys with different patterns and colors in the desktop configuration database; the display processing unit 320 is adapted to obtain an icon of another virtual key from the desktop configuration database, and replace the icon of the originally displayed virtual key with the obtained icon of the virtual key to display on the desktop of the mobile terminal.
And in a third scheme, the display processing unit 320 is adapted to redraw the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
It should be noted that, the embodiments of the apparatus shown in fig. 3 correspond to the embodiments of the method shown in fig. 1-2, which have been described in detail above and are not repeated herein.
In summary, based on the fact that the larger the brightness value of the wallpaper displayed on the desktop of the mobile terminal is, the lighter the color of the wallpaper is, the closer the wallpaper is to white; after the desktop of the mobile terminal is started, the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal is default to white, and the part except the pattern in the icon of the virtual key is transparent; the technical scheme provided by the invention obtains the brightness value of the wallpaper displayed on the desktop of the mobile terminal and judges the brightness value when the starting event on the desktop of the mobile terminal is monitored, when the brightness value of the wallpaper is judged to reach a certain degree, the color of the wallpaper is similar to that of the virtual key at the moment, the virtual key displayed on the desktop of the mobile terminal is easily merged into the wallpaper background, therefore, the scheme needs to make the virtual keys appear from the wallpaper background by changing the colors of the patterns in the icons of the virtual keys displayed on the desktop of the mobile terminal, the position of the virtual key on the desktop of the mobile terminal can be easily distinguished by a user, the user requirement is met, in addition, the process of changing the color of the virtual key displayed on the desktop of the mobile terminal is insensitive to the user, the method is very intelligent and convenient, and more perfect use experience is provided for the user.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of an apparatus for displaying virtual keys according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses A1 and a method for displaying virtual keys, wherein the method comprises the following steps:
monitoring a starting event of a desktop of the mobile terminal;
when a starting event of the desktop of the mobile terminal is monitored, acquiring a brightness value of wallpaper displayed on the desktop of the mobile terminal;
judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
A2, the method of a1, wherein the method further comprises:
monitoring an event of wallpaper change of a desktop of the mobile terminal;
when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after the change, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before the change, and judging whether the absolute difference value of the two is greater than a second preset threshold value;
if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
A3, the method of a1 or a2, wherein the method further comprises: adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
A4, the method as in A1, wherein the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal comprises:
acquiring a distribution range of virtual keys displayed on a mobile terminal desktop on the mobile terminal desktop from a desktop configuration database;
and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
A5, the method as in A4, wherein the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range comprises:
for each pixel in the distribution range, acquiring an R value, a G value and a B value corresponding to the pixel, and calculating a luminance value L corresponding to the pixel by the following formula:
L=0.2126R+0.7152G+0.0722B;
and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
A6, the method of a1 or a2, wherein the method further comprises: presetting icons of a plurality of virtual keys with different patterns and colors in a desktop configuration database;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and acquiring an icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
A7, the method as in a1 or a2, wherein the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal comprises:
and redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
A8, the method as in A1, wherein the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal comprises:
and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.
The invention also discloses B9, a device for displaying virtual keys, which comprises:
the monitoring unit is suitable for monitoring a starting event of the desktop of the mobile terminal; when a starting event of the desktop of the mobile terminal is monitored, a first notice is sent to a display processing unit;
the display processing unit is suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal when receiving the first notification; judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, and otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
B10, the device of B9, wherein,
the monitoring unit is further suitable for monitoring an event of wallpaper change of the desktop of the mobile terminal; when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, sending a second notice to the display processing unit;
the display processing unit is further suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after replacement, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before replacement and judging whether the absolute difference value of the two is greater than a second preset threshold value or not when receiving a second notification; if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged.
B11, the device according to B9 or B10, wherein,
the display processing unit is further suitable for adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the display processing unit is adapted to change the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
B12, the device of B9, wherein,
the display processing unit is suitable for acquiring the distribution range of the virtual keys displayed on the desktop of the mobile terminal from the desktop configuration database; and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
B13, the device of B12, wherein,
the display processing unit is adapted to obtain, for each pixel in the distribution range, an R value, a G value, and a B value corresponding to the pixel, and calculate a luminance value L corresponding to the pixel by the following formula: l ═ 0.2126R +0.7152G + 0.0722B; and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
B14, the device according to B9 or B10, wherein,
the display processing unit is further suitable for presetting a plurality of icons of virtual keys with different patterns and colors in a desktop configuration database;
the display processing unit is suitable for acquiring the icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
B15, the device according to B9 or B10, wherein,
the display processing unit is suitable for redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
B16, the device of B9, wherein,
the display processing unit is suitable for changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.

Claims (12)

1. A method of displaying virtual keys, comprising:
monitoring a starting event of a desktop of the mobile terminal;
when a starting event of the desktop of the mobile terminal is monitored, acquiring a brightness value of wallpaper displayed on the desktop of the mobile terminal;
judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of a pattern in an icon of a virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged;
wherein the method further comprises:
monitoring an event of wallpaper change of a desktop of the mobile terminal;
when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after the change, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before the change, and judging whether the absolute difference value of the two is greater than a second preset threshold value;
if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged;
the method further comprises the following steps: adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
2. The method of claim 1, wherein the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal comprises:
acquiring a distribution range of virtual keys displayed on a mobile terminal desktop on the mobile terminal desktop from a desktop configuration database;
and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
3. The method of claim 2, wherein the obtaining the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range comprises:
for each pixel in the distribution range, acquiring an R value, a G value and a B value corresponding to the pixel, and calculating a luminance value L corresponding to the pixel by the following formula:
L=0.2126R+0.7152G+0.0722B;
and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
4. The method of claim 1, wherein the method further comprises: presetting icons of a plurality of virtual keys with different patterns and colors in a desktop configuration database;
the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal includes: and acquiring an icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
5. The method of claim 1, wherein the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal comprises:
and redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
6. The method of claim 1, wherein the changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal comprises:
and changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.
7. An apparatus for displaying virtual keys, comprising:
the monitoring unit is suitable for monitoring a starting event of the desktop of the mobile terminal; when a starting event of the desktop of the mobile terminal is monitored, a first notice is sent to a display processing unit;
the display processing unit is suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal when receiving the first notification; judging whether the brightness value of the wallpaper displayed on the desktop of the mobile terminal is larger than a first preset threshold value, if so, changing the color of a pattern in an icon of a virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged;
wherein,
the monitoring unit is further suitable for monitoring an event of wallpaper change of the desktop of the mobile terminal; when an event that the wallpaper of the desktop of the mobile terminal is changed is monitored, sending a second notice to the display processing unit;
the display processing unit is further suitable for acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal after replacement, acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal before replacement and judging whether the absolute difference value of the two is greater than a second preset threshold value or not when receiving a second notification; if so, changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal, otherwise, keeping the virtual key displayed on the desktop of the mobile terminal unchanged; wherein,
the display processing unit is further suitable for adding an interface for changing the color of a pattern in an icon of a virtual key displayed on a desktop of the mobile terminal in a system interface of the mobile terminal;
the display processing unit is adapted to change the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal by calling the interface.
8. The apparatus of claim 7, wherein,
the display processing unit is suitable for acquiring the distribution range of the virtual keys displayed on the desktop of the mobile terminal from the desktop configuration database; and acquiring the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range as the brightness value of the wallpaper displayed on the desktop of the mobile terminal.
9. The apparatus of claim 8, wherein,
the display processing unit is adapted to obtain, for each pixel in the distribution range, an R value, a G value, and a B value corresponding to the pixel, and calculate a luminance value L corresponding to the pixel by the following formula: l ═ 0.2126R +0.7152G + 0.0722B; and calculating to obtain an average brightness value in the distribution range according to the brightness value corresponding to each pixel in the distribution range, wherein the average brightness value is used as the brightness value of the wallpaper displayed on the desktop of the mobile terminal in the distribution range.
10. The apparatus of claim 7, wherein,
the display processing unit is further suitable for presetting a plurality of icons of virtual keys with different patterns and colors in a desktop configuration database;
the display processing unit is suitable for acquiring the icon of another virtual key from the desktop configuration database, and replacing the icon of the acquired virtual key with the icon of the originally displayed virtual key to display the icon on the desktop of the mobile terminal.
11. The apparatus of claim 7, wherein,
the display processing unit is suitable for redrawing the icons of the virtual keys on the desktop of the mobile terminal, so that the colors of the patterns in the icons of the virtual keys on the desktop of the mobile terminal before and after redrawing are different.
12. The apparatus of claim 7, wherein,
the display processing unit is suitable for changing the color of the pattern in the icon of the virtual key displayed on the desktop of the mobile terminal from white to other colors.
CN201611004882.4A 2016-11-15 2016-11-15 Method and device for displaying virtual keys Active CN106843713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611004882.4A CN106843713B (en) 2016-11-15 2016-11-15 Method and device for displaying virtual keys

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611004882.4A CN106843713B (en) 2016-11-15 2016-11-15 Method and device for displaying virtual keys

Publications (2)

Publication Number Publication Date
CN106843713A CN106843713A (en) 2017-06-13
CN106843713B true CN106843713B (en) 2020-04-17

Family

ID=59145404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611004882.4A Active CN106843713B (en) 2016-11-15 2016-11-15 Method and device for displaying virtual keys

Country Status (1)

Country Link
CN (1) CN106843713B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221736B (en) * 2018-03-02 2021-02-02 Oppo广东移动通信有限公司 Icon processing method and device, mobile terminal and storage medium
CN112748576B (en) * 2020-12-09 2023-01-10 博泰车联网科技(上海)股份有限公司 HUD display method, HUD display system, vehicle and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN104063123A (en) * 2014-05-28 2014-09-24 小米科技有限责任公司 Icon displaying method and device
CN104850297A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Display method for control, and electronic equipment
CN105843625A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for setting application icon
CN106020846A (en) * 2016-06-01 2016-10-12 腾讯科技(深圳)有限公司 Desktop tool display method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN104850297A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Display method for control, and electronic equipment
CN104063123A (en) * 2014-05-28 2014-09-24 小米科技有限责任公司 Icon displaying method and device
CN105843625A (en) * 2016-04-01 2016-08-10 乐视控股(北京)有限公司 Method and device for setting application icon
CN106020846A (en) * 2016-06-01 2016-10-12 腾讯科技(深圳)有限公司 Desktop tool display method and device

Also Published As

Publication number Publication date
CN106843713A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106980510B (en) Window self-adaption method and device of player
US10095377B2 (en) Method and device for displaying icon badge
JP2017191146A5 (en)
WO2016184206A1 (en) Method and device for adjusting icon colors
US8860758B2 (en) Display control apparatus and method for displaying overlapping windows
CN105808230B (en) The method and apparatus of mobile suspension icon
JP6287337B2 (en) Image processing apparatus, image processing method, image processing system, and program
JP2010193311A5 (en)
CN106502689A (en) A kind of display methods of status bar and device
JP5509173B2 (en) Display device and display method
CN106843713B (en) Method and device for displaying virtual keys
CN106033334B (en) Method and device for drawing interface element
JP5907196B2 (en) Image processing apparatus, image processing method, image processing system, and program
CN113920912B (en) Display attribute adjusting method and related equipment
US20160275366A1 (en) Image processing apparatus, image processing system, non-transitory computer readable medium, and image processing method
JP6243112B2 (en) Information processing apparatus, information processing method, and recording medium
JP2016110092A (en) Display device and control method therefor
CN107357510A (en) Touch the visual feedback method and apparatus of selection
CN107085521A (en) A kind of icon display method and device
CN109343813B (en) Information reminding method and device, storage medium and electronic equipment
CN108132716A (en) Method of adjustment, equipment and the computer readable storage medium of browse page
US10186063B2 (en) Image processing apparatus, non-transitory computer readable medium, and image processing method for generating a composite image
JP6167942B2 (en) Design editing apparatus and program
CN108519844B (en) Menu display method and device, storage medium, processor and terminal
JP2010091617A (en) Automatic setting device for character color of clock, method and program for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170720

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant