CN107844357A - Adjust the method, apparatus and terminal of widget outward appearance - Google Patents

Adjust the method, apparatus and terminal of widget outward appearance Download PDF

Info

Publication number
CN107844357A
CN107844357A CN201711122132.1A CN201711122132A CN107844357A CN 107844357 A CN107844357 A CN 107844357A CN 201711122132 A CN201711122132 A CN 201711122132A CN 107844357 A CN107844357 A CN 107844357A
Authority
CN
China
Prior art keywords
widget
matching
color
colouring information
information
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.)
Pending
Application number
CN201711122132.1A
Other languages
Chinese (zh)
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 CN201711122132.1A priority Critical patent/CN107844357A/en
Publication of CN107844357A publication Critical patent/CN107844357A/en
Pending legal-status Critical Current

Links

Abstract

The present invention provides a kind of method for adjusting widget outward appearance, by the colouring information for obtaining desktop wallpaper, then matched matching picture or matching color are determined according to colouring information, again to match picture the background of widget is replaced or the background colour of widget is replaced with matching color, it can make it that widget and desktop wallpaper seem coordination in appearance, so that terminal desktop is more attractive in appearance, the frequency that user uses widget is improved.The present invention also provides a kind of device for adjusting widget outward appearance and corresponding terminal.

Description

