Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with this specification.On the contrary, they are only and such as institute
The example of the consistent apparatus and method of some aspects be described in detail in attached claims, this specification.
It is only merely for the purpose of description specific embodiment in the term that this specification uses, and is not intended to be limiting this explanation
Book." one kind " of used singulative, " described " and "the" are also intended to bag in this specification and in the appended claims
Most forms are included, unless context clearly shows that other implications.It is also understood that term "and/or" used herein is
Refer to and any or all may be combined comprising the associated list items purpose of one or more.
It will be appreciated that though various information may be described using term first, second, third, etc. in this specification, but
These information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not taking off
In the case of this specification scope, the first information can also be referred to as the second information, and similarly, the second information can also be claimed
For the first information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or
" when ... " or " in response to determining ".
As it was previously stated, in general, Icon Color is all that fixed and user can not voluntarily change.Generally, under the same page not
All it is same pattern with icon, even same color;Once number of icons is more in the page, because Icon Color all compares
Close, user is not easy to make a distinction, can not the icon that needs to use of fast positioning.As shown in Figure 1a, provided for this specification
A page in show the schematic diagram of icon, the icon style in the page is basically identical, Icon Color also only have it is several often
With color such as blueness, yellow, green, as shown in Figure 1 b, because Icon Color is all more close, user is not easy to make a distinction,
Can not the icon that needs to use of fast positioning.
Hereinafter a kind of implementation for the method for realizing Icon Color change of this specification is introduced incorporated by reference to the example shown in Fig. 2
Example, as shown in Fig. 2 this method can apply to client, this method may comprise steps of:
Step 110:Determine target icon.
In this specification, the icon can refer to the icon of the application program installed in operating system.The operation system
System can include other any operation systems such as Android system (Android), apple system (IOS) or windows systems
System.In this case, client can refer to the operating system where the icon in the present embodiment, such as installed in Android
The icon of systematic difference program, then the client can refer to Android system.
The icon can also refer to the icon of difference in functionality or subapplication inside primary application program.Such as Fig. 1 a institutes
Show, the icon of subapplication as in Alipay, including " life number ", " bonus ", " drop oozes row ", " flying pig travelling "
Deng.In this case, client described in the present embodiment can refer to primary application program, such as Alipay neutron shown in Fig. 1 a
The icon of application program, then the client can be Alipay.
Step 120:Obtain the target icon and correspond to the custom color configured in application program.
In one implementation:Each application program can increase the function of configuration custom color newly.It is described to make by oneself
Adopted color can be configured by user.In the case where user was configured without, the original icon face of the application program is defaulted as
Color.
In another implementation:The custom color can include the theme color of application program.
The theme color can be understood as the color of page layout background in application program.Such as " skin " of application program, one
As, application program can provide " changing skin " function, and user can change application program " skin " color, so as to change theme
Color.
Step 130:In the case where the target icon corresponds to the custom color change configured in application program, institute is determined
State the custom color after change.
In the present embodiment, user can configure custom color in the application.By taking Fig. 1 a as an example:
In first way, client can provide one and be used to change Icon Color option.As shown in figure 3, Alipay
One Icon Color config option can be provided;In the interface, user can set icon face to each subapplication
Color.For example, the Icon Color of " life number " is arranged to red;The Icon Color of " bonus " is arranged to purple.
In the second way, application program can provide Icon Color config option corresponding to each icon.For example, with
Family can enter " life number " subapplication by clicking in Fig. 1 a " life number " icon, as shown in figure 4, should " life number " son
Icon Color config option is provided in Application Program Interface, user can set the color of " life number " icon.
In general, when client listens to the target icon and corresponds to the custom color change configured in application program,
The custom color after the change can be determined.
The monitoring can be by pre-setting event sniffer (the also referred to as event-monitoring changed for monitoring custom color
Device) realize.For example, java event monitor, Js event sniffers etc..
Being worth mentioning is, the mode for setting custom color can include at least one of in the following manner:
Mode 1:Word according to actual color is represented sets custom color.
As shown in figure 5, the custom color Option Box drop-down menu schematic diagram that client provides, user can check that this is made by oneself
The word of a variety of expression actual colors provided in adopted color Option Box drop-down menu, and select to want the custom color of change;
Or user can input the word for representing actual color.
Mode 2:According to RBG three primary colors, custom color is set.
Generally, each described color can pass through rgb color pattern, you can with using R (red, red), G (green,
It is green), B (blue, blue) three components represent.In a computer, RGB size can refer to brightness, can generally use whole
Number represents that each brightness that can have 256 grades of R, G, B, general using numeral 0,1,2,3 ..., 255, i.e. the value range of R, G, B are each
For 0~255.In this way, the different color of 256*256*256=16777216 kinds can be shown using rgb color pattern.
Mode 3:Custom color is set according to actual color.
Which is different from mode 1, and which provides a secondary option figure for including a variety of actual colors, and user can pass through
Any color is clicked in the option figure to set custom color.It may be referred to select desktop background color in the computer shown in Fig. 6
Schematic diagram, the secondary option Figure 61 for including a variety of actual colors is provided in Fig. 6.
Step 140:According to the custom color and the incidence relation of the color of target icon, by the face of the target icon
Color is shown as the custom color after the change.
For example, icon numerous in Fig. 1 b is only divided into 3 kinds of colors, it is divided into:
Green icon:" life number ", " sesame credit ";
Yellow icon:" bonus ", " drop oozes row ", " flying pig travelling ", " voucher center ", " invoice house keeper ", " motion ",
" credit card repayment ", " my express delivery ";
Blue icons:" train ticket air ticket ", " ant borrow ", " life payment ", " urban service ", " in place ", " my visitor
Clothes ".
It can be found that yellow number of icons is more, and compare concentration in " using recently " region yellow icon, it is not easy to
It is quick to distinguish.Assuming that the custom color of " bonus " is arranged to red by user;The custom color of " flying pig travelling " is arranged to
Purple;The custom color of " managing bill " is arranged to black;As shown in fig. 7, for the icon in " use recently " region
Say, the color of each icon is different from, the color can for the application icon that such user's can uses as needed
The fast positioning icon.
By this specification embodiment, the custom color of Icon Color application program corresponding with the icon is associated,
So that Icon Color is consistent with the custom color, such user's can realizes change icon face by changing the custom color
Color.In this way, by setting different colours to different icons, so as to significantly distinguish different icons, and then it is easy to user to pass through
Color fast positioning icon, improves Consumer's Experience.
In actual applications, if Icon Color and background color where the icon are same or similar, easily it is somebody's turn to do
Icon shows unobvious, or even invisible situation.
It is described before the step 140 on the basis of embodiment illustrated in fig. 2 in order to avoid arising a problem that
Method can also include:
A1:The color of background area where obtaining the target icon;
A2:Judge whether the custom color after the change is similar to the color of the background area;
The step 140, is specifically included:
In the case of the color dissmilarity of custom color after the change and the background area, made by oneself according to described
The incidence relation of the color of adopted color and target icon, the color of the target icon is shown as the custom color after change.
In the case that custom color after the change is similar to the color of the background area, then institute can not be changed
State the color of target image.
In this specification, the A2, RBG between the custom color after comparing change and the color of background area can be used
Three primary colors;
Such as:Compare successively, whether the difference of R values, the difference of G values, the difference of B values are both less than threshold value;If, it may be determined that it is described
Custom color after change is similar to the color of the background area;It is conversely, dissimilar;
For another example calculate the R values of the custom color after the change, G values, B value sums;
Calculate the R values, G values, B value sums of the color of the background area;
Judge whether the difference of both rgb value sums is less than threshold value;
If, it may be determined that the custom color after the change is similar to the color of the background area;Conversely, not phase
Seemingly.
In another embodiment, the A2, it can specifically include:
Calculate the first gray value of the custom color after the change;
Calculate the second gray value of the background area color;
Judge whether the difference of first gray value and the second gray value is less than threshold value;
In the case where whether the difference of first gray value and the second gray value is less than threshold value, after determining the change
Custom color is similar to the color of the background area;
In the case where whether the difference of first gray value and the second gray value is not less than threshold value, after determining the change
Custom color and the background area color it is dissimilar.
Generally, in rgb color pattern, as R=G=B, colour can be expressed as a kind of greyscale color.Generally, can be with
R=G=B value is referred to as gray value, the scope of gray value is 0~255.Therefore, for original image firstly the need of by original
Rgb value in beginning image is converted to gray value, can be realized in the following way by the conversion of gray value:
In the first implementation, component method can be used:
By the RGB three-components in coloured image, any one-component value of choosing is as gray value.That is, user can
With the needs according to practical application, the value of R component is only chosen as gray value;The value of G components can also only be chosen as gray scale
Value;The value of B component can also only be chosen as gray value.
In second of implementation, maximum value process can be used:
Using the maximum in the RGB three-components in coloured image as gray value.Calculating the formula of gray value can be:
Max (R, G, B).For example, some RGB three-component is (R=122, G=90, B=200), then maximum B=200 can be made
For gray value, i.e. gray value is 200.
In the third implementation, mean value method can be used:
An average value will be calculated after RGB three-components summation in coloured image, and then using the average value as gray value.
So, calculating the formula of gray value can be:(R+G+B)/3.
In the 4th kind of implementation, weighted average can be used:
In the implementation, one weights can be set to each component in advance, RGB three-components be added during calculating
Weight average, using weighted average as gray value.In general, the weights of setting can be according to practical application request, such as human eye
It is minimum to blue-sensitive to the sensitive highest of green, then a high weight such as 0.59 can be set to G, a low power is set to B
Value such as 0.11, weights such as 0.3 among one are set to R;So, calculating the formula of gray value can be:(0.3R+0.59G+
0.11B)/3。
By calculating the first gray value of the theme color after the change, and the second gray scale of the background area color
Value;Judge whether the difference of first gray value and the second gray value is less than threshold value again;If so, illustrate making by oneself after the change
Adopted color is similar to the color of the background area;It is conversely, dissimilar.
It is noted that the threshold value shown in above-described embodiment can be the empirical value artificially set.
With the progress of the continuous development of computer technology, particularly artificial intelligence, the threshold value, which can also be, passes through machine
Device study is calculated.For example, the threshold value set based on history, by machine learning algorithm can calculate one it is optimal
Threshold value.
Have again, the threshold value can also be what is be calculated based on big data technology.For example, pass through mass data, hair
When now major part judges, the threshold value of setting is 10, then can determine that threshold value can also be set as 10 in this judgement.
By the present embodiment, Icon Color is similar to background color after can avoiding change.
On the basis of above-mentioned embodiment illustrated in fig. 2, methods described can also include:
Classified according to the color of icon.
Still as shown in Figure 1 b, if classified according to Icon Color, 3 classes can be divided into:
Green icon:" life number ", " sesame credit ";
Yellow icon:" bonus ", " drop oozes row ", " flying pig travelling ", " voucher center ", " invoice house keeper ", " motion ",
" credit card repayment ", " my express delivery ";
Blue icons:" train ticket air ticket ", " ant borrow ", " life payment ", " urban service ", " in place ", " my visitor
Clothes ".
By the present embodiment, by the way that the icon of same color is divided into one kind, show so as to carry out subregion according to Icon Color
Show.
Corresponding with the Icon Color methods of exhibiting embodiment described in earlier figures 2, this specification additionally provides a kind of icon
The embodiment of color variation means.Described device embodiment can be realized by software, can also pass through hardware or software and hardware
With reference to mode realize.It is the processing by equipment where it as the device on a logical meaning exemplified by implemented in software
Corresponding computer program instructions in nonvolatile memory are read what operation in internal memory was formed by device.From hardware view
Speech, a kind of hardware configuration of equipment where this specification Icon Color changeable device can include processor, network interface, internal memory
And outside nonvolatile memory, the equipment in embodiment where device changes actual functional capability generally according to the Icon Color,
Other hardware can also be included, this is repeated no more.
Referring to Fig. 8, the module map of the Icon Color changeable device provided for the embodiment of this specification one, can apply in visitor
Family end, described device include:
First determining unit 810, determines target icon;
Acquiring unit 820, obtain the target icon and correspond to the custom color configured in application program;
Second determining unit 830, the situation of the custom color change configured in application program is corresponded in the target icon
Under, determine the custom color after the change;
Display unit 840, according to the custom color and the incidence relation of the color of target icon, by the target icon
Color be shown as the custom color after the change.
In an optional embodiment:
The custom color includes the theme color of application program.
In an optional embodiment:
The set-up mode of the custom color includes at least one of in the following manner:
First sets subelement, and custom color is set according to the word for representing actual color;
Second sets subelement, and custom color is set according to RBG three primary colors;
3rd sets subelement, and custom color is set according to actual color.
In an optional embodiment:
Before the display unit 840, described device also includes:
Subelement is obtained, the color of background area where obtaining the target icon;
Judgment sub-unit, judge whether the custom color after the change is similar to the color of the background area;
The display unit 840, is specifically included:
In the case of the color dissmilarity of custom color after the change and the background area, made by oneself according to described
The incidence relation of the color of adopted color and target icon, the color of the target icon is shown as the custom color after change.
In an optional embodiment:
The judgment sub-unit, is specifically included:
First gray count subelement, calculate the first gray value of the custom color after the change;
Second gray count subelement, calculate the second gray value of the background area color;
Threshold decision subelement, judges whether the difference of first gray value and the second gray value is less than threshold value;
First determination subelement, in the case where whether the difference of first gray value and the second gray value is less than threshold value,
Determine that the custom color after the change is similar to the color of the background area;
Second determination subelement, whether it is not less than the situation of threshold value in the difference of first gray value and the second gray value
Under, determine that the custom color after the change and the color of the background area are dissimilar.
In an optional embodiment:
Described device also includes:
Taxon, classified according to the color of icon.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of this specification scheme.Those of ordinary skill in the art are not
In the case of paying creative work, you can to understand and implement.
Figure 8 above describes inner function module and the structural representation of Icon Color changeable device, its substantial execution
Main body can be a kind of electronic equipment, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Determine target icon;
Obtain the target icon and correspond to the custom color configured in application program;
In the case where the target icon corresponds to the custom color change configured in application program, after determining the change
Custom color;
According to the custom color and the incidence relation of the color of target icon, the color of the target icon is shown as
Custom color after the change.
Optionally, the custom color includes the theme color of application program.
Optionally, the set-up mode of the custom color includes at least one of in the following manner:
Word according to actual color is represented sets custom color;
According to RBG three primary colors, custom color is set;
Custom color is set according to actual color.
Optionally, described according to the custom color and the incidence relation of the color of target icon, by the target figure
Target color is shown as before the custom color after the change, in addition to:
The color of background area where obtaining the target icon;
Judge whether the custom color after the change is similar to the color of the background area;
It is described according to the custom color and the incidence relation of the color of target icon, the color of the target icon is shown
The custom color being shown as after the change, is specifically included:
In the case of the color dissmilarity of custom color after the change and the background area, made by oneself according to described
The incidence relation of the color of adopted color and target icon, the color of the target icon is shown as the custom color after change.
Optionally, whether the custom color that judges after the change is similar to the color of the background area, specifically
Including:
Calculate the first gray value of the custom color after the change;
Calculate the second gray value of the background area color;
Judge whether the difference of first gray value and the second gray value is less than threshold value;
In the case where whether the difference of first gray value and the second gray value is less than threshold value, after determining the change
Custom color is similar to the color of the background area;
In the case where whether the difference of first gray value and the second gray value is not less than threshold value, after determining the change
Custom color and the background area color it is dissimilar.
Optionally, in addition to:
Classified according to the color of icon.
In the embodiment of above-mentioned electronic equipment, it should be appreciated that the processor can be CPU (English:
Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English:
Digital Signal Processor, referred to as:DSP), application specific integrated circuit (English:Application Specific
Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor can also be
Any conventional processor etc., and foregoing memory can be read-only storage (English:Read-only memory, abbreviation:
ROM), random access memory (English:Random access memory, referred to as:RAM), flash memory, hard disk or solid
State hard disk.The step of method with reference to disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and perform completion, or
Hardware and software module combination in person's processor perform completion.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Set especially for electronics
For standby embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is real referring to method
Apply the part explanation of example.
Those skilled in the art will readily occur to this specification after considering specification and putting into practice invention disclosed herein
Other embodiments.This specification is intended to any modification, purposes or adaptations of this specification, these modifications,
Purposes or adaptations follow the general principle of this specification and undocumented in the art including this specification
Common knowledge or conventional techniques.Description and embodiments be considered only as it is exemplary, the true scope of this specification and
Spirit is pointed out by following claim.
It should be appreciated that the precision architecture that this specification is not limited to be described above and is shown in the drawings,
And various modifications and changes can be being carried out without departing from the scope.The scope of this specification is only limited by appended claim
System.