Display screen control method and device, computer readable storage medium and vehicle
By determining the target page view element in the display screen and adjusting its attributes according to the mode, the problems of low efficiency and poor user experience in the current technology are solved, fast and low-consumption mode switching are achieved, and the interface is improved Scalability and maintainability.
Patent Information
- Application Number
- CN202411439957.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2025-02-11
AI Technical Summary
When the prior art realizes day-night mode switching of display screens, the preliminary workload is large, the later expansion and maintenance is difficult, the user experience is poor, and the performance consumption is high.
Quick switching and reduce CPU and memory consumption by determining the target page view elements that change with the display screen day and night mode switching and adjusting the properties of these elements according to the current mode.
It realizes faster switching speed of day and night mode, reduces CPU and memory consumption, reduces adaptive workload, and improves the scalability and maintainability of the display interface.
Smart Images

Figure CN119415202A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of display screens, and in particular to a method for controlling a display screen, a computer-readable storage medium, a vehicle, and a control device for a display screen. Background Art
[0002] Cockpit applications provide day and night modes according to different user needs, meeting the needs of users to use applications in a friendly manner at different brightness levels. For example, the central control screen and other display screens on the vehicle have two modes, day mode and night mode, for users to choose from.
[0003] There are currently two main ways to switch between day and night modes: manually switch the day and night mode resources to achieve day and night mode switching, but this method has the disadvantages of large initial workload, difficulty in later expansion and maintenance, and poor user experience. The other is to destroy the application page and recreate it, that is, automatically exit the current display interface and recreate a new display interface, which has poor user experience, troublesome application page status maintenance, and high performance consumption. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first purpose of the present invention is to propose a control method for a display screen, determine the target page view element that changes when the display screen switches between day and night modes, and when the day and night mode switching of the display screen is determined, adjust the properties of the target interface view element according to the current mode of the display screen, thereby making the day and night mode switching faster, consuming less CPU and memory during the switching process, and reducing the adaptation workload, thereby improving the scalability and maintainability of the subsequent display interface.
[0005] A second object of the present invention is to provide a computer-readable storage medium.
[0006] A third object of the present invention is to provide a vehicle.
[0007] A fourth objective of the present invention is to provide a control device for a display screen.
[0008] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a method for controlling a display screen, the method comprising: determining a target page view element that changes when the display screen switches between day and night modes; and when determining that the display screen switches between day and night modes, adjusting the properties of the target interface view element according to the current mode of the display screen.
[0009] According to the display screen control method of the embodiment of the present invention, the target page view element that changes when the display screen switches between day and night modes is determined, and when the day and night mode switching of the display screen is determined, the properties of the target interface view element are adjusted according to the mode the display screen is currently in. As a result, the method can make the day and night mode switching faster, consume less CPU and memory during the switching process, reduce the adaptation workload, and improve the scalability and maintainability of the subsequent display interface.
[0010] In addition, the control method of the display screen according to the above embodiment of the present invention may also have the following additional technical features:
[0011] According to an embodiment of the present invention, the target view interface element includes at least one of a page background image, text, a click effect, a text edit box, and a button style.
[0012] According to one embodiment of the present invention, determining the target page view element that changes when the display screen switches between day and night modes includes: taking the page view element whose attributes of the interface view element change when the day and night modes switch as the target page view element.
[0013] According to an embodiment of the present invention, the attribute includes at least one of color, transparency, brightness, contrast, text attribute, and interactive feedback.
[0014] According to one embodiment of the present invention, the properties of the target interface view element are adjusted according to the current mode of the display screen, including: when the display screen is changed from night mode to day mode, controlling the properties of the target interface view element to be adjusted to the corresponding properties in the day mode; when the display screen is changed from the day mode to the night mode, controlling the properties of the target interface view element to be adjusted to the corresponding properties in the night mode.
[0015] According to one embodiment of the present invention, determining the day / night mode switching of the display screen includes: acquiring the current position information of the vehicle; determining the sunrise time and sunset time of the vehicle's location based on the position information; and determining the day / night mode switching of the display screen when the current time reaches the sunrise time or the sunset time.
[0016] According to an embodiment of the present invention, determining the day / night mode switching of the 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.
[0017] To achieve the above-mentioned purpose, a second aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which implements the above-mentioned method for controlling a display screen when executed by a processor.
[0018] According to the computer-readable storage medium of an embodiment of the present invention, by implementing the above-mentioned display screen control method during execution, the day and night mode switching speed can be made 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.
[0019] To achieve the above-mentioned purpose, a vehicle is proposed in an embodiment of the third aspect of the present invention, comprising a memory, a processor and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the above-mentioned method for controlling the display screen is implemented.
[0020] According to the vehicle of the embodiment of the present invention, by executing the above-mentioned display screen control method, the day and night mode switching speed can be made 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.
[0021] To achieve the above-mentioned purpose, an embodiment of the fourth aspect of the present invention proposes a control device for a display screen, wherein the device includes: a determination module, used to determine a target page view element that changes when the display screen switches between day and night modes; and a control module, used to adjust the properties of the target interface view element according to the current mode of the display screen when determining that the display screen switches between day and night modes.
[0022] According to the control device of the display screen of the embodiment of the present invention, the determination 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 properties of the target interface view element according to the current mode of the display screen when determining the day and night mode switching of the display screen. As a result, the device can make the day and night mode switching faster, consume less CPU and memory during the switching process, reduce the adaptation workload, and improve the scalability and maintainability of the subsequent display interface.
[0023] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flow chart of a method for controlling a display screen according to an embodiment of the present invention;
[0025] Figure 2 is a flow chart of a method for controlling a display screen according to a specific example of the present invention;
[0026] Figure 3 is a block diagram of a vehicle according to an embodiment of the present invention;
[0027] Figure 4 FIG. 4 is a block diagram of a control device for a display screen according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0029] For display screens such as the central control screen or instrument panel on current vehicles, the current technical solution is to destroy the daytime page and recreate the nighttime page when switching between day and night modes. In this process, page freezes and slow loading may occur, which seriously affects the user experience. In the technical solution of this application, the colors of the background, text, pictures, controls and other elements in the page can be recorded. When switching between day and night modes, you only need to replace the above elements with the colors of the nighttime page, without reloading the entire page, which improves the smoothness of the switching, consumes less CPU (Central Processing Unit) and memory, reduces the workload of adaptation, and improves the scalability and maintainability of the subsequent display interface.
[0030] The following describes a method for controlling a display screen, a computer-readable storage medium, a vehicle, and a device for controlling a display screen according to embodiments of the present invention with reference to the accompanying drawings.
[0031] Figure 1 FIG. 4 is a flow chart of a method for controlling a display screen according to an embodiment of the present invention.
[0032] like Figure 1 As shown, the control method of the display screen according to the embodiment of the present invention may include the following steps:
[0033] S1, determining a target page view element that changes when the display screen switches between day and night modes.
[0034] S2, when determining the day / night mode switch of the display screen, adjusting the attributes of the target interface view element according to the current mode of the display screen.
[0035] Specifically, the display screen may include the display screen of the vehicle's central control screen, the display screen of the vehicle's instrument panel, the display screen of the vehicle's co-pilot, etc. In addition, in order to improve user comfort, the display screen may have a day mode and a night mode according to the user's choice. That is, the display brightness of the display screen in the day mode is higher, which can ensure that the user can still see the content of the display screen clearly during the day, and the display brightness of the display screen in the night mode is lower, which can ensure that the user can watch the screen comfortably at night, and will not bring a poor user experience due to the high brightness.
[0036] In the process of switching the display screen day and night mode, in order to improve the smoothness of the mode switching, the target page view element that changes when the display screen switches the day and night mode can be determined first. In other words, the target interface view element will change in different modes. For example, the target interface view element can be text, that is, the color of the text displayed when the display screen is in day mode or night mode is different.
[0037] Monitor the mode of the display screen. When the day and night modes of the display screen are switched, the properties of the target interface view elements can be adjusted according to the current mode of the display screen. For example, the time can be checked through a scheduled task to infer whether it should be daytime or nighttime. When a mode change is detected, the resources in the corresponding mode need to be read. For example, if the current mode is night mode, the background image, text color and other resources in night mode can be loaded. And the properties of the target view elements can be updated, for example, CSS styles such as color, font, spacing and layout can be changed. After the properties are updated, the view needs to be re-rendered to reflect these changes. In this way, the smoothness of the switching can be improved, and less CPU and memory are consumed, and the adaptation workload is reduced, which improves the scalability and maintainability of the subsequent display interface.
[0038] According to one embodiment of the present invention, the target view interface element includes at least one of a page background image, text, a click effect, a text edit box, and a button style.
[0039] Specifically, the target interface element may include one or more of a background image, text, click effect, text edit box, and button style, which may be determined according to the layout of the current display interface. The background image can provide a visual background for the page and help set the overall atmosphere and style of the page. When selecting a background image, the contrast between the background image and the foreground elements may be considered to ensure the readability of text and important information. Different background images may be used in day mode and night mode to adapt to different lighting conditions.
[0040] Text is the main way to convey information, including titles, paragraphs, labels, etc. Choosing the right font, font size, color, and line spacing can ensure the readability and aesthetics of the text. In addition, in order to improve readability, the text color needs to be adjusted according to the brightness of the background. Click effects provide instant feedback of user operations and enhance 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 effect of the control when it is clicked can be adjusted according to different modes.
[0041] The text edit box allows users to enter text, such as search boxes, form input, etc. The size, border, padding and placeholder text of the edit box need to be considered to ensure the convenience and accuracy of user input, and the border color and background of the input box can be adjusted according to different modes. Buttons are important elements for users to perform operations, such as submitting forms, triggering events, etc. The button style, such as the text color and background on the button, can be adjusted according to different modes.
[0042] According to one embodiment of the present invention, determining a target page view element that changes when the display screen switches between day and night modes includes: taking a page view element whose attributes of an interface view element change when the day and night modes switch as the target page view element.
[0043] Specifically, target page view elements refer to those interface elements whose properties need to be changed to adapt to different lighting conditions depending on whether the current mode is day or night. That is, when determining the target page view elements that change when the display screen switches between day and night modes, the page view elements whose properties change with the switching of day and night modes can be used as the target page view elements. For example, for page background images and colors, the day mode may use a bright or colorful background, while the night mode may use a dark or dark background to reduce the stimulation of the screen brightness to the user's eyes. For another example, the click effect may need to be adjusted to ensure that it is clearly visible in different modes. For example, the button click effect in the day mode is a dark shadow, while in the night mode it is a light shadow.
[0044] According to an embodiment of the present invention, the attribute includes at least one of color, transparency, brightness, contrast, text attribute, and interactive feedback.
[0045] Specifically, the properties of the target page view element may include one or more of color, transparency, brightness, contrast, text attributes, and interactive feedback. For example, the properties 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 example, in order to improve readability, the text color needs to be adjusted according to the brightness of the background.
[0046] Transparency determines the visibility of an element, and its value ranges from 0 (completely transparent) to 1 (completely opaque). In CSS, transparency can be set using the opacity property. Brightness refers to the lightness or darkness of a color. Brightness can help users distinguish different elements or create different visual focal points. In CSS, brightness can be achieved by adjusting the brightness of a color, such as using the brightness value in the HSL color model. Contrast refers to the degree of difference between colors, and high contrast can help users distinguish different elements more easily. In design, ensuring sufficient contrast is very important for improving readability and accessibility. Text attributes include font, font size, line height, character spacing, text color, text alignment, etc. Interactive feedback refers to the response when a user interacts with an interface element, such as button clicks, sliding, hovering, etc. Interactive feedback can be provided through visual changes (such as color changes, shadows, animations) or sounds. In CSS, pseudo-classes and transitions can be used to implement interactive feedback.
[0047] According to one embodiment of the present invention, the properties of the target interface view elements are adjusted according to the current mode of the display screen, including: when the display screen is changed from night mode to day mode, the properties of the target interface view elements are controlled to be adjusted to the corresponding properties in the day mode; when the display screen is changed from day mode to night mode, the properties of the target interface view elements are controlled to be adjusted to the corresponding properties in the night mode.
[0048] Specifically, when adjusting the properties of the target interface view elements according to the current mode of the display screen, the current mode switch of the display screen is judged. When the display screen changes from night mode to day mode, the properties of the target interface view elements can be controlled to be adjusted to the corresponding properties in the day mode. For example, the background corresponding to the day mode uses a bright background, such as white or light gray, to adapt to the strong ambient light, and uses dark text, such as black or dark gray, to ensure the readability of the text against a bright background. Use a bright background and dark borders or text to provide clear button boundaries and operability, and use transparency and shadows to increase the layering of the interface.
[0049] When the display screen changes from day mode to night mode, the properties of the target interface view elements can be controlled to be adjusted to the corresponding properties in night mode. For example, use a dark background, such as dark gray or black, to reduce the stimulation of the screen brightness to the eyes, use light text, such as white or light gray, to ensure the readability of the text on a dark background, use a dark background and light borders or text to provide clear button boundaries and operability, and reduce the use of transparency and shadows to avoid visual interference in a dark environment.
[0050] According to one embodiment of the present invention, determining the day / night mode switching of the display screen includes: obtaining the current position information of the vehicle; determining the sunrise time and sunset time of the vehicle's location based on the position information; and determining the day / night mode switching of the display screen when the current time reaches the sunrise time or the sunset time.
[0051] Specifically, when determining the day and night mode switching of the display screen, the current location information of the vehicle can be obtained, for example, the current location of the vehicle can be obtained through GPS. After the location information of the vehicle is obtained, the sunrise time and sunset time of the vehicle's location can be determined based on the location information. For example, a local database containing sunrise and sunset time data from all over the world is created or used. This database can be pre-calculated and contain sunrise and sunset time data for many years. According to the location of the vehicle, the data of the closest location can be queried to estimate the sunrise and sunset times.
[0052] When determining the sunrise time and sunset time of the vehicle, the current time is judged, and when the current time reaches the sunrise time or the sunset time, the day and night mode switching of the display screen can be determined. For example, if the current time is after the sunrise time and before the sunset time, the display screen can be set to the day mode; otherwise, it can be set to the night mode. And at the sunrise time point and the sunset time point, the switching between the day mode and the night mode can occur. For example, the sunrise time point is 6 am and the sunset time point is 6 pm. Therefore, when the current time is from 5.59 am to 6 am, the mode of the display screen will be switched from the night mode to the day mode.
[0053] According to an embodiment of the present invention, determining the day and night mode switching of the display screen includes: obtaining the brightness of the current environment; and determining the day and 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.
[0054] Specifically, when determining the day and night mode switch of the display screen, the brightness of the current environment can be obtained. For example, the ambient light intensity of the display screen can be obtained through the ALS (Ambient Light Sensor). The preset brightness threshold refers to the ambient brightness standard that triggers the mode switch. This value can be set according to the actual situation. For example, it can be set to switch to night mode when it is lower than 500 lux, and switch to day mode when it is higher than 500 lux. Thus, the size relationship between the brightness and the preset brightness threshold is judged. If the ambient brightness is lower than the preset brightness threshold, it switches to night mode; if it is higher than the preset brightness threshold, it switches to day mode.
[0055] For example, suppose there is a simple Android application with a main interface that contains the following elements: a background image, some text labels, and several buttons. First, you can define two sets of resources in the resource file, one for day mode and the other for night mode. For example, create colors_day.xml and colors_night.xml in the res / values directory to define the color resources for day and night modes respectively. When the application starts, you can inject an interceptor to listen to system mode changes and update the resources through the manager when the mode changes. When the system detects a mode change, the manager reads the new resource file and updates the properties of the interface elements. For example, change the background image from drawable / day_background to drawable / night_background, and change 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.
[0056] Combine the following Figure 2 The control method of the present invention will be described.
[0057] As a specific example, the method for controlling a display screen of the present invention may include the following steps:
[0058] S101: taking a page view element whose attributes change with the switching of the day and night modes as a target page view element.
[0059] S102, obtaining the current location information of the vehicle.
[0060] S103, determining the sunrise time and sunset time of the vehicle's location based on the location information.
[0061] S104, determine whether the current time reaches the sunrise time or the sunset time. If yes, execute step S105; if no, execute step S102.
[0062] S105, determining whether to switch the day and night mode of the display screen.
[0063] S106, determining whether the display screen is switched from night mode to day mode. If yes, executing step S107; if no, executing step S108.
[0064] S107, controlling the properties of the target interface view element to be adjusted to the properties corresponding to the daytime mode.
[0065] S108, determining whether the display screen is switched from the day mode to the night mode. If yes, execute step S109; if no, execute step S105.
[0066] S109, controlling the properties of the target interface view element to be adjusted to the corresponding properties in the night mode.
[0067] In summary, according to the control method of the display screen of the embodiment of the present invention, the target page view element that changes when the display screen switches the day and night mode is determined, and when the day and night mode switching of the display screen is determined, the properties of the target interface view element are adjusted according to the current mode of the display screen. As a result, the method can make the day and night mode switching faster, consume less CPU and memory during the switching process, reduce the adaptation workload, and improve the scalability and maintainability of the subsequent display interface.
[0068] Corresponding to the above embodiment, the present invention also proposes a computer-readable storage medium.
[0069] The computer-readable storage medium of the embodiment of the present invention stores a program, and when the program is executed by a processor, the above-mentioned method for controlling the display screen is implemented.
[0070] According to the computer-readable storage medium of an embodiment of the present invention, by executing the above-mentioned display screen control method, the day and night mode switching speed can be made 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.
[0071] Corresponding to the above embodiment, the present invention also provides a vehicle.
[0072] like Figure 3 As shown, the vehicle 200 of the embodiment of the present invention 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, the above-mentioned display screen control method is implemented.
[0073] According to the vehicle of the embodiment of the present invention, by executing the above-mentioned display screen control method, the day and night mode switching speed can be made 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.
[0074] Corresponding to the above embodiment, the present invention further proposes a control device for a display screen.
[0075] like Figure 4 As shown, the display screen control device 100 according to the embodiment of the present invention includes: a determination module 110 and a control module 120 .
[0076] The determination module 110 is used to determine the target page view element that changes when the display screen switches between day and night modes. The control module 120 is used to adjust the properties of the target interface view element according to the current mode of the display screen when determining the day and night mode switching of the display screen.
[0077] According to one embodiment of the present invention, the target view interface element includes at least one of a page background image, text, a click effect, a text edit box, and a button style.
[0078] According to one embodiment of the present invention, the determination module 110 determines the target page view element that changes when the display screen switches between day and night modes, and is specifically used to: use the page view element whose attributes of the interface view element change when the day and night modes switch as the target page view element.
[0079] According to an embodiment of the present invention, the attribute includes at least one of color, transparency, brightness, contrast, text attribute, and interactive feedback.
[0080] According to one embodiment of the present invention, the control module 120 adjusts the properties of the target interface view elements according to the current mode of the display screen, and is specifically used for: when the display screen is changed from night mode to day mode, controlling the properties of the target interface view elements to be adjusted to the corresponding properties in the day mode; when the display screen is changed from day mode to night mode, controlling the properties of the target interface view elements to be adjusted to the corresponding properties in the night mode.
[0081] According to one embodiment of the present invention, the determination module 110 determines the day and night mode switching of the display screen, and is specifically used to: obtain the current position information of the vehicle; determine the sunrise time and sunset time of the vehicle's location based on the position information; and determine the day and night mode switching of the display screen when the current time reaches the sunrise time or sunset time.
[0082] According to an embodiment of the present invention, the determination module 110 determines the day / night mode switching of the display screen, specifically for: 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.
[0083] It should be noted that for details not disclosed in the display screen control device of the embodiment of the present invention, please refer to the details disclosed in the display screen control method of the embodiment of the present invention, and the details will not be repeated here.
[0084] According to the control device of the display screen of the embodiment of the present invention, the determination 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 properties of the target interface view element according to the current mode of the display screen when determining the day and night mode switching of the display screen. As a result, the device can make the day and night mode switching faster, consume less CPU and memory during the switching process, reduce the adaptation workload, and improve the scalability and maintainability of the subsequent display interface.
[0085] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0086] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0087] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0088] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0089] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0090] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for controlling a display screen, characterized in that: The method comprises: Determine the target page view element that changes when the display screen switches between day and night modes; When it is determined that the display screen switches between day and night modes, the properties of the target interface view element are adjusted according to the current mode of the display screen.
2. The method for controlling a display screen according to claim 1, characterized in that: The target view interface elements include at least one of a page background image, text, click effect, text edit box, and button style.
3. The method for controlling a display screen according to claim 2, characterized in that: The step of determining a target page view element that changes when the display screen switches between day and night modes includes: The page view element whose attribute changes with the switching of the day and night mode is used as the target page view element.
4. The method for controlling a display screen according to claim 3, characterized in that: The attribute includes at least one of color, transparency, brightness, contrast, text attribute, and interactive feedback.
5. The method for controlling a display screen according to claim 1, characterized in that: The adjusting the attribute of the target interface view element according to the current mode of the display screen includes: When the display screen is switched from night mode to day mode, controlling the attributes of the target interface view element to be adjusted to the attributes corresponding to the day mode; When the display screen is switched from the day mode to the night mode, the properties of the target interface view element are controlled to be adjusted to the corresponding properties in the night mode.
6. The method for controlling a display screen according to claim 1, characterized in that: The determining the day and night mode switching of the display screen includes: Get the current location information of the vehicle; Determine the sunrise time and sunset time of the location of the vehicle based on the location information; When the current time reaches the sunrise time or the sunset time, the day / night mode switching of the display screen is determined.
7. The method for controlling a display screen according to claim 1, characterized in that: The determining the day and night mode switching of the display screen includes: Get the brightness of the current environment; When the brightness reaches a preset brightness threshold, the day and night mode switching of the display screen is determined.
8. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the method for controlling a display screen according to any one of claims 1 to 7 is implemented.
9. A vehicle, characterized in that: include: A memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for controlling a display screen according to any one of claims 1 to 7 is implemented.
10. A control device for a display screen, characterized in that: The device comprises: A determination module, used to determine a target page view element that changes when the display screen switches between day and night modes; A control module is used to adjust the properties of the target interface view element according to the current mode of the display screen when determining that the display screen is switched between day and night modes.
Citation Information
Cited By
Method and apparatus for controlling display screen, computer-readable storage medium, and vehicle
EP4807544A1
Method and apparatus for controlling display screen, computer-readable storage medium, and vehicle
WO2026081642A1