Adjust the method, apparatus and terminal of widget outward appearance
Technical field
The present invention relates to terminal display technology field, specifically, the present invention relates to a kind of method for adjusting widget outward appearance, Device and terminal.
Background technology
Widget (widget) is a kind of based on network, the practical small tool that independently can be run in desktop, will can be applied The presentation of information of program push quickly and easily shows the information of application program on the desktop of mobile terminal.Typically to Certain function is realized, and the useful information of various personalizations is shown to user.User can enjoy news reading, day by widget The business such as gas information, picture browsing.For example, news widget can show hot news on the table, weather widget can be shown The regional Weather information of user's customization, CPU widgets can be searched with service condition current display terminal CPU in addition with desktop Rope widget, stock widget etc..
In recent years, in the market is also gradually popular is presented three-dimensional dynamic three-dimensional widget so that widget will in operation by user Show Three-Dimensional Dynamic effect.For example, 360OS 2.0 is proposed brand-new 3Dwidget, three-dimensional, suspension and torsion etc. have been incorporated Novel teachings, allow widget to be no longer stiff graphical symbol, but present the spherical state of lively stereo suspending.
But most of developers do not notice:Due to the outward appearance that widget is usually fixed, for often changing desktop wall For the user of paper, widget may be difficult to mutually coordinate with desktop wallpaper in appearance, so that desktop and plain, is reduced User uses the enthusiasm of widget.
The content of the invention
The purpose of the present invention is intended at least to solve one of above-mentioned technological deficiency, particularly widget may be difficult in appearance With the technological deficiency mutually coordinated with desktop wallpaper.
The present invention provides a kind of method for adjusting widget outward appearance, comprises the following steps:
Obtain the colouring information of desktop wallpaper;
Matched matching picture or matching color are determined according to the colouring information;
The background of widget is replaced with the matching picture or the background colour of widget carried out with the matching color Replace.
In one of the embodiments, the step of colouring information of the acquisition desktop wallpaper includes:
When listening to desktop wallpaper and being updated, the colouring information of desktop wallpaper is obtained.
In one of the embodiments, the step of colouring information of the acquisition desktop wallpaper includes:
When receiving the adjust instruction of user's input, the colouring information of desktop wallpaper is obtained.
In one of the embodiments, methods described is applied to Android system, and desktop wallpaper is obtained using Palette classes Colouring information.
In one of the embodiments, it is described that matched matching picture or matching face are determined according to the colouring information The step of color, includes:
According to the matching color that the colouring information determines with it is same colour system or same color, or primary color and its For same colour system or the matching picture of same color.
In one of the embodiments, it is described that matched matching picture or matching face are determined according to the colouring information The step of color, includes:
For determining to match with the colouring information, current time information according to the colouring information, current time information With picture.
In one of the embodiments, it is described that matched matching picture or matching face are determined according to the colouring information The step of color, includes:
With the colouring information, current season information matches is determined according to the colouring information, current season information With picture.
In one of the embodiments, it is described that its matching picture matched or matching color are determined according to the colouring information The step of include:
For determining to match with the colouring information, current location information according to the colouring information, current location information With picture.
In one of the embodiments, multiple matched matching pictures or a variety of are determined according to the colouring information Mix colours, alternately replacement is carried out to the background of widget or with a variety of matching colors to widget with multiple described matching pictures Background colour carries out alternately replacement.
In one of the embodiments, when receiving the preset touch instruction of user's input, the widget is according to Three-Dimensional Dynamic effect corresponding to preset touch instruction displaying.
The present invention also provides a kind of device for adjusting widget outward appearance, including:
Acquisition module, for obtaining the colouring information of desktop wallpaper;
Analysis module, for determining matched matching picture or matching color according to the colouring information;
Adjusting module, for being replaced with the matching picture to the background of widget or with the matching color to widget Background colour be replaced.
In one of the embodiments, the acquisition module is used for:
When listening to desktop wallpaper and being updated, the colouring information of desktop wallpaper is obtained.
In one of the embodiments, the acquisition module is used for:
When receiving the adjust instruction of user's input, the colouring information of desktop wallpaper is obtained.
In one of the embodiments, described device is applied to Android system, and the acquisition module application Palette classes obtain Take the colouring information of desktop wallpaper.
In one of the embodiments, the analysis module is used for:
According to the matching color that the colouring information determines with it is same colour system or same color, or primary color and its For same colour system or the matching picture of same color.
In one of the embodiments, the analysis module is used for:
For determining to match with the colouring information, current time information according to the colouring information, current time information With picture.
In one of the embodiments, the analysis module is used for:
With the colouring information, current season information matches is determined according to the colouring information, current season information With picture.
In one of the embodiments, the analysis module is used for:
For determining to match with the colouring information, current location information according to the colouring information, current location information With picture.
In one of the embodiments, the adjusting module is used for:Determined according to the colouring information matched more Matching picture or a variety of matching colors are opened, alternately replacement is carried out to the background of widget or with multiple described matching pictures with described more Kind matching color carries out alternately replacement to the background colour of widget.
In one of the embodiments, in addition to display module, the display module are used for:Receiving user's input When preset touch instructs, widget Three-Dimensional Dynamic effect according to corresponding to preset touch instruction displaying.
The present invention also provides a kind of terminal, and it includes:
Touch-sensitive display;
One or more processors;
Memory;
One or more application programs, wherein one or more of application programs are stored in the memory and quilt It is configured to be configured to by one or more of computing devices, one or more of programs:It is real to perform any of the above-described The method for applying the adjustment widget outward appearance described in example.
The method, apparatus and terminal of above-mentioned adjustment widget outward appearance, by obtaining the colouring information of desktop wallpaper, Ran Hougen Matched matching picture or matching color are determined according to the colouring information, then the background of widget is entered with the matching picture Row is replaced or the background colour of widget is replaced with the matching color, and widget can be caused to show in appearance with desktop wallpaper It must coordinate so that terminal desktop is more attractive in appearance, improves the frequency that user uses widget.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the method flow diagram of the adjustment widget outward appearance of one embodiment;
Fig. 2 is the apparatus module figure of the adjustment widget outward appearance of an embodiment;
Fig. 3 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is individual ", " described " and "the" may also comprise plural form.It is to be further understood that what is used in the specification of the present invention arranges Diction " comprising " refer to the feature, integer, step, operation, element and/or component be present, but it is not excluded that in the presence of or addition One or more other features, integer, step, operation, element, component and/or their groups.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), there is the general understanding identical meaning with the those of ordinary skill in art of the present invention.Should also Understand, those terms defined in such as general dictionary, it should be understood that have with the context of prior art The consistent meaning of meaning, and unless by specific definitions as here, idealization or the implication of overly formal otherwise will not be used To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication The equipment of number receiver, it only possesses the equipment of the wireless signal receiver of non-emissive ability, includes receiving again and transmitting hardware Equipment, its have on both-way communication link, can perform both-way communication reception and launch hardware equipment.This equipment It can include:Honeycomb or other communication apparatus, it has single line display or multi-line display or shown without multi-line The honeycomb of device or other communication apparatus;PCS (Personal Communications Service, person communication system), it can With combine voice, data processing, fax and/or data communication capabilities;PDA (Personal Digital Assistant, it is personal Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day Go through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, its have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, installed in the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communicating terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone or the equipment such as intelligent television, set top box with music/video playing function.
Fig. 1 is the method flow diagram of the adjustment widget outward appearance of one embodiment.
The present invention provides a kind of method for adjusting widget outward appearance, comprises the following steps:
Step S100:Obtain the colouring information of desktop wallpaper.
Timely adjusted to realize, in the present embodiment, desktop can be obtained when listening to desktop wallpaper and being updated The colouring information of wallpaper.In Android system, when desktop wallpaper is replaced, system will send a desktop wallpaper be replaced it is wide Broadcast, after widget obtains this broadcast, the colouring information of acquisition desktop wallpaper will be removed automatically.Certainly, in certain embodiments, also may be used When receiving adjust instruction (such as user clicks on the specific keys in widget) of user's input, to obtain the face of desktop wallpaper Color information.
The colouring information of desktop wallpaper records the distribution of color situation of desktop wallpaper, can be with generally by graphical analysis Know primary color, main colour system or the prominent color of image, prominent colour system, therefore the colouring information of desktop wallpaper can record Primary color, main colour system or the prominent color of desktop wallpaper, prominent colour system.Colour system refers to that system belonging to color is other, in the industry cycle Classification in, color can be divided into two major classes, be cool colour and warm colour respectively.Warm colour:It is derived by sun color Color, red, yellow, give warm soft sensation.Warm colour includes purple, red, blood orange, orange, yellow orange.Cool colour: Blueness, green, purple belong to cool colour.
For example, if desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, Main colour system namely belong to warm colour, then the colouring information can by obtaining the desktop wallpaper knows that the desktop wallpaper is One width is mainly inclined to the picture of withered yellow or is inclined to the picture of warm colour.In another example if for example, desktop wallpaper is a width spring Greenery forest map, the desktop wallpaper primary color is exactly emerald green, main colour system namely belongs to cool colour, then pass through acquisition The colouring information can of the desktop wallpaper knows that the desktop wallpaper is that a width is mainly inclined to emerald picture or deviation cool colour The picture of system.
The method of the present invention can apply to Android system, and the colouring information of desktop wallpaper is obtained using Palette classes. Palette classes are a help classes that color can be extracted from picture (Bitmap).
The color that Palette can be extracted:Vibrant (great-hearted), Vibrant dark (great-hearted dead color), Vibrant light (great-hearted light tone), Muted (soft), Muted dark (soft dead color), Muted light (soft light tone).
Application method:Quoted in module build.gradle, see below code.
compile'com.android.support:palette-v7:25.3.1'
Use step:
1. Palette objects are obtained, that is, video palette.
Obtaining Palette objects has synchronous and asynchronous two ways, it is proposed that uses asynchronous acquisition Palette objects, sees below Face code.
2. obtain the tinctorial pattern from video palette generation.
Six kinds of tinctorial patterns can be got, but are obtained sometimes less than corresponding tinctorial pattern object, it has to be noted that non-NULL is sentenced It is disconnected.
Palette.Swatch vibrant=palette.getVibrantSwatch ();// great-hearted
Palette.Swatch vibrantDark=palette.getDarkVibrantSwatch ();// vibrant , it is dark-coloured
Palette.Swatch vibrantLight=palette.getLightVibrantSwatch ();// vibrant , light tone
Palette.Swatch muted=palette.getMutedSwatch ();// soft
Palette.Swatch mutedDark=palette.getDarkMutedSwatch ();// soft, it is dark-coloured
Palette.Swatch mutedLight=palette.getLightMutedSwatch ();// soft, it is bright Color
3. respective color is extracted from tinctorial pattern.
Final color value can be obtained by getRgb () and be applied in UI.GetBodyTextColor () and GetTitleTextColor () can obtain the color that word is suitable under this color, and so easily we set the face of word Color, word is set to seem more comfortable.It is the various methods that may need to use below.
swatch.getPopulation():Pixel quantity in sample
swatch.getRgb():The RBG values of color
swatch.getHsl():The HSL values of color
swatch.getBodyTextColor():The color value of main body word
swatch.getTitleTextColor():The color value of caption text
After the colouring information for obtaining desktop wallpaper, step S200 is performed.
Step S200:Matched matching picture or matching color are determined according to colouring information.
With the matches color information of desktop wallpaper, it with it is same colour system or same color that can be, you can with according to table The matching color that the colouring information of surface wallpaper determines with it is same colour system or same color, or primary color with it for of the same colour System or the matching picture of same color.
For example, if desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, Main colour system namely belong to warm colour, then the colouring information can by obtaining the desktop wallpaper knows that the desktop wallpaper is One width is mainly inclined to the picture of withered yellow or is inclined to the picture of warm colour, therefore it can be main deviation withered yellow to match picture Picture or be inclined to warm colour picture, matching color be withered yellow, yellow, orange etc or belong to warm colour.
Matching picture can obtain among the pictures to prestore, and the picture in pictures all puts on corresponding label letter Breath, such as colouring information, attribute information.Attribute information reflects the contents of the picture, such as can be " blue sky " " waterfall " " sunset " " sunrise " " autumn fallen leaves " " spring forest " " Beijing's Imperial Palace " " Mt. Huang in Anhui " etc. reflection picture described content Attribute information.As can be seen that in these attribute informations, reflect picture shooting time, season, place wherein may include Information.Therefore it is determined that matching color or matching picture when, if can be in conjunction with current time, current season or current location To determine, it is clear that can more agree with the current application environment of user.
Therefore in certain embodiments, can according to colouring information, current time information determine with colouring information, it is current when Between information matches matching picture;Or it can be determined and colouring information, current season according to colouring information, current season information Save the matching picture of information matches;Or it can be determined with colouring information, currently according to colouring information, current location information The matching picture of location information matching;It is, of course, also possible to according to current time, current season, current location information group two-by-two Close or three's combination comes together to be matched with the colouring information.
For example, when desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, main Want colour system namely belong to warm colour, and the picture to prestore is concentrated with " sunset " " sunrise " " autumn fallen leaves " this three belongs to warm colour Picture just match.If current time is morning, then obvious " sunrise " this pictures most match;If current season It it is autumn, then obvious " autumn fallen leaves " this pictures most match;If current time is morning and current season is autumn, Then can be by " sunrise " " autumn fallen leaves " this two pictures all as matching picture, or wherein one is randomly selected as matching Picture.
In another example if desktop wallpaper is the greenery forest map in a width spring, the desktop wallpaper primary color is exactly emerald green Color, main colour system namely belongs to cool colour, and the picture to prestore is concentrated with " blue sky " " waterfall " " spring forest " " Mt. Huang in Anhui " This four pictures for belonging to cool colour just match.If current season is spring, then obvious " spring forest " this figure Piece most matches;If current position location is in Anhui, then obvious " Mt. Huang in Anhui " this pictures most match;If work as Preceding season is spring and current position location is Anhui, then can be using this two pictures all as matching picture, or random choosing Wherein one is taken as matching picture.
Therefore, if the color that the picture of matching has multiple or matching has a variety of, can be determined according to colouring information Multiple matched matching pictures or a variety of matching colors, will not be repeated here.After matching picture or matching color is determined, Perform step S300.
Step S300:The background of widget is replaced or with background colour progress of the matching color to widget with matching picture Replace.
Widget (widget) is the small application of desktop, can be displaying terminal state widget, show weather condition widget, The widget of hot news, the widget for showing calendar etc. are shown, is not limited herein.Widget can also be that solid is presented dynamically Three-dimensional widget so that user's widget in operation will show Three-Dimensional Dynamic effect, such as widget can be incorporate it is three-dimensional, suspend with And the stereo suspending ball of novel teachings such as reverse, when user clicks on specific position, the widget of the spherical formula of stereo suspending can be with Reverse or roll simultaneously, user is felt Three-Dimensional Dynamic effect.Therefore, in certain embodiments, user's input is being received Preset touch instruction when, widget according to preset touch instruction displaying corresponding to Three-Dimensional Dynamic effect.
If the color that the picture of matching has multiple or matching has a variety of, it can be determined and it according to colouring information Multiple the matching pictures matched somebody with somebody or a variety of matching colors, alternately replacement is carried out to the background of widget or with multiple matching pictures with a variety of Matching color carries out alternately replacement to the background colour of widget.Such as match and carry out " spring forest " and " Mt. Huang in Anhui " two figures Piece, then alternately replacement is carried out to the background of widget with " spring forest " and " Mt. Huang in Anhui " two pictures;Match come withered yellow, Yellow, these three orange colors, then alternately replacement is carried out to the background colour of widget with these three colors;That is the background of widget can be with Alternately displaying " spring forest " and " Mt. Huang in Anhui " two pictures, or the background colour of widget is with withered yellow, yellow, orange alternately exhibition Show.
Fig. 2 is the apparatus module figure of the adjustment widget outward appearance of an embodiment.
Based on the method for above-mentioned adjustment widget outward appearance, correspondingly, the present invention also provides a kind of dress for adjusting widget outward appearance Put, it includes:Acquisition module 100, analysis module 200 and adjusting module 300.
Acquisition module 100 is used for the colouring information for obtaining desktop wallpaper, and analysis module 200 is used to be determined according to colouring information Matched matching picture or matching color, adjusting module 300 be used for match picture the background of widget is replaced or The background colour of widget is replaced with matching color.
Acquisition module 100 obtains the colouring information of desktop wallpaper.
Timely adjusted to realize, in the present embodiment, acquisition module 100 can be updated listening to desktop wallpaper When, obtain the colouring information of desktop wallpaper.In Android system, when desktop wallpaper is replaced, system will send a desktop wall The broadcast that paper is replaced, after acquisition module 100 obtains this broadcast, the colouring information of acquisition desktop wallpaper will be removed automatically.Certainly, In certain embodiments, acquisition module 100 can also receive user input adjust instruction (such as user click on widget on Specific keys) when, obtain the colouring information of desktop wallpaper.
The colouring information of desktop wallpaper records the distribution of color situation of desktop wallpaper, can be with generally by graphical analysis Know primary color, main colour system or the prominent color of image, prominent colour system, therefore the colouring information of desktop wallpaper can record Primary color, main colour system or the prominent color of desktop wallpaper, prominent colour system.Colour system refers to that system belonging to color is other, in the industry cycle Classification in, color can be divided into two major classes, be cool colour and warm colour respectively.Warm colour:It is derived by sun color Color, red, yellow, give warm soft sensation.Warm colour includes purple, red, blood orange, orange, yellow orange.Cool colour: Blueness, green, purple belong to cool colour.
For example, if desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, Main colour system namely belong to warm colour, then the colouring information can by obtaining the desktop wallpaper knows that the desktop wallpaper is One width is mainly inclined to the picture of withered yellow or is inclined to the picture of warm colour.In another example if for example, desktop wallpaper is a width spring Greenery forest map, the desktop wallpaper primary color is exactly emerald green, main colour system namely belongs to cool colour, then pass through acquisition The colouring information can of the desktop wallpaper knows that the desktop wallpaper is that a width is mainly inclined to emerald picture or deviation cool colour The picture of system.
The device of the present invention can apply to Android system, and the application Palette classes of acquisition module 100 obtain desktop wallpaper Colouring information.Palette classes are a help classes that color can be extracted from picture (Bitmap).
The color that Palette can be extracted:Vibrant (great-hearted), Vibrant dark (great-hearted dead color), Vibrant light (great-hearted light tone), Muted (soft), Muted dark (soft dead color), Muted light (soft light tone).
Application method:Quoted in module build.gradle, see below code.
compile'com.android.support:palette-v7:25.3.1'
The step of acquisition module 100 is using Palette classes:
1. Palette objects are obtained, that is, video palette.
Obtaining Palette objects has synchronous and asynchronous two ways, it is proposed that uses asynchronous acquisition Palette objects, sees below Face code.
2. obtain the tinctorial pattern from video palette generation.
Six kinds of tinctorial patterns can be got, but are obtained sometimes less than corresponding tinctorial pattern object, it has to be noted that non-NULL is sentenced It is disconnected.
Palette.Swatch vibrant=palette.getVibrantSwatch ();// great-hearted
Palette.Swatch vibrantDark=palette.getDarkVibrantSwatch ();// vibrant , it is dark-coloured
Palette.Swatch vibrantLight=palette.getLightVibrantSwatch ();// vibrant , light tone
Palette.Swatch muted=palette.getMutedSwatch ();// soft
Palette.Swatch mutedDark=palette.getDarkMutedSwatch ();// soft, it is dark-coloured
Palette.Swatch mutedLight=palette.getLightMutedSwatch ();// soft, it is bright Color
3. respective color is extracted from tinctorial pattern.
Final color value can be obtained by getRgb () and be applied in UI.GetBodyTextColor () and GetTitleTextColor () can obtain the color that word is suitable under this color, and so easily we set the face of word Color, word is set to seem more comfortable.It is the various methods that may need to use below.
swatch.getPopulation():Pixel quantity in sample
swatch.getRgb():The RBG values of color
swatch.getHsl():The HSL values of color
swatch.getBodyTextColor():The color value of main body word
swatch.getTitleTextColor():The color value of caption text
After acquisition module 100 obtains the colouring information of desktop wallpaper, analysis module 200 determines and it according to colouring information The matching picture or matching color matched somebody with somebody.
With the matches color information of desktop wallpaper, it with it is same colour system or same color that can be, you can with according to table The matching color that the colouring information of surface wallpaper determines with it is same colour system or same color, or primary color with it for of the same colour System or the matching picture of same color.
For example, if desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, Main colour system namely belong to warm colour, then pass through the colouring information that acquisition module 100 obtains the desktop wallpaper, analysis module 200 cans know that the desktop wallpaper is that a width is mainly inclined to the picture of withered yellow or is inclined to the picture of warm colour, therefore match Picture can be the picture of main deviation withered yellow or the picture for being inclined to warm colour, matching color be withered yellow, yellow, it is orange it It is class or belonging to warm colour.
Matching picture can obtain among the pictures to prestore, and the picture in pictures all puts on corresponding label letter Breath, such as colouring information, attribute information.Attribute information reflects the contents of the picture, such as can be " blue sky " " waterfall " " sunset " " sunrise " " autumn fallen leaves " " spring forest " " Beijing's Imperial Palace " " Mt. Huang in Anhui " etc. reflection picture described content Attribute information.As can be seen that in these attribute informations, reflect picture shooting time, season, place wherein may include Information.Therefore analysis module 200 it is determined that matching color or matching picture when, if can be in conjunction with current time, current season Section or current location determine, it is clear that can more agree with the current application environment of user.
Therefore in certain embodiments, analysis module 200 can be according to colouring information, current time information determination and color Information, the matching picture of current time information matching;Or can be according to colouring information, the determination of current season information and color The matching picture of information, current season information matches;Or can be according to colouring information, current location information determination and face Color information, the matching picture of current location information matching;It is, of course, also possible to according to current time, current season, when prelocalization believe The combination of two of breath or three's combination come together to be matched with the colouring information.
For example, when desktop wallpaper is the fallen leaves forest map in a width autumn, the desktop wallpaper primary color is exactly withered yellow, main Want colour system namely belong to warm colour, and the picture to prestore is concentrated with " sunset " " sunrise " " autumn fallen leaves " this three belongs to warm colour Picture just match.If current time is morning, then obvious " sunrise " this pictures most match;If current season It it is autumn, then obvious " autumn fallen leaves " this pictures most match;If current time is morning and current season is autumn, Then analysis module 200 can be by " sunrise " " autumn fallen leaves " this two pictures all as matching picture, or randomly select wherein One as matching picture.
In another example if desktop wallpaper is the greenery forest map in a width spring, the desktop wallpaper primary color is exactly emerald green Color, main colour system namely belongs to cool colour, and the picture to prestore is concentrated with " blue sky " " waterfall " " spring forest " " Mt. Huang in Anhui " This four pictures for belonging to cool colour just match.If current season is spring, then obvious " spring forest " this figure Piece most matches;If current position location is in Anhui, then obvious " Mt. Huang in Anhui " this pictures most match;If work as Preceding season is spring and current position location is Anhui, then analysis module 200 can using this two pictures all as matching picture, Or wherein one is randomly selected as matching picture.
Therefore, if the color that the picture of matching has multiple or matching has a variety of, analysis module 200 can be according to face Color information determines multiple matched matching pictures or a variety of matching colors, will not be repeated here.Analysis module 200 determines After matching picture or matching color, adjusting module 300 is replaced or with matching color pair with matching picture to the background of widget The background colour of widget is replaced.
Widget (widget) is the small application of desktop, can be displaying terminal state widget, show weather condition widget, The widget of hot news, the widget for showing calendar etc. are shown, is not limited herein.Widget can also be that solid is presented dynamically Three-dimensional widget so that user's widget in operation will show Three-Dimensional Dynamic effect, such as widget can be incorporate it is three-dimensional, suspend with And the stereo suspending ball of novel teachings such as reverse, when user clicks on specific position, the widget of the spherical formula of stereo suspending can be with Reverse or roll simultaneously, user is felt Three-Dimensional Dynamic effect.Therefore, in certain embodiments, described device also includes exhibition Show module, the display module is when receiving the preset touch instruction of user's input, according to corresponding to preset touch instruction displaying Three-Dimensional Dynamic effect.
If the color that the picture of matching has multiple or matching has a variety of, analysis module 200 can be believed according to color Breath determines multiple matched matching pictures or a variety of matching colors, and adjusting module 300 is with multiple matching pictures to widget Background carries out alternately replacement or alternately replacement is carried out to the background colour of widget with a variety of matching colors.Such as match and carry out " spring Forest " and " Mt. Huang in Anhui " two pictures, then the background of widget is carried out with " spring forest " and " Mt. Huang in Anhui " two pictures Alternately replace;Match and come withered yellow, yellow, these three orange colors, then the background colour of widget is carried out with these three colors Alternately replace;I.e. the background of widget can alternately displaying " spring forest " and " Mt. Huang in Anhui " two pictures, or the background of widget Color is with withered yellow, yellow, orange alternately displaying.
The present invention also provides a kind of terminal, and it includes:Touch-sensitive display, one or more processors, memory, one or Multiple application programs, wherein one or more application programs are stored in memory and are configured as being handled by one or more Device is performed, and one or more programs are configured to:The method for performing the adjustment widget outward appearance of any of the above-described embodiment.Here Terminal, can be the mobile intelligent terminals such as smart mobile phone, intelligent watch, tablet personal computer, notebook computer or computer etc. Fixed intelligent terminal.
The embodiment of the present invention additionally provides mobile terminal, as shown in figure 3, for convenience of description, illustrate only and the present invention The related part of embodiment, particular technique details do not disclose, refer to present invention method part.The terminal can be Including mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, so that terminal is mobile phone as an example:
Fig. 3 is illustrated that the block diagram of the part-structure of the mobile phone related to terminal provided in an embodiment of the present invention.Reference chart 3, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1510, memory 1520, input block 1530, display unit 1540th, sensor 1550, voicefrequency circuit 1560, Wireless Fidelity (wireless fidelity, Wi-Fi) module 1570, processor The part such as 1580 and power supply 1590.It will be understood by those skilled in the art that the handset structure shown in Fig. 3 is not formed pair The restriction of mobile phone, it can include than illustrating more or less parts, either combine some parts or different part cloth Put.
Each component parts of mobile phone is specifically introduced with reference to Fig. 3:
RF circuits 1510 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, handled to processor 1580;In addition, it is sent to base station by up data are designed.Generally, RF circuits 1510 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1510 can also be led to by radio communication and network and other equipment Letter.Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 1520 can be used for storage software program and module, and processor 1580 is stored in memory by operation 1520 software program and module, so as to perform the various function application of mobile phone and data processing.Memory 1520 can be led To include storing program area and storage data field, wherein, storing program area can storage program area, needed at least one function Application program (such as vocal print playing function, image player function etc.) etc.;Storage data field can store uses institute according to mobile phone Data (such as voice data, phone directory etc.) of establishment etc..Stored in addition, memory 1520 can include high random access Device, nonvolatile memory can also be included, a for example, at least disk memory, flush memory device or other volatibility are consolidated State memory device.
Input block 1530 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the key signals input that function control is relevant.Specifically, input block 1530 may include contact panel 1531 and other inputs Equipment 1532.Contact panel 1531, also referred to as touch-screen, collect touch operation (such as user of the user on or near it Use the behaviour of any suitable object such as finger, stylus or annex on contact panel 1531 or near contact panel 1531 Make), and corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1531 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 1580, and the order sent of reception processing device 1580 and can be performed.In addition, The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be used to realize contact panel 1531.Except touch surface Plate 1531, input block 1530 can also include other input equipments 1532.Specifically, other input equipments 1532 can include But it is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. It is one or more.
Display unit 1540 can be used for display by user input information or be supplied to user information and mobile phone it is each Kind menu.Display unit 1540 may include display panel 1541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1541.Further, contact panel 1531 can cover display panel 1541, when contact panel 1531 detects To after the touch operation on or near it, processor 1580 is sent to determine the type of touch event, is followed by subsequent processing device 1580 provide corresponding visual output according to the type of touch event on display panel 1541.Although in figure 3, contact panel 1531 and display panel 1541 are the parts independent as two to realize the input of mobile phone and input function, but in some realities Apply in example, contact panel 1531 and display panel 1541 can be integrated and realize input and the output function of mobile phone.
Mobile phone may also include at least one sensor 1550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1541, proximity transducer can close display panel when mobile phone is moved in one's ear 1541 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 1560, loudspeaker 1561, microphone 1562 can provide the COBBAIF between user and mobile phone.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 1561, is changed by loudspeaker 1561 by circuit 1560 For vocal print signal output;On the other hand, the vocal print signal of collection is converted to electric signal by microphone 1562, by voicefrequency circuit 1560 Voice data is converted to after reception, then after voice data output processor 1580 is handled, through RF circuits 1510 to be sent to ratio Such as another mobile phone, or voice data is exported to memory 1520 further to handle.
Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses by Wi-Fi module 1570 Mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 3 is shown Wi-Fi module 1570, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can exist as needed completely Do not change in the essential scope of invention and omit.
Processor 1580 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, By running or performing the software program and/or module that are stored in memory 1520, and call and be stored in memory 1520 Interior data, the various functions and processing data of mobile phone are performed, so as to carry out integral monitoring to mobile phone.Optionally, processor 1580 may include one or more processing units;Preferably, processor 1580 can integrate application processor and modulation /demodulation processing Device, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly located Manage radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1580.
Mobile phone also includes the power supply 1590 (such as battery) to all parts power supply, it is preferred that power supply can pass through power supply Management system and processor 1580 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 1580 included by the terminal also has following functions:By obtaining desktop The colouring information of wallpaper, matched matching picture or matching color are then determined according to colouring information, then to match picture The background of widget is replaced or the background colour of widget is replaced with matching color.Namely processor 1580 possesses execution The function of the method for above-mentioned any embodiment adjustment widget outward appearance, will not be repeated here.
The method, apparatus and terminal of above-mentioned adjustment widget outward appearance, by obtaining the colouring information of desktop wallpaper, Ran Hougen Determine matched matching picture or matching color according to colouring information, then with match picture the background of widget is replaced or The background colour of widget is replaced with matching color, can make it that widget and desktop wallpaper seem coordination in appearance so that Terminal desktop is more attractive in appearance, improves the frequency that user uses widget.
It should be understood that although each step in the flow chart of accompanying drawing is shown successively according to the instruction of arrow, These steps are not that the inevitable order according to arrow instruction performs successively.Unless expressly state otherwise herein, these steps The not strict order limitation of execution, it can be performed in the other order.Moreover, at least one in the flow chart of accompanying drawing Part steps can include more sub-steps or multiple stages, and these sub-steps or stage are not necessarily in synchronization Perform completion, but can perform different at the time of, its execution sequence is also not necessarily to be carried out successively, but can be with other Either the sub-step of other steps or at least a portion in stage perform step in turn or alternately.
Described above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

  1. A kind of 1. method for adjusting widget outward appearance, it is characterised in that comprise the following steps:
    Obtain the colouring information of desktop wallpaper;
    Matched matching picture or matching color are determined according to the colouring information;
    The background of widget is replaced with the matching picture or the background colour of widget is replaced with the matching color.
  2. 2. the method for adjustment widget outward appearance according to claim 1, it is characterised in that the color for obtaining desktop wallpaper The step of information, includes:
    When listening to desktop wallpaper and being updated, the colouring information of desktop wallpaper is obtained.
  3. 3. the method for adjustment widget outward appearance according to claim 1, it is characterised in that the color for obtaining desktop wallpaper The step of information, includes:
    When receiving the adjust instruction of user's input, the colouring information of desktop wallpaper is obtained.
  4. 4. the method for adjustment widget outward appearance according to claim 1, it is characterised in that methods described is applied to Android system System, the colouring information of desktop wallpaper is obtained using Palette classes.
  5. 5. the method for adjustment widget outward appearance according to claim 1, it is characterised in that described true according to the colouring information The step of fixed matched matching picture or matching color, includes:
    According to the matching color that the colouring information determines with it is same colour system or same color, or primary color and its be same The matching picture of one colour system or same color.
  6. 6. the method for adjustment widget outward appearance according to claim 1, it is characterised in that described true according to the colouring information The step of fixed matched matching picture or matching color, includes:
    The matching figure for determining to match with the colouring information, current time information according to the colouring information, current time information Piece.
  7. 7. the method for adjustment widget outward appearance according to claim 1, it is characterised in that described true according to the colouring information The step of fixed matched matching picture or matching color, includes:
    The matching figure with the colouring information, current season information matches is determined according to the colouring information, current season information Piece.
  8. 8. the method for adjustment widget outward appearance according to claim 1, it is characterised in that described true according to the colouring information The step of matching picture or matching color of its fixed matching, includes:
    The matching figure for determining to match with the colouring information, current location information according to the colouring information, current location information Piece.
  9. A kind of 9. device for adjusting widget outward appearance, it is characterised in that including:
    Acquisition module, for obtaining the colouring information of desktop wallpaper;
    Analysis module, for determining matched matching picture or matching color according to the colouring information;
    Adjusting module, the back of the body for being replaced with the matching picture to the background of widget or with the matching color to widget Scenery is replaced.
  10. 10. a kind of terminal, it is characterised in that it includes:
    Touch-sensitive display;
    One or more processors;
    Memory;
    One or more application programs, wherein one or more of application programs are stored in the memory and are configured To be configured to by one or more of computing devices, one or more of programs:Perform according to claim 1~8 The method of adjustment widget outward appearance described in any one.
