CN115794285A - Online theme switching method, device, equipment and medium - Google Patents

Online theme switching method, device, equipment and medium Download PDF

Info

Publication number
CN115794285A
CN115794285A CN202211506063.5A CN202211506063A CN115794285A CN 115794285 A CN115794285 A CN 115794285A CN 202211506063 A CN202211506063 A CN 202211506063A CN 115794285 A CN115794285 A CN 115794285A
Authority
CN
China
Prior art keywords
theme
resource
online
switched
switching
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
Application number
CN202211506063.5A
Other languages
Chinese (zh)
Inventor
詹斌
张英鹏
刘大全
杨玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211506063.5A priority Critical patent/CN115794285A/en
Publication of CN115794285A publication Critical patent/CN115794285A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an online theme switching method, which comprises the steps of downloading a theme pack of a theme to be switched from a server based on a theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack; analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched; and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset part name and the picture resource identity identification number. According to the method, by selecting and downloading the new theme on the server, not only is the background skin changed, but also the dynamic addition and deletion of elements such as the model and the like are changed, the layout, the number, the display mode and the combination mode of each node are changed, and the requirement for dynamically realizing online theme switching is met.

Description

Online theme switching method, device, equipment and medium
Technical Field
The invention relates to the field of automobile cabin display, in particular to an online theme switching method, device, equipment and medium.
Background
The skin replacement and theme switching are two dynamic interface updating modes, each set of theme has a set of default skin, one set of skin is also affiliated to one set of theme, the skin is necessarily replaced by the replacement theme, and the replacement skin must be switched to the affiliated theme first. The skin replacement is to replace resources such as color, font, displayed picture and the like for each node on the premise that the number, position and size of each node of the theme interface are not changed, and the skin change only aims at the replacement of default pictures and the replacement of character styles (font, color and size) in the theme. The change of the theme can realize the dynamic addition and deletion of elements such as pictures, models and the like, and can change the layout, the number, the display mode, the combination mode and the like of each node. Different subjects are different greatly, such as a classic meter mode, a sport mode and the like which are frequently switched when people drive a vehicle.
The prior art discloses a novel interface skin changing system and a method thereof, and the framework can realize the reuse of HMI and a platform. The system mainly solves the problems that the available interactive interfaces of the HMI are consistent under different hardware environments and different platform software suppliers, the platform is reusable and extensible, data are kept consistent under different UI/UE designs, the platform is updated and replaced every time, the Common API layer adapts according to different platforms, and the upper HMI APP is unchanged. The solution disclosed in this patent is more to solve the problem of platform reuse and does not describe the way in which the subject is changed online.
At present, instruments in a cockpit are mostly Kanzi rendering solutions, and modules of an air conditioner, a vehicle center, scene reconstruction and the like in a vehicle machine are increasingly developed by adopting Kanzi. With the rapid development of the cockpit experience, online theme switching has been a necessity.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention provides an online topic switching method to solve the above-mentioned technical problems.
The invention provides an online theme switching method, which comprises the following steps:
downloading a theme pack of a theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack;
analyzing the theme configuration file to obtain an interface definition resource file path, a preset name and a picture resource identity identification number corresponding to the theme to be switched;
and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset part name and the picture resource identity identification number.
In an embodiment of the present invention, before downloading the theme pack of the theme to be switched from the server, the method further includes:
designing a new theme resource;
configuring a new theme configuration file according to a preset configuration file format and the new theme resource;
packaging the new theme resources and the new theme configuration file into a new theme package;
and uploading the packaged new theme pack to the server.
In an embodiment of the present invention, the method for implementing online theme switching by calling a corresponding application program interface according to the interface definition resource file path, the preset name and the picture resource identification number specifically includes:
acquiring and loading an interface definition resource file according to the interface definition resource file path;
acquiring the preset part of the theme to be switched from the interface definition resource file according to the name of the preset part;
instantiating the acquired preset of the theme to be switched;
and adding the instantiated preset pieces into a root node of the operating environment to complete online theme switching.
In an embodiment of the present invention, the preset part includes a background picture of the theme to be switched, an interface model of the theme, and a layout, a number, a display mode, and a combination mode of each node in the theme.
In an embodiment of the present invention, the theme-switching request is sent through the car machine or an intelligent terminal connected to the car machine.
In an embodiment of the present invention, the analyzing the theme configuration file to obtain an interface definition resource file path, a preset name and a picture resource identification number corresponding to the theme to be switched specifically includes:
obtaining theme configuration information and picture resource configuration information by analyzing the theme configuration file;
acquiring an interface definition resource file path and a preset file name according to the theme configuration information;
and acquiring the picture resource identity identification number and the picture resource path according to the picture resource configuration information.
In an embodiment of the present invention, the method further includes: and directly changing the background picture of the current theme by changing the picture resource in the picture resource path.
In order to achieve the above object, the present invention further provides an online theme switching apparatus, including:
an acquisition module: downloading a theme pack of a theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack;
an analysis module: analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched;
the implementation module comprises: and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset piece name and the picture resource identity identification number.
In order to achieve the above object, the present invention further provides an electronic device, including:
one or more processors;
a storage device for storing one or more programs, which when executed by the one or more processors, cause the electronic device to implement the online theme switching method described above.
The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the above-described online topic switching method.
The invention relates to an online theme switching method, which comprises the steps of downloading a theme pack of a theme to be switched from a server based on a theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack; analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched; and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset piece name and the picture resource identity identification number. According to the method, by selecting and downloading the new theme on the server, not only is the background skin changed, but also the dynamic addition and deletion of elements such as the model and the like are changed, the layout, the number, the display mode and the combination mode of each node are changed, and the requirement for dynamically realizing online theme switching is met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic view of a motormeter panel subject matter shown in an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of another automotive dashboard theme shown in an exemplary embodiment of the present application;
FIG. 3 is a flow chart illustrating an online topic switching method in accordance with an exemplary embodiment of the present application;
FIG. 4 illustrates a flow chart of configuring a new theme pack in a server in an online theme switching method;
FIG. 5 is a block diagram of an online topic switching apparatus shown in an exemplary embodiment of the present application;
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the disclosure herein, wherein the embodiments of the present invention are described in detail with reference to the accompanying drawings and preferred embodiments. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, and are not intended to limit the scope of the present invention.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present invention, however, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring embodiments of the present invention.
The terms "first," "second," and the like in the description and in the claims, and the above-described drawings of embodiments of the present disclosure, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the present disclosure described herein may be made. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more unless otherwise specified.
In the embodiment of the present disclosure, the character "/" indicates that the preceding and following objects are in an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes objects, meaning that three relationships may exist. E.g., a and/or B, represents: a or B, or A and B.
It should be noted that, in general, the car machine system needs to rely on the interaction between the car machine and the external module to provide more car services to the car owner, such as meters, TBOX, etc., besides the car machine itself. From the aspect of hardware alone, the whole vehicle machine system comprises a vehicle machine, an instrument, a TBOX, an intelligent terminal and a sensor.
The vehicle machine is the soul of the whole vehicle machine system and is also the main carrier for interacting with the vehicle owner. The vehicle machine comprises a CPU, an internal memory, a display screen, a positioning chip, a gyroscope, an accelerometer and the like, and mainly provides basic capabilities of calculation, storage, positioning, information output and the like for a vehicle machine system.
The intelligent terminal is not in the vehicle machine system when being an independent individual, but when the intelligent terminal is connected with the vehicle machine and sends a program instruction to the vehicle machine, the intelligent terminal can be regarded as a part of the vehicle machine system.
The automobile instrument panel is a device for reflecting the working conditions of all the systems of the vehicle. In the process of modernization, most automobile instruments are replaced by electronic display screens, so that the instrument panel can highlight the content of a certain part by changing the layout of each part to realize different requirements.
Fig. 1 and 2 are schematic diagrams illustrating two automotive dashboard themes according to an exemplary embodiment of the present application.
When the automobile is in an initial state, the theme of the instrument panel is set as a default theme, and as shown in fig. 1, gears and the speed are distributed in bilateral symmetry as first-level information; secondary information (such as driving related information) serving as a screen center is placed in the middle area, so that the attention of a driver is well guaranteed not to be excessively dispersed; three areas around the inner side of the instrument panel are used as three-level information to fixedly display water temperature, oil mass and fault prompts.
When the automobile receives the theme switching request, the online theme switching is realized through the online theme switching method, and the dynamic addition and deletion of elements such as background pictures, models and the like, the layout, the number, the display mode, the combination mode and the like of each node are changed. As shown in fig. 2, after the vehicle is adjusted to the movement mode by the mode knob, the vehicle machine receives a movement mode theme switching request, the movement mode theme is switched to the movement mode theme on line by an on-line theme switching method, and after the movement mode theme is started, the gear and the speed are used as first-level information, the vision is prominent, and the rotating speeds of the left side and the right side are expressed in a strong vision form, so that the driving feeling is increased.
From the comparison between fig. 1 and fig. 2, the switching of the theme not only changes the background picture, but also changes the layout of the functional modules on the dashboard, and the information of a certain functional module is highlighted by changing the layout of the functional modules, so that different themes can meet different requirements.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for switching between online themes of development software based on Kanzi according to an exemplary embodiment of the present application.
As shown in fig. 3, in an exemplary embodiment, the online topic switching method at least includes steps S310 to S330, which are described in detail as follows:
and S310, downloading a theme pack of the theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack.
The theme switching request can be from the car machine, theme application on the car machine displays switchable themes on all servers for a user to select, after the user selects the corresponding theme, the car machine downloads the theme pack of the theme to be switched from the servers, and the theme pack is decompressed to obtain the theme configuration file and the theme resources.
In another exemplary embodiment, the theme switching request may also originate from a mode knob and an intelligent terminal connected to the car machine and capable of sending a related instruction, for example, when a user adjusts the mode knob from an automatic mode to a motion mode, the theme switching request is sent to the car machine motion mode, and after receiving the motion mode theme switching request, the car machine realizes online switching to the motion mode theme through an online theme switching method. After the theme of the movement mode is switched, the gear and the speed are used as primary information, the vision is prominent, the rotating speeds of the left side and the right side are in a strong visual expression form, and the driving dynamic sense is increased, as shown in fig. 2.
Step S320, obtaining the interface definition resource file path, the preset part name and the picture resource identity identification number corresponding to the theme to be switched by analyzing the theme configuration file.
In an exemplary embodiment, the theme pack may include a theme profile and theme assets, wherein the theme profile may include a theme configuration and an image asset configuration. An interface (UI) definition resource file (kzb file) path, a preset part name (prefabName) and a corresponding root node are configured in the theme configuration; configuring a picture resource identity identification number (resource ID) and a path of a picture resource (an actual path corresponding to a picture) in picture resource configuration; the resource ID corresponds to the path of the corresponding picture resource, so that the background picture of the current theme is directly changed by changing the picture resource in the path of the picture resource.
In an exemplary embodiment, the obtaining, by analyzing the theme configuration file, an interface definition resource file path, a preset name and a picture resource identification number corresponding to the theme to be switched specifically includes: obtaining theme configuration information and picture resource configuration information by analyzing the theme configuration file; acquiring a path of an interface definition resource file and a preset name according to the theme configuration information; and acquiring the picture resource identity identification number and the path of the picture resource according to the picture resource configuration information.
And step S330, calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset item name and the picture resource identity identification number.
In an exemplary embodiment, calling a corresponding application program interface to implement online theme switching according to the interface definition resource file path, the preset name and the picture resource identification number, specifically including: acquiring and loading an interface definition resource file according to the interface definition resource file path; acquiring the preset part of the theme to be switched from the interface definition resource file according to the name of the preset part; instantiating the acquired preset part of the theme to be switched; and adding the instantiated preset pieces into a root node of the operating environment to complete online theme switching. For example, the preset items may include a background picture of the theme to be switched, an interface model of the theme, and a layout, a number, a display mode, and a combination mode of each node in the theme, please refer to fig. 4, where fig. 4 shows a flowchart of configuring a new theme pack in a server in an exemplary embodiment.
As shown in fig. 4, in an exemplary embodiment, the flowchart for configuring the new theme pack in the server includes steps S410 to S440, which are described in detail as follows:
and step S410, designing a new theme resource.
Although the new theme resource is not specifically required in format, the new theme resource has functional requirements, and various indispensable indicator lamps have to be embodied in the designed theme, so that important safety information in a whole vehicle system is prevented from being lost, and safety accidents are prevented.
Step S420, configuring a new theme configuration file according to a preset configuration file format and the new theme resource.
In an exemplary embodiment, the preset profile format may be a default theme profile format or a custom theme profile protocol format, and the configured theme resource is a new theme resource. And only when the configuration file format is correct and the configured resources point to the resources of the new theme, the car machine can realize on-line theme switching by reading the configuration file.
And step S430, packaging the new theme resource and the new theme configuration file into a new theme package.
The new theme resources and the new theme configuration files are packaged into the new theme package, so that the new theme resources and the new theme configuration files are in one-to-one correspondence, and uploading and downloading are facilitated.
Step S440, uploading the packaged new theme pack to the server.
And releasing the local memory by uploading the new theme pack to the server. The method realizes that a theme is required to be switched and a corresponding theme is directly downloaded on the server, and after the theme is switched, the original theme is deleted from the local, and the local resources are released.
To describe the configuration process of a new theme, the development of the following default theme is introduced: a root node RootNode is defined in Kanzi, and all contents required by default themes are placed in a preset prefab. And then adding the default prefab into the root node RootNode for displaying. The Image attributes of the picture nodes are uniformly specified in a resource ID mode, and the resource ID is configured to be an actual path corresponding to the picture, so that the picture resources can be flexibly replaced in a mode of replacing the picture corresponding to the path.
Using the Kanzi Studio development tool, a new theme interface is developed, with all of the contents of the new theme also placed in a default prefab.
Topic-related resources are then derived: kzb file (UI definition resource file). Defining a theme Profile protocol Format
1) Theme configuration:
{"theme":"classic_theme.kzb","prefabName","root_node"}
2) And (3) picture resource allocation:
"imgs":[{"resourceId":"Skin_IMG_BG","path":"skin/0/background.png"},
{"resourceId":"Skin_IMG_lightoff","path":"skin/0/light-off.png"},...]
wherein resource represents the resource ID of the picture, the resource ID is defined in Kanzi, and path is the path of the picture. And storing the theme kzb files and the picture resources to a specified path according to the configuration file format, and packaging the theme into a compressed package after completing the configuration of the theme and the picture.
And uploading the theme pack to a server side for the client side to download online. Fig. 5 is a block diagram of an online theme switching apparatus according to an exemplary embodiment of the present application.
As shown in fig. 5, the exemplary online theme switching apparatus includes:
the obtaining module 510: downloading a theme pack of a theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack;
the parsing module 520: analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched;
the implementation module 530: and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset part name and the picture resource identity identification number.
It should be noted that the online theme switching apparatus provided in the foregoing embodiment and the online theme switching method provided in the foregoing embodiment belong to the same concept, and specific ways of performing operations by each module and unit have been described in detail in the method embodiment, and are not described again here. In practical applications, the online theme switching apparatus provided in the foregoing embodiment may distribute the functions through different function modules as needed, that is, divide the internal structure of the apparatus into different function modules to complete all or part of the functions described above, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, enable the electronic device to implement the online topic switching method provided in the foregoing embodiments.
FIG. 6 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application. It should be noted that the computer system 600 of the electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 602 or a program loaded from a storage portion 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for system operation are also stored. The CPU601, ROM 602, and RAM 603 are connected to each other via a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted into the storage section 608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. When the computer program is executed by a Central Processing Unit (CPU) 601, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor of a computer, causes the computer to perform the online topic switching method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist alone without being assembled into the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the online theme switching method provided in the above embodiments.
The foregoing embodiments are merely illustrative of the principles of the present invention and its efficacy, and are not to be construed as limiting the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. The utility model provides an online theme switching method which is characterized in that, is applied to the car machine, the method includes:
downloading a theme pack of a theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack;
analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched;
and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset part name and the picture resource identity identification number.
2. The method according to claim 1, wherein before downloading the theme pack of the theme to be switched from the server, the method further comprises:
designing a new theme resource;
configuring a new theme configuration file according to a preset configuration file format and the new theme resource;
packaging the new theme resources and the new theme configuration file into a new theme package;
and uploading the packaged new theme pack to the server.
3. The method according to claim 1, wherein the step of calling a corresponding application program interface to implement online theme switching according to the interface definition resource file path, the preset name and the picture resource identification number specifically comprises:
acquiring and loading an interface definition resource file according to the interface definition resource file path;
acquiring the preset part of the theme to be switched from the interface definition resource file according to the name of the preset part;
instantiating the acquired preset part of the theme to be switched;
and adding the instantiated preset pieces into a root node of the operating environment to complete online theme switching.
4. The on-line theme switching method according to claim 3, wherein the preset pieces include a background picture of the theme to be switched, an interface model of the theme, and a layout, a number, a display mode and a combination mode of each node in the theme.
5. The method according to claim 1, wherein the theme switching request is sent through the car machine or an intelligent terminal connected to the car machine.
6. The method according to claim 1, wherein the interface definition resource file path, the preset name and the picture resource identification number corresponding to the theme to be switched are obtained by parsing the theme configuration file, and specifically comprises:
obtaining theme configuration information and picture resource configuration information by analyzing the theme configuration file;
acquiring an interface definition resource file path and a preset file name according to the theme configuration information;
and acquiring the picture resource identity identification number and the picture resource path according to the picture resource configuration information.
7. The method of claim 6, wherein the method further comprises: and directly changing the background picture of the current theme by changing the picture resource in the picture resource path.
8. An online topic switching apparatus, the apparatus comprising:
an acquisition module: downloading a theme pack of a theme to be switched from a server based on the theme switching request, and obtaining a theme configuration file and theme resources according to the theme pack;
an analysis module: analyzing the theme configuration file to obtain an interface definition resource file path, a preset part name and a picture resource identity identification number corresponding to the theme to be switched;
the implementation module comprises: and calling a corresponding application program interface to realize online theme switching according to the interface definition resource file path, the preset part name and the picture resource identity identification number.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the online topic switching method of any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the online theme switching method according to any one of claims 1 to 7.
CN202211506063.5A 2022-11-28 2022-11-28 Online theme switching method, device, equipment and medium Pending CN115794285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211506063.5A CN115794285A (en) 2022-11-28 2022-11-28 Online theme switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211506063.5A CN115794285A (en) 2022-11-28 2022-11-28 Online theme switching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115794285A true CN115794285A (en) 2023-03-14

