CN106484396A - Night changing method, device and terminal unit - Google Patents

Night changing method, device and terminal unit Download PDF

Info

Publication number
CN106484396A
CN106484396A CN201610829005.4A CN201610829005A CN106484396A CN 106484396 A CN106484396 A CN 106484396A CN 201610829005 A CN201610829005 A CN 201610829005A CN 106484396 A CN106484396 A CN 106484396A
Authority
CN
China
Prior art keywords
night
display object
color
display
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610829005.4A
Other languages
Chinese (zh)
Other versions
CN106484396B (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 Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610829005.4A priority Critical patent/CN106484396B/en
Publication of CN106484396A publication Critical patent/CN106484396A/en
Application granted granted Critical
Publication of CN106484396B publication Critical patent/CN106484396B/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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

Abstract

The invention discloses a kind of Night changing method, device and terminal unit, it is related to display technology field.Night changing method therein includes:System layer control module obtains the display object that application carries out display control;The color attribute showing object is set to be applied to the colouring information of display under Night by system layer control module;Display object after arranging is sent to hardware display control and is shown by system layer control module.By display object is obtained using system control floor, and the color attribute of display object is set as being applied to the colouring information of display under Night, Night service can be provided to each application in universality ground, user need not switch in the respective applications respectively, simple operation.

Description

Night changing method, device and terminal unit
Technical field
The present invention relates to display technology field, particularly to a kind of Night changing method, device and terminal unit.
Background technology
At present, a lot of terminal user like the using terminal equipment when turning off the light to chat, browse news, read microblogging etc. Deng.And major applications using the color matching being suitable to use on daytime, such as use white gravoply, with black engraved characters at text importing.And sometimes for The individual character of prominent application, can, chromatic colour modification background, frame, word etc. strong using contrast.When user is in dark Under the conditions of when being applied using these, the discomfort of eye can be produced.
Certain applications, in order to solve this problem, are provided with Night in the application.When user opens night in the application Inter mode, currently used style information can be replaced by Night style information by application, thus the colour matching altering by application For the subdued colour that lightness is low, contrast is little, to protect the eyes of user.
However, these style informations preserve in the respective applications respectively, therefore user needs respectively for different applications Switching display pattern.When user is when wanting using application daytime, again Night is exited in application one by one.This makes user's Operation is very loaded down with trivial details.
Content of the invention
An embodiment of the present invention technical problem to be solved is:A kind of Night switching side of simple operation is provided Method.
One side according to embodiments of the present invention, a kind of Night changing method providing, including:System layer control Molding block obtains the display object that application carries out display control;The color attribute showing object is set to by system layer control module It is applied to the colouring information of display under Night;Display object after arranging is sent to hardware and shows by system layer control module Show that control is shown.
In one embodiment, system layer control module in response to application page idsplay order, from page idsplay order Middle acquisition shows object;Or, system layer control module, in response to the page return instruction of application, refers to according to page return instruction The page to be returned showing, obtains display object in the information of the page to be returned preserving from caching.
In one embodiment, the color attribute showing object is set to be applied in night mould by system layer control module Under formula, the colouring information of display includes:System layer control module shows object in Night according to the type setting of display object Under color attribute.
In one embodiment, the color attribute showing object is set to be applied in night mould by system layer control module Under formula, the colouring information of display includes:System layer control module, will according to the conversion corresponding relation of color under different display modes Display object color attribute under the current model is converted to display object corresponding color attribute under night model.
In one embodiment, the color attribute showing object is set to be applied in night mould by system layer control module Under formula, the colouring information of display includes:Inverse process is carried out to the gray value of the color attribute value of display object;By gray value with Colouring information in preset range for the gap between gray value after inverse process is defined as showing that object was applied at night The colouring information of display under pattern.
In one embodiment, the user interface components during display object includes applying.
In one embodiment, when system layer control module judges to need to enter Night, execution Night switching Method, wherein, when at least one in information-setting by user, current environment brightness information and current time information meet default During condition, system layer control module judges to need to enter Night.
Second aspect according to embodiments of the present invention, provides a kind of Night switching device, including:Display object obtains Delivery block, carries out the display object of display control for obtaining application;Color attribute setting module, for showing the face of object Color attribute is set to be applied to the colouring information of display under Night;Display objects draw module, for by after setting Display object is sent to hardware display control and is shown.
In one embodiment, display object acquisition module is used for the page idsplay order in response to application, shows from the page Show and in instruction, obtain display object;Or, display object acquisition module is used for the page return instruction in response to application, according to page The page to be returned of face return instruction instruction, obtains display object in the information of the page to be returned preserving from caching.
In one embodiment, color attribute setting module is used for showing object at night according to the type setting of display object Color attribute under inter mode.
In one embodiment, color attribute setting module is used for the corresponding pass of conversion according to color under different display modes System, display object color attribute under the current model is converted to display object corresponding color attribute under night model.
In one embodiment, color attribute setting module includes:Inverse processing unit, for the color to display object The gray value of property value carries out inverse process;Colouring information select unit, for the gray value process gray value with inverse after Between gap be defined as showing the color letter that object is applied under Night display in the colouring information in preset range Breath.
In one embodiment, the user interface components during display object includes applying.
In one embodiment, also include Night judge module, during for judging to need to enter Night, execution Night changing method, wherein, Night judge module is used for when information-setting by user, current environment brightness information and works as When at least one in front temporal information meets default condition, judge to need to enter Night.
3rd aspect according to embodiments of the present invention, provides a kind of terminal unit, including any one night mould aforementioned Formula switching device.
4th aspect according to embodiments of the present invention, provides a kind of Night switching device, including:Memorizer;With And it is coupled to the processor of memorizer, processor is configured to the instruction in memory based on storage, and execution is aforementioned any one Plant Night changing method.
The present invention passes through to obtain display object using system control floor, and the color attribute of display object is set as being suitable for In the colouring information of display under Night, Night service can be provided to each application in universality ground, user need not Switch respectively in the respective applications, simple operation.
By the detailed description to the exemplary embodiment of the present invention referring to the drawings, the further feature of the present invention and its Advantage will be made apparent from.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, also may be used So that other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the flow chart of one embodiment of Night changing method of the present invention.
Fig. 2 is the flow chart of another embodiment of Night changing method of the present invention.
Fig. 3 is the flow chart of another embodiment of Night changing method of the present invention.
Fig. 4 is the structure chart of an embodiment of terminal unit of the present invention.
Fig. 5 is the structure chart of an embodiment of Night switching device of the present invention.
Fig. 6 is the structure chart of another embodiment of Night switching device of the present invention.
Fig. 7 is the structure chart of another embodiment of Night switching device of the present invention.
Fig. 8 is the structure chart of the further embodiment of Night switching device of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Below Description only actually at least one exemplary embodiment is illustrative, and never conduct to the present invention and its application or makes Any restriction.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
The difference in functionality of each ingredient according to mobile terminal system, can be classified as application layer, system controls Layer and three levels of hardware layer.Application layer mainly includes the inherent data of each application, resource, for accepting user to application Operation, sends the instruction that application is initiated;System control floor is used for processing the instruction that application sends, and the result after processing is sent To corresponding functional module, hardware module etc.;Hardware layer makes hard accordingly for the instruction control being sent according to system control floor Part executes corresponding operating, for example, play sound, display image etc..
Due to application layer, the instruction sending, data are required to through system control floor, and therefore the application is in system control floor Carry out the switching control of Night, reach the effect making all applications in system enter Night in a key mode.
Fig. 1 is the flow chart of one embodiment of Night changing method of the present invention.As shown in figure 1, the side of this embodiment Method includes:
Step S102, system layer control module obtains the display object that application carries out display control.
Wherein, system layer control module is to realize in an operating system for carrying out color attribute setting to display object Functional module.In application layer, the display control signal of each application all can be through the system layer in operating system, operating system Control module catches the display control signal of application, and extracts display object from display control signal.
Usually contain the more than one page in application, in each page, generally include multiple user interface components again.Example As, in ARIXTRA (Android) system, interface is mainly by view (view) assembly including each type, such as Textview (textual view), Listview (List View) etc., and the other kinds of assembly such as button, menu, bullet frame, progress bar.
From the perspective of screen display, each user interface components in application can be considered as a display object. Each display object can arrange the attribute information of itself, to show related attribute information have show the position of object, size, Color etc..
Normally, when user clicks on an application, or, when user clicks on the hop button in application, system meeting Obtain the display properties of each display object according to the logical code of this page in application and model code, and generate idsplay order It is sent to hardware display control, to show to the page.
In an embodiment of the present invention, display object before the page is shown, to acquisition for the system layer control module Carried out color attribute resets process.
Step S104, system layer control module the color attribute showing object is set to be applied under Night aobvious The colouring information showing.
The color attribute of some display objects is dominant, i.e. application developer sets color for it.However, part The color attribute of display object is by default treatment, application developer its color not specified.Usually, system can be it Automatically add default color, for example, word is set to black, background colour is set to white etc..No matter original color attribute is pre- If or acquiescence, all can set it to the colouring information being applied to display under Night.
The colouring information being applied to display under Night can be less than default bar for lightness, saturation or contrast The color of part, when showing in the page that the These parameters of color attribute of object are relatively low, the page is less to the zest of human eye;Suitable Colouring information for display under Night can also be the color of specific form and aspect, for example can be for being used for eye protection color Green etc.;In addition it is also possible to be that multiple display objects resetting colouring information have reached on the whole and are applied to night The effect of pattern, for example, background can be shown in order to read using white or canescence using dark display, word.
The method selecting with regard to system layer control module to be applied to the colouring information of display under Night, will enter hereinafter Row is further to be introduced.
Step S106, the display object after arranging is sent to hardware display control and is shown by system layer control module, Thus shielding the display original color attribute of object, the color attribute according to resetting is shown.
Wherein, hardware display control can be for example display screen etc..Object will be shown according to the display properties of display object Projecting on screen embodiment is:First, read the display properties of each display object, given birth to according to each display properties Become rendering order;Then, execute rendering order, objects draw will be shown in graphic buffer;Finally, by the figure completed Relief area transfers to hardware display control to be shown.Said process is a kind of method that display object is drawn and shown, As needed, additive method can also be adopted, for example, directly drawing result is sent to hardware display control, and not via figure Relief area.Those skilled in the art can be selected according to specific operating system and hardware case.
By obtaining display object using system control floor, and the color attribute of display object is set as being applied at night The colouring information of display under inter mode, can provide Night service to each application in universality ground, user need not be at each Switch respectively in application, simple operation, strong applicability.
, if the one-touch service of the Night to background color will be realized, system layer controls taking Android system as a example Module can capture setBackground function of each application of application layer, and by the color in setBackground function Information is set to be applied to certain pre-set color of display under Night, then by the setBackground letter after setting Number is sent to hardware display control and is shown, so that the background color of each application is both configured to this pre-set color.As Fruit to realize the one-touch service of the Night to text color, then system layer control module can capture application layer each should SetTextColor function, and the colouring information in setTextColor function is set to be applied under Night Then setTextColor function after setting is sent to hardware display control and is shown by certain pre-set color of display, So that the text color of each application is both configured to this pre-set color.
For example, the background color of the display object a in application A is #111111, and text color is #222222;In application B Display object b background color be #333333, text color be #444444.
A is when being shown for application, shows object a's in system layer control module capture application layer in application A SetBackground, setTextColor function, and respectively by the background color #111111 in setBackground function, Text color #222222 in setTextColor function replaces the background face being set to be applied to display under Night Then setBackground, setTextColor function after setting is sent to by color #000000 and text color #FFFFFF Hardware display control is shown so that being shown that the background of object a, text color are both configured to pre-set color.
Similarly, application B, when being shown, shows object b's in application B in system layer control module capture application layer SetBackground, setTextColor function, and respectively by the background color #333333 in setBackground function, Text color #444444 in setTextColor function replaces the background face being set to be applied to display under Night Then setBackground, setTextColor function after setting is sent to by color #000000 and text color #FFFFFF Hardware display control is shown so that being shown that the background of object b, text color are both configured to pre-set color.
Thus, even if display object a and b is belonging respectively to different applications, system layer control module can also be unified to show Show that the color of object a and b is set to be applied to the color of Night.
One exemplary application of above-mentioned Night changing method is as follows:" a key Night " is set in the terminal Function.After user opens " a key Night ", system layer control module carries out face to the page to be shown that each is applied Resetting of color attribute, is set to be applied to the colouring information of display under Night.User need not be in the respective applications It is respectively provided with Night, only needs the operation that Night function is opened one time, you can so that all applications enter Night.
System layer control module may determine that currently the need of entrance Night, if it is desired, then executes night mould Formula changing method.Wherein it is possible to when at least one in information-setting by user, current environment brightness information and current time information When meeting default condition, system layer control module judges to need to enter Night.It is thus possible to being needed according to user or working as Front environment neatly switches Night.
For example, come control system layer, user can control whether mould enters night mould by arranging Night on off state Formula;Night can also be entered when ambient brightness is less than preset value, ambient brightness exits Night when being more than preset value; Can also be in certain evening hours such as 23:00 to next day 6:00 period entered Night.
Possibly formed in different ways in the page of screen display.For example, the page of some displays is to start The page producing first after application, such page is to be formed according to the data that application sends;And the page of some displays does not open Produce first after dynamic application, but after this page creation, user browses other pages or other application then, then redirects Return what this page was shown, such page showing again is formed according to the data of storage.
Describing the page creating first and the page layout switch of establishment with reference to Fig. 2 and Fig. 3 separately below is Night Method.
Fig. 2 is the flow chart of another embodiment of Night changing method of the present invention.The description of this embodiment is created first The page layout switch built is the method for Night.As shown in Fig. 2 the method for this embodiment includes:
Step S202, system layer control module, in response to the page idsplay order of application, obtains from page idsplay order Display object.
Page idsplay order is the display properties carrying display object, and controls and show related modules, control Instruction display object being shown with display properties.For example, in Android system, executed using draw function and draw and aobvious The behavior such as show.After this function executes, each display object in the page will be drawn one by one and shown.
Therefore, it can be exclusively used in processing the type of instruction, form of display etc. by identifying system and to obtain display and refer to Order.
After system layer control module obtains the idsplay order of application, do not execute this instruction, but extract therein aobvious Show object, and reset the color of display object.As needed, other attribute informations of display object can also be extracted, this In repeat no more.
Step S104, system layer control module the color attribute showing object is set to be applied under Night aobvious The colouring information showing.
Step S106, the display object after arranging is sent to hardware display control and is shown by system layer control module.
By adopting said method, display object can be obtained in response to the drafting instruction of application, and reset display The color attribute of object, can make the page newly creating enter Night.
Fig. 3 is the flow chart of another embodiment of Night changing method of the present invention.The description of this embodiment creates Page layout switch be Night method.As shown in figure 3, the method for this embodiment includes:
Step S302, system layer control module, in response to the page return instruction of application, indicates according to page return instruction The page to be returned, from caching preserve the page to be returned information in obtain display object.
Return instruction is the instruction of the page that instruction system control floor shows establishment.For example, when user is clicking on application In or system itself return key when, system can receive the return instruction of this click behavior generation, returns in application current The front page once browsing of browsing pages.Additionally, browsing button when user clicks on multiwindow, screen can assume the institute having turned on There is application, user can therefrom select an application, and system can receive the return instruction of this click behavior generation, and jumps to this The page finally browsing of application.
The above-mentioned page to be returned is the page having created, if the corresponding application of the page to be returned is not over transporting OK, and the page to be returned is not terminated, the attribute information of the page can be stored in system, to return when the page receives Can rapidly be shown when referring to make.
Therefore, it can, before the page to be returned is shown, read the data having created the page for memory page Memory space, and obtain the attribute information of storage, color attribute carried out to it and resets.
For example, in Android system, what each was applied creates the data storage of the page in SharedBufferStack In.
Step S104, system layer control module the color attribute showing object is set to be applied under Night aobvious The colouring information showing.
Step S106, the display object after arranging is sent to hardware display control and is shown by system layer control module.
User may determine to open Night during using application.After opening Night, create The page in display object can be shown using the colouring information being applied under Night display.
By adopting said method, need not restart application can make the page of establishment enter Night, user Experience more preferable.
In each embodiment above-mentioned it is adaptable under Night, the colouring information of display can carry out setting in advance Fixed, dissimilar to background color and text color etc. by the title of attribute or object color attribute is distinguish between.For example In Android system, textcolor is represented with textColor attribute, background color is represented with background attribute.When default Color more fixing when, for example can unify for background color to be set to black, text color is set to white.
However, the view of partial page has abundant level.For example, if the page has the action bar of red background, white The reading frame of color background and the word of black.If the background of action bar and reading frame is replaced with same being applied to by unification Under Night, the color of display alleviates, although can play, the effect that user reads fatigue, but it is intrinsic to lose application Stereovision.Therefore it may be referred to following three kinds of method choice are applied to the color of display under Night.
First method is that system layer control module shows object under Night according to the type setting of display object Color attribute.
Wherein it is possible to preset the display object of each type and the colouring information of corresponding Night, night mould The colouring information of formula can be set according to the feature of the type of display object.For example, it is possible to by display object be divided into word, The types such as list, button, menu, list is used for assuming content of text in large area, it is possible to use the dead color such as black, Dark grey, The color that word can be identified using white or canescence etc. from the background of list, button, menu can use The color that there is distinguishing mark and that user's vision will not be stimulated such as dark red, dark yellow.Thus, it is possible to conveniently realize applicable Setting in the color of Night.
Second method is that system layer control module, according to the conversion corresponding relation of color under different display modes, will show Show that object color attribute under the current model is converted to display object corresponding color attribute under night model.
Wherein it is possible to preset the corresponding lists of original colouring information and the colouring information of Night, by colouring information Value display object within the specific limits is set to same default color.For example, the face of the action bar in the page and button Color is redness, by said method, action bar and button can be disposed as same default corresponding color, for example deeply Blue.
By the hierarchical structure applying original color in this way, can be retained, before realizing Night Put, the design features of application can be retained to greatest extent.
The third method is that the gray value of the color attribute value to display object for the system layer control module is carried out at inverse Reason;Colouring information in preset range for the gap between gray value after gray value and inverse are processed is defined as showing object It is applied to the colouring information of display under Night.
The purpose of this method is to be replaced by original colouring information in a large number with low gray value and have high gray value Colouring information, and be not concerned with the hue value of colouring information, flexibility ratio is higher.
Several it be suitable to the color being applied to display under Night that Night show and believe for example, it is possible to default Breath, the gray value between these colouring informations has certain gap.When the color obtaining the display original color attribute of object The inverse result of the gray value of each colouring information during information, can be calculated, and obtain default being applied in night mould Under formula display colouring information in above-mentioned inverse result immediate colouring information.
The terminal unit of one embodiment of the invention is described with reference to Fig. 4.
Fig. 4 is the structure chart of an embodiment of terminal unit of the present invention.As shown in figure 4, the terminal unit of this embodiment 40 include Night switching device 45.
The Night switching device of one embodiment of the invention is described with reference to Fig. 5.
Fig. 5 is the structure chart of an embodiment of Night switching device of the present invention.As shown in figure 5, this embodiment Night switching device 45 includes:Display object acquisition module 552, applies the display carrying out display control right for obtaining As;Color attribute setting module 554, for being set to be applied to display under Night by the color attribute of display object Colouring information;Display objects draw module 556, is shown for the display object after setting is sent to hardware display control Show.
By obtaining display object using display object acquisition module, and the color attribute of display object is set as being suitable for In the colouring information of display under Night, Night service can be provided to each application in universality ground, user need not Switch respectively in the respective applications, simple operation, strong applicability.
Wherein, display object acquisition module 552 can be used for the page idsplay order in response to application, shows from the page and refers to Display object is obtained in order;Or, display object acquisition module 552 can be used for the page return instruction in response to application, root According to the page to be returned of page return instruction instruction, in the information of the page to be returned preserving from caching, obtain display object.
Thus, no matter the page to be shown is to create the page or the newly-built page, all need not restart and apply The page of establishment is made to enter Night, the experience of user is more preferable.
Wherein, the user interface components during display object can include applying.
The Night switching device of another embodiment of the present invention is described with reference to Fig. 6.
Fig. 6 is the structure chart of another embodiment of Night switching device of the present invention.As shown in fig. 6, this embodiment Color attribute setting module 554 include:Inverse processing unit 6542, for the gray value of the color attribute value to display object Carry out inverse process;Colouring information select unit 6544, for the gap between the gray value after processing gray value and inverse It is defined as showing the colouring information that object is applied to display under Night in the colouring information in preset range.
Thus, it is possible to original colouring information in a large number with low gray value is replaced by the color letter with high gray value Breath, and it is not concerned with the hue value of colouring information, flexibility ratio is higher.
Additionally, color attribute setting module 554 can be also used for showing object at night according to the type setting of display object Color attribute under inter mode.Thus, it is possible to conveniently realize the setting of the color being applied to Night.
Additionally, color attribute setting module 554 can be also used for the corresponding pass of conversion according to color under different display modes System, display object color attribute under the current model is converted to display object corresponding color attribute under night model. It is thus possible to retain the hierarchical structure applying original color, on the premise of realizing Night, can protect to greatest extent Stay the design features of application.
Additionally, Night switching device 45 can also include also including Night judge module 658, for judging to need When entering Night, execute Night changing method, wherein, Night judge module 658 is used for working as user setup When at least one in information, current environment brightness information and current time information meets default condition, judge to need to enter Night.It is thus possible to neatly switch Night according to user's needs or current environment.
Fig. 7 is the structure chart of an embodiment of Night switching device of the present invention.As shown in fig. 7, this embodiment Device 700 includes:Memorizer 710 and the processor 720 being coupled to this memorizer 710, processor 720 is configured to be based on and deposits Instruction in memorizer 710 for the storage, executes the Night changing method in any one embodiment aforementioned.
Wherein, memorizer 710 for example can include system storage, fixing non-volatile memory medium etc..System stores Device is for example stored with operating system, application program, Boot loader (Boot Loader) and other programs etc..
Fig. 8 is the structure chart of another embodiment of Night switching device of the present invention.As shown in figure 8, this embodiment Device 700 include:Memorizer 710 and processor 720, can also include input/output interface 830, network interface 840, deposit Storage interface 850 etc..Bus for example can be passed through between these interfaces 830,840,850 and memorizer 710 and processor 720 860 connections.Wherein, input/output interface 830 be display, the input-output equipment such as mouse, keyboard, touch screen provide connection connect Mouthful.Network interface 840 provides connecting interface for various networked devices.Memory interface 850 is the external storage such as SD card, USB flash disk Connecting interface is provided.
Those skilled in the art should be understood that embodiments of the invention can be provided as method, system or computer journey Sequence product.Therefore, the present invention using complete hardware embodiment, complete software embodiment or can combine software and hardware aspect The form of embodiment.And, the present invention can be using in one or more calculating wherein including computer usable program code Machine can be with the upper meter implemented of non-transient storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of calculation machine program product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.Being interpreted as can be by each in computer program instructions flowchart and/or block diagram Flow process in flow process and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer journeys can be provided Sequence instruct the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device with Produce a machine to be used for so that producing by the instruction of computer or the computing device of other programmable data processing device The dress of the function that realization is specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame Put.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.

Claims (16)

1. a kind of Night changing method is it is characterised in that include:
System layer control module obtains the display object that application carries out display control;
The color attribute of described display object is set to be applied to the color of display under Night by system layer control module Information;
Described display object after arranging is sent to hardware display control and is shown by system layer control module.
2. method according to claim 1 is it is characterised in that system layer control module shows and refers in response to the page of application Order, obtains described display object from described page idsplay order;Or,
System layer control module is in response to the page return instruction of application, the page to be returned being indicated according to described page return instruction Face, obtains described display object in the information of the page described to be returned preserving from caching.
3. method according to claim 1 is it is characterised in that the color of described display object is belonged to by system layer control module Property be set to be applied under Night the colouring information of display and include:
System layer control module arranges color under Night for the described display object according to the type of described display object and belongs to Property.
4. method according to claim 1 is it is characterised in that the color of described display object is belonged to by system layer control module Property be set to be applied under Night the colouring information of display and include:
System layer control module, according to the conversion corresponding relation of color under different display modes, described display object is being worked as front mould Color attribute under type is converted to described display object corresponding color attribute under night model.
5. method according to claim 1 it is characterised in that described system layer control module by described display object face The colouring information that color attribute is set to be applied to display under Night includes:
Inverse process is carried out to the gray value of the color attribute value of described display object;
Colouring information in preset range for the gap between gray value after gray value and inverse are processed is defined as described aobvious Show that object is applied to the colouring information of display under Night.
6. the method according to any one of claim 1-5 is it is characterised in that described display object includes the use in application Family interface assembly.
7. the method according to any one of claim 1-5 is it is characterised in that system layer control module judges to need to enter During Night, execute described Night changing method, wherein, when information-setting by user, current environment brightness information and work as When at least one in front temporal information meets default condition, system layer control module judges to need to enter Night.
8. a kind of Night switching device is it is characterised in that include:
Display object acquisition module, carries out the display object of display control for obtaining application;
Color attribute setting module, for being set to be applied to display under Night by the color attribute of described display object Colouring information;
Display objects draw module, is shown for the described display object after setting is sent to hardware display control.
9. device according to claim 8 is it is characterised in that described display object acquisition module is used in response to application Page idsplay order, obtains described display object from described page idsplay order;Or,
Described display object acquisition module is used for the page return instruction in response to application, is indicated according to described page return instruction The page to be returned, from caching preserve the page described to be returned information in obtain described display object.
10. device according to claim 8 is it is characterised in that described color attribute setting module is used for according to described aobvious Show the type setting described display color attribute under Night for the object of object.
11. devices according to claim 8 are it is characterised in that described color attribute setting module is used for according to different aobvious Show the conversion corresponding relation of color under pattern, described display object color attribute under the current model is converted to described display Object corresponding color attribute under night model.
12. devices according to claim 8 are it is characterised in that described color attribute setting module includes:
Inverse processing unit, the gray value for the color attribute value to described display object carries out inverse process;
Colouring information select unit, for the gap between the gray value after processing gray value and inverse in preset range Colouring information is defined as the colouring information that described display object is applied to display under Night.
13. devices according to claim 8 are it is characterised in that described display object includes the user interface group in application Part.
14. devices according to claim 8, it is characterised in that also including Night judge module, need for judgement When entering Night, execute described Night changing method, wherein, described Night judge module is used for setting as user When at least one in confidence breath, current environment brightness information and current time information meets default condition, judge to need into Enter Night.
A kind of 15. terminal units are it is characterised in that include the Night switching dress any one of claim 8-14 Put.
A kind of 16. Night switching devices are it is characterised in that include:
Memorizer;And
It is coupled to the processor of described memorizer, described processor is configured to the instruction in which memory based on storage, Night changing method as any one of claim 1-7 for the execution.
CN201610829005.4A 2016-09-18 2016-09-18 Night mode switching method and device and terminal equipment Active CN106484396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610829005.4A CN106484396B (en) 2016-09-18 2016-09-18 Night mode switching method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610829005.4A CN106484396B (en) 2016-09-18 2016-09-18 Night mode switching method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN106484396A true CN106484396A (en) 2017-03-08
CN106484396B CN106484396B (en) 2020-03-03

Family

ID=58267237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610829005.4A Active CN106484396B (en) 2016-09-18 2016-09-18 Night mode switching method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN106484396B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106953991A (en) * 2017-05-22 2017-07-14 北京小米移动软件有限公司 Display mode switching method and device
CN107038037A (en) * 2017-05-22 2017-08-11 北京小米移动软件有限公司 Display mode switching method and device
CN109600518A (en) * 2019-01-30 2019-04-09 努比亚技术有限公司 Application method, mobile terminal, the readable storage medium storing program for executing of eyeshield display pattern
CN109614186A (en) * 2018-11-29 2019-04-12 深圳市酷达通讯有限公司 Application program color switching method, system and terminal device
CN109917901A (en) * 2019-02-25 2019-06-21 努比亚技术有限公司 The color adjustment method and wearable device of picture are applied in wearable device
CN109994037A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Generate method, apparatus, terminal and the storage medium of electronic map
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN110618852A (en) * 2019-09-24 2019-12-27 Oppo广东移动通信有限公司 View processing method, view processing device and terminal equipment
CN111124568A (en) * 2019-12-05 2020-05-08 珠海市魅族科技有限公司 Fast application night mode starting method and device, electronic equipment and storage medium
CN111427573A (en) * 2020-03-09 2020-07-17 南京贝湾信息科技有限公司 Pattern generation method, computing device and storage medium
CN111597002A (en) * 2020-05-15 2020-08-28 北京奇艺世纪科技有限公司 Page rendering method and device, electronic equipment and storage medium
CN112331158A (en) * 2020-11-18 2021-02-05 北京小米移动软件有限公司 Terminal display adjusting method, device, equipment and storage medium
CN112486602A (en) * 2019-08-23 2021-03-12 西安中兴新软件有限责任公司 Interface switching method and device, terminal equipment and storage medium
CN112578985A (en) * 2020-12-23 2021-03-30 努比亚技术有限公司 Display mode setting method and device and computer readable storage medium
CN113407082A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Font color control method applied to terminal equipment and related device
CN113407135A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Display control method applied to ink screen and related device
CN112578985B (en) * 2020-12-23 2024-04-26 努比亚技术有限公司 Display mode setting method, device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1796353A1 (en) * 2005-12-09 2007-06-13 Samsung Electronics Co., Ltd. Method for converting a background screen of a mobile terminal based on information stored therein
CN103050090A (en) * 2011-10-14 2013-04-17 腾讯科技(深圳)有限公司 Method and device for adjusting display brightness of mobile terminal application
US20140104432A1 (en) * 2012-10-12 2014-04-17 Samsung Techwin Co., Ltd. Surveillance system control method and surveillance system adopting the method
CN103841265A (en) * 2014-02-21 2014-06-04 厦门美图之家科技有限公司 Mode control method for mobile terminal system
CN104346403A (en) * 2013-08-07 2015-02-11 腾讯科技(深圳)有限公司 Browser page display method and device as well as browser and terminal
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
CN105094323A (en) * 2015-07-09 2015-11-25 努比亚技术有限公司 Method and apparatus for setting night mode of terminal
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN105701165A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Browser mode switching method and switching device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1796353A1 (en) * 2005-12-09 2007-06-13 Samsung Electronics Co., Ltd. Method for converting a background screen of a mobile terminal based on information stored therein
CN103050090A (en) * 2011-10-14 2013-04-17 腾讯科技(深圳)有限公司 Method and device for adjusting display brightness of mobile terminal application
US20140104432A1 (en) * 2012-10-12 2014-04-17 Samsung Techwin Co., Ltd. Surveillance system control method and surveillance system adopting the method
CN104346403A (en) * 2013-08-07 2015-02-11 腾讯科技(深圳)有限公司 Browser page display method and device as well as browser and terminal
CN103841265A (en) * 2014-02-21 2014-06-04 厦门美图之家科技有限公司 Mode control method for mobile terminal system
CN104462312A (en) * 2014-11-28 2015-03-25 北京奇虎科技有限公司 Web page displaying method and browser client side
CN105094323A (en) * 2015-07-09 2015-11-25 努比亚技术有限公司 Method and apparatus for setting night mode of terminal
CN105511717A (en) * 2015-11-30 2016-04-20 北京京东尚科信息技术有限公司 Page display method and page display device
CN105701165A (en) * 2015-12-30 2016-06-22 广东欧珀移动通信有限公司 Browser mode switching method and switching device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038037A (en) * 2017-05-22 2017-08-11 北京小米移动软件有限公司 Display mode switching method and device
US20180338029A1 (en) * 2017-05-22 2018-11-22 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for switching display mode
CN106953991A (en) * 2017-05-22 2017-07-14 北京小米移动软件有限公司 Display mode switching method and device
CN109994037A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Generate method, apparatus, terminal and the storage medium of electronic map
CN109994037B (en) * 2017-12-29 2021-12-14 杭州海康威视系统技术有限公司 Method, device, terminal and storage medium for generating electronic map
CN109614186A (en) * 2018-11-29 2019-04-12 深圳市酷达通讯有限公司 Application program color switching method, system and terminal device
CN109600518A (en) * 2019-01-30 2019-04-09 努比亚技术有限公司 Application method, mobile terminal, the readable storage medium storing program for executing of eyeshield display pattern
CN109917901A (en) * 2019-02-25 2019-06-21 努比亚技术有限公司 The color adjustment method and wearable device of picture are applied in wearable device
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
WO2021027649A1 (en) * 2019-08-09 2021-02-18 华为技术有限公司 Dark-mode display interface processing method, electronic device, and storage medium
CN112486602A (en) * 2019-08-23 2021-03-12 西安中兴新软件有限责任公司 Interface switching method and device, terminal equipment and storage medium
CN110618852A (en) * 2019-09-24 2019-12-27 Oppo广东移动通信有限公司 View processing method, view processing device and terminal equipment
CN110618852B (en) * 2019-09-24 2023-12-29 Oppo广东移动通信有限公司 View processing method, view processing device and terminal equipment
CN111124568A (en) * 2019-12-05 2020-05-08 珠海市魅族科技有限公司 Fast application night mode starting method and device, electronic equipment and storage medium
CN111427573A (en) * 2020-03-09 2020-07-17 南京贝湾信息科技有限公司 Pattern generation method, computing device and storage medium
CN111427573B (en) * 2020-03-09 2023-06-20 南京贝湾信息科技有限公司 Pattern generation method, computing device and storage medium
CN111597002A (en) * 2020-05-15 2020-08-28 北京奇艺世纪科技有限公司 Page rendering method and device, electronic equipment and storage medium
CN112331158A (en) * 2020-11-18 2021-02-05 北京小米移动软件有限公司 Terminal display adjusting method, device, equipment and storage medium
CN112578985A (en) * 2020-12-23 2021-03-30 努比亚技术有限公司 Display mode setting method and device and computer readable storage medium
CN112578985B (en) * 2020-12-23 2024-04-26 努比亚技术有限公司 Display mode setting method, device and computer readable storage medium
CN113407135A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Display control method applied to ink screen and related device
CN113407082A (en) * 2021-06-23 2021-09-17 青岛海信移动通信技术股份有限公司 Font color control method applied to terminal equipment and related device
CN113407082B (en) * 2021-06-23 2023-09-12 青岛海信移动通信技术有限公司 Font color control method and related device applied to terminal equipment

Also Published As

Publication number Publication date
CN106484396B (en) 2020-03-03

Similar Documents

Publication Publication Date Title
CN106484396A (en) Night changing method, device and terminal unit
US10482316B2 (en) Image information processing method and apparatus, and computer storage medium
EP3220249A1 (en) Method, device and terminal for implementing regional screen capture
CN109783182A (en) A kind of method of adjustment, device, equipment and the medium of page subject matter tone
CN104076928B (en) A kind of method for adjusting text importing image
CN106855797A (en) The method to set up and device of a kind of interface element color
CN105786924A (en) Webpage night mode processing method and apparatus, and mobile terminal
CN105045554B (en) A kind of image display method and user terminal
CN109859283A (en) One kind taking color method, takes color device, electronic equipment and can storage medium
CN109408177A (en) Method and device for configuring color of characters in picture and electronic equipment
CN106780635A (en) The picture adapting method and system of a kind of intelligent terminal
CN107133038A (en) A kind of application program changes the method and its device of skin
CN104461614A (en) Method for processing theme resource and electronic device
CN111383320B (en) Virtual model processing method, device, equipment and storage medium
CN106126140B (en) A kind of method, apparatus and electronic equipment of rendering type
CN109410295A (en) Color setting method, device, equipment and computer readable storage medium
CN106162303A (en) Information processing method, information processor and subscriber equipment
CN114820292A (en) Image synthesis method, device, equipment and storage medium
CN104793937B (en) A kind of startup control method and device
US20180365878A1 (en) Facial model editing method and apparatus
CN112686939A (en) Depth image rendering method, device and equipment and computer readable storage medium
CN106293658A (en) A kind of interface assembly generates method and equipment thereof
US10635745B2 (en) Pre-children in a user interface tree
CN113379865B (en) Drawing method and system of target object
CN113360820B (en) Page display method, system, equipment and storage medium

Legal Events

Date Code Title Description
C06 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