CN201711122132.1A 2017-11-14 2017-11-14 Adjust the method, apparatus and terminal of widget outward appearance Pending CN107844357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711122132.1A CN107844357A (en) 2017-11-14 2017-11-14 Adjust the method, apparatus and terminal of widget outward appearance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711122132.1A CN107844357A (en) 2017-11-14 2017-11-14 Adjust the method, apparatus and terminal of widget outward appearance

Publications (1)

Publication Number Publication Date
CN107844357A true CN107844357A (en) 2018-03-27

Family

ID=61678848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711122132.1A Pending CN107844357A (en) 2017-11-14 2017-11-14 Adjust the method, apparatus and terminal of widget outward appearance

Country Status (1)

Country Link
CN (1) CN107844357A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171773A (en) * 2017-12-28 2018-06-15 北京安云世纪科技有限公司 The method, apparatus and terminal of bottom plate are added for icon
CN109597668A (en) * 2018-10-26 2019-04-09 北京奇安信科技有限公司 A kind of wallpaper replacement processing method and processing device
CN111506379A (en) * 2020-04-17 2020-08-07 成都安易迅科技有限公司 Interface control method and device, storage medium and electronic equipment
WO2023029964A1 (en) * 2021-08-31 2023-03-09 华为技术有限公司 Application component display method, electronic device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866287A (en) * 2010-06-09 2010-10-20 中兴通讯股份有限公司 Widget system appearance setting method and device
CN105224162A (en) * 2014-06-12 2016-01-06 乐蛙科技(上海)有限公司 The matching process of terminal demonstration style and system
CN105389077A (en) * 2014-09-01 2016-03-09 三星电子株式会社 Displaying method of electronic device and electronic device thereof
CN106855797A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 The method to set up and device of a kind of interface element color
CN106970747A (en) * 2017-05-15 2017-07-21 广东小天才科技有限公司 A kind of customer equipment controlling method and user equipment changed based on desktop wallpaper

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866287A (en) * 2010-06-09 2010-10-20 中兴通讯股份有限公司 Widget system appearance setting method and device
CN105224162A (en) * 2014-06-12 2016-01-06 乐蛙科技(上海)有限公司 The matching process of terminal demonstration style and system
CN105389077A (en) * 2014-09-01 2016-03-09 三星电子株式会社 Displaying method of electronic device and electronic device thereof
CN106855797A (en) * 2015-12-09 2017-06-16 阿里巴巴集团控股有限公司 The method to set up and device of a kind of interface element color
CN106970747A (en) * 2017-05-15 2017-07-21 广东小天才科技有限公司 A kind of customer equipment controlling method and user equipment changed based on desktop wallpaper

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108171773A (en) * 2017-12-28 2018-06-15 北京安云世纪科技有限公司 The method, apparatus and terminal of bottom plate are added for icon
CN109597668A (en) * 2018-10-26 2019-04-09 北京奇安信科技有限公司 A kind of wallpaper replacement processing method and processing device
CN111506379A (en) * 2020-04-17 2020-08-07 成都安易迅科技有限公司 Interface control method and device, storage medium and electronic equipment
WO2023029964A1 (en) * 2021-08-31 2023-03-09 华为技术有限公司 Application component display method, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
US11847949B2 (en) Always on display control method and terminal device
CN109683847A (en) A kind of volume adjusting method and terminal
CN107844357A (en) Adjust the method, apparatus and terminal of widget outward appearance
CN110472145A (en) A kind of content recommendation method and electronic equipment
CN108287744A (en) Character displaying method, device and storage medium
CN107831989A (en) A kind of Application Parameters method of adjustment and mobile terminal
CN107748640B (en) Screen-off display method and mobile terminal
CN108733800A (en) A kind of global search method, terminal and computer readable storage medium
CN106527656B (en) Display methods, device and terminal device
CN106873851A (en) Method, device and terminal that 3D regards the Widget imitated are created in interactive interface
CN106708530A (en) Information processing method and terminal equipment
CN108646961A (en) A kind of management method of Pending tasks, device and storage medium
WO2023284621A1 (en) Setting method and apparatus, electronic device, and storage medium
CN107103074A (en) The processing method and mobile terminal of a kind of sharing information
CN108984143A (en) A kind of display control method and terminal device
CN107870799A (en) Utilize the method, apparatus and terminal of widget control audio player
CN108171773A (en) The method, apparatus and terminal of bottom plate are added for icon
CN109451235A (en) A kind of image processing method and mobile terminal
CN109120778A (en) A kind of display control method and terminal
CN108038244A (en) Utilize the method, apparatus and mobile terminal of widget displaying works front cover
CN109976846B (en) Image processing method, terminal equipment and system
CN110032320A (en) A kind of control method of page scroll, device and terminal
CN110069193A (en) A kind of interface switching method of wearable device, wearable device and storage medium
CN110096150B (en) Search interaction control method, equipment and computer readable storage medium
CN111611771B (en) Font file processing method, electronic device and readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180327