CN114138394A - Night display mode processing method, electronic device and computer storage medium - Google Patents
Night display mode processing method, electronic device and computer storage medium Download PDFInfo
- Publication number
- CN114138394A CN114138394A CN202111482075.4A CN202111482075A CN114138394A CN 114138394 A CN114138394 A CN 114138394A CN 202111482075 A CN202111482075 A CN 202111482075A CN 114138394 A CN114138394 A CN 114138394A
- Authority
- CN
- China
- Prior art keywords
- display mode
- night
- display
- display element
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 11
- 238000000034 method Methods 0.000 claims abstract description 79
- 230000001960 triggered effect Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 14
- 230000000694 effects Effects 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 9
- 230000004044 response Effects 0.000 description 9
- 238000013459 approach Methods 0.000 description 4
- 238000012552 review Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000011156 evaluation Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 238000011022 operating instruction Methods 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a processing method of a night display mode, electronic equipment and a computer storage medium, wherein the method comprises the following steps: detecting whether a switching condition of a night display mode is met; if so, acquiring display element resources of a night display mode; setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance; and displaying the display element resources in the night display mode. Through the mode, display element resources under the night display mode are configured for all the display elements, the problem that some display elements cannot be matched with the night display mode in the related technology is solved, user experience under the night display mode can be guaranteed, and the eye protection effect of the night display mode can be guaranteed.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a processing method of a night display mode, electronic equipment and a computer storage medium.
Background
At present, people use a large amount of mobile equipment and application programs installed in the mobile equipment everyday, the mobile equipment and the application programs are configured with a night display mode, and the brightness of display in the night display mode is closer to the night environment, so that the stimulation to the eyes of a user can be reduced.
However, the inventor finds out in the process of implementing the invention that: in the related art, not all display elements are adapted to the night display mode, the brightness is still high when the display elements which are not adapted are displayed in the night display mode, the whole display effect is not coordinated, and meanwhile, the problem that the brightness is suddenly increased when a page jumps exists, so that the user experience is influenced, and even the eye health of the user is influenced.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method of processing a night display mode, an electronic device, and a computer storage medium that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for processing a night display mode, including:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources in the night display mode.
According to still another aspect of the present invention, there is provided an electronic apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources in the night display mode.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources in the night display mode.
According to the processing method of the night display mode, the electronic device and the computer storage medium of the invention, whether the switching condition of the night display mode is met or not is detected; if so, acquiring display element resources of a night display mode; setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance; and displaying the display element resources in the night display mode. In this way, display element resources of the daytime display mode and display element resources of the night display mode with inconsistent display effects are configured for all display elements, when the switching condition of the night display mode is detected out, the display element resources of the night display mode are acquired for display processing, the problem that some display elements in the related art cannot adapt to the night display mode is solved, the problem that brightness suddenly increases when a page jumps can be avoided, user experience in the night display mode can be guaranteed, and the eye protection effect of the night display mode can be guaranteed.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for processing a night display mode according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for processing a night display mode according to another embodiment of the present invention;
FIG. 3a is a schematic diagram of a book reading page in an embodiment of the present invention;
FIG. 3b is a schematic diagram of a book reading page in an embodiment of the present invention;
FIG. 3c is a diagram illustrating an idea posting page in an embodiment of the invention;
FIG. 3d is a schematic view of the chapter tail pushing the page in the embodiment of the invention;
FIG. 3e shows a schematic view of an embodiment of the invention illustrating an insert content popup page;
FIG. 3f is a schematic diagram of a top-up popup page in an embodiment of the present invention;
fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Fig. 1 is a flowchart illustrating a method for processing a night display mode according to an embodiment of the present invention, where the method includes the following steps:
step S110 detects whether a switching condition of the night display mode is satisfied.
Whether the current scene is a scene needing to be switched into a night display mode from a display mode of the mobile equipment or the application is detected.
Step S120, if the switching condition of the night display mode is satisfied, acquiring the display element resource of the night display mode. Wherein, the element resource of the daytime display mode and the element resource of the nighttime display mode are set for the display elements in advance.
Two sets of element resources with inconsistent display styles are configured for each display element in advance, including element resources in a daytime display mode and element resources in a night display mode, that is, the same display element has different display styles in the daytime display mode and the night display mode, the daytime display mode shows an effect of higher brightness, and the night display mode shows an effect of lower brightness.
And if the switching condition of the night display mode is detected to be met, acquiring display element resources of the night display mode corresponding to the display elements needing to be displayed. If the element resources of the daytime display mode and the night display mode can be stored locally, reading the display element resources of the night display mode from the local; the display element resource may also be stored in a server, and the user requests the local display element resource from the server when the user has a switching requirement.
Step S130, performing display processing on the display element resource in the night display mode.
And displaying the acquired element resources of the night display mode to present the display effect of the night display mode.
In a related art, a night display mode is implemented by covering a dark mask layer, however, not all display elements have an adaptive night display mode, so that the display elements still appear as patterns in a conventional display mode in the night display mode, and thus, a problem of inconsistent overall display effect in the night display mode may exist, and a problem of sudden brightness increase during page jump may also exist.
According to the processing method of the night display mode provided by the embodiment of the invention, display element resources of the daytime display mode and display element resources of the night display mode are preset for display elements, so that two sets of display element resources with inconsistent display effects are configured for the same display element; detecting whether a switching condition of the night display mode is met, and judging whether the night display mode needs to be switched or not; if the switching condition of the night display mode is met, acquiring display element resources of the night display mode, and displaying the display element resources of the night display mode; in this way, through all display elements configuring display element resources of a daytime display mode and display element resources of a night display mode with inconsistent display styles, when the switching condition of the night display mode is detected out to be met, the display element resources of the night display mode are acquired for display processing, the problem that some display elements cannot be adapted to the night display mode in the related art is solved, the display effects of all display elements in the night display mode are coordinated for users, the problem that some display elements are bright and some display elements are dark is solved, the problem that the brightness is suddenly increased when pages are skipped is also solved, the user experience in the night display mode can be guaranteed, and the eye protection effect of the night display mode can be guaranteed.
Fig. 2 is a flowchart illustrating a method for processing a night display mode according to another embodiment of the present invention, which is described by taking an application program applied to an electronic book as an example, and as shown in fig. 2, the method includes the following steps:
step S210 detects whether a switching condition of the night display mode is satisfied.
In an alternative mode, whether the switching condition of the night display mode is met is judged according to the current time information. Specifically, if the display mode matched with the current time information is the night display mode and the current display mode is not the night display mode, it is determined that the switching condition of the night display mode is satisfied. The time of day can be divided into different time periods, the light intensity in different time periods is inconsistent, and night display mode switching conditions related to the time periods are configured based on the inconsistent light intensity. For example, the display mode matched with the daytime period is the daytime display mode, the display mode matched with the nighttime period is the nighttime display mode, which period the current time belongs to is determined, and if the current time belongs to the nighttime period and the current display mode is not the nighttime display mode, the switching condition of the nighttime display mode is determined to be satisfied. By the mode, whether the switching condition of the night display mode is met or not can be automatically judged according to the current time, so that the switching of the night display mode meets the time condition.
In another optional mode, acquiring ambient light intensity information acquired by the light acquisition equipment; and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information. The corresponding display modes are different under different ambient light intensities, the corresponding display mode is a daytime display mode when the ambient light intensity is higher, and the corresponding display mode is a night display mode when the ambient light intensity is lower. Specifically, ambient light intensity information is acquired from the light collection device, and if the ambient light intensity does not exceed a preset threshold and the current display mode is not the night display mode, it is determined that the switching condition of the night display mode is satisfied. By the mode, whether the switching condition of the night display mode is met or not can be automatically judged according to the ambient light intensity, so that the switching of the night display mode is more in line with the ambient light condition.
In another optional mode, judging whether a night display mode switching instruction triggered by a user is detected; and if so, judging that the switching condition of the night display mode is met. And the user executes the operation for switching to the night display mode, so that a night display mode switching instruction is triggered, and the switching condition of the night display mode is judged to be met. In the mode, the operation actively executed by the user is detected to judge whether the switching condition of the night display mode is met, so that the automatic switching is avoided when the user does not have the switching requirement, and the switching of the night display mode is enabled to meet the intention of the user.
In step S220, if the switching condition of the night display mode is satisfied, display element resources of the night display mode of the application page of the electronic book application and the plurality of display elements included in the book related page of the electronic book are obtained.
In the manner of this embodiment, two sets of element resources with inconsistent display styles are configured for each display element, where the two sets of element resources include an element resource in a daytime display mode and an element resource in a nighttime display mode, and the display element in the daytime display mode has an effect of higher brightness, and the display element in the nighttime display mode has an effect of lower brightness. The display elements are divided into different types, and specifically include: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
And if the switching condition of the night display mode is met, acquiring display element resources of the night display mode of all display elements in the electronic book application, wherein the display elements comprise display elements contained in each application page and display elements contained in each book related page of the electronic book, the book related page refers to a related page of the electronic book after the user opens the book to enter a reading mode, and the application page refers to other pages except the book related page in the application.
Pages in which two sets of display element resources need to be configured in an electronic book application include: incoming book pages, book cover pages, book detail pages, book reading pages, idea release pages, chapter tails pushing pages, resource content pages, and the like. The display elements needing to be optimized in each page are described respectively.
The display elements needing to be optimized in the book detail page comprise: author information, which is needed to distinguish author information elements which can click into a personal homepage; book name, label, number of words; total number of scoring and reading people; brief introduction and case, including brief introduction popup; popular book reviews comprising popular book review content and comment internal expressions; and reading the previous reading progress popup.
Fig. 3a is a schematic diagram of a book reading page in the embodiment of the present invention, and as shown in fig. 3a, the display elements that need to be optimized include: book name, chapter name, book text, loading state; reading progress, time, electric quantity icon; a tool pop-up window; presenting the resource; an active button.
Fig. 3b is a schematic diagram of a book reading page in an embodiment of the present invention, and a user displays the page shown in fig. 3b by clicking a blank of the book reading page in fig. 3a and clicking more buttons, where the display elements to be optimized include: the three buttons of a book returning button, a book adding button, a full book downloading button, more buttons, a previous chapter button, a next chapter button, a directory button, a display mode button, a setting button, a release idea entry button, a popup window displayed after more buttons are triggered and a text displayed in the popup window.
In addition to the display elements shown in the above figures, the book page may also include the following display elements that need to be optimized: the novice guides the bubble; a percentage idea posting icon, and a percentage idea posting popup and percentage idea list page associated therewith; a list of ideas page, and a list of percentage ideas associated therewith; a seal-tail seal evaluation and release area; a chapter review list page; a chapter review release popup; the page head function menu and each function button in the menu are related to download prompt pop-up windows, open member pop-up windows, rights and interests description pop-up windows and pop-up windows in order processing; voice reading, and a free time duration used-up prompt popup, voice reading load toast prompt, voice reading plugin popup installation popup, plugin page installation, voice reading exit bottom popup, plugin popup installation popup and plugin page related to the voice reading; more buttons, and sharing buttons, sharing bottom popup windows associated therewith; the bottom function menu of face and each function button in the menu specifically include: eye-protection mode and its related functional window, system default font-select font page, adjust line spacing in half a popup icon of three types, more-read set page, bottom menu-side directory page (side idea/line page, cached chapter, uncached chapter, offline cache and full download prompt popup); surprise the red envelope, not getting/getting, and loading the toast and the red envelope popup window with the video; and (5) adding the bookshelf pop-up window when the reading is quitted.
Fig. 3c is a schematic diagram of an idea publishing page in the embodiment of the present invention, and the user clicks the publish idea button in fig. 3b to display the page shown in fig. 3c, wherein the display elements to be optimized include an idea publishing popup and a publish button.
Fig. 3d is a schematic diagram illustrating that a chapter tail pushes pages in an embodiment of the present invention, where display elements that need to be optimized include: the book name, chapter name, sharing button, book scoring, publishing evaluation entry, book pushing area, and possibly book toast loading, publishing book evaluation popup, exiting editing popup and sharing bottom popup.
FIG. 3e is a schematic diagram illustrating an inter-leaf content page according to an embodiment of the present invention, where the display elements to be optimized include: an insert content display element and a close button. In practical application, the insert page content is usually used for displaying the presentation resource, the presentation resource does not belong to the book content, a close button is arranged so that a user can close the page, and in the night display mode, the display style parameters of the insert page content display element, including the size of the display area, the display position, the background color and/or the opacity, can be adjusted, so that the display area of the insert page content display element is smaller, the display position is higher, the background color is darker and/or the opacity is higher in the night display mode, so that the insert page content display element is more prominent, and the situation that the user mistakenly touches the insert page content is reduced.
Fig. 3f is a schematic diagram of a recharge page in the embodiment of the present invention, where a user triggers a recharge button or when a reading progress reaches a payment chapter, the page shown in fig. 3f is displayed, and elements to be optimized are a recharge popup and various documents and buttons contained in the popup.
In addition, for publishing books, the pages that need to be optimized include: book detail pages, copyright information pages, chapter pages, reading pages (display elements to be optimized include chapter names, chapter headpages, cover thumbnails, page function buttons, and popup windows); for pay books, the pages that need to be optimized include: book detail page, reading page, payment section (the display elements needing to be optimized comprise supporting original reading file, price, balance, whether to automatically purchase check box, video watching button, recharging button and popup, subscribing popup), catalog, offline cache button, namely, full book downloading popup, and quitting reading popup; for a new user, a popup for adding a book task and a popup for reading time of a new person are required to be displayed, and the popup is a display element required to be optimized; for the pre-lost user, a popup window for continuously reading and obtaining the reward needs to be presented, and the display element needs to be optimized.
It should be noted that the pages shown in fig. 3a to fig. 3f are only examples, and the present invention is not limited thereto. In summary, all information contents displayed after the user opens the electronic book application need to configure display element resources in the daytime display mode and display element resources in the nighttime display mode.
Specifically, for page background type display elements, such as book page background, picture background, pop-up window background, etc., color and/or opacity, etc. in two display modes can be distinguished; for character-like display elements, such as book text and other text content, font size, color and/or brightness in the two display modes can be distinguished; for picture-like display elements such as book covers, chapter covers, illustrations, etc., the size, opacity, and/or display position, etc. in the two display modes can be distinguished; for button-like display elements, such as function buttons in a page, function buttons in a pop-up window, and so forth, brightness, size, color value, and/or opacity, and so forth, in the two display modes can be distinguished; for popup-type display elements, the size, background color value and/or opacity, etc. in the two display modes can be distinguished; for the inter-leaf content class display elements, the display area size, display position, background color and/or opacity in the two display modes can be distinguished.
Step S230, performing display processing on the acquired display element resource in the night display mode.
And displaying the acquired display resources in the night display mode, so that the night display mode is switched to exhibit a darker display effect.
In an electronic book, pages of copyright information of the book are generally high in brightness and bright in color, and the copyright image of the book generally covers the shielding layer, so that the pages of the copyright information of the book are dazzling when being read at night, and the pages of the copyright information of the book have different styles, so that the display resources for reproducing the pages of the copyright information of the book are complex and high in cost. Therefore, in the mode of this embodiment, display element resources in the night display mode are not configured for the book copyright information page, but a mode of quickly skipping the book copyright information page is adopted to avoid the problem that the brightness suddenly increases when skipping to the book copyright information page in the night display mode.
Specifically, in response to a reading instruction triggered by a user for an electronic book, detecting whether a next page to be displayed is a book copyright information page; if the next page to be displayed is detected to be a book copyright information page, a page skipping prompt message is presented; and skipping the page copyright information page in response to a page skipping instruction triggered by the user aiming at the page skipping prompt message, and displaying display element resources in a night display mode corresponding to the next page of the page copyright information page. The specific implementation manner of skipping the copyright information page of the book is as follows: and simulating the triggering operation of skipping the copyright information page of the book by the user so as to skip the copyright page of the book.
The method comprises the steps that a user executes operation or page turning operation for opening a book, whether a next page to be displayed is a book copyright information page or not is detected, if the next page to be displayed is the book copyright information page, prompt information is displayed through a pop-up window to prompt the user whether the brightness of the page to be displayed is too high and the page needs to be skipped or not, if the user confirms the skipping, the book copyright information page is skipped, and display element resources of a night display mode corresponding to the next page of the book copyright information page are displayed, for example, book copyright information before the text content of the book or book copyright information before the text content of each chapter in the book. By the mode, the copyright page of the book can be automatically detected, the user is prompted whether to skip the page, the copyright page of the book is skipped for the user under the condition that the user confirms skipping, and the condition that the display brightness is suddenly increased due to skipping to the copyright information page of the book in the night display mode can be avoided.
Step S240, sending a message instruction to the input method function module according to the input method call instruction triggered by the user, so that the input method function module adjusts the input method interface to the night display mode according to the message instruction.
When a user has a requirement for inputting characters, for example, when an idea needs to be issued or a comment needs to be made to a book, an input method is called to input a text, after the display mode is switched to a night display mode, a message instruction is transmitted to the input method functional module according to an input method calling instruction triggered by the user to inform the input method functional module that the current display mode is the night display mode, and after the input method functional module receives the message instruction, an input method interface is also adjusted to the night display mode. By the mode, after the application is switched to the night display mode, the input method interface can be adapted to the night display mode, so that the interface has the effect of darker brightness.
Step S250, receiving configuration triggering operation of a night display mode of a user aiming at any display element presented; and sending a configuration request to the server according to the element information of the display element so that the server configures display element resources in a night display mode for the display element.
In the manner of this embodiment, the user is further supported to manually report the display elements that need to be configured in the night display mode, for example, when the brightness of a certain display element in the night display mode is relatively high and the user needs to reduce the brightness of the display element, a predetermined operation may be performed to request the background to configure the display element resources of the night display mode of the display element.
In one implementation, a requirement entry is presented in a page, a user submits information of a display element through the requirement entry, for example, name information or a screenshot of the display element is input in a submission window of the requirement entry, and then a submission button in the submission window is clicked; in another implementation, a user may pop up a configuration button by performing an operation on a display element, such as a long press within a display area of the display element, in response to which the configuration button is presented, the user has clicked on the configuration button to perform a configuration triggering operation for a night display mode of the display element. The present invention is not limited to a specific form of the configuration triggering operation of the night display mode. And then, sending a configuration request to the server according to the relevant information of the display element aimed at by the configuration triggering operation of the night display mode, so that the server configures the display element resource of the night display mode for the display element. Therefore, the mode supports the manual reporting of the display elements needing to be configured with the night display mode by the user, can timely acquire the display elements not configured with the night display mode, and is beneficial to perfecting the display element resources of the night display mode.
It should be noted that, the steps S240 and S250 are executed in response to a user operation, and do not have a specific execution order.
According to the processing method of the night display mode provided by the embodiment, on one hand, display element resources of the daytime display mode and display element resources of the night display mode are preset for all display elements in an electronic book application, so that two sets of display element resources with inconsistent display effects are configured for the same display element; on the other hand, whether the switching condition of the night display mode is met or not is automatically judged according to the current time and the ambient light intensity, and whether the night display mode needs to be switched or not is judged from the perspective of the ambient condition, so that the switching of the night display mode is more consistent with the ambient condition; on the other hand, whether the switching condition of the night display mode is met or not is judged according to the triggering operation of the user, so that the switching of the night display mode is switched in response to the requirement of the user; on the other hand, after the interface is switched to the night display mode, when the user calls the input method, the current display mode is informed to the input method functional module to be the night display mode, so that the input method functional module adjusts the input method interface to be the night display mode, and the interface is displayed as the night display mode as a whole; on the other hand, the method can automatically detect the book copyright information page which is not adaptive to the night display mode, prompt the user whether to skip the book copyright information page with higher brightness or not so that the user can select whether to skip or not, skip the book copyright page for the user under the condition that the user confirms the skipping, and avoid the condition that the display brightness is suddenly increased due to the fact that the user skips to the book copyright information page in the night display mode; on the other hand, the display elements needing to be configured with the night display mode are manually reported by the user, convenience is provided for the user, meanwhile, the display elements which are not configured with the night display mode can be timely known, and the display element resources of the night display mode can be perfected.
An embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the processing method in the night display mode in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources in the night display mode.
In an alternative, the same display element has different display styles in the daytime display mode and the nighttime display mode.
In an alternative, the executable instructions cause the processor to:
and judging whether the switching condition of the night display mode is met or not according to the current time information.
In an alternative, the executable instructions cause the processor to:
acquiring ambient light intensity information acquired by light acquisition equipment;
and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information.
In an alternative, the executable instructions cause the processor to:
judging whether a night display mode switching instruction triggered by a user is detected;
and if so, judging that the switching condition of the night display mode is met.
In an alternative, the executable instructions cause the processor to:
and sending a message instruction to the input method functional module according to an input method calling instruction triggered by a user, so that the input method functional module adjusts the input method interface into a night display mode according to the message instruction.
In an alternative approach, the display elements include at least one of: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
In an alternative manner, the display style parameter of the display element of the content class of the insert includes: display area size, display location, background color, and/or opacity.
In an alternative approach, the display elements include application pages of an e-book application and a plurality of display elements included in book-related pages of the e-book.
In an alternative, the executable instructions cause the processor to:
responding to a reading instruction triggered by a user for the electronic book, and detecting whether the next page to be displayed is a book copyright information page or not;
if the next page to be displayed is detected to be a book copyright information page, a page skipping prompt message is presented;
and skipping the page copyright information page in response to a page skipping instruction triggered by the user aiming at the page skipping prompt message, and displaying display element resources in a night display mode corresponding to the next page of the page copyright information page.
In an alternative, the executable instructions cause the processor to:
receiving configuration trigger operation of a user for a night display mode of any display element presented;
and sending a configuration request to the server according to the element information of the display element so that the server configures display element resources in a night display mode for the display element.
Fig. 4 is a schematic structural diagram of an embodiment of the apparatus according to the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic apparatus.
As shown in fig. 4, the electronic device may include: a processor (processor)402, a Communications Interface 404, a memory 406, and a Communications bus 408.
Wherein: the processor 402, communication interface 404, and memory 406 communicate with each other via a communication bus 408. A communication interface 404 for communicating with network elements of other devices, such as clients or other servers. The processor 402 is configured to execute the program 410, and may specifically execute relevant steps in the above-described processing method embodiment for the night display mode of the electronic device.
In particular, program 410 may include program code comprising computer operating instructions.
The processor 402 may be a central processing unit CPU or an application Specific Integrated circuit asic or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 406 for storing a program 410. Memory 406 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 410 may specifically be configured to cause the processor 402 to perform the following operations:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources in the night display mode.
In an alternative, the same display element has different display styles in the daytime display mode and the nighttime display mode.
In an alternative, the program 410 causes the processor 402 to:
and judging whether the switching condition of the night display mode is met or not according to the current time information.
In an alternative, the program 410 causes the processor 402 to:
acquiring ambient light intensity information acquired by light acquisition equipment;
and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information.
In an alternative, the program 410 causes the processor 402 to:
judging whether a night display mode switching instruction triggered by a user is detected;
and if so, judging that the switching condition of the night display mode is met.
In an alternative, the program 410 causes the processor 402 to:
and sending a message instruction to the input method functional module according to an input method calling instruction triggered by a user, so that the input method functional module adjusts the input method interface into a night display mode according to the message instruction.
In an alternative approach, the display elements include at least one of: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
In an alternative manner, the display style parameter of the display element of the content class of the insert includes: display area size, display location, background color, and/or opacity.
In an alternative approach, the display elements include application pages of an e-book application and a plurality of display elements included in book-related pages of the e-book.
In an alternative, the program 410 causes the processor 402 to:
responding to a reading instruction triggered by a user for the electronic book, and detecting whether the next page to be displayed is a book copyright information page or not;
if the next page to be displayed is detected to be a book copyright information page, a page skipping prompt message is presented;
and skipping the page copyright information page in response to a page skipping instruction triggered by the user aiming at the page skipping prompt message, and displaying display element resources in a night display mode corresponding to the next page of the page copyright information page.
In an alternative, the program 410 causes the processor 402 to:
receiving configuration trigger operation of a user for a night display mode of any display element presented;
and sending a configuration request to the server according to the element information of the display element so that the server configures display element resources in a night display mode for the display element.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a method for night display mode processing, comprising:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources of the night display mode.
A2. The method according to a1, wherein the same display element has different display styles in daytime and nighttime display modes.
A3. The method according to a1 or a2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
and judging whether the switching condition of the night display mode is met or not according to the current time information.
A4. The method according to a1 or a2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
acquiring ambient light intensity information acquired by light acquisition equipment;
and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information.
A5. The method according to a1 or a2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
judging whether a night display mode switching instruction triggered by a user is detected;
and if so, judging that the switching condition of the night display mode is met.
A6. The method of any one of a1-a5, wherein the method further comprises:
and sending a message instruction to an input method functional module according to an input method calling instruction triggered by a user, so that the input method functional module adjusts an input method interface to a night display mode according to the message instruction.
A7. The method of a1, wherein the display element includes at least one of: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
A8. The method according to a7, wherein the display style parameter of the insert content class display element comprises: display area size, display location, background color, and/or opacity.
A9. The method according to any one of a1-A8, wherein the method is applied to an electronic book application, and the display elements include an application page of the electronic book application and a plurality of display elements included in book-related pages of an electronic book.
A10. The method according to a9, wherein the exposing the display element resource in the night display mode includes:
responding to a reading instruction triggered by a user for the electronic book, and detecting whether the next page to be displayed is a book copyright information page or not;
if the next page to be displayed is detected to be a book copyright information page, a page skipping prompt message is presented;
and skipping the book copyright information page in response to a page skipping instruction triggered by the user aiming at the page skipping prompt message, and displaying display element resources of a night display mode corresponding to the next page of the book copyright information page.
A11. The method of a9, wherein the method further comprises:
receiving configuration trigger operation of a user for a night display mode of any display element presented;
and sending a configuration request to a server according to the element information of the display element so that the server configures display element resources in a night display mode for the display element.
B12. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources of the night display mode.
B13. The electronic device of B12, wherein the same display element has different display styles in daytime and nighttime display modes.
B14. The electronic device of B12 or B13, the executable instructions further cause the processor to:
and judging whether the switching condition of the night display mode is met or not according to the current time information.
B15. The electronic device of B12 or B13, the executable instructions further cause the processor to:
acquiring ambient light intensity information acquired by light acquisition equipment;
and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information.
B16. The electronic device of B12 or B13, the executable instructions further cause the processor to:
judging whether a night display mode switching instruction triggered by a user is detected;
and if so, judging that the switching condition of the night display mode is met.
B17. The electronic device of any of B12-B16, the executable instructions further cause the processor to:
and sending a message instruction to an input method functional module according to an input method calling instruction triggered by a user, so that the input method functional module adjusts an input method interface to a night display mode according to the message instruction.
B18. The electronic device of B12, wherein the display element includes at least one of: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
B19. The electronic device of B18, wherein the display style parameters of the interleaf content class display element include: display area size, display location, background color, and/or opacity.
B20. The electronic device according to any one of B12-B19, wherein the method is applied to an electronic book application, and the display elements include an application page of the electronic book application and a plurality of display elements included in book-related pages of an electronic book.
B21. The electronic device of B20, the executable instructions further cause the processor to:
responding to a reading instruction triggered by a user for the electronic book, and detecting whether the next page to be displayed is a book copyright information page or not;
if the next page to be displayed is detected to be a book copyright information page, a page skipping prompt message is presented;
and skipping the book copyright information page in response to a page skipping instruction triggered by the user aiming at the page skipping prompt message, and displaying display element resources of a night display mode corresponding to the next page of the book copyright information page.
B22. The electronic device of B20, the executable instructions further cause the processor to:
receiving configuration trigger operation of a user for a night display mode of any display element presented;
and sending a configuration request to a server according to the element information of the display element so that the server configures display element resources in a night display mode for the display element.
C23. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the night display mode processing method as described in any one of a1-a 11.
Claims (10)
1. A method for night display mode processing, comprising:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources of the night display mode.
2. The method of claim 1, wherein the same display element has different display styles in a daytime display mode and a nighttime display mode.
3. The method according to claim 1 or 2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
and judging whether the switching condition of the night display mode is met or not according to the current time information.
4. The method according to claim 1 or 2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
acquiring ambient light intensity information acquired by light acquisition equipment;
and judging whether the switching condition of the night display mode is met or not according to the ambient light intensity information.
5. The method according to claim 1 or 2, wherein the detecting whether the switching condition of the night display mode is satisfied specifically includes:
judging whether a night display mode switching instruction triggered by a user is detected;
and if so, judging that the switching condition of the night display mode is met.
6. The method according to any one of claims 1-5, wherein the method further comprises:
and sending a message instruction to an input method functional module according to an input method calling instruction triggered by a user, so that the input method functional module adjusts an input method interface to a night display mode according to the message instruction.
7. The method of claim 1, wherein the display element comprises at least one of: the display element comprises a page background display element, a character display element, a picture display element, a button display element, a popup display element and an insert content display element.
8. The method of claim 7, wherein the display style parameter of the interleaf content class display element comprises: display area size, display location, background color, and/or opacity.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting whether a switching condition of a night display mode is met;
if so, acquiring display element resources of a night display mode;
setting display element resources of a daytime display mode and display element resources of a night display mode for display elements in advance;
and displaying the display element resources of the night display mode.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the night display mode processing method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111482075.4A CN114138394A (en) | 2021-12-06 | 2021-12-06 | Night display mode processing method, electronic device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111482075.4A CN114138394A (en) | 2021-12-06 | 2021-12-06 | Night display mode processing method, electronic device and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114138394A true CN114138394A (en) | 2022-03-04 |
Family
ID=80384207
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111482075.4A Pending CN114138394A (en) | 2021-12-06 | 2021-12-06 | Night display mode processing method, electronic device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114138394A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1306261A (en) * | 2000-01-12 | 2001-08-01 | 株式会社日立制作所 | Electronic books system and its content displaying |
US20100225640A1 (en) * | 2009-03-03 | 2010-09-09 | Vieri Carlin J | Switching Operating Modes of Liquid Crystal Displays |
CN104252327A (en) * | 2013-06-27 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Reading mode start method and device |
CN105094759A (en) * | 2014-04-29 | 2015-11-25 | 广州市动景计算机科技有限公司 | Browse mode switch treatment method and device |
CN107038037A (en) * | 2017-05-22 | 2017-08-11 | 北京小米移动软件有限公司 | Display mode switching method and device |
CN107463247A (en) * | 2016-06-06 | 2017-12-12 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method, apparatus and terminal of text reading processing |
CN109032739A (en) * | 2018-07-20 | 2018-12-18 | 掌阅科技股份有限公司 | A kind of interface display method, terminal and computer storage medium |
CN110222285A (en) * | 2019-05-21 | 2019-09-10 | 掌阅科技股份有限公司 | The methods of exhibiting of reading page calculates equipment and computer storage medium |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN112486603A (en) * | 2019-09-12 | 2021-03-12 | 北京搜狗科技发展有限公司 | Interface adaptation method and device for adapting interface |
-
2021
- 2021-12-06 CN CN202111482075.4A patent/CN114138394A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1306261A (en) * | 2000-01-12 | 2001-08-01 | 株式会社日立制作所 | Electronic books system and its content displaying |
US20100225640A1 (en) * | 2009-03-03 | 2010-09-09 | Vieri Carlin J | Switching Operating Modes of Liquid Crystal Displays |
CN104252327A (en) * | 2013-06-27 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Reading mode start method and device |
CN105094759A (en) * | 2014-04-29 | 2015-11-25 | 广州市动景计算机科技有限公司 | Browse mode switch treatment method and device |
CN107463247A (en) * | 2016-06-06 | 2017-12-12 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method, apparatus and terminal of text reading processing |
CN107038037A (en) * | 2017-05-22 | 2017-08-11 | 北京小米移动软件有限公司 | Display mode switching method and device |
CN109032739A (en) * | 2018-07-20 | 2018-12-18 | 掌阅科技股份有限公司 | A kind of interface display method, terminal and computer storage medium |
CN110222285A (en) * | 2019-05-21 | 2019-09-10 | 掌阅科技股份有限公司 | The methods of exhibiting of reading page calculates equipment and computer storage medium |
CN110609722A (en) * | 2019-08-09 | 2019-12-24 | 华为技术有限公司 | Dark mode display interface processing method, electronic equipment and storage medium |
CN112486603A (en) * | 2019-09-12 | 2021-03-12 | 北京搜狗科技发展有限公司 | Interface adaptation method and device for adapting interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107341018B (en) | Method and device for continuously displaying view after page switching | |
CN106326316B (en) | Webpage advertisement filtering method and device | |
CN104036011B (en) | Webpage element display method and browser device | |
CN111309213A (en) | Comment display method and device, electronic equipment and storage medium | |
CN109154943A (en) | Conversion based on server of the automatic broadcasting content to click play content | |
CN107633541B (en) | Method and device for generating image special effect | |
CN106202179B (en) | Page loading method and device | |
CN109858962B (en) | Advertisement display method based on electronic book and electronic equipment | |
CN112764871B (en) | Data processing method, data processing device, computer equipment and readable storage medium | |
CN104035984A (en) | Method for blocking popup windows in browser and device for blocking popup windows | |
CN105867714A (en) | Application downloading method, apparatus and system | |
CN111611037B (en) | View object processing method for electronic book, electronic device and storage medium | |
CN105183890B (en) | Webpage loading method based on browser and browser device | |
CN112162806A (en) | Popup display method, terminal and computer storage medium | |
CN109040767B (en) | Live broadcast room loading method, system, server and storage medium | |
CN112650429A (en) | Book recommendation method for bookshelf pages, computing device and storage medium | |
CN111783015A (en) | Display method of shared display elements in page, electronic equipment and storage medium | |
CN112711372A (en) | Page response method in visual impairment mode, computing device and computer storage medium | |
CN111124564A (en) | Method and device for displaying user interface | |
CN108319474B (en) | Page information generation method, device and equipment | |
CN108108367B (en) | Webpage display method and device | |
CN110020371A (en) | A kind of method and device based on the linkage of react-native page layout | |
CN114138394A (en) | Night display mode processing method, electronic device and computer storage medium | |
CN113010814A (en) | Webpage content processing method, computing device and computer storage medium | |
CN109800372B (en) | Method and device for improving third-party webpage opening speed and electronic equipment |
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 |