Summary of the invention
The invention provides text color changing method, device and mobile terminal that a kind of application describes, to overcome in prior art after user arranges the desktop wallpaper liked, if the color that the color on this wallpaper and the application on desktop describe is close, application on desktop is caused to describe the problem that effectively cannot be identified by user.
The invention provides a kind of text color change method that application describes, comprising:
Detect the first color of multiple positions of the wallpaper on desktop;
Extract the second color of the word that application corresponding to application icon on described desktop describes;
Judge that whether described first color is close with described second color;
When described first color is close with described second color, change described second color.
Further, in the text color change method that above-mentioned application describes, judge that whether described first color is close with described second color, can comprise:
Calculate the similarity of the colourity of described first color and the colourity of described second color;
Judge whether described similarity is greater than or equal to predetermined threshold value;
When described similarity is greater than or equal to described predetermined threshold value, determine that described first color is close with described second color, otherwise described first color is not close with described second color.
Further, in the text color change method that above-mentioned application describes, before calculating the similarity of the colourity of described first color and the colourity of described second color, described method also comprises:
Obtain the colourity of described first color and the colourity of described second color.
Further, in the text color change method that above-mentioned application describes, before the first color of multiple positions of described detection wallpaper, described method also comprises:
Detect and determine that described wallpaper is used.
Further, in the text color change method that above-mentioned application describes, change described second color, specifically comprise:
Described second color is changed to the 3rd color; The colourity of described 3rd color is different from the colourity of described second color.
Further, in the text color change method that above-mentioned application describes, before described second color is changed to the 3rd color, described method also comprises:
Eject ColorDialog, described ColorDialog comprises multiple color;
Receive described 3rd color that user is selected from described multiple color by human-machine interface module.
The text color change device that the present invention also provides a kind of application to describe, comprising:
Detection module, for detecting the first color of multiple positions of the wallpaper on desktop;
Extraction module, for extracting the second color of the word that application corresponding to application icon on described desktop describes;
Judge module, for judging that whether described first color is close with described second color;
Change module, when showing that described first color is close with described second color for described judge module, changes described second color.
Further, in the text color change device that above-mentioned application describes, described judge module specifically comprises:
Computing unit, for the similarity of the colourity of the colourity and described second color that calculate described first color;
Judging unit, for judging whether described similarity is greater than or equal to predetermined threshold value;
Determining unit, for being greater than or equal to described predetermined threshold value when described similarity, determine that described first color is close with described second color, otherwise described first color is not close with described second color.
Further, in the text color change device that above-mentioned application describes, described judge module also comprises:
Acquiring unit, for the colourity of the colourity and described second color that obtain described first color.
Further, in the text color change device that above-mentioned application describes, described detection module, also for detecting and determining that described wallpaper is used.
Further, in the text color change device that above-mentioned application describes, described change module, specifically for changing to the 3rd color by described second color.
Further, in the text color change device that above-mentioned application describes, described device also comprises:
Pop-up module, for ejecting ColorDialog, described ColorDialog comprises multiple color;
Receiver module, for receiving described 3rd color that user is selected from described multiple color by human-machine interface module.
The present invention also provides a kind of mobile terminal, mobile terminal comprises the text color change device that above-mentioned application describes.
The text color changing method that application of the present invention describes, equipment and mobile terminal, by detecting the first color of multiple positions of wallpaper on desktop, extract the second color of the application description that on desktop, each application icon is corresponding, first color and the second color are contrasted, when the second color is close with the first color, change the second color, solve after user in prior art arranges the desktop wallpaper of mobile terminal, to should on desktop the application of each application icon to describe the color preset close with the color of desktop wallpaper, cause desktop being applied the problem that effectively cannot be identified by user, achieve user when wallpaper is arranged to mobile terminal desktop, the text color that the intelligentized application of the color change mobile terminal desktop according to wallpaper describes, so that user can identify the word that application describes from the wallpaper of desktop, thus the wallpaper demand of user to shades of colour can be met, improve user experience.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of an embodiment of the text color change method of the present invention's application description, and as shown in Figure 1, the text color change method of the application description of the present embodiment, specifically can comprise the steps:
101, the first color of multiple positions of the wallpaper on desktop is detected;
User in the process using mobile terminal, when wanting to change desktop wallpaper after changing, open detection function, detects multiple positions of the wallpaper on desktop.The position detected, can be that desktop is divided into homalographic region, choose each regional center point; Also can be randomly distributed point; It can also be the point of multiple color diverse locations of wallpaper on desktop; It can also be again the region that application corresponding to each desktop application describes below.After detection completes, record the color of multiple position respectively as the first color.
Second color of the word that the application that the application icon 102, on extraction desktop is corresponding describes;
The mobile terminal desktop that user uses all can there is at least one application icon, such as time, date, note, dialing, address list, extract the color of application descriptive text corresponding to these application icons, be recorded as the second color.
103, judge that whether the first color is close with the second color; If similar, perform step 104; If dissimilar, terminate.
Wherein when the first color is not close with the second color, illustrate that the color of this desktop wallpaper can not hinder user to watch the word of application description, now need not revise the word that application corresponding to application icon describes.The text color change method now applying description exits, and no longer continues to perform change color.
104, the second color is changed.
If the second color of the application descriptive text that the first color of the desktop wallpaper detected is corresponding with application icon is similar, then change the second color.The color of change can be the one of the color pre-set, and also can be a kind of color of random selecting, object be to be different from the first color and the second color, so that user can identify the word that application describes from the wallpaper of desktop.
The text color change method of the application description of the present embodiment, by detecting the first color of multiple positions of wallpaper on desktop, the second color that the application that application icon on extraction desktop is corresponding describes, when the first color and the second color akin time, second color is changed, solve in prior art, after user arranges the desktop wallpaper of mobile terminal, to should on desktop the application of each application icon to describe the second color preset close with the first color of desktop wallpaper, cause desktop being applied the problem that effectively cannot be identified by user, achieve user when wallpaper is arranged to mobile terminal desktop, the text color that the intelligentized application of the color change mobile terminal desktop according to wallpaper describes, so that user can identify the word that application describes from the wallpaper of desktop, thus the wallpaper demand of user to shades of colour can be met, improve user experience.
Further, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, " step 103 " is described in detail.Particularly, judge that whether the first color is close with the second color, specifically can comprise:
(1) similarity of the colourity of the first color and the colourity of the second color is calculated;
(2) judge whether similarity is greater than or equal to predetermined threshold value; When similarity is greater than or equal to predetermined threshold value, perform step (3); Otherwise the first color is not close with the second color, terminate.
(3) determine that the first color is close with the second color.
Particularly, color has colourity and brightness two property parameters, and brightness is the impression of people to the intensity of light, and colourity is tone and the saturation degree of color.Especially colourity is this colouring discrimination of mark and other colors unique because identifying.Therefore utilize colourity in above-described embodiment to judge the first color whether close with the second color.
Particularly, the calculating formula of similarity of in related art two parameters can be adopted in above-described embodiment to calculate the degree of approximation of the colourity of the first color and the colourity of the second color, with reference in related art, can not repeat them here in detail.Wherein predetermined threshold value can be arranged according to the actual requirements, such as, can be 80% or 85% or 90% etc.
Further, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, for before " calculating the similarity of the colourity of the first color and the colourity of the second color ", the text color change method that the application of the present embodiment describes can also comprise: obtain the colourity of the first color and the colourity of the second color.
Further, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, before " step 101 ", the text color change method that the application of above-described embodiment describes can also comprise: detect and determine that wallpaper is used.That is, the text color change method that application of the present invention describes starts when user changes wallpaper each time.
Further, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, " step 104 " can also comprise: the second color is changed to the 3rd color.
Particularly, select a kind of new color different from the second color after change as the 3rd color.
Further, on the basis of above-mentioned technical scheme embodiment illustrated in fig. 1, before the second color is changed to the 3rd color, can also comprise: eject ColorDialog, ColorDialog comprises multiple color, and multiple color can be all dissimilar with the second color; Receive the 3rd color that user is selected from multiple color by human-machine interface module.
Particularly, in actual applications, user can click corresponding color replacement button in interface, eject a dialog box, content comprises multiple color and selects for user, and the color further in dialog box is can for not having the color of similarity according to multiple and second color of the second color preliminary election of wallpaper.No matter which color user selects from dialog box, all can not affect user and check the word that the application of desktop describes.User can select a kind of color as the 3rd color from multiple color, and click is determined, the second color of the word that the application that on desktop, each application is corresponding describes changes to the 3rd color of user's selection.
In practical application, after user has changed color, if be also unsatisfied with, can also manually gone the setting of searching desktop, from palette, manually select the color wanted, to change the color of word desktop being applied description.
Fig. 2 is the process flow diagram of the another embodiment of the text color change method of the present invention's application description, the text color change method of the application description of the present embodiment, on the basis of the technical scheme of above-described embodiment, introduce technical scheme of the present invention in further detail further.As shown in Figure 2, the text color change method of the application description of the present embodiment, specifically can comprise the steps:
201, detect and determine that wallpaper is used;
Particularly, the text color replacing options that the application in the present embodiment describes is started when each confirmation wallpaper uses.
202, detect the first color of multiple positions of the wallpaper on desktop, perform step 203;
Second color of the word that the application that the application icon 203, on extraction desktop is corresponding describes, performs step 204;
204, obtain the colourity of the first color and the colourity of the second color, perform step 205;
205, the similarity of the colourity of the first color and the colourity of the second color is calculated;
206, judge whether similarity is more than or equal to predetermined threshold value; If be more than or equal to, perform step 207; If be less than, terminate.
207, eject ColorDialog, perform step 208;
208, receive the 3rd color in the ColorDialog that user selected by human-machine interface module, perform step 209;
The colourity of the 3rd color in the present embodiment is different from the colourity of the second color.
209, the second color is changed to the 3rd color.
The text color change method of the application description of the present embodiment, by adopting technique scheme, solve after user in prior art arranges the desktop wallpaper of mobile terminal, to should on desktop the application of each application icon to describe the color preset close with the color of desktop wallpaper, cause desktop being applied the problem that effectively cannot be identified by user, achieve after mobile terminal desktop being arranged according to user, the text color that intelligentized change mobile terminal desktop application describes., according to the needs of user, repeatedly can also change the color of the word that application describes, more hommization and variation, increase interest meanwhile.
Fig. 3 is the structural representation of an embodiment of the text color change device of the present invention's application description, as shown in Figure 3, the text color change device that the application of the present embodiment describes can comprise: detection module 11, extraction module 12, judge module 13 and change module 14.
Wherein, detection module 11 is for detecting the first color of multiple positions of the wallpaper on desktop; Second color of word of extraction module 12 for extracting application corresponding to application icon on desktop and describing; Judge module 13 is connected with detection module 11 and extraction module 12 respectively, and whether this judge module 13 is close with the second color that extraction module 12 extracts for the first color judging detection module 11 and detect; Change module 14 is connected with judge module 13 respectively, and this change module 14 when being subject to judge module 13 and triggering, can start.This change module 14 for when judge module 13 judges that the first color is close with the second color, the second color of the word that application corresponding to application icon on change desktop describes.Particularly, when judge module 13 judges that the first color is close with the second color, start change module 14, change module 14 changes the second color.
The text color that the application of the present embodiment describes changes device, and may be used for the technical scheme performing embodiment of the method shown in Fig. 1, it is similar that it realizes principle, repeats no more herein.
The text color that the application of the present embodiment describes changes device, by adopting above-mentioned module, solve in prior art, after user arranges the desktop wallpaper of mobile terminal, to should on desktop the application of each application icon to describe the color preset close with the color of desktop wallpaper, cause desktop being applied the problem that effectively cannot be identified by user, achieve user when wallpaper is arranged to mobile terminal desktop, the text color that the intelligentized application of the color change mobile terminal desktop according to wallpaper describes, so that user can identify the word that application describes from the wallpaper of desktop, thus the wallpaper demand of user to shades of colour can be met, improve user experience.
Fig. 4 is the structural representation of the another embodiment of the text color change device of the present invention's application description, as shown in Figure 4, the device of the present embodiment is on the basis of Fig. 3 shown device structure, further, judge module 13 specifically can comprise: acquiring unit 131, computing unit 132, judging unit 133 and determining unit 134.
Wherein, acquiring unit 131 is connected with detection module 11 and extraction module 12 respectively, and acquiring unit 131 detects the colourity of the colourity of the first color obtained and the second color of extraction module 12 extraction for obtaining detection module 11; Computing unit 132 is connected with acquiring unit 131, and this computing unit 132 is for the similarity of the colourity of the first color that calculates acquiring unit 131 and get and the colourity of the second color; Judging unit 133 is connected with computing unit 132, and whether this judging unit 133 is greater than or equal to predetermined threshold value for the similarity gone out judging computing unit 132 and calculate; Determining unit 134 is connected with judging unit 133, when this determining unit 134 is greater than or equal to predetermined threshold value for obtaining similarity when judging unit 133, determine that the first color is close with the second color, otherwise the first color is not close with the second color.
Further, the detection module 11 in the text color change device of the application description of the present embodiment, also for detecting and determining that the wallpaper that user is arranged is used.
Further, the text color change device originally practicing description can also comprise: pop-up module 15 and receiver module 16.Pop-up module 15 is for ejecting ColorDialog, and ColorDialog comprises multiple color; The 3rd color that receiver module 16 is selected by human-machine interface module for receiving user from multiple color.Pop-up module 15 specifically can be connected with determining unit 134, trigger pop-up module 15 by determining unit 134 to start, particularly, when determining unit 134 is greater than or equal to predetermined threshold value for obtaining similarity when judging unit 133, determine that the first color is close with the second color, trigger pop-up module 15 and start.
Further, the change module 14 in the text color change device of the application description of the present embodiment is connected with receiver module 16, and change module 14 can also specifically for changing to the 3rd color that receiver module 16 receives by the second color; The colourity of the 3rd color is different from the colourity of the second color.When user is in the process using mobile terminal, think that the text color after changing still affects visual effect, when wanting again to change text color, the second color that change module 14 obtains after being changed first time is changed, again to meet the individual demand of user.
The text color that the application of the present embodiment describes changes device, and may be used for the technical scheme performing embodiment of the method shown in Fig. 2, it is similar that it realizes principle, repeats no more herein.
The text color that the application of the present embodiment describes changes device, by adopting upper module, solve after user in prior art arranges the desktop wallpaper of mobile terminal, to should on desktop the application of each application icon to describe the color preset close with the color of desktop wallpaper, cause desktop being applied the problem that effectively cannot be identified by user, achieve after mobile terminal desktop being arranged according to user, the text color that intelligentized change mobile terminal desktop application describes., according to the needs of user, repeatedly can also change the color of word, more hommization and variation, increase interest meanwhile.
The present invention also provides a kind of mobile terminal, this mobile terminal is provided with the text color change device that the application as above shown in Fig. 3 or Fig. 4 describes, and the text color change method that the application shown in above-mentioned Fig. 1 or Fig. 2 specifically can be adopted to describe realizes color change, with reference to the record of above-mentioned illustrated embodiment, can not repeat them here in detail.
Be understandable that, in embodiments of the invention, mobile terminal can be the hardware device that mobile phone etc. has various operating system.
The text color change method that application described in the embodiment of the present invention describes can run in the mobile terminal of the operating systems such as the Android for Portable movable smart machine (Android) operating system platform, the iOS operating system platform for Portable movable smart machine of Apple's exploitation or the Windows Phone operating system platform for Portable movable smart machine of Microsoft's exploitation being provided with Google's exploitation.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.