CN104978119B - A kind of messagewindow display methods, device and user terminal - Google Patents
A kind of messagewindow display methods, device and user terminal Download PDFInfo
- Publication number
- CN104978119B CN104978119B CN201410220073.1A CN201410220073A CN104978119B CN 104978119 B CN104978119 B CN 104978119B CN 201410220073 A CN201410220073 A CN 201410220073A CN 104978119 B CN104978119 B CN 104978119B
- Authority
- CN
- China
- Prior art keywords
- color
- messagewindow
- target area
- page
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The embodiment of the invention discloses a kind of messagewindow display methods, device and user terminals, wherein, the described method includes: when updating show info window, according to the color value of pixel in the target area of first page, the color average of the target area is calculated, wherein the messagewindow is shown in the first page;If the color average being calculated is not more than preset backcolor threshold value, the messagewindow is updated to the first colouring information window, and show the first colouring information window;If the color average being calculated is greater than preset backcolor threshold value, the messagewindow is updated to the second colouring information window, and show the second colouring information window.Using the present invention, it is dynamically that messagewindow configures different color depths based on background color value, fast, clearly illustrates messagewindow for user.
Description
Technical field
The present invention relates to computer application technology more particularly to a kind of messagewindow display methods, device and user
Terminal.
Background technique
Currently, smart phone, tablet computer, PC, intelligent wearable device etc. are with intelligent operating system
User terminal has been popularized.Intelligent subscriber terminal can be wirelessly accessed the internet based on operating system realization, can also be according to a
People needs to extend terminal function, and third party software support is more.
Corresponding messagewindow very easily can be added to various intelligent subscriber terminals as a kind of plug-in unit by widget
System (either third party) desktop or the other kinds of page in show, it is not necessary to phase can be used by opening application program
The function of answering.It can directly be interacted with user on desktop or other pages, and the displaying corresponding contents of dynamic obtain
It is used to very extensive.
But in current intelligent subscriber terminal, since the desktop background icon or respective page of user can be often
Occur to update transformation, for example color is deep, shallow and dynamic wallpaper introducing, so that the content that widget messagewindow is shown exists
It can not clearly be shown on part wallpaper or the page.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of messagewindow display methods, device and use
Family terminal can automate, intelligently clear show info window.
The embodiment of the present invention provides a kind of messagewindow display methods, comprising:
When updating show info window, according to the color value of pixel in the target area of first page, described in calculating
The color average of target area, wherein the messagewindow is shown in the first page;
If the color average being calculated is not more than preset backcolor threshold value, the messagewindow is updated to
First colouring information window, and show the first colouring information window;
If the color average being calculated is greater than preset backcolor threshold value, the messagewindow is updated to the
Second colors messagewindow, and show the second colouring information window, wherein the content display color of the first colouring information window
Average value be greater than the second colouring information window content display color average value.
Correspondingly, the embodiment of the invention also provides a kind of messagewindow display devices, comprising:
Computing module is used for when messagewindow shows and updates, according to the face of pixel in the target area of first page
Color value calculates the color average of the target area, wherein the messagewindow is shown in the first page;
First processing module, if the color average for being calculated is not more than preset backcolor threshold value, root
The messagewindow is updated to the first colouring information window according to the first color configuration strategy, and shows first colouring information
Window;
Second processing module, if the color average for being calculated is greater than preset backcolor threshold value, basis
The messagewindow is updated to the second colouring information window by the second color configuration strategy, and shows the second colouring information window
Mouthful, wherein the average value of the content display color of the first colouring information window is greater than the interior of the second colouring information window
Hold the average value of display color.
Correspondingly, the embodiment of the invention also provides a kind of user terminals, comprising: processor and display, wherein
The processor is used for when messagewindow shows and updates, according to pixel in the target area of first page
Color value calculates the color average of the target area, wherein the messagewindow is shown in the first page;If meter
Obtained color average is greater than preset backcolor threshold value, then according to the first color configuration strategy by the messagewindow
It is updated to the first colouring information window, and shows the first colouring information window;If the color average being calculated is little
In preset backcolor threshold value, then the messagewindow is updated to by the second colouring information window according to the second color configuration strategy
Mouthful, and show the second colouring information window;
The display, for showing that the processor handles updated messagewindow.
The embodiment of the present invention can be when discovery needs to carry out messagewindow display update, according to first page correlation zone
Such as RGB color value in domain, according to preconfigured color scheme strategy, dynamically to configure different colors for messagewindow
Depth fast, clearly shows messagewindow for user.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of messagewindow display methods of the embodiment of the present invention;
Fig. 2 is the flow diagram of another messagewindow display methods of the embodiment of the present invention;
Fig. 3 a is the flow diagram of one of method of the calculating color average of the embodiment of the present invention;
Fig. 3 b is the wherein another method idiographic flow schematic diagram of the calculating color average of the embodiment of the present invention;
Fig. 4 a is the one of which of the embodiment of the present invention matched colors based on the second color configuration strategy to messagewindow
Method flow schematic diagram;
Fig. 4 b is the one of which of the embodiment of the present invention matched colors based on the second color configuration strategy to messagewindow
Method flow schematic diagram;
Fig. 4 c is the one of which of the embodiment of the present invention matched colors based on the second color configuration strategy to messagewindow
Method flow schematic diagram;
Fig. 5 is a kind of structural schematic diagram of messagewindow display device of the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another messagewindow display device of the embodiment of the present invention;
Fig. 7 is one of structural schematic diagram of the computing module in Fig. 5;
Fig. 8 is a kind of structural schematic diagram of user terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Desktop background picture or the colouring information of other pages can be dynamically judged in the embodiment of the present invention, so that such as
The messagewindow of the plug-in units such as widget can carry out background color or the display of dynamic regulation itself according to desktop background color
The color of content, so that display content can clearly be shown in different background.
Referring to Figure 1, be the embodiment of the present invention a kind of messagewindow display methods flow diagram, the present invention implement
It is whole that the method for example can be applicable to the intelligent subscriber such as smart phone, tablet computer, PC and intelligent wearable device
In end, specifically, the described method includes:
S101: it when messagewindow shows and updates, according to the color value of pixel in the target area of first page, calculates
The color average of the target area, wherein the messagewindow is shown in the first page.
The messagewindow is insert window or floating frame, in the display renewal process of messagewindow, it is necessary first to
It is determined as the color value of pixel in the target area of the first page of messagewindow background, the first page can be letter
The background pages that shows of terminal before breath window display updates, be specifically as follows desktop background picture, or some is commonly
User interface, Webpage etc..The target area of the background pages can be entire desktop background picture or the page, can also
Think the region that desktop background picture or the page are currently shown, can also be in desktop background picture or the page for showing institute
State the band of position of messagewindow.
The color value of pixel in the embodiment of the present invention can specifically refer to pixel RGB (RGB be represent it is red,
The color in green, blue three channels) value.In the S101, the color value of each pixel to target area can be passed through
After carrying out cumulative summation, then the mode being averaged obtains the color average of the target area.For example, two pixels
Rgb value is respectively (255250250), (25500), and R/G/B value is separately summed and is averaged, and obtains then two pixels
Average value is (255125125), and being converted to 16 systems and color average can be obtained is #FF7D7D.
Certainly, in order to reduce calculation amount, the color value of partial pixel point therein can also be taken, is made even again after cumulative summation
The color average of target area described in mean value, such as the color value related like vegetarian refreshments is obtained according to 3-5 pixel interval,
Then the summation that adds up is averaged, and obtains the color average of the target area.
S102: if the color average being calculated is not more than preset backcolor threshold value, by the messagewindow
It is updated to the first colouring information window, and shows the first colouring information window.
The backcolor threshold value is pre-set according to practical experience, such as can take black corresponding color value
60%, i.e. #113355 is as backcolor threshold value.If being not more than the backcolor threshold value, it may be considered that as background
Background pages (such as desktop picture) are dark-background, and the first color configuration plan can be selected from pre-set configuration strategy
Slightly messagewindow is matched colors.
In the first color configuration strategy, it is specified that in messagewindow the color display parameters of all types of contents it is specific
Parameter value, for example, being configured in the first color configuration strategy: the color display parameters of font are white, corresponding rgb value
For #FFFFFF;The color display parameters of figure are grey, and corresponding rgb value is #C0C0C0.
S103: if the color average being calculated is greater than preset backcolor threshold value, more by the messagewindow
It is newly the second colouring information window, and shows the second colouring information window.
If it is greater than the backcolor threshold value, it may be considered that the background pages (such as desktop picture) as background are
Light background can select the second color configuration strategy for messagewindow color matching from pre-set configuration strategy.
In the second color configuration strategy, it is specified that in messagewindow the color display parameters of all types of contents it is specific
Parameter value, wherein the average value of the content display color of the first colouring information window is greater than the second colouring information window
Content display color average value.For example, being configured in the second color configuration strategy: the color display parameters of font are
Black, corresponding rgb value are #000000;The color display parameters of figure be it is orange, corresponding rgb value be #FF6100.
Above-mentioned the first color configuration strategy and the second color configuration strategy can be supplied to user's self-setting, Yong Hugen
, can be with reference color and its table of comparisons of color value according to needs, the windows such as typing font, figure member in the man-machine interface of offer
Element specific color value in different background.
The embodiment of the present invention can need show info window or need to update the background pages such as desktop background picture
When, the color value of the automatic pixel for detecting background pages, determined based on color average background be dark background or
The background of light color, and matched colors based on different definitive results for messagewindow, not only guarantee messagewindow different
The relatively clear display of energy below background also meets automation, intelligent demand that user matches colors to messagewindow.
Fig. 2 is referred to again, is the flow diagram of another messagewindow display methods of the embodiment of the present invention, the present invention
The method of embodiment can be applicable to the intelligence such as smart phone, tablet computer, PC and intelligent wearable device and use
In the terminal of family, specifically, the described method includes:
S201: detecting whether to need to update show info window in first page, if so, triggering messagewindow is aobvious
Show update, execute following S202, wherein first page described in the present embodiment is the back that terminal is shown before messagewindow updates
The scape page is further configured to the desktop background picture of terminal.
It can specifically include: judging whether to receive the desktop background picture replacement notice of system publication, if so, triggering
The display of messagewindow updates;Whether need to be added to messagewindow in desktop background picture alternatively, monitoring, if desired, then
The display for triggering messagewindow updates.
S202: it when messagewindow shows and updates, according to the color value of pixel in the target area of first page, calculates
The color average of the target area.
S203: if the color average being calculated is not more than preset backcolor threshold value, by the messagewindow
It is updated to the first colouring information window, and shows the first colouring information window.
S204: if the color average being calculated is greater than preset backcolor threshold value, more by the messagewindow
It is newly the second colouring information window, and shows the second colouring information window.
Wherein, Fig. 3 a is referred to, is that the process of one of method of the calculating color average of the embodiment of the present invention is shown
It is intended to, the method for the calculating color average of the embodiment of the present invention corresponds to the S202 in Fig. 2 corresponding embodiment, specifically
, this method comprises:
S3011: when updating show info window, obtaining the current display area of first page, and by the acquisition
The current display area of first page is as the target area in first page.
S3012: it according to the color value of pixel each in the target area, and is calculated after cumulative summation described
The color average of target area obtains the color average of target area.
The color value of each pixel of entire background pages is obtained, the depth degree of background pages is determined with this, color is flat
The calculating of mean value can refer to the associated description in above-mentioned Fig. 1 corresponding embodiment.
It wherein, can be according to preset including pixel spacing value when calculating the color average of entire background pages
Calculative strategy, the color value of interval acquiring pixel calculated, and the S3012 can specifically include according to preset picture
Vegetarian refreshments spacing value, successively in target area described in interval acquiring respective pixel point color value;To the pixel of interval acquiring
The color average of the target area is calculated after the cumulative summation of color value, obtains the color average of target area.
In order to reduce the calculation amount of average value, can the only subregional color average of calculation part, specifically, referring to again
Fig. 3 b, is the wherein another method idiographic flow schematic diagram of the calculating color average of the embodiment of the present invention, and this method is specific
Include:
S3021: when updating show info window, first page is obtained;
S3022: it determines and is initiating to update preceding position area of the messagewindow in the first page of the acquisition of display
Domain, and using the band of position of the determination as the target area of first page;
S3023: it according to the color value of pixel each in the target area, and is calculated after cumulative summation described
The color average of target area obtains the color average of target area.
When background pages update or when needing for messagewindow to be adjusted to some new fixation position display,
It can determine and need to update show info window, at this time while obtaining first page, available messagewindow is before the update
The band of position in first page only calculates the pixel of the target area then using the band of position as target area
Color average.The calculation amount of terminal can substantially be lowered.
It wherein, can be according to preset when calculating the color average of some target area of messagewindow background pages
Calculative strategy including pixel spacing value, the color value of interval acquiring pixel are calculated, and the S3022 specifically can be with
Including according to preset pixel spacing value, successively in target area described in interval acquiring respective pixel point color value;Between pair
The color average of the target area is calculated after the cumulative summation of color value of the pixel of acquisition, obtains target area
Color average.
Fig. 4 a is referred to again, is being matched colors based on the second color configuration strategy to messagewindow for the embodiment of the present invention
One of method flow schematic diagram, the method for the embodiment of the present invention correspond to the S203 in Fig. 2 corresponding embodiment, specifically
, this method comprises:
S4011: if the color average being calculated is greater than preset backcolor threshold value, more for the messagewindow
Newly load preset semitransparent background picture;
S4012: display is described to update the messagewindow for being loaded with preset semitransparent background picture.
After background pages are confirmed as the light page, a semitransparent background figure directly can be selected for messagewindow
Piece, preferably the semitransparent background picture can be dark background picture, and be loaded into messagewindow, in this, as second
Color configuration strategy is completed to match colors to the second color of messagewindow.And on the contrary, if background pages are confirmed as the dark page
Afterwards, any adjustment can not be made to messagewindow, directly displays.
Fig. 4 b is referred to again, is being matched colors based on the second color configuration strategy to messagewindow for the embodiment of the present invention
One of method flow schematic diagram, the method for the embodiment of the present invention correspond to the S202 in Fig. 2 corresponding embodiment, specifically
, this method comprises:
S4021: if the color average being calculated is not more than preset backcolor threshold value, for the messagewindow
Load pre-stored first color profile.
S4022: display is loaded with the messagewindow of pre-stored first color profile.
The file of two kinds of schemes of colour, including the first color profile and the second color configuration text can be preset
Part, wherein the average value for being loaded with the content display color of the first colouring information window of the first color profile is greater than load
The average value of the content display color of second colouring information window of the second color profile.In the first color profile
In, including window elements such as the font, the figures that are configured based on certain color value, for example, the color display parameters of font are white,
Corresponding rgb value is #FFFFFF;The color display parameters of figure are grey, and corresponding rgb value is #C0C0C0 etc..
Fig. 4 c is referred to again, is being matched colors based on the second color configuration strategy to messagewindow for the embodiment of the present invention
One of method flow schematic diagram, the method for the embodiment of the present invention correspond to the S203 in Fig. 2 corresponding embodiment, specifically
, this method comprises:
S4031: if the color average being calculated is greater than preset backcolor threshold value, add for the messagewindow
Carry pre-stored second color profile;
S4032: display is loaded with the messagewindow of pre-stored second color profile.
The file of two kinds of schemes of colour, including the first color profile and the second color configuration text can be preset
Part, wherein the average value for being loaded with the content display color of the first colouring information window of the first color profile is greater than load
The average value of the content display color of second colouring information window of the second color profile.In the second color profile
In, including window elements such as the font, the figures that are configured based on certain color value, such as: the color display parameters of font are black,
Corresponding rgb value is #000000;The color display parameters of figure be it is orange, corresponding rgb value be #FF6100.It is loaded with existing
After the file of first color, shown in background pages.
The embodiment of the present invention can need show info window or need to update the background pages such as desktop background picture
When, the color value of the automatic pixel for detecting background pages, determined based on color average background be dark background or
The background of light color, and matched colors based on different definitive results for messagewindow, not only guarantee messagewindow different
The relatively clear display of energy below background also meets automation, intelligent demand that user matches colors to messagewindow.
The messagewindow display device and user terminal of the embodiment of the present invention are described in detail below.
Fig. 5 is referred to again, is a kind of structural schematic diagram of messagewindow display device of the embodiment of the present invention, and the present invention is real
The described device for applying example may be provided at the intelligent subscriber such as smart phone, tablet computer, PC and intelligent wearable device
In terminal, specifically, described device includes:
Computing module 1 is used for when messagewindow shows and updates, according to the face of pixel in the target area of first page
Color value calculates the color average of the target area, wherein the messagewindow is shown in the first page;
First processing module 2 will if the color average for being calculated is not more than preset backcolor threshold value
The messagewindow is updated to the first colouring information window, and shows the first colouring information window;
Second processing module 3, if the color average for being calculated is greater than preset backcolor threshold value, by institute
It states messagewindow and is updated to the second colouring information window, and show the second colouring information window.
The messagewindow is insert window or floating frame, in the display renewal process of messagewindow, it is necessary first to
It is determined as the color value of pixel in the target area of the first page of messagewindow background, and is counted by the computing module 1
Calculate the color average of entire target area.The background that terminal is shown before the first page can update for messagewindow display
The page is specifically as follows desktop background picture, or some common user interface, Webpage etc..The background page
The target area in face can be entire desktop background picture or the page, or desktop background picture or the page are currently shown
The region shown can also be in desktop background picture or the page for showing the band of position of the messagewindow.
The color value of pixel in the embodiment of the present invention can specifically refer to pixel RGB (RGB be represent it is red,
The color in green, blue three channels) value.The computing module 1 is carried out by the color value of each pixel to target area
After cumulative summation, then the mode being averaged obtains the color average of the target area.For example, the RGB of two pixels
Value is respectively (255250250), (25500), and R/G/B value is separately summed and is averaged, and obtains the flat of then two pixels
Mean value is (255125125), and being converted to 16 systems and color average can be obtained is #FF7D7D.
Certainly, in order to reduce calculation amount, the computing module 1 can also take the color value of partial pixel point therein, tire out
It is averaged the color average of the target area again after adding summation, such as obtains correlation according to 3-5 pixel interval
The color value of pixel, the summation that then adds up are averaged, and obtain the color average of the target area.
The backcolor threshold value is pre-set according to practical experience, such as can take black corresponding color value
60%, i.e. #113355 is as backcolor threshold value.If being not more than the backcolor threshold value, the first processing module 2 can
Background pages (such as desktop picture) to think as background are dark-background, can be selected from pre-set configuration strategy
The first color configuration strategy is selected as messagewindow color matching.
In the first color configuration strategy, it is specified that in messagewindow the color display parameters of all types of contents it is specific
Parameter value, for example, being configured in the first color configuration strategy: the color display parameters of font are white, corresponding rgb value
For #FFFFFF;The color display parameters of figure are grey, and corresponding rgb value is #C0C0C0.The first processing module 2 is based on
The first colouring information window can be obtained in the first color configuration strategy.
If it is greater than the backcolor threshold value, then the Second processing module 3 can consider the background page as background
Face (such as desktop picture) is light background, can select the second color configuration strategy for letter from pre-set configuration strategy
Cease window color matching.
In the second color configuration strategy, it is specified that in messagewindow the color display parameters of all types of contents it is specific
Parameter value, for example, being configured in the second color configuration strategy: the color display parameters of font are black, corresponding rgb value
For #000000;The color display parameters of figure be it is orange, corresponding rgb value be #FF6100.3 basis of Second processing module
The second colouring information window can be obtained in second color configuration strategy.
Above-mentioned the first color configuration strategy and the second color configuration strategy can be supplied to user's self-setting, Yong Hugen
, can be with reference color and its table of comparisons of color value according to needs, the windows such as typing font, figure member in the man-machine interface of offer
Element specific color value in different background.
The embodiment of the present invention can need show info window or need to update the background pages such as desktop background picture
When, the color value of the automatic pixel for detecting background pages, determined based on color average background be dark background or
The background of light color, and matched colors based on different definitive results for messagewindow, not only guarantee messagewindow different
The relatively clear display of energy below background also meets automation, intelligent demand that user matches colors to messagewindow.
Fig. 6 is referred to again, is the structural schematic diagram of another messagewindow display device of the embodiment of the present invention, the present invention
The described device of embodiment may be provided at the intelligence such as smart phone, tablet computer, PC and intelligent wearable device and use
In the terminal of family, the described device of the embodiment of the present invention include computing module 1 in above-described embodiment, first processing module 2 and
Second processing module 3, further includes:
Detection module 4, for detecting whether needing to update show info window in first page, if so, triggering letter
The display for ceasing window updates, wherein in embodiments of the present invention, first page, that is, messagewindow background pages are the table of terminal
Face background picture.
Specifically, the detection module 4, specifically for judging whether that the desktop background picture for receiving system publication is replaced
Notice, if so, the display of triggering messagewindow updates;Or it monitors and whether needs for messagewindow to be added to desktop background figure
In piece, if desired, the display for then triggering messagewindow updates.
Still optionally further, as shown in fig. 7, the computing module 1 may include:
Page determination unit 11, for obtaining first page, i.e., by entire first page when updating show info window
Target area as the current background page;
Page computing unit 12, for the face according to each pixel in the determining target area of the page determination unit
Color value, and the color average of the target area is calculated after cumulative summation, obtain the color average of target area.
Still optionally further, as shown in fig. 7, the computing module 1 can also include:
Area determination unit 13, for obtaining first page when updating show info window;It determines to update in initiation and show
The band of position of the messagewindow in the first page of the acquisition before showing, and using the band of position of the determination as first
The target area of the page;
Area calculation unit 14, for the face according to each pixel in the determining target area of the area determination unit
Color value, and the color average of the target area is calculated after cumulative summation, obtain the color average of target area.
Wherein, the page computing unit 12 and area determination unit 13 in the computing module 1, specifically can be according to preset
Pixel spacing value, successively in target area described in interval acquiring respective pixel point color value;To the pixel of interval acquiring
The color average of the target area is calculated after the cumulative summation of the color value of point, the color for obtaining target area is average
Value.
The computing module 1 can simultaneously including above-mentioned page determination unit 11 and page computing unit 12 combination,
The combination of area determination unit 13 and area calculation unit 14, naturally it is also possible to only include two kinds combination one of them, according to
The actual demand at family determines.
The specific implementation of above-mentioned 1 each unit of computing module can refer to the associated description of above method item embodiment.
Still optionally further, the Second processing module 3, if being greater than specifically for the color average being calculated default
Backcolor threshold value, then updated for the messagewindow and load preset semitransparent background picture;Show the update load
The messagewindow of preset semitransparent background picture.
Still optionally further, the first processing module 2, if being not more than specifically for the color average being calculated pre-
If backcolor threshold value, then be that the messagewindow loads pre-stored first color profile;Display is loaded with pre-
The messagewindow of the first color profile first stored.
Still optionally further, the Second processing module 3, if it is big specifically to can be also used for the color average being calculated
In preset backcolor threshold value, then pre-stored second color profile is loaded for the messagewindow;Display load
The messagewindow of pre-stored second color profile.
The specific implementation of the first processing module 2 and Second processing module 3 can refer in above method item embodiment
Associated description.
Fig. 8 is referred to again, is a kind of structural schematic diagram of user terminal of the embodiment of the present invention, the institute of the embodiment of the present invention
Stating user terminal includes: at least one processor 1001, such as CPU, at least one communication bus 1002, at least one network connects
Mouth 1003, memory 1004 and display 1005.Wherein, communication bus 1002 is logical for realizing the connection between these components
Letter.Wherein, the network interface 1003 optionally may include that (such as WI-FI, movement are logical for standard wireline interface and wireless interface
Believe interface etc.).The memory 1004 can be high speed RAM memory, be also possible to non-labile memory (non-
Volatile memory), a for example, at least magnetic disk storage.The memory 1004 optionally can also be at least one
It is located remotely from the storage device of aforementioned processor 1001.As shown in figure 8, the memory 1004 as a kind of computer storage medium
In be stored with operating system, network communication module, and be stored with messagewindow and show application program and other programs.
Wherein, the processor 1001 can call the messagewindow in the memory 1004 to show application program, hold
The following operation of row:
When messagewindow shows and updates, according to the color value of pixel in the target area of first page, described in calculating
The color average of target area, wherein the messagewindow is shown in the first page;
If the color average being calculated is not more than preset backcolor threshold value, the messagewindow is updated to
First colouring information window, and show the first colouring information window;
It, will according to the second color configuration strategy if the color average being calculated is greater than preset backcolor threshold value
The messagewindow is updated to the second colouring information window, and shows the second colouring information window wherein first color
The average value of the content display color of messagewindow is greater than the average value of the content display color of the second colouring information window.
Wherein optionally, the processor 1001 is described when updating show info window in execution, according to first page
Target area in the color value of pixel specifically execute following steps when calculating the color average of the target area:
When updating show info window, the current display area of first page is obtained, and by the first page of the acquisition
Target area of the current display area in face as the current background page;
The target area is calculated according to the color value of pixel each in the target area, and after cumulative summation
The color average in domain obtains the color average of target area.
Wherein optionally, the processor 1001 is described when updating show info window in execution, according to first page
Target area in pixel color value, when calculating the color average of the target area, specifically can also carry out following step
It is rapid:
When updating show info window, first page is obtained;
It determines and is initiating to update the preceding band of position of the messagewindow in the first page of the acquisition of display, and will
Target area of the band of position of the determination as first page;
The target area is calculated according to the color value of pixel each in the target area, and after cumulative summation
The color average in domain obtains the color average of target area.
Wherein optionally, the processor 1001 is executing the color according to pixel each in the target area
It is worth, and the color average of the target area is calculated after cumulative summation, when obtaining the color average of target area,
It is specific to execute:
According to preset pixel spacing value, successively in target area described in interval acquiring respective pixel point color value;
It adds up to the color value of the pixel of interval acquiring and the color average of the target area is calculated after summing,
Obtain the color average of target area.
Wherein optionally, if the processor 1001 is executing the color average being calculated greater than preset back
The messagewindow is then updated to the second colouring information window by scenery coloured silk threshold value, and shows the second colouring information window
When, specifically execute following steps:
If the color average being calculated is greater than preset backcolor threshold value, updates and load for the messagewindow
Preset semitransparent background picture;
Show the messagewindow for updating and being loaded with preset semitransparent background picture.
Wherein optionally, if the processor 1001 is executing the color average being calculated no more than preset
Backcolor threshold value then configures the first colouring information window for the messagewindow according to the first color configuration strategy, and shows
When showing the first colouring information window, following steps specifically can be performed:
It is pre- for messagewindow load if the color average being calculated is not more than preset backcolor threshold value
The first color profile first stored;
Display is loaded with the messagewindow of pre-stored first color profile.
Wherein optionally, if the processor 1001 is executing the color average being calculated greater than preset back
The messagewindow is then updated to the second colouring information window according to the second color configuration strategy, and shown by scenery coloured silk threshold value
When the second colouring information window, it specifically can also carry out following steps:
It is preparatory for messagewindow load if the color average being calculated is greater than preset backcolor threshold value
Second color profile of storage;
Display is loaded with the messagewindow of pre-stored second color profile.
Wherein optionally, the background pages that terminal is shown before the first page, that is, messagewindow updates are the desktop of terminal
Background picture, the processor 1001 are being executed described when messagewindow shows and updates, according to the target area of first page
The color value of pixel in domain before the color average for calculating the target area, also executes the following steps:
It detects whether to need to update show info window in the current background page, if so, triggering messagewindow is aobvious
Show update, wherein the current background page includes the desktop background picture of terminal.
Wherein optionally, the processor 1001 detects whether described in the execution to need to update in the current background page aobvious
When showing messagewindow, following steps are specifically executed:
Judge whether to receive desktop background picture replacement notice, if so, the display of triggering messagewindow updates;Or
It monitors and whether needs to be added to messagewindow in desktop background picture, if desired, then trigger the aobvious of messagewindow
Show update.
The embodiment of the present invention can need show info window or need to update the background pages such as desktop background picture
When, the color value of the automatic pixel for detecting background pages, determined based on color average background be dark background or
The background of light color, and matched colors based on different definitive results for messagewindow, not only guarantee messagewindow different
The relatively clear display of energy below background also meets automation, intelligent demand that user matches colors to messagewindow.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (14)
1. a kind of messagewindow display methods, which is characterized in that be applied to widget plug-in unit, comprising:
When updating the messagewindow of display widget plug-in unit, according to the color value of pixel in the target area of first page,
The color average of the target area is calculated, wherein the messagewindow is shown in the first page;
It is institute according to the first color configuration strategy if the color average being calculated is not more than preset backcolor threshold value
It states messagewindow and loads pre-stored first color profile;Display is loaded with pre-stored first color profile
Messagewindow;The color display parameters of all types of contents in the first color configuration policy definition messagewindow
Design parameter value, including font color display parameters and graphic color display parameters;
If the color average being calculated is greater than preset backcolor threshold value, it is stored in advance for messagewindow load
The second color profile, updated for the messagewindow and load preset semitransparent background picture;Display is loaded in advance
The messagewindow of second color profile of storage.
2. messagewindow display methods as described in claim 1, which is characterized in that the messagewindow is insert window or floats
Dynamic window, the first page are the background pages that terminal is shown before messagewindow display updates.
3. the method as described in claim 1, which is characterized in that it is described when updating show info window, according to first page
Target area in pixel color value, calculate the color average of the target area, comprising:
When updating show info window, the current display area of first page is obtained, and by the first page of the acquisition
Current display area is as target area;
The target area is calculated according to the color value of pixel each in the target area, and after cumulative summation
Color average obtains the color average of target area.
4. the method as described in claim 1, which is characterized in that it is described when updating show info window, according to first page
Target area in pixel color value, calculate the color average of the target area, comprising:
When updating display first page, first page is obtained;
It determines and is initiating to update the preceding band of position of the messagewindow in the first page of the acquisition of display, and really by this
Target area of the fixed band of position as first page;
The target area is calculated according to the color value of pixel each in the target area, and after cumulative summation
Color average obtains the color average of target area.
5. the method as described in claim 1, which is characterized in that the color average for calculating the target area, comprising:
According to preset pixel spacing value, successively in target area described in interval acquiring respective pixel point color value;
To the color average that the target area is calculated after the cumulative summation of the color value of the pixel of interval acquiring, obtain
The color average of target area.
6. method according to claim 2, which is characterized in that the messagewindow updates the background pages that preceding terminal is shown and is
The desktop background picture of terminal;
It is described when display updates messagewindow, according to the color value of pixel in the target area of first page, described in calculating
Before the color average of target area, further includes:
Judge whether to receive desktop background picture replacement notice, if so, the display of triggering messagewindow updates;Or
It monitors and whether needs to be added to messagewindow in desktop background picture, if desired, then trigger the display of messagewindow more
Newly.
7. a kind of messagewindow display device, which is characterized in that be applied to widget plug-in unit, comprising:
Computing module, when for updating the messagewindow of widget plug-in unit in display, according to picture in the target area of first page
The color value of vegetarian refreshments calculates the color average of the target area, wherein the messagewindow is shown in the first page
On;
First processing module, if color average for being calculated is not more than preset backcolor threshold value, according to the
One color configuration strategy is that the messagewindow loads pre-stored first color profile;Display, which is loaded with, to be stored in advance
The first color profile messagewindow;In the first color configuration policy definition messagewindow it is all types of in
The design parameter value of the color display parameters of appearance, including font color display parameters and graphic color display parameters;
Second processing module, if the color average for being calculated is greater than preset backcolor threshold value, for the letter
It ceases window and loads pre-stored second color profile, updated for the messagewindow and load preset semitransparent background figure
Piece;Display is loaded with the messagewindow of pre-stored second configuration file.
8. device as claimed in claim 7, which is characterized in that the messagewindow be insert window or floating frame, it is described
First page is the background pages that terminal is shown before messagewindow display updates.
9. device as claimed in claim 7, which is characterized in that the computing module includes:
Page determination unit, for when updating show info window, obtaining the current display area of first page, and will be described
The current display area of the first page of acquisition is as target area;
Page computing unit, for according to the page determination unit determine target area in each pixel color value,
And the color average of the target area is calculated after cumulative summation, obtain the color average of target area.
10. device as claimed in claim 7, which is characterized in that the computing module includes:
Area determination unit determines the institute before initiating update and showing for obtaining first page when updating show info window
The band of position of the messagewindow in the first page of the acquisition is stated, and using the band of position of the determination as first page
Target area;
Area calculation unit, for according to the area determination unit determine target area in each pixel color value,
And the color average of the target area is calculated after cumulative summation, obtain the color average of target area.
11. device as claimed in claim 7, which is characterized in that
The computing module, for according to preset pixel spacing value, successively corresponding picture in target area described in interval acquiring
The color value of vegetarian refreshments;It is flat to the color that the target area is calculated after the cumulative summation of the color value of the pixel of interval acquiring
Mean value obtains the color average of target area.
12. device as claimed in claim 8, which is characterized in that the background pages that terminal is shown before the messagewindow updates
For the desktop background picture of terminal;
The messagewindow display device further include:
Detection module receives desktop background picture replacement notice for judging whether, if so, the display of triggering messagewindow
It updates;Or monitor and whether need to be added to messagewindow in desktop background picture, if desired, then triggers the aobvious of messagewindow
Show update.
13. a kind of user terminal characterized by comprising processor and display, wherein
The processor, for widget plug-in unit messagewindow show update when, according in the target area of first page
The color value of pixel calculates the color average of the target area, wherein the messagewindow is shown in the first page
On face;If the color average being calculated is greater than preset backcolor threshold value, deposited in advance for messagewindow load
Second color profile of storage updates for the messagewindow and loads preset semitransparent background picture;
It is described according to the first color configuration strategy if the color average being calculated is not more than preset backcolor threshold value
Messagewindow loads pre-stored first color profile;The first color configuration policy definition messagewindow
In all types of contents color display parameters design parameter value, including font color display parameters and graphic color display ginseng
Number;
The display, for showing that the processor handles updated messagewindow.
14. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program,
The computer program is performed, to realize as the method according to claim 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410220073.1A CN104978119B (en) | 2014-05-22 | 2014-05-22 | A kind of messagewindow display methods, device and user terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410220073.1A CN104978119B (en) | 2014-05-22 | 2014-05-22 | A kind of messagewindow display methods, device and user terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104978119A CN104978119A (en) | 2015-10-14 |
CN104978119B true CN104978119B (en) | 2019-11-22 |
Family
ID=54274674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410220073.1A Active CN104978119B (en) | 2014-05-22 | 2014-05-22 | A kind of messagewindow display methods, device and user terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104978119B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105472435A (en) * | 2015-11-24 | 2016-04-06 | 天脉聚源(北京)科技有限公司 | Interactive television system configuration interaction information bearing window method and apparatus thereof |
CN106843666B (en) * | 2015-12-04 | 2019-12-13 | 小米科技有限责任公司 | method and device for adjusting display interface |
CN105608141A (en) * | 2015-12-17 | 2016-05-25 | 北京金山安全软件有限公司 | Cloud picture loading method and device and electronic equipment |
CN106055229B (en) * | 2016-05-24 | 2020-02-07 | 珠海市魅族科技有限公司 | Display interface adjusting method and display interface adjusting module based on screen reading |
CN106055203A (en) * | 2016-05-27 | 2016-10-26 | 努比亚技术有限公司 | Notification message floating display method and device, and mobile terminal |
CN106126140B (en) * | 2016-06-16 | 2019-07-23 | 珠海豹趣科技有限公司 | A kind of method, apparatus and electronic equipment of rendering type |
CN105979400A (en) * | 2016-06-28 | 2016-09-28 | 乐视控股(北京)有限公司 | Screen brightness adjusting method, device and terminal |
CN107807833A (en) * | 2016-09-05 | 2018-03-16 | 中兴通讯股份有限公司 | One kind configuration display methods and terminal |
CN108196805B (en) * | 2017-12-29 | 2021-03-09 | 威创集团股份有限公司 | Spliced wall display method and device |
CN109298912B (en) * | 2018-09-29 | 2020-06-02 | Oppo广东移动通信有限公司 | Theme color adjusting method and device, storage medium and electronic equipment |
CN110825480A (en) * | 2019-11-06 | 2020-02-21 | 北京无限光场科技有限公司 | Picture display method and device, electronic equipment and computer readable storage medium |
CN113542494A (en) * | 2020-04-21 | 2021-10-22 | 中兴通讯股份有限公司 | Information display method, device, terminal and storage medium |
CN111695071B (en) * | 2020-07-14 | 2024-04-09 | 深圳市欢太科技有限公司 | Page display method and related device |
CN112486611B (en) * | 2020-11-25 | 2022-12-23 | 北京有竹居网络技术有限公司 | Page switching display method and device, storage medium and electronic equipment |
CN113360820B (en) * | 2021-05-29 | 2024-03-08 | 北京网聘信息技术有限公司 | Page display method, system, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706718A (en) * | 2009-11-05 | 2010-05-12 | 中兴通讯股份有限公司 | Method and device for automatically changing desktop text color |
CN101916168A (en) * | 2010-08-31 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for displaying application icon and mobile terminal |
CN102508666A (en) * | 2011-11-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for adjusting application prompt message in application program |
CN103577109A (en) * | 2013-11-20 | 2014-02-12 | 广州市久邦数码科技有限公司 | Touch assistant system capable of capturing interface colors and realizing method thereof |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9229613B2 (en) * | 2012-02-01 | 2016-01-05 | Facebook, Inc. | Transitions among hierarchical user interface components |
-
2014
- 2014-05-22 CN CN201410220073.1A patent/CN104978119B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706718A (en) * | 2009-11-05 | 2010-05-12 | 中兴通讯股份有限公司 | Method and device for automatically changing desktop text color |
CN101916168A (en) * | 2010-08-31 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Method and system for displaying application icon and mobile terminal |
CN102508666A (en) * | 2011-11-11 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for adjusting application prompt message in application program |
CN103577109A (en) * | 2013-11-20 | 2014-02-12 | 广州市久邦数码科技有限公司 | Touch assistant system capable of capturing interface colors and realizing method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN104978119A (en) | 2015-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978119B (en) | A kind of messagewindow display methods, device and user terminal | |
US10467776B2 (en) | Information processing method and apparatus, terminal, and storage medium | |
CN106210330B (en) | A kind of image processing method and terminal | |
US9665952B2 (en) | Information processing method and electronic device | |
GB201001728D0 (en) | Screen sharing | |
CN103927086B (en) | A kind of wallpaper treatment method, system and mobile terminal | |
CN110211030A (en) | Image generating method and device | |
CN105609086A (en) | Brightness adjustment method and device of display interface | |
US20130297927A1 (en) | Electronic device and method for managing an electronic device setting thereof | |
WO2012149855A1 (en) | Webpage colour setting method, web browser and webpage server | |
CN104270564B (en) | A kind of terminal | |
CN107193434A (en) | Status bar display method and terminal | |
CN107765545B (en) | Automatic screen lightening method and device and computer storage medium | |
CN110012163A (en) | Suspended window setting method and device and electronic equipment | |
Rider et al. | Light adaptation controls visual sensitivity by adjusting the speed and gain of the response to light | |
CN110704052A (en) | Service platform color configuration method and device, storage medium and electronic device | |
JP6484592B2 (en) | Color arrangement proposing device, color arrangement proposing method and program | |
CN105988762B (en) | Display methods, hidden method and the device of animation frame | |
CN112969088A (en) | Screen projection control method and device, electronic equipment and readable storage medium | |
US20230410706A1 (en) | Method for image rendering, terminal device and non-transitory computer-readable storage medium | |
CN106897012A (en) | User instruction is recognized and processing method, device | |
CN106055229B (en) | Display interface adjusting method and display interface adjusting module based on screen reading | |
CN110197388B (en) | Method and device for displaying data, storage medium and electronic device | |
US10679383B2 (en) | Interface color branding | |
CN106951138B (en) | Icon fuzzification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |