CN109614192A - Page brightness display methods and device - Google Patents
Page brightness display methods and device Download PDFInfo
- Publication number
- CN109614192A CN109614192A CN201811501925.9A CN201811501925A CN109614192A CN 109614192 A CN109614192 A CN 109614192A CN 201811501925 A CN201811501925 A CN 201811501925A CN 109614192 A CN109614192 A CN 109614192A
- Authority
- CN
- China
- Prior art keywords
- page
- browser
- adjusted
- display brightness
- display
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention provides a kind of page brightness display methods and devices, are related to field of display technology, which is adjusted the display brightness of the page in browser by determining the need for;Wherein, the page is shown in the page area of the browser, and page area is provided with mask layer, mask layer cover page region;In the case where determining that needs are adjusted the display brightness of the page, the parameter information of mask layer is adjusted, to adjust the display brightness of the page.This method is easy to operate, and the page brightness vision-control of browser can be realized without relying on the primary technology of app and installing browser plug-in, promote user experience.In addition, this method can also realize that automation adjusts prompt, and the color of picture, video being directed in browser window etc. or transparency also can promote the page and show friendly with change.
Description
Technical field
The present invention relates to display fields, more particularly, to a kind of page brightness display methods and device.
Background technique
With the development of network technology, user, which browses information by browser, becomes the main way that contemporary people obtains information
Diameter.
Currently, there is the display mode for allowing hand over mode, such as browser in the eyesight in order to protect user, browser
It can be switched to Night, however the Night of existing browser, mainly for mobile phone terminal application program (app),
Implementation depends on the primary technology of app, and low efficiency does not support computer (PC) to hold;And for the Night at the end PC, in the market
Browser plug-in is then depended on, but for a user, the downloading of plug-in unit, installation, using all very inconvenient.
In view of the above-mentioned problems, there has been no effective solution schemes at present.
Summary of the invention
To solve the above-mentioned problems, it the purpose of the present invention is to provide a kind of page brightness display methods and device, is not necessarily to
It relies on the primary technology of app or the page brightness vision-control of browser can be realized in installation plug-in unit, promote user experience.
In a first aspect, the embodiment of the invention provides a kind of page brightness display methods, comprising:
It determines the need for being adjusted the display brightness of the page in browser;Wherein, the page is shown in described
In the page area of browser, the page area is provided with mask layer, and the mask layer covers the page area;
In the case where determining that needs are adjusted the display brightness of the page, the parameter letter of the mask layer is adjusted
Breath, to adjust the display brightness of the page.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein
Before determining the need for being adjusted the display brightness of the page in browser, the method also includes:
Obtain the current time of the browser;In the case where the current time meets preset condition, determines and need
The display brightness of the page in browser is adjusted.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides second of first aspect
Possible embodiment, wherein in the case where the current time meets preset condition, determination is needed to the page in browser
Display brightness be adjusted and include:
In the case where the current time meets preset condition, vision-control prompt information, wherein the adjusting prompt
Whether information is for prompting to be adjusted the display brightness of the page;
Receive confirmation message, wherein the confirmation message is used to indicate determination and needs the display to the page in browser bright
Degree is adjusted.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein really
It is fixed that the display brightness to the page in browser whether is needed to be adjusted, comprising:
Receive specified signal, wherein the Macintosh key assignments of user's key entry is carried in the specified signal;
Determine the need for adjusting the display brightness of the page according to the Macintosh key assignments.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
Stating parameter information includes: color information, transparence information.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein adjusts
The parameter information of the whole mask layer includes:
In the case where determining that the display brightness of the page is adjusted to the display brightness under preset display mode by needs,
Preset value corresponding with the preset display mode is set by the parameter information of the mask layer.
Second aspect, the embodiment of the present invention also provide a kind of page brightness display device, are applied to terminal, the display dress
It sets and includes:
Judgment module is used to determine whether that the display brightness to the page in browser is needed to be adjusted;Wherein, the page
Face is shown in the page area of the browser, and the page area is provided with mask layer, and the mask layer covers the page
Face region;
Module is adjusted, in the case where determining that needs are adjusted the display brightness of the page, described in adjustment
The parameter information of mask layer, to adjust the display brightness of the page.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein should
Display device further include:
Module is obtained, for obtaining the current time of the browser;Meet the feelings of preset condition in the current time
Under condition, determination needs the display brightness to the page in browser to be adjusted.
In conjunction with the first possible embodiment of second aspect, the embodiment of the invention provides second of second aspect
Possible embodiment, wherein the acquisition module includes:
Information alert unit, in the case where the current time meets preset condition, vision-control prompt information,
Wherein, whether the adjusting prompt information is for prompting to be adjusted the display brightness of the page;
Information receiving unit, for receiving confirmation message, wherein the confirmation message, which is used to indicate, determines needs to browsing
The display brightness of the page is adjusted in device.
In conjunction with second aspect, the embodiment of the invention provides the third possible embodiments of second aspect, wherein institute
Stating judgment module includes:
Signal receiving unit, for receiving specified signal, wherein the combination of user's key entry is carried in the specified signal
Key key assignments;
Determination unit, for determining the need for adjusting the display brightness of the page according to the Macintosh key assignments.
In conjunction with second aspect, the embodiment of the invention provides the 4th kind of possible embodiments of second aspect, wherein institute
Stating parameter information includes: color information, transparence information.
In conjunction with second aspect, the embodiment of the invention provides the 5th kind of possible embodiments of second aspect, wherein institute
Adjustment module is stated to be used to determine the display brightness for needing to be adjusted to the display brightness of the page under preset display mode
In the case of, preset value corresponding with the preset display mode is set by the parameter information of the mask layer.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory
In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program
The step of method stated.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor
The step of calculation machine readable medium, said program code makes the processor execute above-mentioned method.
The embodiment of the present invention brings following the utility model has the advantages that page brightness display methods provided in an embodiment of the present invention, dress
It sets, electronic equipment and computer-readable medium, wherein the page brightness display methods comprises determining whether to need to browser
The display brightness of the middle page is adjusted;Wherein, the page is shown in the page area of browser, and page area is provided with mask
Layer, mask layer cover page region;In the case where determination needs to be adjusted the display brightness of the page, mask layer is adjusted
Parameter information, to adjust the display brightness of the page.Technical solution provided in an embodiment of the present invention, by the page pool of browser
Domain top layer cover mask layer realize page brightness regulation, there is no need to rely on the primary technology of app or installation plug-in unit can be realized it is clear
Look at the page brightness vision-control of device, the user experience is improved degree.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of page brightness display methods provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another page brightness display methods provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the third page brightness display methods provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the 4th kind of page brightness display methods provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of page brightness display device provided in an embodiment of the present invention;
Fig. 6 is the schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, there is the display mode for allowing hand over mode, such as browser in the eyesight in order to protect user, browser
It can be switched to Night, however the Night of existing browser, mainly for mobile phone terminal application program (app),
Implementation depends on the primary technology of app, low efficiency, and computer (PC) is not supported to hold;And for the Night at the end PC, market
On then depend on browser plug-in, but for a user, the downloading of plug-in unit, installation, using all very inconvenient, this
The mode of outer installation plug-in unit realizes that the principle of Night also mainly passes through background attribute modification background colour, but is directed to
Picture, video etc. or light tone do not fully achieve Night since Background does not change, and page friendly is poor.Base
In this, a kind of page brightness display methods provided in an embodiment of the present invention and device are inserted without relying on the primary technology of app or installation
The page brightness vision-control of browser can be realized in part, promotes user experience.
For convenient for understanding the present embodiment, first to a kind of page brightness display side disclosed in the embodiment of the present invention
Method describes in detail.
Embodiment one:
The embodiment of the invention provides a kind of page brightness display methods, can be applied to field of display devices.Such as Fig. 1 institute
Show, which includes:
Step S101, it is determined whether the display brightness to the page in browser is needed to be adjusted.
Wherein, the page is shown in the page area of browser, and page area is provided with mask layer, mask layer cover page
Region;
When in view of showing the page in page area, there are hierarchical relationship between the different pages, i.e., the page with
Priority between the page is different, and can be preferably displaying in page area in the top page, therefore, mask here
Layer is the top layer in hierarchical relationship, and in other words, mask layer possesses highest priority, can be to the top page below
Carry out mask.
Wherein, mask layer is to pre-install in a vessel, the position of every attribute value definition mask layer by the way that container is arranged
(top of page area), origin coordinates, size, color and transparency etc. are set, the correlation attribute value by changing container can
To realize the change of position, origin coordinates, size, color, transparency to the mask layer of mask layer.Specifically, being arranged first
Mask layer is mounted in the container of the blank by the container of one blank in advance.
It should be pointed out that position, origin coordinates, the size etc. of usually mask layer are preset by developer, and it is
With page area be adapted, the page brightness show it is mainly related to the color of mask layer, transparency, therefore, adjust the page it is bright
Degree is mainly realized by adjusting the color information of mask layer and transparence information.In addition, above-mentioned container can be preset
In the terminal.
Step S102 adjusts the parameter of mask layer in the case where determination needs to be adjusted the display brightness of the page
Information, to adjust the display brightness of the page.
Wherein, parameter information here specifically includes that color information, transparence information, wherein color information refer to by
The color of rgb attribute value definition, rgb represent three color grayscale of red, green, blue, and transparence information is characterized with transparency, here with
A represents transparency.The color to mask layer may be implemented by the attribute value of color and the attribute value of transparency that change container
The change of information, transparence information.Since mask layer is located at top, the parameter for working as mask layer is changed, the page
Display brightness also just changed, i.e., the change of mask layer parameter to user present page-out display brightness generate variation
Visual effect.
Specifically, determining that the color for adjusting mask layer is believed in the case where needing to be adjusted the display brightness of the page
Breath or transparence information adjust the display brightness of the page, to make the display mode of browser meet the needs of users, are promoted
User experience.
Page brightness display methods provided in an embodiment of the present invention shows the page in browser by determining the need for
Show that brightness is adjusted;Wherein, the page is shown in the page area of above-mentioned browser, which is provided with mask layer,
Mask layer covers the page area;Then in the case where determination needs the display brightness to the above-mentioned page to be adjusted, adjustment
The parameter information of mask layer, to adjust the display brightness of the page.Technical solution provided in an embodiment of the present invention, by browser
The top of page area one layer of global mask layer is set, need the display brightness to the page in browser to adjust in determination
In the case where whole, adjustment page display brightness could be adjusted to the parameter information of mask layer, to meet the display demand of user;
This method is easy to operate, without rely on the primary technology of app or install browser plug-in can be realized browser page brightness it is aobvious
Show adjusting, promote user experience, and this method can also carry out mask for picture, the video of browser, solves existing
There is in technology the problem of by picture caused by modification background colour, video or light tone, improves the friendly of browser page.
Embodiment two:
As shown in Fig. 2, the embodiment of the invention also provides another page brightness display methods, this method comprises:
Step S201 receives specified signal, wherein the Macintosh key assignments of user's key entry is carried in specified signal.
Here specified signal can be mode designating signal or signal is specified in brightness, in other embodiments, specify
Signal can also be that color specifies signal, and different Macintosh key assignments corresponds to different Macintosh key assignments.
Specifically, the specified signal that user is sent by the Macintosh key assignments that keyboard inputs is received, specified signal here
It is one-to-one with Macintosh key assignments;For example, specifying the Macintosh key assignments and specified letter of preset display mode in specified signal
The Macintosh key assignments that given luminance increases and decreases in number is different, therefore can be may recognize that and be somebody's turn to do by reading Macintosh key assignments i.e.
The corresponding specified signal of Macintosh key assignments;It should be understood that Macintosh key assignments can according to the key press habits of most users into
Row setting.
Step S202 determines the need for adjusting the display brightness of the page according to Macintosh key assignments.
Wherein, the page is shown in the page area of browser, and page area is provided with mask layer, mask layer cover page
Region.
Step S203 adjusts the parameter of mask layer in the case where determination needs to be adjusted the display brightness of the page
Information, to adjust the display brightness of the page.
Wherein, the parameter information of above-mentioned adjustment mask layer includes:
In the case where determination needs the display brightness of the page being adjusted to the display brightness under preset display mode, will hide
The parameter information of cap layer is set as preset value corresponding with preset display mode.
Here preset display mode includes mode display pattern, brightness display pattern and color displays mode, right respectively
Should be in different specified signals, wherein mode display pattern includes Night and non-Night.
It is illustrated for the parameter information of display pattern in mode below:
Under non-night display pattern: the preset value of the parameter information of mask layer uses as default, specifically, default value
Three color grayscale of red, green, blue is represented for (rgba, 0,0,0,0.0), rgb, a represents transparency, and default color rgb is 0,0,0, writes from memory
Recognizing transparency a is 0.0, i.e., the default color of mask layer is black, and the default value of the transparency of mask layer is 0;In other words, non-night
Between default color transparency above-mentioned under mode must be transparent color.
Under night display pattern brightness: the corresponding preset value of the parameter information of mask layer is as follows: (rgba, 0,0,0,
It 0.3) is normal night brightness, (rgba, 0,0,0,0.5) is that depth is dark.
It should be pointed out that carrying out the brightness regulation under implementation pattern display pattern here mainly by modification transparency, i.e.,
The transparency of mask layer is adjusted to preset value, the preset value correspond to preset display mode, different preset display modes, in advance
If value is different, such as the corresponding preset value of night display pattern, non-Night correspond to another preset value, certainly,
Night can also be divided into according to the time point of preset condition normal Night (corresponding universal night time point 20:
00), depth Night (corresponding late night hours point 22:00) etc.;Such as default transparency a is 0.0 (default value 0) corresponding non-night
Between mode, if transparency a is revised as 0.3 corresponding normal Night, if referring to according to mode tuning according to mode tuning instruction
It enables, transparency a is revised as 0.5 corresponding depth Night.
Page brightness display methods provided in an embodiment of the present invention passes through the specified signal for receiving user, and according to specified letter
Number the parameter information of mask layer is adjusted to preset value corresponding with specified signal, allow users to actively to page brightness into
Row is adjusted, and improves the Experience Degree of user.
Embodiment three:
As shown in figure 3, the embodiment of the invention provides the third page brightness display methods, the page brightness display methods
Include:
Step S301 obtains the current time of browser.
Specifically, obtaining the current time of browser by JS (JavaScript, a kind of programming language).
Step S302, it is determined whether the display brightness to the page in browser is needed to be adjusted.
Wherein, the page is shown in the page area of browser, and page area is provided with mask layer, mask layer cover page
Region.
Step S303 determines the display needed to the page in browser in the case where current time meets preset condition
Brightness is adjusted.
Specifically, the step is mainly realized by following steps:
1, in the case where current time meets preset condition, vision-control prompt information, wherein above-mentioned adjusting prompt letter
Whether breath is for prompting to be adjusted the display brightness of the page;
Wherein, adjusting prompt information can show the information such as text, icon to prompt to be in a manner of pop-up or dialog box
The no display brightness to the page is adjusted, and default voice messaging can also be played in a manner of voice prompting and is mentioned
Show, it should be noted that the mode for adjusting prompt information is not limited to the mode of above-mentioned text, icon, voice, can also basis
The mode diversified demand of user is preset, and the present embodiment is not especially limited.
When it is implemented, judge whether current time meets preset condition according to the current time of the browser got,
When current time meets preset condition, is sent by preset prompting mode (such as in a manner of text pop-up) and adjust prompt information.
2, confirmation message is received, wherein the confirmation message is used to indicate determination and needs the display to the page in browser bright
Degree is adjusted.
The display brightness to the page in browser is needed to be adjusted with determination specifically, receiving the confirmation message of user,
Such as it receives user and is needed by clicking the instruction determination that the ACK button of pop-up prompt information is sent to the page in browser
The confirmation message that display brightness is adjusted.
It by obtaining current time, and is compared with the time point of preset condition, when current time meets sometime
When the preset condition of point, the adjusting prompt information being consistent with the time point is shown, to user to remind user to carry out display tune
Section, so that the eyesight of effective protection user, further promotes user experience;For example, the time point in preset condition is one,
When the time point is certain evening hours 20:00, in order to protect the eyesight of user, when the current time of the browser got reaches evening
Between time 20:00 when, send and adjust prompt information prompt user and open the corresponding display brightness of Night.
The Night at the middle end PC does not have automated prompting compared with the prior art.This method realizes through the above steps
The automated prompting function (such as the prompt of automation Night) of browser, user experience is more preferable.
Step S304 adjusts the parameter of mask layer in the case where determination needs to be adjusted the display brightness of the page
Information, to adjust the display brightness of the page.
Page display method provided in an embodiment of the present invention meets in current time and adjusts by obtaining browser current time
In the case where section condition, sends prompt information and prompt the user whether to carry out page brightness adjustment, the page for realizing browser is bright
Automated prompting function is spent, user experience is improved.
Example IV:
As shown in figure 4, the embodiment of the invention provides the 4th kind of page brightness display methods, this method comprises:
Step S401 shows the page area of browser, wherein page area is for showing the page, page area setting
There are mask layer, mask layer cover page region.
The step is executed by following steps: the container of a blank being arranged first, mask layer is mounted in the blank in advance
In container, position (top layer of window), the origin coordinates, size, default of mask layer are defined by the way that the attribute value of container is arranged
Color, default transparency, change container attribute value can color to mask layer, transparency be changed.It may be noted that
It is that above-mentioned container can be preset in the terminal.
In order to make it easy to understand, below by taking the night display pattern for realizing browser as an example for example:
1, a container is set, in this embodiment by mask layer prepackage;Wherein Container Code is < divclass="
Cover "></div>, css pattern is position:fixed;top:0;left:0;outline:5000pxsolid;z-
index:99999.Mask layer position is defined by the way that overall situation fixed is arranged;Top:0 is set;Left:0 defines the starting of mask layer
Coordinate (upper left corner of browser window);Outline:5000px defines mask layer size (5000 pixel), and z- is arranged
Index is highest level 99999 (realizing that mask layer is located at the top layer of browser window).
2, the outlineColor color transparent degree attribute value of the container is set, default color be (rgba, 0,0,0,
0.0), rgb represents three color grayscale of red, green, blue, and a represents transparency, and default rgb is 0,0,0, a 0.0, the i.e. default of mask layer
Color is black, and the default value of the transparency of mask layer is 0;Above-mentioned default color must be transparent color.By modifying color
Color transparency realizes Night brightness.
3, start and close by JS realization Night.It is to close that JS modification container color, which is (rgba, 0,0,0,0.0),
Night, because transparency is 0.0;(rgba, 0,0,0,0.3) is normal Night, i.e., container color is black, transparent
Degree is 0.3, and (rgba, 0,0,0,0.5) is that depth is dark, i.e., container color is black, transparency 0.5.Control switch can lead to
Keyboard shortcut realization is crossed, regulating command is sent by control switch.For example night mould is opened by " Alt+Z " Macintosh
Formula;Night is closed by " Alt+X " Macintosh;
Likewise, instructing the brightness regulation for realizing browser for brightness regulation, difference is: realizing brightness by JS
It increases and decreases.JS modifies container clarity a, for example, if transparency is greater than 0.05%, the brightness tune reduced according to transparency
Section instruction, transparency just reduce by 0.05%;If transparency less than 0.95%, is instructed according to the brightness regulation that transparency improves,
Transparency just reduces by 0.05%.Control switch can be realized by keyboard shortcut, be referred to by control switch to send brightness regulation
It enables.
For example it is instructed by the brightness regulation that control switch " Alt+ ↑ " Macintosh sends transparency raising transparent to increase
Degree;The brightness regulation instruction that transparency reduces is sent by " Alt+ ↓ " Macintosh to reduce transparency.
Step S402 obtains the current time of browser.
Specifically, obtaining the current time of browser by JS (JavaScript, a kind of programming language).
Step S403, in the case where current time meets preset condition, vision-control prompt information.
Wherein, preset condition can be a time point, be also possible to multiple time points;When preset condition is multiple times
Point when, for different time points, the preset value or preset color of the transparency of corresponding mask layer be also possible to it is different, with
For Night, with the increase (darkness time) at, transparency becomes larger at time point in the evening, for example, before evening 20:00 it is transparent
Degree is defaulted as 0.0, and evening 20:00, transparency becomes 0.3 (grey), evening 22:00, and transparency becomes 0.5 (black);It needs
, it is noted that in the preset period of time after the time point of preset condition, the color of the transparency of corresponding mask layer or saturating
Lightness, which can be, constantly to be changed, and can also maintain the color or transparency at the time point of preset condition, such as time point
The value of transparency between 20:00 and 22:00 can be continually changing between 0.3-0.5, be also possible to maintain the time
The transparence value 0.3 of point 20:00, when reaching 22:00 at time point, then transparence value changes into 0.5.
Adjusting prompt information can show that the information such as text, icon are adjusted so as to user in a manner of pop-up or dialog box,
Default voice messaging can also be played in a manner of voice prompting to be prompted, it should be noted that adjust the side of prompt information
Formula is not limited to the mode of above-mentioned text, icon, voice, can also be preset according to the mode diversified demand of user, this
Embodiment is not especially limited.
Specifically, judge whether current time meets preset condition according to the current time of the browser got, when working as
When the preceding time meets preset condition, sent by preset prompting mode (such as in a manner of text pop-up) corresponding with current time pre-
If adjusting prompt information.Further, adjusting prompt information may include that mode, brightness or the corresponding operation of color adjustment refer to
Enable (such as keyboard shortcut), optimal brightness corresponding with the time point (preset value of transparency), optimum color (default color
It is color) the contents such as numerical value.
It by obtaining current time, and is compared with the time point of preset condition, when current time meets sometime
When the preset condition of point, the adjusting prompt information being consistent with the time point is shown, to user to remind user to carry out display tune
Section, so that the eyesight of effective protection user, further promotes user experience;For example, the time point in preset condition is one,
When the time point is certain evening hours 20:00, in order to protect the eyesight of user, when the current time of the browser got reaches evening
Between time 20:00 when, send prompt information prompt user open Night;Prompt information includes the corresponding combination of Night
Key key assignments.
The Night at the middle end PC does not have automated prompting compared with the prior art, and user is needed to open manually.This method
The automated prompting function (such as the prompt of automation Night) of browser is realized through the above steps, and user experience is more
It is good.
It include below a certain evening hours point 20:00 with preset condition, it is then aobvious with the night of above-mentioned realization browser
Example is shown as to be described above-mentioned steps S402-S403:
4, browser current time date is obtained by JS, the time point of current time and preset condition is compared,
That is whether comparison current time date is consistent with certain evening hours point 20:00, if so, being shown in the form of pop-up or dialog box
Prompt information is adjusted, adjusting prompt information here starts Night for prompt user, therefore adjusting prompt information here
Including Macintosh key assignments " Alt+Z " corresponding with Night is opened.
Step S404 receives the regulating command of user's input;
Here on the one hand regulating command is used to send determination and the display brightness to the page in browser is needed to be adjusted
Confirmation message, on the one hand for sending the whole information of adjusting of the parameter information for adjusting the mask layer.
Specifically, the step the following steps are included:
(1), the Macintosh key assignments of user's input is received;
(2), corresponding regulating command is identified according to Macintosh key assignments.
User sends regulating command by keyboard inputting combination key key assignments, and regulating command and Macintosh key assignments are to correspond
's;Therefore it may recognize that regulating command corresponding with the Macintosh key assignments by reading Macintosh key assignments;It should be understood that
Macintosh key assignments can be configured according to the key press habits of most users.
It should be noted that in other embodiments, user can also click to adjust in prompt information by mouse and correspond to
Button send regulating command;Alternatively, user can also be adjusted by directly being sent using the key of setting on the display apparatus
Instruction.
Step S405 adjusts the color information or transparence information of mask layer according to regulating command.
Specifically, color or transparency to mask layer are adjusted accordingly according to the user's regulating command identified.
For example, the transparency of mask layer is adjusted to preset value according to mode tuning instruction, which corresponds to display pattern, no
Same display pattern, preset value are different, such as the corresponding preset value of Night, and it is pre- that non-Night corresponds to another
If value, certainly, Night can also be divided into normal Night (when corresponding universal night according to the time point of preset condition
Between point 20:00), depth Night (corresponding late night hours point 22:00) etc.;Such as default transparency a is 0.0 (default value 0)
Corresponding non-Night, if transparency a is revised as 0.3 corresponding normal Night, if according to mould according to mode tuning instruction
Transparency a is revised as 0.5 corresponding depth Night by formula regulating command;Alternatively, being instructed, improving or being dropped according to brightness regulation
The transparency of low mask layer, if such as transparency be greater than 0.05%, according to transparency reduce brightness regulation instruct, transparency is just
0.05% is reduced, if transparency less than 0.95%, instructs, transparency is just reduced according to the brightness regulation that transparency improves
0.05%;It is preset color by the color adjustment of mask layer alternatively, being instructed according to color adjustment, preset color is existed with setting
The attribute of corresponding color in container is associated, therefore the i.e. changeable screening of the attribute value corresponding with color by changing container
The color of cap layer, such as mask layer default rgb is 0,0,0 (black), the different color tune of the Numerical Implementation by modifying rgb
Section realizes that by the color adjustment of mask layer be green, is conducive to protect eyesight for example, rgb is revised as 0,127,0 (greens).
Still described by taking night display pattern above as an example:
5, the Macintosh key assignments " Alt+Z " for receiving user's input, identifies that the Macintosh key assignments " Alt+Z " represents mode tune
Night open command in section instruction;
6, according to the Night open command identified, the transparency for modifying mask layer is preset value 0.3.
Page brightness display methods provided in an embodiment of the present invention is by setting one global mask layer, by obtaining user
Browser current time is held, calculates whether meet adjusting condition, user is prompted if meeting adjusting condition and receives the tune of user
Section instruction, is changed according to attribute of the regulating command to mask layer, realizes the page brightness vision-control to browser.
It should be noted that the executing subject of the step in above-mentioned each embodiment of the method can be terminal, for example move
Terminal, terminal etc., however it is not limited to this.
Embodiment five:
As shown in figure 5, the embodiment of the present invention also provides a kind of page brightness display device, it is applied to terminal, including
Judgment module 500 and adjustment module 600.
Judgment module 500 is used to determine whether that the display brightness to the page in browser is needed to be adjusted;Wherein, described
The page is shown in the page area of the browser, and the page area is provided with mask layer, described in the mask layer covering
Page area;
Adjustment module 600 is used to adjust institute in the case where determining that needs are adjusted the display brightness of the page
The parameter information of mask layer is stated, to adjust the display brightness of the page.
Wherein, the parameter information includes: color information, transparence information.
Further, the device further include:
Module 700 is obtained, for obtaining the current time of the browser;Meet preset condition in the current time
In the case of, determination needs the display brightness to the page in browser to be adjusted.
Further, obtaining module 700 includes:
Information alert unit 701, in the case where the current time meets preset condition, vision-control prompt to be believed
Breath, wherein whether the adjusting prompt information is for prompting to be adjusted the display brightness of the page;
Information receiving unit 702, for receiving confirmation message, wherein the confirmation message, which is used to indicate, determines needs pair
The display brightness of the page is adjusted in browser.
Further, judgment module 500 includes:
Signal receiving unit 501, for receiving specified signal, wherein user's key entry is carried in the specified signal
Macintosh key assignments;
Determination unit 502, for determining the need for adjusting the display brightness of the page according to the Macintosh key assignments.
Further, adjustment module 600 is used to need for the display brightness of the page to be adjusted to default display determining
In the case where display brightness under mode, set corresponding with the preset display mode for the parameter information of the mask layer
Preset value.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description
Specific work process, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Page brightness display device provided in an embodiment of the present invention, with page brightness display methods provided by the above embodiment
Technical characteristic having the same reaches identical technical effect so also can solve identical technical problem.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without
It is as limitation, therefore, other examples of exemplary embodiment can have different values.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table
It is not limit the scope of the invention up to formula and numerical value.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of the module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule
The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
The embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and storage are on a memory and can
The computer program run on a processor, processor realize page brightness in any of the above-described embodiment when executing computer program
The step of display methods.
Specifically, referring to Fig. 6, electronic equipment 100 (such as terminal) provided in an embodiment of the present invention, comprising: processor 40,
Memory 41, bus 42 and communication interface 43, the processor 40, communication interface 43 and memory 41 are connected by bus 42;
Processor 40 is for executing the executable module stored in memory 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory),
It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 43 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 42 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 6, it is not intended that an only bus or
A type of bus.
Wherein, memory 41 is for storing program, and the processor 40 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 40, or realized by processor 40.
Processor 40 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 40 or the instruction of software form.Above-mentioned
Processor 40 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 41, and processor 40 reads the information in memory 41, in conjunction with
Its hardware completes the step of above method.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the step of page brightness display methods in any of the above-described embodiment is executed when computer program is run by processor.
The computer program product of page brightness display methods is carried out provided by the embodiment of the present invention, including stores place
The computer readable storage medium of the executable non-volatile program code of device is managed, the instruction that said program code includes can be used for
Front either method method as described in the examples is executed, specific implementation can be found in embodiment of the method, and details are not described herein.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (14)
1. a kind of page brightness display methods characterized by comprising
It determines the need for being adjusted the display brightness of the page in browser;Wherein, the page is shown in the browsing
In the page area of device, the page area is provided with mask layer, and the mask layer covers the page area;
In the case where determining that needs are adjusted the display brightness of the page, the parameter information of the mask layer is adjusted,
To adjust the display brightness of the page.
2. method according to claim 1, which is characterized in that determining the need for the display brightness to the page in browser
Before being adjusted, the method also includes:
Obtain the current time of the browser;In the case where the current time meets preset condition, determination is needed to clear
The display brightness of the page in device of looking at is adjusted.
3. method according to claim 2, which is characterized in that in the case where the current time meets preset condition, really
Surely it needs the display brightness to the page in browser to be adjusted to include:
In the case where the current time meets preset condition, vision-control prompt information, wherein the adjusting prompt information
For prompting whether to be adjusted the display brightness of the page;
Receive confirmation message, wherein the confirmation message be used to indicate determine need to the display brightness of the page in browser into
Row adjustment.
4. method according to claim 1, which is characterized in that determine the need for the display brightness of the page in browser into
Row adjustment, comprising:
Receive specified signal, wherein the Macintosh key assignments of user's key entry is carried in the specified signal;
Determine the need for adjusting the display brightness of the page according to the Macintosh key assignments.
5. method according to claim 1, which is characterized in that the parameter information includes: color information, transparence information.
6. method according to claim 1, which is characterized in that the parameter information for adjusting the mask layer includes:
In the case where determining that the display brightness of the page is adjusted to the display brightness under preset display mode by needs, by institute
The parameter information for stating mask layer is set as preset value corresponding with the preset display mode.
7. a kind of page brightness display device, which is characterized in that be applied to terminal, the display device includes:
Judgment module is used to determine whether that the display brightness to the page in browser is needed to be adjusted;Wherein, the page is aobvious
It is shown in the page area of the browser, the page area is provided with mask layer, and the mask layer covers the page pool
Domain;
Module is adjusted, for adjusting the mask in the case where determining that needs are adjusted the display brightness of the page
The parameter information of layer, to adjust the display brightness of the page.
8. device according to claim 7, which is characterized in that the display device further include:
Module is obtained, for obtaining the current time of the browser;In the case where the current time meets preset condition,
Determination needs the display brightness to the page in browser to be adjusted.
9. device according to claim 8, which is characterized in that the acquisition module includes:
Information alert unit, in the case where the current time meets preset condition, vision-control prompt information,
In, whether the adjusting prompt information is for prompting to be adjusted the display brightness of the page;
Information receiving unit, for receiving confirmation message, wherein the confirmation message is used to indicate determination and needs in browser
The display brightness of the page is adjusted.
10. device according to claim 7, which is characterized in that the judgment module includes:
Signal receiving unit, for receiving specified signal, wherein the Macintosh key of user's key entry is carried in the specified signal
Value;
Determination unit, for determining the need for adjusting the display brightness of the page according to the Macintosh key assignments.
11. device according to claim 7, which is characterized in that the parameter information includes: color information, transparence information.
12. device according to claim 7, which is characterized in that the adjustment module is used to determine needs by the page
Display brightness be adjusted to the display brightness under preset display mode in the case where, set the parameter information of the mask layer to
Preset value corresponding with the preset display mode.
13. a kind of electronic equipment, including memory, processor and it is stored on the memory and can transports on the processor
Capable computer program, which is characterized in that the processor realizes the claims 1 to 6 when executing the computer program
The step of described in any item methods.
14. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described
The step of program code makes the processor execute the method as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811501925.9A CN109614192A (en) | 2018-12-07 | 2018-12-07 | Page brightness display methods and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811501925.9A CN109614192A (en) | 2018-12-07 | 2018-12-07 | Page brightness display methods and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109614192A true CN109614192A (en) | 2019-04-12 |
Family
ID=66006909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811501925.9A Pending CN109614192A (en) | 2018-12-07 | 2018-12-07 | Page brightness display methods and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109614192A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377254A (en) * | 2019-07-05 | 2019-10-25 | 北京达佳互联信息技术有限公司 | A kind of display lightness regulating method, device, electronic equipment and storage medium |
CN111475238A (en) * | 2020-03-13 | 2020-07-31 | 五八有限公司 | Page processing method and device, electronic equipment and storage medium |
CN112365863A (en) * | 2020-11-17 | 2021-02-12 | 北京小米移动软件有限公司 | Brightness adjusting method and device, display equipment and storage medium |
CN113312569A (en) * | 2021-05-17 | 2021-08-27 | 浪潮金融信息技术有限公司 | Method, system and medium for displaying webpage background pseudo-randomly |
CN114296664A (en) * | 2021-04-25 | 2022-04-08 | 海信视像科技股份有限公司 | Auxiliary screen brightness adjusting method and display device |
CN115248652A (en) * | 2021-04-25 | 2022-10-28 | 成都极米科技股份有限公司 | Image self-adaptation method, device, equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163216A (en) * | 2010-11-24 | 2011-08-24 | 广州市动景计算机科技有限公司 | Picture display method and device thereof |
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
CN104462312A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Web page displaying method and browser client side |
CN104731821A (en) * | 2013-12-24 | 2015-06-24 | 中国银联股份有限公司 | Webpage masking method for asynchronous request mode |
CN105094759A (en) * | 2014-04-29 | 2015-11-25 | 广州市动景计算机科技有限公司 | Browse mode switch treatment method and device |
CN105183481A (en) * | 2015-09-22 | 2015-12-23 | 北京金山安全软件有限公司 | Method and device for adjusting display mode of third-party application program |
CN106874023A (en) * | 2015-12-14 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Dynamic page loading method and device |
CN107463307A (en) * | 2017-07-31 | 2017-12-12 | 北京京东尚科信息技术有限公司 | Document display method and device |
-
2018
- 2018-12-07 CN CN201811501925.9A patent/CN109614192A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102163216A (en) * | 2010-11-24 | 2011-08-24 | 广州市动景计算机科技有限公司 | Picture display method and device thereof |
CN103258038A (en) * | 2013-05-17 | 2013-08-21 | 广州市动景计算机科技有限公司 | Method and device for synchronizing display modes between browser and webpage |
CN104731821A (en) * | 2013-12-24 | 2015-06-24 | 中国银联股份有限公司 | Webpage masking method for asynchronous request mode |
CN105094759A (en) * | 2014-04-29 | 2015-11-25 | 广州市动景计算机科技有限公司 | Browse mode switch treatment method and device |
CN104462312A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Web page displaying method and browser client side |
CN105183481A (en) * | 2015-09-22 | 2015-12-23 | 北京金山安全软件有限公司 | Method and device for adjusting display mode of third-party application program |
CN106874023A (en) * | 2015-12-14 | 2017-06-20 | 腾讯科技(深圳)有限公司 | Dynamic page loading method and device |
CN107463307A (en) * | 2017-07-31 | 2017-12-12 | 北京京东尚科信息技术有限公司 | Document display method and device |
Non-Patent Citations (1)
Title |
---|
编委会: "《新编中文Flash MX实例精解》", 30 May 2003, 西北工业大学出版社 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110377254A (en) * | 2019-07-05 | 2019-10-25 | 北京达佳互联信息技术有限公司 | A kind of display lightness regulating method, device, electronic equipment and storage medium |
CN110377254B (en) * | 2019-07-05 | 2023-11-14 | 北京达佳互联信息技术有限公司 | Display brightness adjusting method and device, electronic equipment and storage medium |
CN111475238A (en) * | 2020-03-13 | 2020-07-31 | 五八有限公司 | Page processing method and device, electronic equipment and storage medium |
CN111475238B (en) * | 2020-03-13 | 2023-12-05 | 五八有限公司 | Page processing method and device, electronic equipment and storage medium |
CN112365863A (en) * | 2020-11-17 | 2021-02-12 | 北京小米移动软件有限公司 | Brightness adjusting method and device, display equipment and storage medium |
CN114296664A (en) * | 2021-04-25 | 2022-04-08 | 海信视像科技股份有限公司 | Auxiliary screen brightness adjusting method and display device |
CN115248652A (en) * | 2021-04-25 | 2022-10-28 | 成都极米科技股份有限公司 | Image self-adaptation method, device, equipment and storage medium |
CN115248652B (en) * | 2021-04-25 | 2024-01-12 | 极米科技股份有限公司 | Image self-adaption method, device, equipment and storage medium |
CN113312569A (en) * | 2021-05-17 | 2021-08-27 | 浪潮金融信息技术有限公司 | Method, system and medium for displaying webpage background pseudo-randomly |
CN113312569B (en) * | 2021-05-17 | 2023-10-03 | 浪潮金融信息技术有限公司 | Method, system and medium for pseudo-randomly displaying webpage background |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109614192A (en) | Page brightness display methods and device | |
CN107179889B (en) | Interface color adjusting method, webpage color adjusting method and webpage color adjusting device | |
CN103914314B (en) | Method and device for adjusting brightness of display screen | |
KR101958870B1 (en) | Display control method and apparatus for power saving | |
US20190050045A1 (en) | Method for displaying content and electronic device thereof | |
WO2018072270A1 (en) | Method and device for enhancing image display | |
CN112099686B (en) | Icon display control method and device and electronic equipment | |
CN1901025B (en) | Defective pixel management for flat panel displays | |
CN106155692A (en) | A kind of terminal brightness control method and terminal | |
CN111857912A (en) | Interface processing method and device, electronic equipment and computer readable storage medium | |
CN110377254B (en) | Display brightness adjusting method and device, electronic equipment and storage medium | |
US20230325062A1 (en) | Method for adjusting interface display state, and electronic device | |
CN112925596B (en) | Mobile terminal and display method of display object thereof | |
CN113687753A (en) | Split screen style configuration method and device, intelligent terminal and storage medium | |
CN113920912B (en) | Display attribute adjusting method and related equipment | |
CN113064687A (en) | Color adaptation processing method, device and equipment for user interface component | |
CN113407270A (en) | Display method and device of electronic equipment and storage medium | |
CN111819618B (en) | Pixel contrast control system and method | |
US10621903B2 (en) | Display device, image processing device, and method of image processing | |
CN109074220A (en) | The method that dynamic changes user interface element | |
JPWO2007099944A1 (en) | Mobile phone terminal, screen display control method used therefor, and program thereof | |
CN103577181A (en) | Method for regulating skin brightness of input method and terminal | |
CN114237795B (en) | Terminal interface display method and device, electronic equipment and readable storage medium | |
CN115131247A (en) | Image processing method and device, storage medium and electronic equipment | |
CN106550135B (en) | Display screen backlight brightness control method and system based on mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |
|
RJ01 | Rejection of invention patent application after publication |