CN105468617A - Method and device for regulating webpage content color - Google Patents

Method and device for regulating webpage content color Download PDF

Info

Publication number
CN105468617A
CN105468617A CN201410446070.XA CN201410446070A CN105468617A CN 105468617 A CN105468617 A CN 105468617A CN 201410446070 A CN201410446070 A CN 201410446070A CN 105468617 A CN105468617 A CN 105468617A
Authority
CN
China
Prior art keywords
brightness value
color
background element
interval
web page
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.)
Granted
Application number
CN201410446070.XA
Other languages
Chinese (zh)
Other versions
CN105468617B (en
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.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
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 Ucweb Inc filed Critical Ucweb Inc
Priority to CN201410446070.XA priority Critical patent/CN105468617B/en
Priority to PCT/CN2015/086767 priority patent/WO2016034031A1/en
Publication of CN105468617A publication Critical patent/CN105468617A/en
Application granted granted Critical
Publication of CN105468617B publication Critical patent/CN105468617B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • Color Image Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for regulating a webpage content color. The method comprises the following steps: when an instruction used for regulating the webpage content color is obtained, identifying a webpage element to be regulated from a webpage to be processed, wherein the webpage element to be regulated at least comprises a background element; obtaining a lightness value of each identified background element; and on the basis of a preset color regulation rule and the obtained lightness value of each identified background element, regulating the color of each background element. The method can regulate the colors of the elements in a webpage according to the lightness values of the elements in the webpage to realize a purpose that the webpage content color is flexibly regulated.

Description

The method of adjustment web page contents color and device
Technical field
The present invention relates to mobile internet technical field, more specifically, relate to method and the device of adjustment web page contents color.
Background technology
Internet era, get more and more with the user of browser online, what webpage surf the Net as user mainly browses object, the stimulation that the white background look of most of webpage is larger to eyes of user formation, easily produces visual fatigue.Faced by user is long-time, screen is easy to affect one's power of vision.In this case, need good solution, alleviate the injury that user's eyesight is brought of surfing the Net for a long time.Change web page background look is a kind of approach of can yet be regarded as.Meanwhile, user is more and more stronger for the self-defining demand of browser.Webpage color, as the ingredient beautifying browser, at utmost can meet the personalized customization requirement of user.
At present, browser arranges webpage color to have had relevant technical scheme to support, as realized the conversion of color by methods such as change transparency parameter.But these implementations exist larger drawback, and one is that dirigibility is not high, such as, by adjustment transparency parameter, free definition can not be carried out to webpage color; Two is in interface alternation aspect, and user needs to arrange transparency parameter to realize color conversion, and set-up mode is not directly perceived, does not meet normal mode of operation, and user is difficult to hold conversion effect, even can bring significantly negative experience to user.
Summary of the invention
In view of above-mentioned, the present invention proposes a kind of method and the device that adjust web page contents color, utilize the method and device, by identifying web page element, then the color of brightness value to web page element based on web page element adjusts, thus can reach the object changing web page contents color neatly.
According to an aspect of the present invention, provide a kind of method adjusting web page contents color, comprising: after getting the instruction for adjusting web page contents color, from pending webpage, identifying web page element to be adjusted, described web page element to be adjusted at least comprises background element; Obtain the brightness value of the background element that each identifies; And based on predetermined color regulation rule and the brightness value of each background element that obtains, adjust the color of each background element.
In one or more examples in above-mentioned, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and in predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element comprises: determine that the brightness value that the brightness value of each obtained background element is positioned at is interval; And the colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value.
In one or more examples in above-mentioned, based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element also comprises: when determining in each obtained background element that there is brightness value is not positioned at the background element in arbitrary described brightness value interval, keep the color of this background element constant.
In one or more examples in above-mentioned, before the brightness value obtaining each background element identified, described method also comprises: the Reinheitszahl obtaining the background element that each identifies, and the brightness value obtaining the background element that each identifies comprises: obtain identify the brightness value that each background element moderate purity value is less than the background element of the 3rd predetermined value.
In one or more examples in above-mentioned, described web page element to be adjusted also comprises word, and described method also comprises: the Reinheitszahl obtaining the word that each identifies; And in the word that each identifies, there is Reinheitszahl when being greater than the word of the 4th predetermined value, the color of this word is adjusted to predetermined word colour.
In one or more examples in above-mentioned, described web page element to be adjusted also comprises retouches limit, and described method also comprises: obtain the Reinheitszahl retouching limit that each identifies; And each retouching in limit of identifying exist Reinheitszahl be less than the 5th predetermined value retouch limit time, obtain the brightness value that this retouches limit, when the brightness value that this retouches limit is at preset range, described colour of retouching the color on limit is adjusted to the color adjustment aim colour corresponding with the described brightness value retouching limit.
In one or more examples in above-mentioned, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is: brightness value is larger, and color adjustment aim colour is more shallow.
According to a further aspect in the invention, provide a kind of device adjusting web page contents color, comprise: web page element recognition unit, for after getting the instruction for adjusting web page contents color, from pending webpage, identify web page element to be adjusted, described web page element to be adjusted at least comprises background element; Brightness value acquiring unit, for obtaining the brightness value of the background element that each identifies; And color adjusting unit, for based on predetermined color regulation rule and the brightness value of each background element that obtains, adjust the color of each background element.
In one or more examples in above-mentioned, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and described color adjusting unit comprises lightness interval determination module and adjusting module, described color adjusting unit is based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element comprises: described lightness interval determination module determines that the brightness value that the brightness value of each obtained background element is positioned at is interval, and the colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value by described adjusting module.
In one or more examples in above-mentioned, described color adjusting unit is based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element also comprises: when described lightness interval determination module determines in each obtained background element that there is brightness value is not positioned at the background element in arbitrary described brightness value interval, keep the color of this background element constant.
In one or more examples in above-mentioned, described device also comprises: Reinheitszahl acquiring unit, before described brightness value acquiring unit obtains the brightness value of the background element that each identifies, described Reinheitszahl acquiring unit obtains the Reinheitszahl of the background element that each identifies, and the brightness value that described brightness value acquiring unit obtains the background element that each identifies comprises: obtain identify the brightness value that each background element moderate purity value is less than the background element of the 3rd predetermined value.
In one or more examples in above-mentioned, described web page element to be adjusted also comprises word, and described Reinheitszahl acquiring unit obtains the Reinheitszahl of the word that each identifies; And there is Reinheitszahl when being greater than the word of the 4th predetermined value in described color adjusting unit, the color of this word is adjusted to predetermined word colour in the word that each identifies.
In one or more examples in above-mentioned, described web page element to be adjusted also comprises retouches limit, and described method also comprises: described Reinheitszahl acquiring unit obtains each Reinheitszahl retouching limit identified; And each retouching in limit of identifying exist Reinheitszahl be less than the 5th predetermined value retouch limit time, described brightness value acquiring unit obtains the brightness value that this retouches limit, when the brightness value that this retouches limit is at preset range, described colour of retouching the color on limit is adjusted to the color adjustment aim colour corresponding with the described brightness value retouching limit by described color adjusting unit.
In one or more examples in above-mentioned, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is: brightness value is larger, and color adjustment aim colour is more shallow.
According to a further aspect in the invention, provide a kind of terminal device, comprise the device according to any one of claim 8 to 14.
According to a further aspect in the invention, provide a kind of terminal device, comprising: storer, for storing instruction; Processor, is coupled with described storer, and this processor is configured to perform the instruction stored in which memory, and wherein, the instruction stored in described storer and described processor are for realizing the method according to any one of claim 1 to 7.
Utilize said method and device and terminal device, after the instruction receiving whole web page contents color, identify the web page element in webpage, then according to the lightness information of web page background element, color adjustment is carried out to the background element of webpage, because different lightness information is to there being different colours value, the background element that lightness is different has different color values, page layout background color can be made to be adjusted while, ensure that the different background element in the page can have the color value being different from other background element, there will not be the situation that full page background is lumped together, the page layout background after adjustment color is made to have more stereovision, more harmonious.In order to realize above-mentioned and relevant object, will describe in detail and the feature particularly pointed out in the claims after one or more aspect of the present invention comprises.Explanation below and accompanying drawing describe some illustrative aspects of the present invention in detail.But what these aspects indicated is only some modes that can use in the various modes of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
Accompanying drawing explanation
According to following detailed description of carrying out with reference to accompanying drawing, above and other object of the present invention, feature and advantage will become more apparent.In the accompanying drawings:
Figure 1A shows the process flow diagram of the method adjusting web page contents color according to an embodiment of the invention;
Figure 1B shows the schematic diagram of the web page background look option that browser is arranged;
Fig. 2 shows the detail flowchart of the method adjusting background element color in webpage according to another embodiment of the present invention;
Fig. 3 shows the detail flowchart of the method adjusting text color in webpage according to another embodiment of the present invention;
Fig. 4 shows the detail flowchart adjusting according to another embodiment of the present invention and retouch the method for limit color in webpage;
Fig. 5 shows the block diagram of the device of the adjustment web page contents color of embodiments of the invention.
Embodiment
Various aspects of the present disclosure are described below.It is to be understood that instruction herein can with varied form imbody, and in this article disclosed any concrete structure, function or both be only representational.Based on instruction herein, those skilled in the art are it is to be understood that an aspect disclosed herein can realize independent of any other side, and the two or more aspects in these aspects can combine according to various mode.Such as, aspect, implement device or the hands-on approach of any number described in this paper can be used.In addition, other structure, function or except one or more aspect described in this paper or be not the 26S Proteasome Structure and Function of one or more aspect described in this paper can be used, realize this device or put into practice this method.In addition, any aspect described herein can comprise at least one element of claim.
Each embodiment of the present invention is described below with reference to accompanying drawings.
Figure 1A shows the process flow diagram of the method adjusting web page contents color according to an embodiment of the invention.
As shown in Figure 1A, in step S110, after getting the instruction for adjusting web page contents color, from pending webpage, identify web page element to be adjusted, described web page element to be adjusted at least comprises background element.
Here, the instruction for adjusting web page contents color selects browser " web page background look " option to trigger by user.As shown in Figure 1B, browser is provided with multiple web page background look options for user to select.
In an example of the present invention, described web page contents is made up of polytype web page element, background element is the one of web page element, here background element comprises the background of this each content blocks of the page, such as title block background, text background, navigation bar background etc., also comprise the web page elements such as input frame.
Next, in step S120, obtain the brightness value of the background element that each identifies.
Lightness is one of three elements of color, refers to brightness or the lightness of color.The depth of color, the change of light and shade.Bright value degree is higher then represents that color is brighter.Brightness value percentage represents, the larger then color of ratio is brighter, and the lower then color of ratio is darker.
In step S130, based on predetermined color regulation rule and the brightness value of each background element that obtains, adjust the color of each background element.
In an example of the present invention, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element comprises: determine that the brightness value that the brightness value of each obtained background element is positioned at is interval; And the colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value.
Utilize the method for the present embodiment, the lightness interval based on background element adjusts the color of background element, making background element different in the page when changing the color theme that color is specified to user, can also keep the characteristic of oneself.
Fig. 2 shows the detail flowchart of the method for background element color in adjustment webpage according to another embodiment of the present invention.
When web page element to be adjusted is background element, as shown in Figure 2, first, in step S210, the Reinheitszahl of background extraction element.
Purity typically refers to the vividness of color.Purity is higher then represents that color is more bright-coloured.Reinheitszahl percentage represents, the larger then colour purity of ratio is higher, and the purity of the lower then color of ratio is lower.
Next, step S220, judges whether described Reinheitszahl is less than the 3rd predetermined value; If so, then step S230 is entered; Otherwise flow process terminates, this background element is not processed, namely keep the color of described background element constant.
In an example of the present invention, described 3rd predetermined value is 5%.
Step S230, obtains the brightness value of described background element.
Step S240, judges whether the brightness value of described background element is positioned at predetermined arbitrary brightness value interval; If so, then enter step S250, otherwise flow process terminates, described background element is not processed, namely keep the color of described background element constant.
In an example of the present invention, there is multiple lightness interval, be respectively (65%, 80%], (80%, 90%], (90%, 96%], (96%, 100%].That is, the background element only having brightness value to be greater than 65% just has corresponding lightness interval.And the background element that brightness value is less than or equal to 65% will not process.
Finally, in step S250, determine that the brightness value that the brightness value of described background element is positioned at is interval, the colour of the color of described background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value.
In an example of the present invention, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is: brightness value is larger, and color adjustment aim colour is more shallow.The background element color relation originally that brightness value is large is more shallow, so still for more shallow color during adjustment.As Figure 1B, shown in, when the background colour that user selects is " eyeshield is green ", each background element can be adjusted to the different green of the depth.
In an example of the present invention, described web page element to be adjusted also comprises text element.Fig. 3 shows the process flow diagram of the method for text color in adjustment webpage according to another embodiment of the present invention.
As shown in Figure 3, first in step S310, obtain the Reinheitszahl of word.
Next, in step S320, judge whether described Reinheitszahl is greater than the 4th predetermined value; If so, then step S330 is entered; Otherwise flow process terminates, this word is not processed, namely keep the color of described word constant.
In an example of the present invention, described 4th predetermined value is 10%.
Step S330, is adjusted to predetermined word colour by the color of described word.
In an example of the present invention, described web page element to be adjusted also comprises retouches limit.Fig. 4 shows the process flow diagram retouching the method for limit color in adjustment webpage according to another embodiment of the present invention.
As shown in Figure 4, first in step S410, obtain the Reinheitszahl retouching limit.
Next, in step S420, judge whether described Reinheitszahl is less than the 5th predetermined value; If so, then enter step S430, otherwise flow process terminates, this is not retouched to limit and processes, the color of retouching limit described in namely keeping is constant.
In an example of the present invention, described 4th predetermined value is 12%.
Step S430, retouches the brightness value on limit described in acquisition.
Step S440, judges whether each brightness value retouching limit is positioned at predetermined arbitrary brightness value interval; If so, then enter step S450, otherwise flow process terminates, this is not retouched to limit and processes, the color of retouching limit described in namely keeping is constant.
In an example of the present invention, there is multiple lightness interval, be respectively (65%, 75%], (75%, 100%].That is, the limit of retouching only having brightness value to be greater than 65% just has corresponding lightness interval.And brightness value is less than or equal to 65% retouch limit and will not process.
Step S450, the brightness value that the brightness value retouching limit described in determining is positioned at is interval, described colour of retouching the color on limit is adjusted to the determined interval corresponding color adjustment aim colour of brightness value.
In an example of the present invention, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is: brightness value is larger, and color adjustment aim colour is more shallow.
Fig. 5 shows the block diagram of the device adjusting web page contents color according to an embodiment of the invention.
As shown in Figure 5, the device of adjustment web page contents color, comprises web page element recognition unit 510, brightness value acquiring unit 520, color adjusting unit 530.
Web page element recognition unit 510, for after getting the instruction for adjusting web page contents color, identifies web page element to be adjusted from pending webpage, and described web page element to be adjusted at least comprises background element; The brightness value of background element of brightness value acquiring unit 520 for obtaining each and identifying; And color adjusting unit 530 is for based on predetermined color regulation rule and the brightness value of each background element that obtains, adjusts the color of each background element.
In an example of the present invention, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and described color adjusting unit 530 comprises lightness interval determination module and adjusting module, described color adjusting unit 530 is based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element comprises: described lightness interval determination module determines that the brightness value that the brightness value of each obtained background element is positioned at is interval, and the colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value by described adjusting module.Described color adjusting unit is based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element also comprises: when described lightness interval determination module determines in each obtained background element that there is brightness value is not positioned at the background element in arbitrary described brightness value interval, keep the color of this background element constant.
In an example of the present invention, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is: brightness value is larger, and color adjustment aim colour is more shallow.
In an example of the present invention, the device of described adjustment web page contents color also comprises Reinheitszahl acquiring unit (not shown), before described brightness value acquiring unit obtains the brightness value of the background element that each identifies, described Reinheitszahl acquiring unit obtains the Reinheitszahl of the background element that each identifies, and the brightness value that described brightness value acquiring unit 520 obtains the background element that each identifies comprises: obtain identify the brightness value that each background element moderate purity value is less than the background element of the 3rd predetermined value.
In an example of the present invention, described web page element to be adjusted also comprises word, and described Reinheitszahl acquiring unit obtains the Reinheitszahl of the word that each identifies; And there is Reinheitszahl when being greater than the word of the 4th predetermined value in described color adjusting unit 530, the color of this word is adjusted to predetermined word colour in the word that each identifies.
In an example of the present invention, described web page element to be adjusted also comprises retouches limit, and described method also comprises: described Reinheitszahl acquiring unit obtains each Reinheitszahl retouching limit identified; And each retouching in limit of identifying exist Reinheitszahl be less than the 5th predetermined value retouch limit time, described brightness value acquiring unit obtains the brightness value that this retouches limit, when the brightness value that this retouches limit is at preset range, described colour of retouching the color on limit is adjusted to the color adjustment aim colour corresponding with the described brightness value retouching limit by described color adjusting unit 530.
In an example of the present invention, a kind of terminal device, comprises device as described in Figure 5.
In addition, the present invention also discloses a kind of terminal device, comprising: storer, for storing instruction;
Processor, is coupled with described storer, and this processor is configured to perform the instruction stored in which memory, and wherein, the instruction stored in described storer and described processor are for realizing the method for any embodiment as shown in Figure 1 to Figure 4.
Utilize above-mentioned method, device and terminal device, by identifying the web page element in webpage, then according to the lightness information of web page background element, color adjustment is carried out to the background element of webpage, because different lightness information is to there being different colours value, the background element that lightness is different has different color values, page layout background color can be made to be adjusted while, ensure that the different background element in the page can have the color value being different from other background element, there will not be the situation that full page background is lumped together.In addition, for the various different page elements in the page, other page elements such as such as word, picture etc., respectively based on characteristic of elements to there being corresponding color regulation rule, make the color Adjustment effect of full page more harmonious, also ensure that the page is clear and have stereovision simultaneously.
In addition, the computer program performed by the processor (such as CPU) in mobile terminal can also be implemented as according to method of the present invention, and store in a memory in the mobile terminal.When this computer program is executed by processor, processor performs the above-mentioned functions limited in method of the present invention.
In addition, a kind of computer program can also be embodied as according to method of the present invention, this computer program comprises computer-readable medium, stores the computer program for performing the above-mentioned functions limited in method of the present invention on the computer-readable medium.
In addition, said method step and system unit also can utilize controller and realize for storing the computer readable storage devices making controller realize the computer program of above-mentioned steps or Elementary Function.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with various illustrative logical blocks, module, circuit and the algorithm steps described by disclosure herein.In order to this interchangeability of hardware and software is clearly described, the function with regard to various exemplary components, square, module, circuit and step has carried out general description to it.This function is implemented as software or is implemented as hardware and depends on embody rule and be applied to the design constraint of whole system.Those skilled in the art can realize described function in every way for often kind of embody rule, but this realization determines should not be interpreted as causing departing from the scope of the present invention.
Although disclosed content shows exemplary embodiment of the present invention above, it should be noted that under the prerequisite not deviating from the scope of the present invention that claim limits, can multiple change and amendment be carried out.Need not perform with any particular order according to the function of the claim to a method of inventive embodiments described herein, step and/or action.In addition, although element of the present invention can describe or requirement with individual form, also it is contemplated that multiple, is odd number unless explicitly limited.
Although describe each embodiment according to the present invention above with reference to figure to be described, it will be appreciated by those skilled in the art that each embodiment that the invention described above is proposed, various improvement can also be made on the basis not departing from content of the present invention.Therefore, protection scope of the present invention should be determined by the content of appending claims.

Claims (16)

1. adjust a method for web page contents color, comprising:
After getting the instruction for adjusting web page contents color, from pending webpage, identify web page element to be adjusted, described web page element to be adjusted at least comprises background element;
Obtain the brightness value of the background element that each identifies; And
Based on predetermined color regulation rule and the brightness value of each background element that obtains, adjust the color of each background element.
2. the method for claim 1, wherein, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, and the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and
Based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element comprises:
Determine that the brightness value that the brightness value of each obtained background element is positioned at is interval; And
The colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value.
3., the method for claim 1, wherein based on predetermined color regulation rule and the brightness value of each background element that obtains, the color adjusting each background element also comprises:
When determining in each obtained background element that there is brightness value is not positioned at the background element in arbitrary described brightness value interval, keep the color of this background element constant.
4., the method for claim 1, wherein before the brightness value obtaining each background element identified, described method also comprises:
Obtain the Reinheitszahl of the background element that each identifies, and,
The brightness value obtaining the background element that each identifies comprises:
Obtain identify the brightness value that each background element moderate purity value is less than the background element of the 3rd predetermined value.
5. the method for claim 1, wherein described web page element to be adjusted also comprises word, and described method also comprises:
Obtain the Reinheitszahl of the word that each identifies; And
In the word that each identifies, there is Reinheitszahl when being greater than the word of the 4th predetermined value, the color of this word is adjusted to predetermined word colour.
6. the method for claim 1, wherein described web page element to be adjusted also comprises and retouches limit, and described method also comprises:
Obtain the Reinheitszahl retouching limit that each identifies; And
Each retouching in limit of identifying exist Reinheitszahl be less than the 5th predetermined value retouch limit time, obtain the brightness value that this retouches limit, when the brightness value that this retouches limit is at preset range, described colour of retouching the color on limit is adjusted to the color adjustment aim colour corresponding with the described brightness value retouching limit.
7. method as claimed in claim 2, wherein, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is:
Brightness value is larger, and color adjustment aim colour is more shallow.
8. adjust a device for web page contents color, comprising:
Web page element recognition unit, for after getting the instruction for adjusting web page contents color, identifies web page element to be adjusted from pending webpage, and described web page element to be adjusted at least comprises background element;
Brightness value acquiring unit, for obtaining the brightness value of the background element that each identifies; And
Color adjusting unit, for based on predetermined color regulation rule and the brightness value of each background element that obtains, adjusts the color of each background element.
9. device as claimed in claim 8, wherein, described color regulation rule comprises the color adjustment aim colour that multiple brightness value is interval and each brightness value interval is corresponding, and the union in described multiple brightness value interval is [the first predetermined value, second predetermined value], and
Described color adjusting unit comprises lightness interval determination module and adjusting module,
Described color adjusting unit is based on predetermined color regulation rule and the brightness value of each background element that obtains, and the color adjusting each background element comprises:
Described lightness interval determination module determines that the brightness value that the brightness value of each obtained background element is positioned at is interval; And
The colour of the color of each background element is adjusted to the determined interval corresponding color adjustment aim colour of brightness value by described adjusting module.
10. device as claimed in claim 8, wherein, described color adjusting unit is based on predetermined color regulation rule and the brightness value of each background element that obtains, and the color adjusting each background element also comprises:
When described lightness interval determination module determines in each obtained background element that there is brightness value is not positioned at the background element in arbitrary described brightness value interval, keep the color of this background element constant.
11. devices as claimed in claim 8, also comprise: Reinheitszahl acquiring unit,
Before described brightness value acquiring unit obtains the brightness value of the background element that each identifies,
Described Reinheitszahl acquiring unit obtains the Reinheitszahl of the background element that each identifies, and,
The brightness value that described brightness value acquiring unit obtains the background element that each identifies comprises:
Obtain identify the brightness value that each background element moderate purity value is less than the background element of the 3rd predetermined value.
12. devices as claimed in claim 8, wherein, described web page element to be adjusted also comprises word, and,
Described Reinheitszahl acquiring unit obtains the Reinheitszahl of the word that each identifies; And
There is Reinheitszahl when being greater than the word of the 4th predetermined value in described color adjusting unit, the color of this word is adjusted to predetermined word colour in the word that each identifies.
13. devices as claimed in claim 8, wherein, described web page element to be adjusted also comprises retouches limit, and described method also comprises:
Described Reinheitszahl acquiring unit obtains each Reinheitszahl retouching limit identified; And
Each retouching in limit of identifying exist Reinheitszahl be less than the 5th predetermined value retouch limit time, described brightness value acquiring unit obtains the brightness value that this retouches limit, when the brightness value that this retouches limit is at preset range, described colour of retouching the color on limit is adjusted to the color adjustment aim colour corresponding with the described brightness value retouching limit by described color adjusting unit.
14. methods as claimed in claim 9, wherein, there is corresponding relation in the depth and the lightness size of the interval corresponding color adjustment aim colour of each brightness value described, described corresponding relation is:
Brightness value is larger, and color adjustment aim colour is more shallow.
15. 1 kinds of terminal devices, comprise the device according to any one of claim 8 to 14.
16. 1 kinds of terminal devices, comprising:
Storer, for storing instruction;
Processor, is coupled with described storer, and this processor is configured to perform the instruction stored in which memory, and wherein, the instruction stored in described storer and described processor are for realizing the method according to any one of claim 1 to 7.
CN201410446070.XA 2014-09-03 2014-09-03 Adjust the method and device of web page contents color Active CN105468617B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410446070.XA CN105468617B (en) 2014-09-03 2014-09-03 Adjust the method and device of web page contents color
PCT/CN2015/086767 WO2016034031A1 (en) 2014-09-03 2015-08-12 Method and device for adjusting colour of webpage content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410446070.XA CN105468617B (en) 2014-09-03 2014-09-03 Adjust the method and device of web page contents color

Publications (2)

Publication Number Publication Date
CN105468617A true CN105468617A (en) 2016-04-06
CN105468617B CN105468617B (en) 2019-02-15

Family

ID=55439104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410446070.XA Active CN105468617B (en) 2014-09-03 2014-09-03 Adjust the method and device of web page contents color

Country Status (2)

Country Link
CN (1) CN105468617B (en)
WO (1) WO2016034031A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558195A (en) * 2018-11-12 2019-04-02 厦门欢乐逛科技股份有限公司 Font special efficacy adjusting method, medium, computer equipment and device
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN111191424A (en) * 2019-12-31 2020-05-22 北京华为数字技术有限公司 Page color matching method and device, storage medium and chip
CN113157356A (en) * 2020-01-22 2021-07-23 阿里巴巴集团控股有限公司 Method and device for adjusting object color, electronic equipment and computer storage medium
CN113238829A (en) * 2021-06-07 2021-08-10 北京字节跳动网络技术有限公司 Background color generation method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021168675A1 (en) * 2020-02-26 2021-09-02 Boe Technology Group Co., Ltd. Computer-implemented method, apparatus, and computer-program product
CN117315172B (en) * 2023-09-22 2024-04-12 鲸数科技(北京)有限公司 Map page configuration method, map page configuration device, electronic equipment and computer readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060221091A1 (en) * 2005-03-30 2006-10-05 Sbc Knowledge Ventures, L.P. System and method for providing a visual display element for a graphical browser interface
CN102508861A (en) * 2011-09-30 2012-06-20 华为技术有限公司 Webpage color setting method, webpage browser and webpage server
CN103761098A (en) * 2014-01-23 2014-04-30 贝壳网际(北京)安全技术有限公司 Method and device for changing webpage skin and browser
CN103903593A (en) * 2012-12-27 2014-07-02 腾讯科技(武汉)有限公司 Adjustment method of display background of page, and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060221091A1 (en) * 2005-03-30 2006-10-05 Sbc Knowledge Ventures, L.P. System and method for providing a visual display element for a graphical browser interface
CN102508861A (en) * 2011-09-30 2012-06-20 华为技术有限公司 Webpage color setting method, webpage browser and webpage server
CN103903593A (en) * 2012-12-27 2014-07-02 腾讯科技(武汉)有限公司 Adjustment method of display background of page, and terminal
CN103761098A (en) * 2014-01-23 2014-04-30 贝壳网际(北京)安全技术有限公司 Method and device for changing webpage skin and browser

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558195A (en) * 2018-11-12 2019-04-02 厦门欢乐逛科技股份有限公司 Font special efficacy adjusting method, medium, computer equipment and device
CN109558195B (en) * 2018-11-12 2021-07-06 厦门欢乐逛科技股份有限公司 Font special effect adjusting method, medium, computer equipment and device
CN109859283A (en) * 2018-12-22 2019-06-07 Oppo广东移动通信有限公司 One kind taking color method, takes color device, electronic equipment and can storage medium
CN109859283B (en) * 2018-12-22 2024-01-09 Oppo广东移动通信有限公司 Color taking method, color taking device, electronic equipment and storable medium
CN111191424A (en) * 2019-12-31 2020-05-22 北京华为数字技术有限公司 Page color matching method and device, storage medium and chip
CN111191424B (en) * 2019-12-31 2023-03-03 北京华为数字技术有限公司 Page color matching method and device, storage medium and chip
CN113157356A (en) * 2020-01-22 2021-07-23 阿里巴巴集团控股有限公司 Method and device for adjusting object color, electronic equipment and computer storage medium
CN113238829A (en) * 2021-06-07 2021-08-10 北京字节跳动网络技术有限公司 Background color generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2016034031A1 (en) 2016-03-10
CN105468617B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN105468617A (en) Method and device for regulating webpage content color
CN107170424B (en) Display control method, display method and electronic equipment
KR101481684B1 (en) Icon generation method
CN106484396B (en) Night mode switching method and device and terminal equipment
CN108877692B (en) Method and device for adjusting backlight brightness and electronic equipment
CN105278899B (en) A kind of display control method and device
CN104574495B (en) A kind of image rendering method and device
CN104078028A (en) Screen brightness adjusting method and electronic equipment
CN104765600A (en) Page processing method
CN107016978B (en) A kind of showing interface technology and terminal device
JPWO2006049058A1 (en) Video signal converter, video display device
CN105955754B (en) A kind of user interface character displaying method and device
CN105282334A (en) Mobile terminal and method for adjusting screen brightness of mobile terminal
CN104423909A (en) Information processing method and electronic device
CN113920912B (en) Display attribute adjusting method and related equipment
CN106919303A (en) The method of adjustment and system of a kind of icon
CN102768763A (en) Method and device for outlining characters
CN104765599A (en) Terminal
CN106528161B (en) Terminal device, page display processing device and method
CN106331346B (en) Contrast adjusting method and device, display screen with device and portable equipment
CN112541955A (en) Image processing method, device and equipment
CN103631577A (en) Image display adjusting method and device
CN104715735A (en) Backlight adjusting method and device
CN103544931B (en) Character generating method and device and application terminal
CN111414221B (en) Display 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201231

Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 12 / F, 28 Chengfu Road, Haidian District, Beijing 100083

Patentee before: UC MOBILE Ltd.