Method and apparatus for controlling display screen, computer-readable storage medium, and vehicle
By adjusting the properties of the target page view elements when the display screen switches between day and night modes, the problems of poor user experience and high resource consumption during the display screen switching process were solved, achieving fast and low-consumption mode switching and improving the scalability and maintainability of the interface.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHERY AUTOMOBILE CO LTD
- Filing Date
- 2025-08-12
- Publication Date
- 2026-04-23
AI Technical Summary
In existing technologies, the switching between day and night modes on display screens presents problems such as poor user experience, high CPU and memory consumption, and difficulties in subsequent maintenance.
By identifying the target page view elements that change when the display screen switches between day and night modes, and adjusting their attributes, including color, transparency, brightness, and contrast, according to the current mode, a seamless switching is achieved.
It improves the speed of day/night mode switching, reduces CPU and memory consumption, reduces the workload of adaptation, and enhances the scalability and maintainability of the display interface.
Smart Images

Figure CN2025114203_23042026_PF_FP_ABST
Abstract
Description
Methods and apparatus for controlling display screens, computer-readable storage media, vehicles
[0001] This application claims priority to Chinese Patent Application No. 202411439957.6, filed on October 15, 2024, entitled "Control Method and Apparatus for Display Screen, Computer-Readable Storage Medium, Vehicle", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of display screen technology, and in particular to a display screen control method, a computer-readable storage medium, a vehicle, and a display screen control device. Background Technology
[0003] The cockpit applications offer day and night modes to meet different user needs and ensure user-friendly operation under varying lighting conditions. For example, the vehicle's central control screen and other displays offer both day and night modes for users to choose from.
[0004] Currently, there are two main ways to implement day / night mode switching: One is to manually switch day / night mode resources, but this method has drawbacks such as high initial workload, difficulty in later expansion and maintenance, and a poor user experience. The other method is to destroy and recreate the application page, i.e., automatically exit the current display interface and create a new one. This results in a poor user experience, cumbersome application page state maintenance, and high performance consumption. Summary of the Invention
[0005] This application aims to at least partially address one of the technical problems in the related art. Therefore, the purpose of this application is to propose a method for controlling a display screen, which identifies target page view elements that change as the display screen switches between day and night modes. When the day / night mode switch is determined, the attributes of the target page view elements are adjusted according to the current mode of the display screen. This enables faster day / night mode switching, consumes less CPU and memory during the switching process, reduces adaptation workload, and improves the scalability and maintainability of the subsequent display interface.
[0006] One object of this application is to provide a computer-readable storage medium.
[0007] Another objective of this application is to propose a vehicle.
[0008] Another objective of this application is to provide a control device for a display screen.
[0009] To achieve the above objectives, this application proposes a method for controlling a display screen, the method comprising: determining a target page view element that changes as the display screen switches between day and night modes; and adjusting the attributes of the target page view element according to the current mode of the display screen when the day and night mode of the display screen is determined to be switching.
[0010] According to the display screen control method of this application embodiment, a target page view element that changes with the display screen's day / night mode switching is determined. When the day / night mode switching of the display screen is determined, the attributes of the target page view element are adjusted according to the current mode of the display screen. Therefore, this method enables faster day / night mode switching, consumes less CPU and memory during the switching process, reduces adaptation workload, and improves the scalability and maintainability of the subsequent display interface.
[0011] In addition, the control method for the display screen according to the above embodiments of this application may also have the following additional technical features:
[0012] According to one embodiment of this application, the target page view element includes at least one of a page background image, text, click effect, text editing box, and button style.
[0013] According to one embodiment of this application, determining the target page view element that changes with the switching of the day / night mode of the display screen includes: taking the page view element whose attributes change with the switching of the day / night mode as the target page view element.
[0014] According to one embodiment of this application, the attribute includes at least one of color, transparency, brightness, contrast, text attributes, and interactive feedback.
[0015] According to one embodiment of this application, adjusting the attributes of the target page view element according to the current mode of the display screen includes: when the display screen switches from night mode to day mode, controlling the attributes of the target page view element to be adjusted to the attributes corresponding to the day mode; and when the display screen switches from day mode to night mode, controlling the attributes of the target page view element to be adjusted to the attributes corresponding to the night mode.
[0016] According to one embodiment of this application, determining the day / night mode switching of the display screen includes: obtaining the current location information of the vehicle; determining the sunrise and sunset times of the vehicle's location based on the location information; and determining the day / night mode switching of the display screen when the current time reaches the sunrise or sunset time.
[0017] According to one embodiment of this application, determining the day / night mode switching of the display screen includes: obtaining the brightness of the current environment; and determining the day / night mode switching of the display screen when the brightness reaches a preset brightness threshold.
[0018] To achieve the above objectives, embodiments of this application propose a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements the aforementioned display screen control method.
[0019] The computer-readable storage medium according to the embodiments of this application, by implementing the above-described display screen control method during execution, enables faster switching speed of day and night modes, consumes less CPU and memory during the switching process, reduces the workload of adaptation, and improves the scalability and maintainability of the subsequent display interface.
[0020] To achieve the above objectives, this application provides a vehicle comprising a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the aforementioned method for controlling the display screen.
[0021] According to the vehicle embodiment of this application, by executing the above-described display screen control method, the day and night mode switching speed can be faster, the switching process consumes less CPU and memory, and the adaptation workload is reduced, thereby improving the scalability and maintainability of the subsequent display interface.
[0022] To achieve the above objectives, this application provides a control device for a display screen, comprising: a determining module for determining a target page view element that changes as the display screen switches between day and night modes; and a control module for adjusting the attributes of the target page view element according to the current mode of the display screen when the day and night mode of the display screen is determined to be switching.
[0023] According to the control device for the display screen in this application embodiment, the determining module is used to determine the target page view element that changes when the display screen switches between day and night modes, and the control module is used to adjust the attributes of the target page view element according to the current mode of the display screen when the day and night mode of the display screen is determined to be switching. Therefore, this device enables faster day and night mode switching, consumes less CPU and memory during the switching process, reduces adaptation workload, and improves the scalability and maintainability of the subsequent display interface.
[0024] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0025] Figure 1 is a flowchart of a display screen control method according to an embodiment of this application;
[0026] Figure 2 is a flowchart of a display screen control method according to an example of this application;
[0027] Figure 3 is a block diagram of a vehicle according to an embodiment of this application;
[0028] Figure 4 is a block diagram of a control device for a display screen according to an embodiment of this application;
[0029] Figure 5 is a structural schematic diagram of a vehicle according to an embodiment of this application;
[0030] Figure 6 is a structural schematic diagram of a vehicle according to an embodiment of this application. Detailed Implementation
[0031] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0032] Current technology for vehicle central control screens or instrument panels requires destroying the daytime page and recreating the nighttime page when switching between day and night modes. This process is prone to page lag and slow loading, severely impacting user experience. The proposed solution, however, records the colors of elements such as background, text, images, and controls on the page. When switching between day and night modes, these elements are simply replaced with the corresponding nighttime page colors, eliminating the need for a full page reload. This improves the smoothness of the transition, consumes less CPU (Central Processing Unit) and memory, reduces adaptation workload, and enhances the scalability and maintainability of the subsequent display interface.
[0033] The following description, with reference to the accompanying drawings, outlines a method for controlling a display screen, a computer-readable storage medium, a vehicle, and a control device for a display screen, all based on embodiments of this application.
[0034] Figure 1 is a flowchart of a control method for a display screen according to an embodiment of this application.
[0035] As shown in Figure 1, the control method for the display screen in this embodiment of the application may include the following steps:
[0036] S1, determine the target page view element that changes as the display screen switches between day and night modes.
[0037] S2, when the day / night mode of the display screen is determined, adjust the attributes of the target page view elements according to the current mode of the display screen.
[0038] In some embodiments, a display screen refers to an electronic screen device on a vehicle used to display visual information. Optionally, the display screen includes, but is not limited to, at least one of the vehicle's central control screen, the vehicle's instrument panel screen, and the vehicle's passenger-side screen. This application does not limit this.
[0039] In some embodiments, to enhance user comfort, the display screen includes a day / night mode. A day / night mode refers to a mode that adjusts the display screen's brightness and color scheme based on ambient light intensity or user-defined time and needs. Optionally, the day / night mode includes a daytime mode and a nighttime mode. In daytime mode, the display screen has higher brightness, ensuring users can clearly see the screen content during the day. In nighttime mode, the display screen has lower brightness, ensuring comfortable viewing at night without negatively impacting user experience due to excessive brightness.
[0040] In some embodiments, the display screen day / night mode switching includes switching the display screen from day mode to night mode, or switching the display screen from night mode to day mode.
[0041] In some embodiments, to improve the smoothness of the day / night mode switching process, the target page view element that changes with the day / night mode switching can be identified first. That is, the target page view element changes in different modes. Here, the target page view element refers to the view element displayed on the display screen. For example, the target page view element can be text color; that is, the text color displayed differs depending on whether the display screen is in day mode or night mode.
[0042] In some embodiments, when the day / night mode of the display screen switches, the attributes of the target page view elements can be adjusted according to the current mode of the display screen. For example, a scheduled task can be used to check the time to infer whether it is currently day or night. Upon detecting a mode change, resources for the corresponding mode need to be read. For example, if the current mode is night mode, resources such as background images and text colors for night mode can be loaded. Furthermore, the attributes of the target page view elements can be updated, such as changing CSS styles like colors, fonts, spacing, and layout. After the attributes are updated, the view needs to be re-rendered to reflect these changes. This improves the smoothness of the switching, consumes less CPU and memory, reduces adaptation workload, and enhances the scalability and maintainability of the subsequent display interface.
[0043] According to one embodiment of this application, the target page view element includes at least one of the following: page background image, text, click effect, text editing box, and button style.
[0044] Specifically, target page view elements may include one or more of the following: background image, text (text size and / or text color), click effect, text editing box, and button style, depending on the layout of the current display interface. Background images provide a visual backdrop for the page, helping to set the overall atmosphere and style. When selecting a background image, consider its contrast with foreground elements to ensure the readability of text and important information. Day mode and night mode may use different background images to adapt to different lighting conditions.
[0045] Text is the primary means of conveying information, including headings, paragraphs, and labels. Choosing appropriate fonts, sizes, colors, and line spacing ensures both readability and aesthetics. Furthermore, to improve readability, text color needs to be adjusted according to the background's brightness. Click effects provide immediate feedback to user actions, enhancing the interactive experience. Click effects should be intuitive and consistent with the overall design style, such as color changes or water ripple effects when a button is pressed. The visual effects of controls when clicked can be adjusted according to different modes.
[0046] Text input boxes allow users to enter text, such as search boxes and form input fields. The size, border, padding, and placeholder text of the input box need to be considered to ensure user convenience and accuracy. Furthermore, the border color and background of the input box can be adjusted according to different modes. Buttons are important elements for user operations, such as submitting forms and triggering events. Button styles, such as the text color and background, can be adjusted according to different modes.
[0047] According to one embodiment of this application, determining a target page view element that changes with the switching of the day / night mode of the display screen includes: taking a page view element whose attributes change with the switching of the day / night mode as the target page view element.
[0048] Specifically, target page view elements refer to page elements whose attributes need to change to adapt to different lighting conditions depending on whether the current mode is day or night. In other words, when determining target page view elements that change with the display screen's day / night mode, page view elements whose attributes change with the day / night mode can be considered as target page view elements. For example, for page background images and colors, day mode might use a bright or colorful background, while night mode might use a dark or muted background to reduce eye strain from screen brightness. Similarly, click effects may need to be adjusted to ensure clear visibility in different modes. For instance, a button click effect might be a dark shadow in day mode and a light shadow in night mode.
[0049] In some embodiments, the priority of the target page view elements that are changing is determined. When a day / night mode switch is detected, the attributes of the target page view elements are adjusted according to the priority order in the priority queue, based on the current mode of the display screen. Different target page view elements have different priority orders. For example, a page background image has a higher priority than text; when a day / night mode switch occurs, the attributes of the page background image are adjusted first, and then the attributes of the text are adjusted.
[0050] Optionally, the priority of target page view elements that change can be determined based on user usage frequency; or, the priority of target page view elements that change can be determined based on scenario importance; or, the priority of target page view elements that change can be determined based on both user usage frequency and scenario importance. This application does not limit this.
[0051] In some embodiments, the priority of target page view elements that have changed is determined based on user usage frequency. Optionally, priority values of target page view elements are calculated based on user historical interaction data, and the target page view elements are stored in a priority queue according to their priority values. Historical interaction data may include the number of times a user has clicked on a target page view element in the past. Target page view elements with higher historical interaction data have higher priority values, meaning they also have higher priority order in the priority queue.
[0052] In some embodiments, the priority of the target page view element to be changed is determined based on the importance of the scene. Optionally, a priority value of the target page view element is calculated based on the user's driving scenario, and the target page view element is stored in a priority queue according to the priority value. Scene importance indicates the importance of the target page view element in the user's driving scenario. Target page view elements with higher scene importance have higher priority values, meaning they have a higher priority order in the priority queue. For example, if the user is driving at night, visibility is poor, and the user needs to clearly see the text on the display screen, then the text on the display screen has higher scene importance. When adjusting the attributes of the target page view element, the attributes of the text on the display screen (text size or text color) are adjusted first.
[0053] It should be noted that, in situations with poor network resources or high latency, the attributes of the target page view elements can be adjusted according to their priority in the priority queue, which can reduce the response latency when updating the target page view elements. In situations with good network resources or no latency, the attributes of the target page view elements can also be adjusted simultaneously. This application does not impose any limitations on this.
[0054] According to one embodiment of this application, the attributes include at least one of color, transparency, brightness, contrast, text attributes, and interactive feedback.
[0055] Specifically, the attributes of target page view elements can include one or more of the following: color, transparency, brightness, contrast, text attributes, and interactive feedback. For example, attributes include color, which is one of the most basic visual attributes in design. It can be used to distinguish different elements, convey information, or create visual hierarchy. For instance, to improve readability, text color needs to be adjusted according to the brightness of the background.
[0056] Opacity determines the visibility of an element, ranging from 0 (completely transparent) to 1 (completely opaque). In CSS (Cascading Style Sheets), opacity can be set using the `opacity` property. Brightness refers to the lightness or darkness of a color. Brightness helps users distinguish different elements or create different visual focal points. In CSS, brightness can be achieved by adjusting the brightness of colors, such as using brightness values from the HSL (Hue, Saturation, Lightness) color model. Contrast refers to the degree of difference between colors; high contrast helps users more easily distinguish different elements. In design, ensuring sufficient contrast is crucial for improving readability and accessibility. Text properties include font, font size, line height, letter spacing, text color, and text alignment. Interactive feedback refers to the response when a user interacts with page elements, such as button clicks, swipes, and hovers. Interactive feedback can be provided through visual changes (such as color changes, shadows, and animations) or sound. In CSS, interactive feedback can be implemented using pseudo-classes and transitions.
[0057] According to one embodiment of this application, adjusting the attributes of a target page view element based on the current mode of the display screen includes: when the display screen switches from night mode to day mode, controlling the attributes of the target page view element to be adjusted to the attributes corresponding to the day mode; and when the display screen switches from day mode to night mode, controlling the attributes of the target page view element to be adjusted to the attributes corresponding to the night mode.
[0058] Specifically, when adjusting the attributes of target page view elements based on the current display screen mode, the system determines whether the display screen is switching modes. If the display screen switches from night mode to day mode, the system can control the attributes of the target page view elements to be adjusted to those corresponding to day mode. For example, day mode uses a light background, such as white or light gray, to adapt to strong ambient light, and dark text, such as black or dark gray, to ensure readability against a bright background. Light backgrounds and dark borders or text provide clear button boundaries and operability, while transparency and shadows increase the interface's depth.
[0059] When the display screen switches from day mode to night mode, the attributes of the target page view elements can be adjusted to the attributes corresponding to night mode. For example, a dark background, such as dark gray or black, can be used to reduce eye strain from screen brightness; light text, such as white or light gray, can be used to ensure readability against a dark background; a dark background with light borders or text can be used to provide clear button boundaries and operability; and the use of transparency and shadows can be reduced to avoid visual interference in dark environments.
[0060] According to one embodiment of this application, determining the day / night mode switching of the display screen includes: obtaining the current location information of the vehicle; determining the sunrise and sunset times of the vehicle's location based on the location information; and determining the day / night mode switching of the display screen when the current time reaches the sunrise or sunset time.
[0061] Specifically, when determining the day / night mode switch on the display screen, the vehicle's current location information can be obtained, for example, via GPS. After obtaining the vehicle's location information, the sunrise and sunset times at the vehicle's location can be determined. For example, a local database containing sunrise and sunset times data from around the world can be created or used. This database could be pre-calculated and contain years of sunrise and sunset time data. Based on the vehicle's location, the data of the nearest location can be queried to estimate the sunrise and sunset times.
[0062] When determining the vehicle's sunrise and sunset times, the current time is checked. If the current time reaches sunrise or sunset, the day / night mode switch on the display screen can be determined. For example, if the current time is after sunrise and before sunset, the display screen can be set to daytime mode; otherwise, it can be set to nighttime mode. Furthermore, the switching between daytime and nighttime modes occurs at sunrise and sunset. For instance, if sunrise is at 6:00 AM and sunset is at 6:00 PM, the display screen will switch from nighttime mode to daytime mode when the current time changes from 5:59 AM to 6:00 AM.
[0063] According to one embodiment of this application, determining the day / night mode switching of a display screen includes: acquiring the brightness of the current environment; and determining the day / night mode switching of the display screen when the brightness reaches a preset brightness threshold. The preset brightness threshold can be determined according to actual conditions.
[0064] Specifically, when determining whether a display screen should switch between day and night modes, the current ambient brightness can be obtained. For example, the ambient light intensity around the display screen can be acquired using an ALS (Ambient Light Sensor). A preset brightness threshold refers to the ambient brightness standard that triggers mode switching. This value can be set according to actual conditions; for example, it can be set to switch to night mode when the ambient brightness is below 500 lux and to switch to day mode when it is above 500 lux. Therefore, the relationship between the brightness and the preset brightness threshold is judged. If the ambient brightness is below the preset brightness threshold, night mode is switched; if it is above the preset brightness threshold, day mode is switched.
[0065] For example, suppose you have a simple Android application with a main interface containing the following elements: a background image, some text labels, and a few buttons. First, you can define two sets of resources in the resource file: one for day mode and another for night mode. For instance, create `colors_day.xml` and `colors_night.xml` in the `res / values` directory to define the color resources for day mode and night mode, respectively. When the application starts, you can inject an interceptor to listen for system mode changes and update the resources via an administrator when a mode change occurs. When the system detects a mode change, the administrator reads the new resource file and updates the attributes of the page elements. For example, it changes the background image from `drawable / day_background` to `drawable / night_background` and the text color from `@color / day_text_color` to `@color / night_text_color`. In this way, the application can seamlessly switch between day and night modes without reloading the page, providing a smooth user experience.
[0066] The control method of the display screen of this application will be described below with reference to Figure 2.
[0067] As an example, the method for controlling the display screen in this application may include the following steps:
[0068] S101, the page view element whose attributes change with the day / night mode is used as the target page view element.
[0069] The target page view element refers to the page element whose attributes need to be changed to adapt to different lighting conditions depending on whether the current mode is day or night. In other words, when determining the target page view element that changes with the switching of the display screen's day and night mode, the page view element whose attributes change with the switching of the day and night mode can be used as the target page view element.
[0070] Optionally, the target page view elements may include one or more of the following: background image, text (text size and / or text color), click effect, text editing box, and button style.
[0071] S102, Obtain the vehicle's current location information.
[0072] S103 determines the sunrise and sunset times of the vehicle's location based on location information.
[0073] For example, the vehicle's current location can be obtained via GPS. After obtaining the vehicle's location information, the sunrise and sunset times at the vehicle's location can be determined based on the location information. For example, a local database containing sunrise and sunset times data from around the world can be created or used. This database can be pre-calculated and contain years of sunrise and sunset time data. Based on the vehicle's location, the data of the nearest location can be queried to estimate the sunrise and sunset times.
[0074] S104. Determine if the current time has reached sunrise or sunset. If yes, proceed to step S105; otherwise, proceed to step S102.
[0075] S105, confirm the day / night mode switching of the display screen.
[0076] S106, Determine whether the display screen has switched from night mode to day mode. If yes, proceed to step S107; if no, proceed to step S108.
[0077] S107, adjust the attributes of the target page view element to the attributes corresponding to the daytime mode.
[0078] S108, determine whether the display screen has switched from day mode to night mode. If yes, proceed to step S109; otherwise, proceed to step S105.
[0079] S109, adjust the attributes of the target page view element to the attributes corresponding to the night mode.
[0080] In summary, the display screen control method according to the embodiments of this application determines the target page view elements that change when the display screen switches between day and night modes. When the day and night mode switch is determined, the attributes of the target page view elements are adjusted according to the current mode of the display screen. Therefore, this method enables faster day and night mode switching, consumes less CPU and memory during the switching process, reduces adaptation workload, and improves the scalability and maintainability of the subsequent display interface.
[0081] Corresponding to the above embodiments, this application also proposes a computer-readable storage medium.
[0082] The computer-readable storage medium of this application embodiment stores a program thereon, which, when executed by a processor, implements the above-described display screen control method.
[0083] According to the computer-readable storage medium of the present application embodiment, by executing the above-described display screen control method, the day and night mode switching speed can be faster, the switching process consumes less CPU and memory, and the adaptation workload is reduced, thereby improving the scalability and maintainability of the subsequent display interface.
[0084] Corresponding to the above embodiments, this application also proposes a vehicle.
[0085] As shown in FIG3, the vehicle 200 of this application embodiment may include: a memory 210, a processor 220, and a program stored in the memory 210 and executable on the processor 220. When the processor 220 executes the program, it implements the above-described control method for the display screen.
[0086] According to the vehicle embodiment of this application, by executing the above-described display screen control method, the day and night mode switching speed can be faster, the switching process consumes less CPU and memory, and the adaptation workload is reduced, thereby improving the scalability and maintainability of the subsequent display interface.
[0087] Corresponding to the above embodiments, this application also proposes a control device for a display screen.
[0088] As shown in FIG4, the control device 100 for the display screen in this embodiment of the application includes: a determination module 110 and a control module 120.
[0089] The determining module 110 is used to determine the target page view elements that change when the display screen switches between day and night modes. The controlling module 120 is used to adjust the attributes of the target page view elements according to the current mode of the display screen when the day and night mode of the display screen is determined to be switching.
[0090] According to one embodiment of this application, the target page view element includes at least one of the following: page background image, text color, click effect, text editing box, and button style.
[0091] According to one embodiment of this application, the determining module 110 determines the target page view element that changes with the switching of the day and night mode of the display screen, and is used to: take the page view element whose attributes change with the switching of the day and night mode as the target page view element.
[0092] According to one embodiment of this application, the attributes include at least one of color, transparency, brightness, contrast, text attributes, and interactive feedback.
[0093] According to one embodiment of this application, the control module 120 adjusts the attributes of the target page view elements according to the current mode of the display screen, for: when the display screen changes from night mode to day mode, controlling the attributes of the target page view elements to be adjusted to the attributes corresponding to the day mode; when the display screen changes from day mode to night mode, controlling the attributes of the target page view elements to be adjusted to the attributes corresponding to the night mode.
[0094] According to one embodiment of this application, the determining module 110 determines the day / night mode switching of the display screen, and is used to: obtain the current location information of the vehicle; determine the sunrise and sunset times of the vehicle's location based on the location information; and determine the day / night mode switching of the display screen when the current time reaches the sunrise or sunset time.
[0095] According to one embodiment of this application, the determining module 110 determines the day / night mode switching of the display screen, and is used to: obtain the brightness of the current environment; and determine the day / night mode switching of the display screen when the brightness reaches a preset brightness threshold.
[0096] It should be noted that for details not disclosed in the control device of the display screen in the embodiments of this application, please refer to the details disclosed in the control method of the display screen in the embodiments of this application, which will not be repeated here.
[0097] According to the control device for the display screen in this application embodiment, the determining module is used to determine the target page view element that changes when the display screen switches between day and night modes, and the control module is used to adjust the attributes of the target page view element according to the current mode of the display screen when the day and night mode of the display screen is determined to be switching. Therefore, this device enables faster day and night mode switching, consumes less CPU and memory during the switching process, reduces adaptation workload, and improves the scalability and maintainability of the subsequent display interface.
[0098] Figure 5 is a structural schematic diagram of the vehicle provided in an embodiment of this application. The vehicle may include:
[0099] The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0100] When the processor 502 executes the program, it implements the display screen control method provided in the above embodiments.
[0101] Furthermore, the vehicle also includes:
[0102] Communication interface 503 is used for communication between memory 501 and processor 502.
[0103] The memory 501 is used to store computer programs that can run on the processor 502.
[0104] The memory 501 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.
[0105] If the memory 501, processor 502, and communication interface 503 are implemented independently, they can be interconnected via a bus to communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, only one thick line is used in Figure 5, but this does not indicate that there is only one bus or one type of bus.
[0106] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0107] The processor 502 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.
[0108] Furthermore, referring to Figure 6, the memory, processor, and communication interface in the vehicle can be provided by a computer device deployed on the vehicle. The processor described in Figure 5 can be implemented as a Central Processing Unit (CPU) 701, and the memory 501 includes a system memory 704 comprising a Random Access Memory (RAM) 702 and a Read-Only Memory (ROM) 703. The bus is implemented as a system bus 705 connecting the system memory 704 and the CPU 701. The vehicle also includes a mass storage device 706 for storing an operating system 709, application programs 710, and other program modules 711.
[0109] The mass storage device 706 is connected to the central processing unit 701 via a mass storage controller (not shown) connected to the system bus 705. The mass storage device 706 and its associated computer-readable media provide non-volatile storage for the vehicle. That is, the mass storage device 706 may include computer-readable media (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0110] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include RAM, ROM, erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the above-mentioned types. The system memory 704 and mass storage device 706 described above can be collectively referred to as memory.
[0111] According to various embodiments of this disclosure, the vehicle can also operate by connecting to a remote computer on a network such as the Internet. That is, the vehicle can connect to a network 708 via a network interface unit 707 connected to the system bus 705, or it can use the network interface unit 707 to connect to other types of networks or remote computer systems (not shown).
[0112] The memory also includes at least one computer program stored in the memory, and the central processing unit 701 executes the at least one computer program to implement all or part of the steps in the methods shown in the above embodiments.
[0113] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described method for controlling a display screen.
[0114] This application also provides a computer program product, including: a computer program or instructions, which, when executed, implement the above-described method for controlling the display screen.
[0115] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0116] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0117] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0118] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for controlling a display screen, the method comprising: Identify the target page view elements that change as the display screen switches between day and night modes; When the day / night mode of the display screen is switched, the attributes of the target page view elements are adjusted according to the current mode of the display screen.
2. The control method for the display screen according to claim 1, wherein, The target page view elements include at least one of the following: page background image, text, click effect, text editing box, and button style.
3. The control method for the display screen according to claim 1 or 2, wherein, The determination of the target page view element that changes as the display screen switches between day and night modes includes: The target page view element is a page view element whose attributes change with the day / night mode switching.
4. The control method for the display screen according to any one of claims 1 to 3, wherein, The attributes include at least one of color, transparency, brightness, contrast, text attributes, and interactive feedback.
5. The control method for the display screen according to any one of claims 1 to 4, wherein, The step of adjusting the attributes of the target page view elements according to the current mode of the display screen includes: When the display screen switches from night mode to day mode, the attributes of the target page view element are adjusted to the attributes corresponding to the day mode. When the display screen switches from day mode to night mode, the attributes of the target page view element are adjusted to the attributes corresponding to the night mode.
6. The control method for a display screen according to any one of claims 1 to 5, wherein, Determining the day / night mode switching of the display screen includes: Obtain the vehicle's current location information; Based on the location information, determine the sunrise and sunset times of the vehicle's location; If the current time reaches the sunrise time or the sunset time, determine the day / night mode switch of the display screen.
7. The control method for a display screen according to any one of claims 1 to 6, wherein, Determining the day / night mode switching of the display screen includes: Get the current ambient brightness; When the brightness reaches a preset brightness threshold, the day / night mode of the display screen is switched.
8. A computer-readable storage medium having a program stored thereon that, when executed by a processor, implements the control method for a display screen according to any one of claims 1-7.
9. A vehicle comprising: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements the control method for the display screen according to any one of claims 1-7.
10. A control device for a display screen, the device comprising: The determination module is used to determine the target page view elements that change as the display screen switches between day and night modes. The control module is used to adjust the attributes of the target page view elements according to the current mode of the display screen when the day / night mode of the display screen is switched.
Citation Information
Patent Citations
Display screen control method and device, computer readable storage medium and vehicle
CN119415202A
Global positioning system apparatus and its method for switching screen image display mode
CN101344392A
Integrated vehicle machine screen display control method, storage medium and system
CN112590551A
Vehicle-mounted display background color conversion method and device, computer equipment and storage medium
CN112698802A
Vehicle-mounted screen control method, storage medium and vehicle
CN118298748A