Family

ID=85442637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211506063.5A Pending CN115794285A (en) 2022-11-28 2022-11-28 Online theme switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115794285A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234623A (en) * 2023-11-16 2023-12-15 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment
CN117811918A (en) * 2024-01-05 2024-04-02 广州星际悦动股份有限公司 Theme configuration method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234623A (en) * 2023-11-16 2023-12-15 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment
CN117234623B (en) * 2023-11-16 2024-02-20 盛威时代科技股份有限公司 Page theme changing method and device of application program and electronic equipment
CN117811918A (en) * 2024-01-05 2024-04-02 广州星际悦动股份有限公司 Theme configuration method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN115794285A (en) Online theme switching method, device, equipment and medium
CN112102437A (en) Canvas-based radar map generation method and device, storage medium and terminal
CN111552550A (en) Task scheduling method, device and medium based on GPU (graphics processing Unit) resources
CN113676501A (en) Application deployment method and device based on Kubernetes cluster and electronic equipment
CN110727869A (en) Page construction method and device
CN106919406A (en) A kind of desktop application component issue, update method and device
CN112783660B (en) Resource processing method and device in virtual scene and electronic equipment
CN115658201A (en) Method, device, equipment and medium for generating vehicle-mounted display picture
CN115373618B (en) Multi-screen display method and device, vehicle machine and storage medium
CN115626056A (en) Vehicle-mounted information display management method and device, instrument, equipment and medium to be displayed
CN115878115A (en) Page rendering method, device, medium and electronic equipment
CN112307377A (en) Information display method and device and electronic equipment
CN115988255A (en) Special effect generation method and device, electronic equipment and storage medium
CN115794400A (en) Memory management method, device and equipment of deep learning model and storage medium
CN114020396A (en) Display method of application program and data generation method of application program
CN109508359A (en) A kind of real-time map monitoring method and device
CN111199519B (en) Method and device for generating special effect package
CN110968312A (en) Method and device for changing interface layout of application program
CN111243069A (en) Scene switching method and system of Unity3D engine
CN114285831B (en) Data transmission method and device for automobile open architecture
CN118170284B (en) Window rendering method, device, equipment and medium
EP4394593A1 (en) Skin changing method and apparatus for display interface, vehicle and storage medium
CN115480857A (en) Vehicle application data display method, system, equipment and storage medium
CN115951887A (en) Control creating method, device, equipment and medium
CN117111901A (en) Vehicle application development method, device, management platform, system and storage medium

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