The content of the invention
Existing in the prior art in order to solve the problems, such as, at least one embodiment of the present invention provides a kind of application program
Interface background color setting method and device.
In a first aspect, the embodiment of the present invention discloses a kind of interface background color setting method of application program, applied to end
End, including:
Obtain rating result of the application program to the security of the terminal;
According to default rating result and the correspondence of color, the corresponding color of the rating result is determined;
The background color at the interface of the application program is arranged to the corresponding color of the rating result.
Optionally, it is described to obtain rating result of the application program to the security of the terminal, including:
When the icon for detecting the application program is clicked, last rating result is obtained.
Optionally, it is described to obtain rating result of the application program to the security of the terminal, including:
Detect the security the grading whether application program is carrying out the terminal;
If so, after the application program is completed to the security grading of the terminal, rating result is obtained.
Optionally, the method further includes:
After detecting that the application program proceeds by the security grading of the terminal, the application program is obtained
The current background color at interface;
Determine the corresponding current ratings result of the current background color;
Judge whether the current ratings result is the corresponding rating result of worst grading;
If it is not, then after the application program detects security risk data, the back of the body at the interface of the application program is controlled
Scape color is changed from the current background color to color of object;The color of object is the corresponding knot of grading of the worst grading
Color corresponding to fruit.
Optionally, the background color at the interface of the control application program is from the current background color to target face
Color change, including:
The background color at the interface of the application program is controlled from the current background color to color of object gradual change.
Second aspect, the interface background color that a kind of application program is also disclosed in the embodiment of the present invention set device, are applied to
Terminal, including:
First acquisition unit, for obtaining rating result of the application program to the security of the terminal;
First determination unit for the correspondence according to default rating result and color, determines the rating result
Corresponding color;
Setting unit, for the background color at the interface of the application program to be arranged to the corresponding face of the rating result
Color.
Optionally, the first acquisition unit during specifically for being clicked in the icon for detecting the application program, obtains
Take last rating result.
Optionally, the first acquisition unit, is specifically used for:
Detect the security the grading whether application program is carrying out the terminal;
If so, after the application program is completed to the security grading of the terminal, rating result is obtained.
Optionally, described device further includes:
Second acquisition unit is detecting that the application program proceeds by the terminal for the first acquisition unit
Security grading after, obtain the current background color at the interface of the application program;
Second determination unit, for determining the corresponding current ratings result of the current background color;
Judging unit, for judging whether the current ratings result is the corresponding rating result of worst grading;
Control unit judges that the current ratings result is not the corresponding grading knot of worst grading for the judging unit
After fruit, after the application program detects security risk data, control the application program interface background color by
The current background color changes to color of object;The color of object is corresponding to the corresponding rating result of the worst grading
Color.
Optionally, described control unit judges that the current ratings result is not worst specifically for the judging unit
After corresponding rating result of grading, after the application program detects security risk data, the application program is controlled
The background color at interface is from the current background color to color of object gradual change.
As it can be seen that at least one embodiment of the present invention, by pre-establishing the correspondence of rating result and color, from
And can determine the color corresponding to the rating result of the current security of terminal, and by the background color phase at the interface of application program
It should adjust so that user is beating without understanding the current security of terminal by searching for the predeterminated position of rating result
Can the current security of terminal quickly be understood according to Application Program Interface background color in time after opening application program.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained on the premise of creative work is not made, belong to the scope of protection of the invention.
In a first aspect, as shown in Figure 1, the embodiment of the present invention discloses a kind of interface background color setting side of application program
Method, applied to terminal, it may include following steps 101 to 103:
101st, rating result of the application program to the security of the terminal is obtained.
In the present embodiment, this method can be applied to can to install in any kind of terminal of application program namely the party
The executive agent of method is application program, is, for example, security classes application program, and terminal is, for example, that smart mobile phone, tablet computer etc. is whole
End.
In the present embodiment, the rating result of security for example including:There are risk (at risk), dangerous (in
Danger it is) and safe (safe).
In the present embodiment, the rating result of security obtains after being graded by application program to the security of terminal.
102nd, according to default rating result and the correspondence of color, the corresponding color of the rating result is determined.
In the present embodiment, the correspondence of rating result and color, such as rating result are pre-established as there are risk (at
Risk) corresponding color is yellow;Rating result is red for dangerous (in danger) corresponding color;Rating result is
The corresponding color of safety (safe) is blueness.
In the present embodiment, after the correspondence of rating result and color is pre-established, you can in acquisition described in step 101
After application program is to the rating result of the security of the terminal, the corresponding color of the rating result is determined.
103rd, the background color at the interface of the application program is arranged to the corresponding color of the rating result.
In the present embodiment, application program for example provides following four kinds of functions:Rubbish cleaning, mobile phone acceleration, application lock and text
Part scans, then these four functions correspond to different operation interfaces respectively namely user clicks on some function and can enter the function phase
The operation interface answered, wherein, application lock is used to lock other applications, locks for example, biological lock or coded lock, biology
Lock for example, Fingerprint Lock or iris lock, coded lock are, for example, digital phase-locking or gesture lock, and the unlock of digital phase-locking is needing user's input just
True numerical ciphers, the unlock of gesture lock need user to input correct gesture password.
In the present embodiment, the background color at all default interfaces of the application program can be disposed as the grading
As a result corresponding color, after a certain function of user's click application program operation interface corresponding into the function, the operation
The background color at interface is also the corresponding color of rating result, understands the security of terminal at any time convenient for user, solves due to boundary
Not the problem of interface after the switching and switching in face does not provide Terminal security information, user is caused not know Terminal security.
As it can be seen that the interface background color setting method of application program disclosed in the present embodiment, by pre-establishing grading knot
Fruit and the correspondence of color so as to can determine the color corresponding to the rating result of the current security of terminal, and will be applied
The background color at the interface of program accordingly adjusts so that user by searching for the predeterminated position of rating result without understanding terminal
Current security, but quickly can in time be understood eventually according to Application Program Interface background color after application program is opened
Hold current security.
Grading knot of the application program to the security of the terminal is obtained in a specific example, described in step 101
Fruit, specially:When the icon for detecting the application program is clicked, last rating result is obtained.
In the present embodiment, detect that the icon of the application program is clicked, illustrate that user opens application program.
In the present embodiment, in order to which user is made just to will appreciate that the security of terminal after application program launching, detecting
When stating the icon of application program and being clicked, last rating result is obtained, and then should according to the corresponding color modification of rating result
With the color of the background of program, determine rating result without carrying out security grading to terminal again, user is made quickly to understand
The security of terminal.
Grading knot of the application program to the security of the terminal is obtained in a specific example, described in step 101
Fruit, it may include the following steps 1011 and 1012 not shown in Fig. 1:
1011st, the security the grading whether application program is carrying out the terminal is detected;If so, perform step
1012。
1012nd, after the application program is completed to the security grading of the terminal, rating result is obtained.
In the present embodiment, the last rating result that application program obtains after opening may be due to last time grading operation
Time and current time between time interval it is longer and inaccurate, therefore, if detecting the application program is carrying out institute
The security grading of terminal is stated, illustrates user it should be understood that the current security of terminal, so needing complete in the application program
After the security grading of the paired terminal, rating result is obtained.
In a specific example, method shown in FIG. 1 may also include following steps 104 not shown in Fig. 1 to
107:
104th, after detecting that the application program proceeds by the security grading of the terminal, obtain described using journey
The current background color at the interface of sequence;
105th, the corresponding current ratings result of the current background color is determined;
106th, judge whether the current ratings result is the corresponding rating result of worst grading;If it is not, then perform step
107。
107th, after the application program detects security risk data, the background face at the interface of the application program is controlled
Color is changed from the current background color to color of object;The color of object is the worst corresponding rating result institute of grading
Corresponding color.
In the present embodiment, if judging the current ratings result in step 106 for the corresponding rating result of worst grading,
Do not change the background color at the interface of the application program, maintain the corresponding color of the corresponding rating result of worst grading, such as
It is red.
In the present embodiment, after the application program detects security risk data, the interface of the application program is controlled
Background color from the current background color to color of object change so that user can understand the current security of terminal in time
Variation.
In a specific example, the background color at the interface of the control application program described in step 107 is by institute
It states current background color to color of object to change, is specially:The background color at the interface of the application program is controlled to be worked as by described
Preceding background color is to color of object gradual change.
In the present embodiment, it is contemplated that detection process needs continue for some time, and the security risk data detected are also
Gradually increase, therefore, it is necessary to control the background color at the interface of the application program from the current background color to target face
Color gradual change, so as to reflect state that the security risk data detected gradually increase, solve color change brought to user it is prominent
Towering sense promotes the usage experience of user.
In the present embodiment, the control of color gradient is the mature technology of image processing field, and the present embodiment repeats no more.
Second aspect, as shown in Fig. 2, the interface background color that the embodiment of the present invention discloses a kind of application program sets dress
It puts, applied to terminal, it may include with lower unit:First acquisition unit 21, the first determination unit 22 and setting unit 23.Each unit
It is described as follows:
First acquisition unit 21, for obtaining rating result of the application program to the security of the terminal;
First determination unit 22 for the correspondence according to default rating result and color, determines the grading knot
The corresponding color of fruit;
Setting unit 23, it is corresponding for the background color at the interface of the application program to be arranged to the rating result
Color.
In a specific example, the first acquisition unit 21, specifically for detecting the application program
When icon is clicked, last rating result is obtained.
In a specific example, the first acquisition unit 21 is specifically used for:
Detect the security the grading whether application program is carrying out the terminal;
If so, after the application program is completed to the security grading of the terminal, rating result is obtained.
In a specific example, device shown in Fig. 2 may also include not shown in Fig. 2 such as lower unit:
Second acquisition unit 24 is detecting that it is described that the application program proceeds by for the first acquisition unit 21
After the security grading of terminal, the current background color at the interface of the application program is obtained;
Second determination unit 25, for determining the corresponding current ratings result of the current background color;
Judging unit 26, for judging whether the current ratings result is the corresponding rating result of worst grading;
Control unit 27 judges that the current ratings result is not that worst grading is corresponding and comments for the judging unit 26
After grade result, after the application program detects security risk data, the background face at the interface of the application program is controlled
Color is changed from the current background color to color of object;The color of object is the worst corresponding rating result institute of grading
Corresponding color.
In a specific example, described control unit 27 judges described current specifically for the judging unit 26
After rating result is not the corresponding rating result of worst grading, after the application program detects security risk data, control
The background color at the interface of the application program is made from the current background color to color of object gradual change.
The interface background color of application program disclosed in above example sets device that can realize that first aspect is respectively implemented
The flow of the interface background color setting method of application program, to avoid repeating, repeats no more disclosed in example.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
It combines to realize.For hardware realization, processing unit can be realized in one or more application-specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
Controller, microcontroller, microprocessor, for perform other electronic units of herein described function or its combination in.
For software implementations, the techniques described herein can be realized by performing the unit of function described herein.Software generation
Code is storable in memory and is performed by processor.Memory can in the processor or portion realizes outside the processor.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is performed with hardware or software mode, specific application and design constraint depending on technical solution.Professional technician
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided herein, it should be understood that disclosed apparatus and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can be electrical, machinery or other forms.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That unit is individually physically present, can also two or more units integrate in a unit.
If the function is realized in the form of SFU software functional unit and is independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, the technical solution of the embodiment of the present invention is substantially
The part to contribute in other words to the prior art or the part of the technical solution can be embodied in the form of software product
Come, which is stored in a storage medium, is used including some instructions so that a computer equipment (can
To be personal computer, server or the network equipment etc.) perform all or part of each embodiment the method for the present invention
Step.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can to store program
The medium of code.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those elements, and
And it further includes other elements that are not explicitly listed or further includes as this process, method, article or device institute inherently
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or device.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it
Between there are any actual relationship or orders.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.