CN110377254A - A kind of display lightness regulating method, device, electronic equipment and storage medium - Google Patents

A kind of display lightness regulating method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110377254A
CN110377254A CN201910602298.6A CN201910602298A CN110377254A CN 110377254 A CN110377254 A CN 110377254A CN 201910602298 A CN201910602298 A CN 201910602298A CN 110377254 A CN110377254 A CN 110377254A
Authority
CN
China
Prior art keywords
window
preset
target
page
target window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910602298.6A
Other languages
Chinese (zh)
Other versions
CN110377254B (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910602298.6A priority Critical patent/CN110377254B/en
Publication of CN110377254A publication Critical patent/CN110377254A/en
Application granted granted Critical
Publication of CN110377254B publication Critical patent/CN110377254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure is directed to a kind of display lightness regulating method, device, electronic equipment and storage mediums, method is applied to the application program installed in terminal, this method comprises: when meeting display brightness adjusting condition, preset window is generated on the corresponding page window of the page currently shown, when the displaying target window in the page, the window attribute of target window is set, so that preset window coverage goal window, reduces the display brightness of the corresponding display area of target window.Based on above-mentioned processing, preset window can not only cover the page currently shown, additionally it is possible to which coverage goal window can reduce the display brightness of the corresponding display area of target window in turn, to improve the validity of display brightness adjusting.

Description

A kind of display lightness regulating method, device, electronic equipment and storage medium
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of display lightness regulating method, device, electronic equipment And storage medium.
Background technique
With the fast development of computer technology, the application program installed in terminal can be in the display unit (example of terminal Such as, the display screen of terminal) in show information, for user browsing.The theme colors for the page that application program is currently shown, environment Brightness etc. can all influence the viewing experience of user.For example, if environmental light brightness is weaker, and the page that shows of application program Theme colors are brighter, then are not suitable for user's browsing, can reduce the viewing experience of user.
In order to improve the viewing experience of user, the display brightness of application program can be reduced.When needing to reduce display brightness When, application program can generate on the DecorView (Root View) of the corresponding activity of the page (activity) currently shown One default view, which can be translucent for black, can cover the page that application program is currently shown, into And it can reduce the display brightness of application program.
However, in the related technology, after generating default view, if application program shows one in the page currently shown The default view of a new window, generation can't cover the window, that is, the display brightness of the corresponding display area of the window is still It is not suitable for user's browsing, causes the validity that display brightness is adjusted in the related technology lower.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of display lightness regulating method, device, electronics and sets Standby and storage medium can be improved the validity of display brightness adjusting.
According to the first aspect of the embodiments of the present disclosure, a kind of display lightness regulating method is provided, the method is applied to eventually The application program installed in end, which comprises
When meeting display brightness adjusting condition, default window is generated on the corresponding page window of the page currently shown Mouthful, wherein the preset window has default transparency;
When the displaying target window in the page, the window attribute of the target window is set, so that described default Window covers the target window, reduces the display brightness of the corresponding display area of the target window.
Optionally, at least one of described display brightness adjusting condition, including the following conditions:
The theme colors of the page currently shown are pre-set color, wherein the pre-set color includes white;
Current time belongs to preset time period, wherein the preset time period is for indicating environmental light brightness lower than default The period of brightness threshold value;
The user instruction of input is received, the user instruction is for opening brightness regulation mode.
Optionally, the window attribute of the setting target window, so that the preset window covers the target window Mouthful, comprising:
The priority that the target window is arranged is lower than the priority of the preset window, so that the preset window covers The target window.
Optionally, the window attribute of the setting target window, so that the preset window covers the target window Mouthful, comprising:
The target window is set to the child window of the page window, so that the preset window covers the target Window.
Optionally, the method also includes:
The preset window, which is arranged, not allows to obtain focus, so that the target window can obtain focus.
Optionally, the method also includes:
The screen that the preset window fills the terminal is set.
Optionally, the method also includes:
Receive the parameter adjustment instruction for being directed to the preset window;
According to the parameter adjustment instruction, the window parameter of the preset window is adjusted, wherein the window ginseng Number includes color, the transparency of window of window.
According to the second aspect of an embodiment of the present disclosure, a kind of display brightness regulating device is provided, described device is applied to eventually The application program installed in end, described device include:
Generation module, for when meeting display brightness adjusting condition, in the corresponding page window of the page currently shown Upper generation preset window, wherein the preset window has default transparency;
First processing module, for the window of the target window to be arranged when the displaying target window in the page Attribute, so that the preset window covers the target window, the display for reducing the corresponding display area of the target window is bright Degree.
Optionally, at least one of described display brightness adjusting condition, including the following conditions:
The theme colors of the page currently shown are pre-set color, wherein the pre-set color includes white;
Current time belongs to preset time period, wherein the preset time period is for indicating environmental light brightness lower than default The period of brightness threshold value;
The user instruction of input is received, the user instruction is for opening brightness regulation mode.
Optionally, the first processing module, the priority specifically for the target window is arranged are preset lower than described The priority of window, so that the preset window covers the target window.
Optionally, the first processing module, specifically for setting the target window to the son of the page window Window, so that the preset window covers the target window.
Optionally, described device further include:
First setup module allows to obtain focus, so that the target window can for the preset window to be arranged not Obtain focus.
Optionally, described device further include:
Second setup module fills the screen of the terminal for the preset window to be arranged.
Optionally, described device further include:
Second processing module, for receiving the parameter adjustment instruction for being directed to the preset window;
According to the parameter adjustment instruction, the window parameter of the preset window is adjusted, wherein the window ginseng Number includes color, the transparency of window of window.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to: when executing the instruction stored on the memory, realize first party as above Display lightness regulating method described in face.
According to a fourth aspect of embodiments of the present disclosure, a kind of storage medium is provided, when the instruction in the storage medium by When the processor of electronic equipment executes, so that electronic equipment is able to carry out display brightness adjusting side described in above-mentioned first aspect Method.
According to a fifth aspect of the embodiments of the present disclosure, a kind of computer program product is provided, when the computer program produces When instruction in product is executed by the processor of electronic equipment, so that electronic equipment is able to carry out display described in first aspect as above Brightness adjusting method.
The technical scheme provided by this disclosed embodiment can include the following benefits: when meeting display brightness adjustment bar When part, the preset window with default transparency is generated on the corresponding page window of the page currently shown, when in the page When displaying target window, the window attribute of target window is set, so that preset window coverage goal window, reduces target window pair The display brightness for the display area answered.Based on above-mentioned processing, preset window can not only cover the page currently shown, additionally it is possible to Coverage goal window can reduce the display brightness of the corresponding display area of target window in turn, can be improved display brightness tune The validity of section.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of flow chart of display lightness regulating method shown according to an exemplary embodiment.
Fig. 2 is the exemplary flow chart of a kind of display lightness regulating method shown according to an exemplary embodiment.
Fig. 3 is the exemplary flow chart of a kind of display lightness regulating method shown according to an exemplary embodiment.
Fig. 4 is a kind of structure chart of display brightness regulating device shown according to an exemplary embodiment.
Fig. 5 is the structure chart of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.
In the related technology, after generating default view, if application program show in the page currently shown one newly Window, the default view of generation can't cover the window, in turn, lead to the validity that display brightness is adjusted in the related technology It is lower.
To solve the above-mentioned problems, the embodiment of the present disclosure provides a kind of display lightness regulating method, and this method can answer Application program for being installed in terminal.
When meeting display brightness adjusting condition, application program can be on the corresponding page window of the page currently shown The preset window with default transparency is generated, then, when application program displaying target window in the page, application program can The window attribute of target window is arranged so that preset window can coverage goal window can reduce target window pair in turn The display brightness for the display area answered.
Based on above-mentioned processing, the preset window of generation can not only cover the page currently shown, additionally it is possible to coverage goal Window can reduce the display brightness of the corresponding display area of target window in turn, can be improved the effective of display brightness adjusting Property.
It is a kind of flow chart of display lightness regulating method shown according to an exemplary embodiment referring to Fig. 1, Fig. 1, it should Method can be applied to the application program installed in terminal, and this method may comprise steps of:
S101: it when meeting display brightness adjusting condition, is generated on the corresponding page window of the page currently shown pre- If window.
Wherein, which can be any application program installed in terminal, for example, the application program can be clear Look at device application program, game application etc..Terminal can be the smart machines such as smart phone, tablet computer.Preset window tool Have default transparency, for example, default transparency can be 50%, in addition, the color of preset window can for black or other compared with Dark color.
In one embodiment, during application program shows the page in the display unit of terminal, what can monitor When meet display brightness adjusting condition.When application program, which detects, meets display brightness adjusting condition, application program can be It is (default i.e. in the embodiment of the present disclosure that the window with default transparency is generated on the corresponding page window of the page currently shown Window), since preset window generates after page window, the preset window of generation can cover the page currently shown Face.
For example, application program can generate preset window by addwindow (addition window) function.
Optionally, display brightness adjusting condition may include at least one of the following conditions:
Condition one, the theme colors of the page currently shown are pre-set color.
Condition two, current time belongs to preset time period.
Condition three receives the user instruction of input.
Wherein, pre-set color may include white, and preset time period is for indicating that environmental light brightness is lower than default brightness The period of threshold value.Default brightness threshold value can be rule of thumb configured by technical staff.User instruction is bright for opening Spend shaping modes.
In one embodiment, pre-set color can also include other brighter colors, it is to be understood that if using The theme colors for the page that program is currently shown are pre-set color, may will affect the viewing experience of user, therefore, application program Display brightness can be adjusted, that is, application program, which determines, currently meets display brightness adjusting condition.
Since preset time period indicates that environmental light brightness is lower than the period of default brightness threshold value, when using journey When sequence shows the page within a preset period of time, since environmental light brightness is weaker, in order to improve the viewing experience of user, answer Display brightness can be adjusted with program, that is, application program, which determines, currently meets display brightness adjusting condition.
In one embodiment, application program can determine the ring at current time by the brightness detection module of terminal Border brightness can determine current in turn according to the environmental light brightness at current time and the size relation of default brightness threshold value Whether the moment meets display brightness adjusting condition.
Alternatively, preset time period may be daily fixed time period, for example, in 20. -24 points and 0 point to 6 points Period in, environmental light brightness is weaker, and therefore, preset time period may include daily 20. -24 points and 0. -6 point.
In one embodiment, unlatching/closing brightness regulation mode function is also provided in application program.User It can select to open brightness regulation mode according to demand, application program can receive the finger for opening brightness regulation mode It enables, in turn, preset window can be generated, to reduce display brightness.In addition, being answered when user selects to close brightness regulation mode Generated preset window can be deleted with program.
It is understood that application program can also be in the feelings of any combination of the condition that meets one, condition two and condition three Under condition, determination meets display brightness adjusting condition.
For example, when receiving the user instruction for opening brightness regulation mode, and the theme face of the page currently shown When color is pre-set color, application program, which can determine, meets display brightness adjusting condition;Alternatively, when receiving for opening brightness The user instruction of shaping modes, and when current time belongs to preset time period, application program, which can determine, meets display brightness tune Section condition;Alternatively, the theme colors of the page currently shown are pre-set color, and when current time belongs to preset time period, answer It can be determined with program and meet display brightness adjusting condition;Alternatively, referring to when receiving the user for opening brightness regulation mode The theme colors of the page enable, currently shown are when belonging to preset time period at pre-set color and current time, and application program can be with Determination meets display brightness adjusting condition.
S102: when the displaying target window in the page, being arranged the window attribute of target window, so that preset window covers Target window reduces the display brightness of the corresponding display area of target window.
In one embodiment, after application program shows the page, user can operate in the page of display, phase It answers, application program can show the corresponding window of the operation of user (i.e. depending on the user's operation in the page currently shown Target window), target window can be Dialog (dialog box), or, or the corresponding window of soft keyboard.
For example, user can click " sharing " button in the page, by the page during user's browsing pages It is shared with good friend, correspondingly, application program can then show the window for sharing the page, the window, that is, target in the page Window.
In application program displaying target window, application program can be configured the window attribute of target window, with Enable preset window coverage goal window, since preset window has default transparency, can reduce target window pair The display brightness for the display area answered.
Application program setting preset window coverage goal window mode can be it is diversified, optionally, using journey Sequence can take following manner:
Mode one, the priority that target window is arranged is lower than the priority of preset window, so that preset window coverage goal Window.
In one embodiment, it therefore answers on the upper layer that the higher window of priority can be covered on the lower window of priority It is lower than the priority of preset window with the priority that target window can be set in program, enables preset window coverage goal window Mouthful.
For example, application program can pass through WindowManager.LayoutParams.TYPE_BASE_APPLICATIO The priority of N (window management person layout parameter type _ basic _ application) setting target window, that is, set target window to Base window, the application widget of other every other types will all be covered on the upper layer of base window.In addition, the default of the window generated Priority is TYPE_APPLICATION, that is, the window of generation is defaulted as common application window, it is to be understood that default window Mouth is common application window.Since the priority of common application window is higher than the priority of base window, preset window can Coverage goal window.
Mode two sets target window to the child window of page window, so that preset window coverage goal window.
Preset window page window corresponding with the page currently shown is common application window, however, due to application Program just generates preset window after generating page window, though so that preset window and the page window belong to it is same preferential Grade, but preset window is still able to cover the page window, it is to be understood that preset window can also cover the page window Child window.
Based on this, in one embodiment, application program can set target window to the child window of page window, into And preset window being capable of coverage goal window.
For example, application program can pass through p.type=WindowManager.LayoutParams.TYPE_ APPLICATIO N_ATTACHED (being attached to) _ DIALOG (dialog box), sets target window to the sub- window of page window Mouthful, keep target window associated with page window.
In addition, operating in target window in order to avoid influencing user, optionally, this method can also include following Step: setting preset window does not allow to obtain focus, so that target window can obtain focus.
In one embodiment, due to preset window can coverage goal window, preset window may will affect user couple Target window is operated, and therefore, preset window, which can be set, or not application program allows to obtain focus, that is, user can not be directed to Preset window triggers click event.
For example, application program can be by setting the window attribute of preset window to WindowManager.LayoutPara ms.FLAG_NOT_FOCUSABLE (does not allow to obtain focus), correspondingly, focus is then It can be transferred to the target window of preset window lower layer, when so that user operating in the display unit of terminal, target window Focus can be obtained.
It is understood that application program is in setting WindowManager.LayoutParams.FLAG_NOT_FOCUS When ABLE, meanwhile, it will start FLAG_NOT_TOUCH_MODAL (mark _ not allowing _ touches _ mode frame), show preset window Can't be interacted with target window, preset window can be independently of target window on.For example, target window is corresponding for soft keyboard Window, then under the premise of preset window coverage goal window, user is still able to operate in soft keyboard.
In addition, optionally, this method can also include following step in order to further increase the validity of display brightness adjusting Rapid: setting preset window fills the screen of terminal.
In one embodiment, if the page that application program is currently shown is the non-immersion page, the state of terminal Column (statusbar) and the page that application program is shown are mutually indepedent, if preset window only cover page window, terminal The display brightness of the corresponding display area of status bar is still higher, and therefore, preset window filling terminal can be set in application program Screen, in turn, preset window can cover status bar, reduce the display brightness of the corresponding display area of status bar, keep entire Display brightness in screen is consistent.
For example, application program can set the window attribute of preset window to FLAG_LAYOUT_IN_SCREEN (mark Will _ layout _ filling screen) so that the screen of preset window filling terminal.
In addition, meet the individual demand of user to improve user experience, optionally, this method can also include with Lower step: receiving the parameter adjustment instruction for being directed to preset window, according to parameter adjustment instruction, to the window parameter of preset window into Row adjustment.
Wherein, window parameter includes the color of window, the transparency of window.
In one embodiment, user can according to their own needs be configured the preset window of display.
Can be set in application program adjustment preset window window parameter option, user can according to the option, Parameter adjustment instruction is inputted to application program, the color identifier of color of object adjusted can be carried in parameter adjustment instruction With target clear degree adjusted, correspondingly, preset window then can be adjusted to mesh according to parameter adjustment instruction by application program Color is marked, and transparency is target clear degree.
Referring to fig. 2, Fig. 2 is the exemplary process of a kind of display lightness regulating method shown according to an exemplary embodiment Figure, the present embodiment are illustrated so that method is applied to the application program installed in terminal as an example, and this method may include following step It is rapid:
S201: it when meeting display brightness adjusting condition, is generated on the corresponding page window of the page currently shown pre- If window.
Wherein, preset window has default transparency.
Display brightness adjusting condition, including at least one of the following conditions: the theme colors of the page currently shown are pre- If color, wherein pre-set color includes white;Current time belongs to preset time period, wherein preset time period is for indicating ring Border brightness is lower than the period of default brightness threshold value;The user instruction of input is received, user instruction is for opening brightness Shaping modes.
S202: when the displaying target window in the page, the priority that target window is arranged is preferential lower than preset window Grade, so that preset window coverage goal window, reduces the display brightness of the corresponding display area of target window.
S203: setting preset window does not allow to obtain focus, and the screen of preset window filling terminal is arranged.
S204: when receiving the parameter adjustment instruction for preset window, according to parameter adjustment instruction, to preset window Window parameter be adjusted.
Wherein, window parameter includes the color of window, the transparency of window.
It is the exemplary process of a kind of display lightness regulating method shown according to an exemplary embodiment referring to Fig. 3, Fig. 3 Figure, the present embodiment are illustrated so that method is applied to the application program installed in terminal as an example, and this method may include following step It is rapid:
S301: it when meeting display brightness adjusting condition, is generated on the corresponding page window of the page currently shown pre- If window.
Wherein, preset window has default transparency.
Display brightness adjusting condition, including at least one of the following conditions: the theme colors of the page currently shown are pre- If color, wherein pre-set color includes white;Current time belongs to preset time period, wherein preset time period is for indicating ring Border brightness is lower than the period of default brightness threshold value;Receive the user instruction of input, wherein user instruction is for opening Brightness regulation mode.
S302: when the displaying target window in the page, target window is set to the child window of page window, so that in advance If window coverage goal window, the display brightness of the corresponding display area of target window is reduced.
S303: setting preset window does not allow to obtain focus, and the screen of preset window filling terminal is arranged.
S304: when receiving the parameter adjustment instruction for preset window, according to parameter adjustment instruction, to preset window Window parameter be adjusted.
Wherein, window parameter includes the color of window, the transparency of window.
Corresponding with the embodiment of the method for Fig. 1, referring to fig. 4, Fig. 4 is a kind of display shown according to an exemplary embodiment The structure chart of brightness regulating apparatus, the device are applied to the application program installed in terminal, the apparatus may include:
Generation module 401, for when meeting display brightness adjusting condition, in the corresponding page window of the page currently shown Preset window is generated on mouthful, wherein the preset window has default transparency;
First processing module 402, for the window of the target window to be arranged when the displaying target window in the page Mouth attribute reduces the display of the corresponding display area of the target window so that the preset window covers the target window Brightness.
Optionally, at least one of described display brightness adjusting condition, including the following conditions:
The theme colors of the page currently shown are pre-set color, wherein the pre-set color includes white;
Current time belongs to preset time period, wherein the preset time period is for indicating environmental light brightness lower than default The period of brightness threshold value;
The user instruction of input is received, the user instruction is for opening brightness regulation mode.
Optionally, the first processing module 402, specifically for the priority of the target window is arranged lower than described pre- If the priority of window, so that the preset window covers the target window.
Optionally, the first processing module 402, specifically for setting the page window for the target window Child window, so that the preset window covers the target window.
Optionally, described device further include:
First setup module allows to obtain focus, so that the target window can for the preset window to be arranged not Obtain focus.
Optionally, described device further include:
Second setup module fills the screen of the terminal for the preset window to be arranged.
Optionally, described device further include:
Second processing module, for receiving the parameter adjustment instruction for being directed to the preset window;
According to the parameter adjustment instruction, the window parameter of the preset window is adjusted, wherein the window ginseng Number includes color, the transparency of window of window.
Fig. 5 is a kind of block diagram of electronic equipment 500 for adjusting display brightness shown according to an exemplary embodiment.
In the exemplary embodiment, a kind of storage medium including instruction, the memory for example including instruction are additionally provided 501, above-metioned instruction can be executed by the processor 502 of electronic equipment 500 to complete above-mentioned display lightness regulating method.
Optionally, storage medium can be non-transitorycomputer readable storage medium, for example, the non-transitory calculates Machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices Deng.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of display lightness regulating method, which is characterized in that the method is applied to the application program installed in terminal, described Method includes:
When meeting display brightness adjusting condition, preset window is generated on the corresponding page window of the page currently shown, In, the preset window has default transparency;
When the displaying target window in the page, the window attribute of the target window is set, so that the preset window The target window is covered, the display brightness of the corresponding display area of the target window is reduced.
2. the method according to claim 1, wherein the display brightness adjusting condition, including in the following conditions At least one:
The theme colors of the page currently shown are pre-set color, wherein the pre-set color includes white;
Current time belongs to preset time period, wherein the preset time period is for indicating environmental light brightness lower than default light Spend the period of threshold value;
The user instruction of input is received, the user instruction is for opening brightness regulation mode.
3. the method according to claim 1, wherein the window attribute of the setting target window, so that The preset window covers the target window, comprising:
The priority that the target window is arranged is lower than the priority of the preset window, so that described in preset window covering Target window.
4. the method according to claim 1, wherein the window attribute of the setting target window, so that The preset window covers the target window, comprising:
The target window is set to the child window of the page window, so that the preset window covers the target window Mouthful.
5. the method according to claim 1, wherein the method also includes:
The preset window, which is arranged, not allows to obtain focus, so that the target window can obtain focus.
6. the method according to claim 1, wherein the method also includes:
The screen that the preset window fills the terminal is set.
7. the method according to claim 1, wherein the method also includes:
Receive the parameter adjustment instruction for being directed to the preset window;
According to the parameter adjustment instruction, the window parameter of the preset window is adjusted, wherein the window parameter packet Include the color of window, the transparency of window.
8. a kind of display brightness regulating device, which is characterized in that described device is applied to the application program installed in terminal, described Device includes:
Generation module, for being given birth on the corresponding page window of the page currently shown when meeting display brightness adjusting condition At preset window, wherein the preset window has default transparency;
First processing module, for the window attribute of the target window to be arranged when the displaying target window in the page, So that the preset window covers the target window, the display brightness of the corresponding display area of the target window is reduced.
9. a kind of electronic equipment characterized by comprising processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to when executing the instruction stored on the memory, realize that claim 1-7 is any The method and step.
10. a kind of storage medium, when the instruction in the storage medium is executed by the processor of electronic equipment, so that electronics is set It is standby to be able to carry out method and step as claimed in claim 1.
CN201910602298.6A 2019-07-05 2019-07-05 Display brightness adjusting method and device, electronic equipment and storage medium Active CN110377254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910602298.6A CN110377254B (en) 2019-07-05 2019-07-05 Display brightness adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910602298.6A CN110377254B (en) 2019-07-05 2019-07-05 Display brightness adjusting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110377254A true CN110377254A (en) 2019-10-25
CN110377254B CN110377254B (en) 2023-11-14

Family

ID=68251959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910602298.6A Active CN110377254B (en) 2019-07-05 2019-07-05 Display brightness adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110377254B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188271A (en) * 2020-11-13 2021-01-05 四川长虹电器股份有限公司 Window level configuration method of smart television
CN112365863A (en) * 2020-11-17 2021-02-12 北京小米移动软件有限公司 Brightness adjusting method and device, display equipment and storage medium
CN113542206A (en) * 2020-11-27 2021-10-22 腾讯科技(深圳)有限公司 Image processing method and device and computer readable storage medium
CN114363448A (en) * 2020-09-29 2022-04-15 北京小米移动软件有限公司 Brightness control method and device for small screen window, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051777A (en) * 2012-12-04 2013-04-17 北京百度网讯科技有限公司 Method and device for controlling mobile terminal screen brightness and mobile terminal
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device
US20190172403A1 (en) * 2017-12-05 2019-06-06 Beijing Xiaomi Mobile Software Co., Ltd. Method for controlling screen display and device using the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051777A (en) * 2012-12-04 2013-04-17 北京百度网讯科技有限公司 Method and device for controlling mobile terminal screen brightness and mobile terminal
US20190172403A1 (en) * 2017-12-05 2019-06-06 Beijing Xiaomi Mobile Software Co., Ltd. Method for controlling screen display and device using the same
CN109614192A (en) * 2018-12-07 2019-04-12 北京金山云网络技术有限公司 Page brightness display methods and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363448A (en) * 2020-09-29 2022-04-15 北京小米移动软件有限公司 Brightness control method and device for small screen window, terminal and storage medium
CN112188271A (en) * 2020-11-13 2021-01-05 四川长虹电器股份有限公司 Window level configuration method of smart television
CN112365863A (en) * 2020-11-17 2021-02-12 北京小米移动软件有限公司 Brightness adjusting method and device, display equipment and storage medium
CN113542206A (en) * 2020-11-27 2021-10-22 腾讯科技(深圳)有限公司 Image processing method and device and computer readable storage medium
CN113542206B (en) * 2020-11-27 2023-07-04 腾讯科技(深圳)有限公司 Image processing method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN110377254B (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN110377254A (en) A kind of display lightness regulating method, device, electronic equipment and storage medium
US11443462B2 (en) Method and apparatus for generating cartoon face image, and computer storage medium
US10284705B2 (en) Method and apparatus for controlling smart device, and computer storage medium
CN108376094B (en) Notification message display method and device, computer equipment and storage medium
CN111782102B (en) Window display method and related device
JP2021103574A (en) Method, device, and electronic apparatus for training facial fusion model
US20220083153A1 (en) System and method of determining input characters based on swipe input
CN113963659B (en) Display device and adjustment method thereof
CN105204734A (en) Brightness control method and system
CN109614192A (en) Page brightness display methods and device
CN109157839A (en) Frame per second regulates and controls method, apparatus, storage medium and terminal
US20230345113A1 (en) Display control method and apparatus, electronic device, and medium
US20200356653A1 (en) Video display device and operating method therefor
CN112835485A (en) Application interface processing method and device, electronic equipment and readable storage medium
CN110084204A (en) Image processing method, device and electronic equipment based on target object posture
CN113018856A (en) Image processing method, image processing device, electronic equipment and storage medium
CN110502959A (en) Sexual discriminating method, apparatus, storage medium and electronic equipment
CN106453965B (en) The adaptive regulation method and device of terminal backlight
CN108762836A (en) Management method, device, storage medium and the intelligent terminal of preloaded applications
CN108304060A (en) A kind of method of supplying power to of virtual reality device, device and virtual reality device
CN116229188A (en) Image processing display method, classification model generation method and equipment thereof
CN106406650A (en) Icon display method and equipment
US20180348891A1 (en) System and method of determining input characters based on swipe input
CN114038370B (en) Display parameter adjustment method and device, storage medium and display equipment
CN111989917A (en) Electronic device and control method thereof

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
GR01 Patent grant
GR01 Patent grant