[go: up one dir, main page]

CN103164519B - Adjust the method and device of toolbar tone - Google Patents

Adjust the method and device of toolbar tone Download PDF

Info

Publication number
CN103164519B
CN103164519B CN201310074934.5A CN201310074934A CN103164519B CN 103164519 B CN103164519 B CN 103164519B CN 201310074934 A CN201310074934 A CN 201310074934A CN 103164519 B CN103164519 B CN 103164519B
Authority
CN
China
Prior art keywords
color
picture
toolbar
tone
adjustment value
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
Application number
CN201310074934.5A
Other languages
Chinese (zh)
Other versions
CN103164519A (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 CN201310074934.5A priority Critical patent/CN103164519B/en
Publication of CN103164519A publication Critical patent/CN103164519A/en
Application granted granted Critical
Publication of CN103164519B publication Critical patent/CN103164519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses the method and device adjusting toolbar tone, described method includes: after the browser loading webpage opened on display screen completes, obtain the first hue adjustment value of toolbar on described browser;The tone of described toolbar is adjusted according to described first hue adjustment value.In the embodiment of the present invention, when the tone that webpage presents and toolbar tone contrast are bigger, owing to can be adjusted the tone of toolbar, the tone making the tone of toolbar present with webpage is consistent, therefore can improve experience when user browses webpage.

Description

Method and device for adjusting tone of toolbar
Technical Field
The present invention relates to the field of mobile communication technologies, and in particular, to a method and an apparatus for adjusting a toolbar color.
Background
In the prior art, when a user accesses different websites and webpages through browsers installed on terminals, a toolbar is arranged at the bottom of each browser, and various function buttons are arranged on the toolbar, so that the user can realize various function operations in the process of browsing webpages, for example, returning to a previous accessed webpage, returning to a browser homepage, opening a new window, and the like.
During the research of the prior art, the inventor finds that the tool bar at the bottom of the browser is generally set to be a fixed color tone, such as light blue, light gray, and the like. However, when a user accesses different websites or webpages through the browser, the webpages may present different styles and hues according to different display contents of the webpages, and when the hues presented by the webpages are greatly different from the hues presented by the toolbars, the attention of the user when browsing the webpages is easily dispersed, and the user experience is reduced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting the tone of a toolbar, and aims to solve the problem that in the prior art, the user experience is not high due to the fact that the tone of the toolbar is fixed.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
in a first aspect, a method for adjusting a toolbar color tone is provided, the method including:
after loading a webpage by a browser started on a display screen is finished, acquiring a first color tone adjustment value of a toolbar on the browser;
and adjusting the color tone of the toolbar according to the first color tone adjustment value.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining a first color adjustment value of a toolbar on the browser includes:
intercepting a picture of a webpage displayed on the display screen;
analyzing a dominant hue of the picture, and using a value of the dominant hue as a first hue adjustment value of the toolbar;
or,
and receiving a first color adjustment value of the toolbar on the browser, which is issued by a server of the website to which the webpage belongs.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the analyzing the dominant hue of the picture includes:
caching the picture into a picture with a preset format;
counting the number of pixels belonging to the same color by judging the color of each pixel forming the picture;
calculating the ratio of the number of pixels belonging to the same color to the total number of pixels of the picture;
and determining the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture as the dominant hue of the picture.
With reference to the first possible implementation manner of the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, after adjusting the color tone of the toolbar according to the first color tone adjustment value, the method further includes:
when an operation instruction of a user on the webpage is not received within a preset time, a lower picture of the webpage displayed on the display screen is intercepted, and the proportion of the area of the lower picture in the area of the picture does not exceed a preset proportion threshold value;
analyzing the main tone of the lower picture, and taking the value of the main tone of the lower picture as a second tone adjustment value of the toolbar;
and when the color difference between the second color tone adjustment value and the first color tone adjustment value is larger than a preset color phase threshold value, adjusting the color tone of the toolbar according to the second color tone adjustment value.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, or the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes: and after the tone of the toolbar is adjusted, setting the tone transparency of the toolbar to be a preset transparency threshold value.
In a second aspect, there is provided an apparatus for adjusting a tone of a toolbar, the apparatus comprising:
the system comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a first color adjustment value of a toolbar on a browser after the browser started on a display screen finishes webpage loading;
and an adjusting unit configured to adjust the color of the toolbar according to the first color adjustment value acquired by the acquiring unit.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the obtaining unit includes:
the intercepting unit is used for intercepting the picture of the webpage displayed on the display screen;
an analyzing unit configured to analyze the dominant hue of the picture clipped by the clipping unit, and use a value of the dominant hue as a first hue adjustment value of the toolbar; or,
and the receiving unit is used for receiving a first color adjustment value of the toolbar on the browser, which is issued by a server of the website to which the webpage belongs.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the analysis unit includes:
the cache subunit is used for caching the picture intercepted by the intercepting unit into a picture in a preset format;
the statistic subunit is used for counting the number of pixels belonging to the same color by judging the color of each pixel forming the picture;
a calculating subunit, configured to calculate a ratio of the number of pixels belonging to the same color to the total number of pixels of the picture;
and the determining subunit is used for determining the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture as the dominant hue of the picture.
With reference to the first possible implementation manner of the second aspect or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the intercepting unit is further configured to intercept a lower picture of the web page displayed on the display screen when an operation instruction of the user on the web page is not received within a preset time, where a ratio of an area of the lower picture to an area of the picture does not exceed a preset ratio threshold;
the analysis unit is further configured to analyze the dominant hue of the lower picture captured by the capturing unit, and use the value of the dominant hue of the lower picture as the second hue adjustment value of the toolbar;
the adjusting unit is further configured to adjust the color of the toolbar according to the second color adjustment value when the color difference between the second color adjustment value and the first color adjustment value is greater than a preset color threshold.
With reference to the second aspect, or the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, or the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the setting unit is used for setting the tone transparency of the toolbar to be a preset transparency threshold after the adjustment unit adjusts the tone of the toolbar.
In the embodiment of the invention, after the browser opened on the display screen finishes loading the webpage, the first color tone adjusting value of the toolbar on the browser is obtained, and the color tone of the toolbar is adjusted according to the first color tone adjusting value. In the embodiment of the invention, when the contrast between the color tone presented by the webpage and the color tone presented by the toolbar is larger, the color tone of the toolbar can be adjusted to be consistent with the color tone presented by the webpage, so that the experience of a user when browsing the webpage can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a flowchart illustrating an embodiment of a method for adjusting toolbar color;
FIG. 2 is a flowchart illustrating another embodiment of a method for adjusting toolbar color;
FIG. 3 is a flowchart illustrating another embodiment of a method for adjusting toolbar color;
FIG. 4 is a block diagram of an apparatus for adjusting toolbar color according to an embodiment of the present invention;
FIG. 5 is a block diagram of another embodiment of the apparatus for adjusting toolbar color according to the present invention;
FIG. 6 is a block diagram of another embodiment of an apparatus for adjusting toolbar color according to the present invention;
fig. 7 is a block diagram of an embodiment of a terminal of the present invention.
Detailed Description
The following embodiments of the invention provide a method, a device and a terminal for adjusting toolbar color.
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of an embodiment of a method for adjusting toolbar color according to the present invention is shown:
step 101: and when the browser opened on the display screen finishes loading the webpage, acquiring a first color tone adjustment value of a toolbar on the browser.
The method and the device can be applied to a terminal provided with a browser, a user can access an interested webpage on the browser after clicking the browser, and in the access process, the tone adjustment value of the toolbar on the browser can be obtained according to the method and the device, so that the tone of the toolbar is consistent with the tone presented by the webpage, and the experience of the user when browsing the webpage is improved.
When the first hue adjustment value of the toolbar on the browser is obtained, in an optional implementation manner, a picture of a webpage displayed on a display screen may be captured, a dominant hue of the picture may be analyzed, and the value of the dominant hue may be used as the first hue adjustment value of the toolbar; or, in another alternative implementation manner, the first color adjustment value of the toolbar on the browser, which is issued by the server of the website to which the web page belongs, may be received.
Step 102: the color tone of the toolbar is adjusted according to the first color tone adjustment value.
It can be seen from the above embodiments that, when the color tone of the web page is relatively large compared with the color tone of the toolbar, the color tone of the toolbar can be adjusted to be consistent with the color tone of the web page, so that the experience of the user when browsing the web page can be improved.
Referring to fig. 2, a flow chart of another embodiment of the method for adjusting toolbar color according to the present invention is shown:
step 201: and after the browser started on the display screen finishes webpage loading, intercepting the picture of the webpage displayed on the display screen.
The method and the device can be applied to a terminal provided with a browser, a user can access an interested webpage on the browser after clicking the browser, and in the access process, the tone adjustment value of the toolbar on the browser can be obtained according to the method and the device, so that the tone of the toolbar is consistent with the tone presented by the webpage, and the experience of the user when browsing the webpage is improved.
In this embodiment, after the browser finishes loading the webpage selected by the user, the picture of the webpage displayed on the display screen may be captured, and the captured picture may adopt a picture capturing function carried by the existing browser, which is not limited in this embodiment of the present invention.
Step 202: the dominant hue of the picture is analyzed and the value of the dominant hue is used as the first hue adjustment value for the toolbar.
In this embodiment, when analyzing the main color tone of the picture, the picture may be cached into the picture in a preset format, for example, the preset format may be a PNG format or another format, for example, a JPEG format, and the like. Optionally, in order to improve the analysis efficiency, the color bit number of the cached picture may be further adjusted, for example, the color bit number of the picture is reduced to 24 bits or 16 bits, a lower color bit number indicates that the number of pixels constituting the picture is smaller, and correspondingly, the number of pixels is smaller, and when the ratio of the pixels of each color to the total number of pixels of the picture is subsequently counted, the counting speed is faster. Secondly, the number of pixels belonging to the same color can be counted by judging the color of each pixel constituting the picture. When the color of each pixel constituting the picture is determined, the pixels may be sequentially scanned from top to bottom and from left to right, the color of each pixel may be determined, and a counter may be set for each color to count the number of pixels belonging to the same color. Again, the ratio of the number of pixels belonging to the same color to the total number of pixels of the picture may be calculated based on the aforementioned statistical results. Finally, the calculated ratios of the number of the pixels with different colors to the total number of the pixels of the picture are sorted from high to low, and the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture is selected as the dominant hue of the picture.
Step 203: the color tone of the toolbar is adjusted according to the first color tone adjustment value.
Step 204: and setting the tone transparency of the toolbar to be a preset transparency threshold value.
The step is an optional step, and after the color tone of the toolbar on the browser is adjusted through the first color tone adjustment value, the color tone transparency of the toolbar can be further set, for example, the adjusted color tone transparency can be reduced to 85%, so that the fusion of the color tone of the toolbar and the color tone of the webpage displayed on the browser is better realized, and the user experience is further improved. It should be noted that other ratio values may be used for the transparency.
It can be seen from the above embodiments that, when the color tone presented by the web page is relatively large in contrast to the color tone of the toolbar, the color tone of the toolbar can be adjusted in combination with the dominant color tone of the analyzed screenshot of the web page, so that the color tone of the toolbar is consistent with the color tone presented by the web page, and therefore, the experience of a user when browsing the web page can be improved.
Referring to fig. 3, a flow chart of another embodiment of the method for adjusting toolbar color according to the present invention is shown:
step 301: and finishing loading the webpage by the browser opened on the display screen.
The method and the device can be applied to a terminal provided with a browser, a user can access an interested webpage on the browser after clicking the browser, and in the access process, the tone adjustment value of the toolbar on the browser can be obtained according to the method and the device, so that the tone of the toolbar is consistent with the tone presented by the webpage, and the experience of the user when browsing the webpage is improved.
Step 302: and intercepting the picture of the webpage displayed on the display screen.
In this embodiment, after the browser finishes loading the webpage selected by the user, the picture of the webpage displayed on the display screen may be captured, and the captured picture may adopt a picture capturing function carried by the existing browser, which is not limited in this embodiment of the present invention.
Step 303: the dominant hue of the picture is analyzed and the value of the dominant hue is used as the first hue adjustment value for the toolbar.
In this embodiment, when analyzing the main color tone of the picture, the picture may be cached as a picture in a preset format, for example, the preset format may be a PNG format. Optionally, in order to improve the analysis efficiency, the color bit number of the cached picture may be further adjusted, for example, the color bit number of the picture is reduced to 24 bits or 16 bits, a lower color bit number indicates that the number of pixels constituting the picture is smaller, and correspondingly, the number of pixels is smaller, and when the ratio of the pixels of each color to the total number of pixels of the picture is subsequently counted, the counting speed is faster. Secondly, the number of pixels belonging to the same color can be counted by judging the color of each pixel constituting the picture. When the color of each pixel constituting the picture is determined, the pixels may be sequentially scanned from top to bottom and from left to right, the color of each pixel may be determined, and a counter may be set for each color to count the number of pixels belonging to the same color. Again, the ratio of the number of pixels belonging to the same color to the total number of pixels of the picture may be calculated based on the aforementioned statistical results. Finally, the calculated ratios of the number of the pixels with different colors to the total number of the pixels of the picture are sorted from high to low, and the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture is selected as the dominant hue of the picture.
Step 304: the color tone of the toolbar is adjusted according to the first color tone adjustment value.
Optionally, after step 304 is executed, the hue transparency of the toolbar may be further set to the preset transparency threshold.
Step 305: and judging whether an operation instruction of the user on the webpage is received within the preset time, if so, returning to the step 302, otherwise, executing the step 306.
Compared with the embodiment shown in fig. 2, in this embodiment, it is considered that the user still browses the current webpage after a period of time, but does not scroll the webpage, and at this time, the user may have browsed the lower part of the webpage, and the dominant hue of the lower part of the webpage may be different from the dominant hue of the whole webpage, so that the dominant hue of the lower screenshot of the webpage may be further determined, so as to determine whether to readjust the hue of the toolbar according to the determination result.
The preset time may be set according to general experience of the user in browsing, and may be set to 2 seconds, for example.
Step 306: intercepting a lower picture of a webpage displayed on a display screen, wherein the proportion of the area of the lower picture in the whole picture area does not exceed a preset proportion threshold value.
When an operation instruction of the user on the webpage is not received within a preset time, it is indicated that the user may have browsed to the lower part of the webpage, and at this time, a lower picture of the page displayed on the display screen is captured, and a ratio of an area of the lower picture to an area of the whole picture does not exceed a preset ratio threshold, for example, the preset ratio threshold may be set to 50%.
When the lower picture of the web page is captured, the lower picture may be captured from the web page picture cached in step 303, or the lower picture of the web page displayed on the display screen may also be directly captured, which is not limited in the embodiment of the present invention.
Step 307: the dominant hue of the lower picture is analyzed and the value of the dominant hue is used as the second hue adjustment value of the toolbar.
In this step, the process of analyzing the dominant hue of the lower picture is consistent with the description in step 302, and is not described herein again.
Step 308: judging whether the color difference between the second color tone adjustment value and the first color tone adjustment value is greater than a preset hue threshold value, if so, executing step 309; otherwise, the current flow is ended.
The hue refers to the qualitative appearance of the color, and is a mark for distinguishing the colors from each other, in this embodiment, it is determined whether the hue of the toolbar needs to be adjusted by determining whether the color difference between the second hue adjustment value and the first hue adjustment value is greater than a preset hue threshold, for example, the hue threshold may be set to 10.
Step 309: and adjusting the tone of the toolbar according to the second tone adjustment value, and ending the current process.
When the color difference between the second color adjustment value and the first color adjustment value is greater than the preset color threshold, it indicates that the lower picture color of the web page has a larger change than the whole picture color, so the color of the toolbar is adjusted according to the second color adjustment value.
Optionally, after step 309 is executed, the hue transparency of the toolbar may be further set to the preset transparency threshold.
It can be seen from the above embodiments that, when the hue presented by the web page is relatively large in contrast to the hue of the toolbar, the hue of the toolbar can be adjusted in combination with the dominant hue of the analyzed screenshot of the web page, so that the hue of the toolbar is consistent with the hue presented by the web page; in particular, the tone of the toolbar can be flexibly adjusted according to the progress of the user browsing the same webpage, so that the experience of the user when browsing the webpage can be improved.
The invention also provides an embodiment of a device and a terminal for adjusting the tone of the toolbar, which corresponds to the embodiment of the method for adjusting the tone of the toolbar.
Referring to fig. 4, a block diagram of an embodiment of the apparatus for adjusting toolbar color according to the present invention is shown:
the device includes: an acquisition unit 410 and an adjustment unit 420.
The acquiring unit 410 is configured to acquire a first color adjustment value of a toolbar on a browser after the browser started on a display screen finishes loading a webpage;
an adjusting unit 420, configured to adjust the color tone of the toolbar according to the first color tone adjustment value acquired by the acquiring unit 410.
Referring to fig. 5, there is a block diagram of another embodiment of the apparatus for adjusting toolbar color according to the present invention:
the device includes: an acquisition unit 510, an adjustment unit 520, and a setting unit 530.
The acquiring unit 510 is configured to acquire a first color adjustment value of a toolbar on a browser after the browser started on a display screen finishes loading a webpage;
specifically, the obtaining unit 510 may include: an intercepting unit 511, configured to intercept a picture of a web page displayed on the display screen; an analyzing unit 512, configured to analyze the dominant hue of the picture clipped by the clipping unit 511, and use the value of the dominant hue as the first hue adjustment value of the toolbar.
Optionally, the analyzing unit 512 may comprise (not shown in fig. 5): the cache subunit is used for caching the picture intercepted by the intercepting unit into a picture in a preset format; the statistic subunit is used for counting the number of pixels belonging to the same color by judging the color of each pixel forming the picture; a calculating subunit, configured to calculate a ratio of the number of pixels belonging to the same color to the total number of pixels of the picture; and the determining subunit is used for determining the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture as the dominant hue of the picture.
Further, the obtaining unit 510 may further include: a reducing unit 513, configured to reduce the number of color bits of the picture in the preset format to a preset number of bits threshold.
An adjusting unit 520, configured to adjust the color of the toolbar according to the first color adjustment value acquired by the acquiring unit 510.
A setting unit 530, configured to set the hue transparency of the toolbar to a preset transparency threshold after the adjustment unit 520 adjusts the hue of the toolbar.
In a preferred implementation:
the intercepting unit 511 may be further configured to intercept a lower picture of the web page displayed on the display screen when an operation instruction of the user on the web page is not received within a preset time, where a ratio of an area of the lower picture to an area of the picture does not exceed a preset ratio threshold;
the analyzing unit 512 is further configured to analyze a dominant hue of the lower picture captured by the capturing unit 511, and use a value of the dominant hue as a second hue adjustment value of the toolbar;
the adjusting unit 520 may be further configured to adjust the color tone of the toolbar according to the second color tone adjustment value when the color difference between the second color tone adjustment value and the first color tone adjustment value is greater than a preset color threshold.
Referring to fig. 6, there is a block diagram of another embodiment of the apparatus for adjusting toolbar color according to the present invention:
the device includes: an acquisition unit 610, an adjustment unit 620, and a setting unit 630.
The acquiring unit 610 is configured to acquire a first color adjustment value of a toolbar on a browser after the browser started on a display screen finishes loading a webpage;
specifically, the obtaining unit 610 may include: the receiving unit 611 is configured to receive a first color adjustment value of the toolbar on the browser, which is issued by a server of the website to which the web page belongs.
An adjusting unit 620 configured to adjust the color of the toolbar according to the first color adjustment value acquired by the acquiring unit 610;
a setting unit 630, configured to set the hue transparency of the toolbar to a preset transparency threshold after the adjustment unit 620 adjusts the hue of the toolbar.
Referring to fig. 7, it is a block diagram of an embodiment of the terminal of the present invention:
the terminal includes: a bus 710, a memory 720, a display 730, and a processor 740 connected by the bus 710.
The memory 720 is used for storing an application program of a browser;
the display screen 730 is used for outputting the webpage loaded after the browser is started;
the processor 740 is configured to, after the browser finishes loading the web page, obtain a first color adjustment value of the toolbar on the browser, and adjust the color of the toolbar according to the first color adjustment value.
Optionally, the processor 740 may be specifically configured to intercept a picture of the web page displayed on the display screen, analyze a dominant hue of the picture, and use a value of the dominant hue as the first hue adjustment value of the toolbar, or receive the first hue adjustment value of the toolbar on the browser sent by the server of the website to which the web page belongs.
Optionally, the processor 740 may be specifically configured to cache the picture as a picture in a preset format, count the number of pixels belonging to the same color by determining the color of each pixel constituting the picture, calculate a ratio of the number of pixels belonging to the same color to the total number of pixels of the picture, and determine a color with a highest ratio of the number of pixels to the total number of pixels of the picture as the dominant hue of the picture.
Optionally, the processor 740 may be further configured to reduce the number of color bits of the picture in the preset format to a preset bit number threshold.
Optionally, the processor 740 may be further configured to, when an operation instruction of the user on the web page is not received within a preset time, intercept a lower picture of the web page displayed on the display screen, where a ratio of an area of the lower picture to the picture area does not exceed a preset ratio threshold, analyze a dominant hue of the lower picture, use a value of the dominant hue as a second hue adjustment value of the toolbar, and adjust the hue of the toolbar according to the second hue adjustment value when a color difference between the second hue adjustment value and the first hue adjustment value is greater than a preset hue threshold.
Optionally, the processor 740 may be further configured to set the hue transparency of the toolbar to a preset transparency threshold after adjusting the hue of the toolbar.
As can be seen from the above embodiments, after the browser opened on the display screen finishes loading the web page, the first hue adjustment value of the toolbar on the browser is obtained, and the hue of the toolbar is adjusted according to the first hue adjustment value. In the embodiment of the invention, when the contrast between the color tone presented by the webpage and the color tone presented by the toolbar is larger, the color tone of the toolbar can be adjusted to be consistent with the color tone presented by the webpage, so that the experience of a user when browsing the webpage can be improved.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of adjusting toolbar tone, the method comprising:
after loading a webpage by a browser started on a display screen is finished, acquiring a first color tone adjustment value of a toolbar on the browser;
adjusting the color of the toolbar according to the first color adjustment value;
after the color tone of the toolbar is adjusted according to the first color tone adjustment value, the method further includes:
when an operation instruction of a user on the webpage is not received within a preset time, intercepting a lower picture of the webpage displayed on the display screen, wherein the area of the lower picture accounts for the picture area and does not exceed a preset proportion threshold, and the picture is the intercepted picture of the webpage displayed on the display screen;
analyzing the main tone of the lower picture, and taking the value of the main tone of the lower picture as a second tone adjustment value of the toolbar;
and when the color difference between the second color tone adjustment value and the first color tone adjustment value is larger than a preset color phase threshold value, adjusting the color tone of the toolbar according to the second color tone adjustment value.
2. The method of claim 1, wherein obtaining the first palette adjustment value for the toolbar on the browser comprises:
analyzing a dominant hue of the picture, and using a value of the dominant hue as a first hue adjustment value of the toolbar;
or,
and receiving a first color adjustment value of the toolbar on the browser, which is issued by a server of the website to which the webpage belongs.
3. The method of claim 2, wherein analyzing the dominant hue of the picture comprises:
caching the picture into a picture with a preset format;
counting the number of pixels belonging to the same color by judging the color of each pixel forming the picture;
calculating the ratio of the number of pixels belonging to the same color to the total number of pixels of the picture;
and determining the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture as the dominant hue of the picture.
4. A method according to any one of claims 1 to 3, characterized in that the method further comprises: and after the tone of the toolbar is adjusted, setting the tone transparency of the toolbar to be a preset transparency threshold value.
5. An apparatus for adjusting a color tone of a toolbar, the apparatus comprising:
the system comprises an acquisition unit, a display unit and a control unit, wherein the acquisition unit is used for acquiring a first color adjustment value of a toolbar on a browser after the browser started on a display screen finishes webpage loading;
an adjusting unit configured to adjust the color of the toolbar according to the first color adjustment value acquired by the acquiring unit;
the intercepting unit is used for intercepting a lower picture of the webpage displayed on the display screen when an operation instruction of a user on the webpage is not received within a preset time, wherein the proportion of the area of the lower picture in the area of the picture does not exceed a preset proportion threshold value, and the picture is the intercepted picture of the webpage displayed on the display screen;
an analyzing unit, configured to analyze the dominant hue of the lower picture captured by the capturing unit, and use a value of the dominant hue of the lower picture as a second hue adjustment value of the toolbar;
the adjusting unit is further configured to adjust the color of the toolbar according to the second color adjustment value when the color difference between the second color adjustment value and the first color adjustment value is greater than a preset color threshold.
6. The apparatus of claim 5, wherein the obtaining unit comprises:
an analyzing unit configured to analyze the dominant hue of the picture clipped by the clipping unit, and use a value of the dominant hue as a first hue adjustment value of the toolbar; or,
and the receiving unit is used for receiving a first color adjustment value of the toolbar on the browser, which is issued by a server of the website to which the webpage belongs.
7. The apparatus of claim 6, wherein the analysis unit comprises:
the cache subunit is used for caching the picture intercepted by the intercepting unit into a picture in a preset format;
the statistic subunit is used for counting the number of pixels belonging to the same color by judging the color of each pixel forming the picture;
a calculating subunit, configured to calculate a ratio of the number of pixels belonging to the same color to the total number of pixels of the picture;
and the determining subunit is used for determining the color with the highest ratio of the number of the pixels to the total number of the pixels of the picture as the dominant hue of the picture.
8. The apparatus of any one of claims 5 to 7, further comprising:
and the setting unit is used for setting the tone transparency of the toolbar to be a preset transparency threshold after the adjustment unit adjusts the tone of the toolbar.
CN201310074934.5A 2013-03-08 2013-03-08 Adjust the method and device of toolbar tone Active CN103164519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310074934.5A CN103164519B (en) 2013-03-08 2013-03-08 Adjust the method and device of toolbar tone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310074934.5A CN103164519B (en) 2013-03-08 2013-03-08 Adjust the method and device of toolbar tone

Publications (2)

Publication Number Publication Date
CN103164519A CN103164519A (en) 2013-06-19
CN103164519B true CN103164519B (en) 2016-08-03

Family

ID=48587607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310074934.5A Active CN103164519B (en) 2013-03-08 2013-03-08 Adjust the method and device of toolbar tone

Country Status (1)

Country Link
CN (1) CN103164519B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278795B (en) * 2014-06-06 2019-12-03 腾讯科技(北京)有限公司 A kind of method and apparatus on display function column
CN105551011B (en) * 2014-10-29 2019-01-29 阿里巴巴集团控股有限公司 A kind of setting method and device of dominant hue
CN105741327B (en) * 2014-12-10 2019-06-11 阿里巴巴集团控股有限公司 The method and apparatus for extracting the mass-tone and assertive colours of picture
CN105786896A (en) * 2014-12-24 2016-07-20 阿里巴巴集团控股有限公司 Color rendering method and device of page sidebar
CN106708496B (en) * 2015-11-18 2020-03-17 腾讯科技(深圳)有限公司 Processing method and device for label page in graphical interface
CN105389403B (en) * 2015-12-29 2019-01-25 东软集团股份有限公司 Page style automatic matching method and system
CN106201535B (en) * 2016-07-14 2019-08-23 广州神马移动信息科技有限公司 The method and apparatus that toolbar background color is converted with the domain color of picture
CN106202549A (en) * 2016-07-26 2016-12-07 珠海市魅族科技有限公司 The method and device that a kind of picture loads
CN106648305A (en) * 2016-10-26 2017-05-10 天脉聚源(北京)传媒科技有限公司 Status bar processing method and device
CN107729100B (en) * 2017-09-26 2020-04-28 维沃移动通信有限公司 A kind of interface display control method and mobile terminal
CN108257221B (en) * 2018-02-24 2022-02-01 网易(杭州)网络有限公司 Tone adjusting method, tone adjusting apparatus, storage medium, and electronic apparatus
CN113626129B (en) * 2021-10-09 2022-02-18 北京世纪好未来教育科技有限公司 Page color determination method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6636228B2 (en) * 2001-06-07 2003-10-21 Microsoft Corporation Method of ensuring adequate contrast of graphical user interface elements
CN1487413A (en) * 2002-09-30 2004-04-07 联想(北京)有限公司 Method of automatically regulating interface style based on background image
CN101308445A (en) * 2008-06-26 2008-11-19 无敌科技(西安)有限公司 Method for effectively relieving menu icon under picture background
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN102508861A (en) * 2011-09-30 2012-06-20 华为技术有限公司 Webpage color setting method, webpage browser and webpage server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6636228B2 (en) * 2001-06-07 2003-10-21 Microsoft Corporation Method of ensuring adequate contrast of graphical user interface elements
CN1487413A (en) * 2002-09-30 2004-04-07 联想(北京)有限公司 Method of automatically regulating interface style based on background image
CN101308445A (en) * 2008-06-26 2008-11-19 无敌科技(西安)有限公司 Method for effectively relieving menu icon under picture background
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN102508861A (en) * 2011-09-30 2012-06-20 华为技术有限公司 Webpage color setting method, webpage browser and webpage server

Also Published As

Publication number Publication date
CN103164519A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
CN103164519B (en) Adjust the method and device of toolbar tone
CN107885848B (en) Webpage screen capturing method based on web technology
CN103777939B (en) A kind of method for measuring initial screen time of webpage
CN102831209B (en) Rendering method and rendering device for webpage browsing and mobile terminal
WO2015143956A1 (en) Method and apparatus for blocking advertisement in web page
US9477762B2 (en) Search controls using sliders and lightboxes
EP3267325B1 (en) Page phase time
US20160371229A1 (en) Method and system for previewing a web page
CN107943997B (en) Remote website evidence obtaining method based on Google browser, terminal device and storage medium
CN110659092B (en) Webpage screenshot method and device, computer equipment and storage medium
US10313746B2 (en) Server, client and video processing method
CN102855318A (en) Method and system for preloading of webpages
CN110929197A (en) Method and device for previewing and loading webpage picture
CN104978358B (en) The method and intercepting page segment of desktop presentation web page fragments are to desktop presentation system
WO2019085598A1 (en) Method and apparatus for calculating above-the-fold rendering duration of page, and electronic device
CN103324521A (en) Method for measuring initial screen time of webpage
CN104537021A (en) Method for setting browser background and browser client
CN103942231B (en) A kind of display methods and electronic equipment of webpage
Shroff et al. Critical rendering path optimizations to reduce the web page loading time
CN103064925A (en) Method and device for regularly processing webpage
EP3016012A1 (en) Method and device for marking terminal
CN104881273A (en) Webpage rendering analysis method and terminal device
CN103810193A (en) Webpage element shielding method and device
US20140359405A1 (en) Method and device of displaying images in text information
CN102799655A (en) Processing method and apparatus of improper picture information in webpage

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200421

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

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

Address before: 100080, room 16, building 10-20, Building 29, Haidian District, Suzhou Street, Beijing

Patentee before: UC MOBILE Ltd.