CN113934477A - Theme rendering method and device, electronic equipment and computer-readable storage medium - Google Patents

Theme rendering method and device, electronic equipment and computer-readable storage medium Download PDF

Info

Publication number
CN113934477A
CN113934477A CN202010603370.XA CN202010603370A CN113934477A CN 113934477 A CN113934477 A CN 113934477A CN 202010603370 A CN202010603370 A CN 202010603370A CN 113934477 A CN113934477 A CN 113934477A
Authority
CN
China
Prior art keywords
theme
pack
theme pack
electronic device
rendering
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
CN202010603370.XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010603370.XA priority Critical patent/CN113934477A/en
Priority to PCT/CN2021/100018 priority patent/WO2022001647A1/en
Publication of CN113934477A publication Critical patent/CN113934477A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Abstract

The application provides a theme rendering method, a theme rendering device, an electronic device and a computer-readable storage medium. The theme rendering method includes: the method comprises the steps of obtaining a selected theme and a corresponding theme pack, wherein the theme pack comprises a first theme pack and a second theme pack, and the first theme pack and the second theme pack correspond to different types of electronic equipment and are theme-matched; parsing and rendering based on the first theme pack; and sending the second theme pack to a second electronic device connected with the first electronic device, wherein the second theme pack is used for instructing the second electronic device to perform analysis and rendering based on the second theme pack. By adopting the method, the user operation can be simplified, and the theme rendering efficiency can be improved.

Description

Theme rendering method and device, electronic equipment and computer-readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a theme rendering method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, a user can select a favorite theme in a theme store, configure and render in an electronic device. However, the current theme rendering method has the problem of complicated operation.
Disclosure of Invention
The embodiment of the application provides a theme rendering method and device, electronic equipment and a computer readable storage medium, which can simplify user operation and improve theme rendering efficiency.
A theme rendering method is applied to a first electronic device and comprises the following steps:
the method comprises the steps of obtaining a selected theme and a corresponding theme pack, wherein the theme pack comprises a first theme pack and a second theme pack, and the first theme pack and the second theme pack correspond to different types of electronic equipment and are theme-matched;
parsing and rendering based on the first theme pack;
and sending the second theme pack to a second electronic device connected with the first electronic device, wherein the second theme pack is used for instructing the second electronic device to perform analysis and rendering based on the second theme pack.
A theme rendering method is applied to a second electronic device and comprises the following steps:
receiving a second theme pack sent by first electronic equipment connected with the second electronic equipment, wherein the second theme pack is obtained by analyzing a theme pack corresponding to a selected theme by the first electronic equipment, the theme pack comprises a first theme pack and a second theme pack, the first theme pack and the second theme pack correspond to different types of electronic equipment and are matched in theme, and the first theme pack is used for indicating the first electronic equipment to analyze and render based on the first theme pack;
and analyzing the second theme pack, and rendering based on the analyzed second theme pack.
A theme rendering apparatus comprising:
the system comprises an acquisition module, a selection module and a display module, wherein the acquisition module is used for acquiring a selected theme and a corresponding theme package, the theme package comprises a first theme package and a second theme package, and the first theme package and the second theme package correspond to different types of electronic equipment and are theme-matched;
the first rendering module is used for analyzing and rendering based on the first theme pack;
a sending module, configured to send the second theme pack to a second electronic device connected to the first electronic device, where the second theme pack is used to instruct the second electronic device to perform parsing and rendering based on the second theme pack.
A theme rendering apparatus comprising:
the receiving module is used for receiving a second theme pack sent by first electronic equipment connected with the second electronic equipment, the second theme pack is obtained by analyzing the theme pack corresponding to the selected theme by the first electronic equipment, the theme pack comprises a first theme pack and a second theme pack, the first theme pack and the second theme pack correspond to different types of electronic equipment and are matched in theme, and the first theme pack is used for indicating the first electronic equipment to analyze and render based on the first theme pack;
and the second rendering module is used for analyzing the second theme pack and rendering based on the analyzed second theme pack.
According to the theme rendering method, the theme rendering device, the electronic equipment and the computer readable storage medium, the selected theme and the corresponding theme package are obtained, the theme package comprises the first theme package and the second theme package, the first theme package and the second theme package are respectively applied to different types of electronic equipment, the themes of the first theme package and the second theme package are matched, then the first theme package is analyzed and rendered by the first electronic equipment, the second theme package is analyzed and rendered by the second electronic equipment, the themes of the first electronic equipment and the second electronic equipment can be automatically matched, the user does not need to configure the themes twice, the user operation is simplified, and the theme rendering efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a theme rendering method in one embodiment;
FIG. 2 is a flow diagram of a method of theme rendering in one embodiment;
FIG. 3 is a schematic diagram of an interface rendered by the first electronic device based on the first theme pack in one embodiment;
FIG. 4 is a schematic diagram of an interface rendered by the wearable device based on the second theme pack in one embodiment;
FIG. 5 is a schematic flow diagram illustrating the rendering of a browser theme pack, under an embodiment;
FIG. 6 is a flow diagram that illustrates the rendering of an instant messaging theme pack, under an embodiment;
FIG. 7 is a schematic rendering flow diagram of a player in one embodiment;
FIG. 8 is a flowchart showing a theme rendering method in another embodiment;
FIG. 9 is a block diagram of the structure of a theme rendering apparatus of an embodiment;
fig. 10 is a block diagram showing the structure of a theme rendering apparatus according to another embodiment;
fig. 11 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first theme pack may be referred to as a second theme pack, and similarly, a second theme pack may be referred to as a first theme pack, without departing from the scope of the present application. The first theme pack and the second theme pack are both theme packs, but are not the same theme pack.
FIG. 1 is a diagram of an application environment of a theme rendering method in one embodiment. As shown in fig. 1, the application environment includes a first electronic device 102 and a second electronic device 104. The first electronic device 102 and the second electronic device 104 may be connected through a wired network or a wireless network. The first electronic device 102 and the second electronic device 104 may each be, but are not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Wherein the device types of the first electronic device 102 and the second electronic device 104 are different. For example, the first electronic device 102 is a desktop computer or a notebook computer, and the second electronic device 104 is a smart phone; the first electronic device 102 is a smartphone, the second electronic device 104 is a wearable device, and the like.
FIG. 2 is a flow diagram of a method for topic rendering in one embodiment. The subject rendering method in this embodiment is described by taking the first electronic device 102 running in fig. 1 as an example. As shown in fig. 2, the theme rendering method includes steps 202 to 206.
Step 202, obtaining the selected theme and the corresponding theme pack, wherein the theme pack comprises a first theme pack and a second theme pack, and the first theme pack and the second theme pack correspond to different types of electronic equipment and are theme-matched.
Wherein the theme is applicable to the electronic device, the theme being a style of the electronic device. The electronic equipment can configure the corresponding theme by downloading a theme pack, so that the electronic equipment displays at least one of standby pictures, background pictures, operation interfaces, icons and characters in corresponding styles. Two theme packs can be preset in the theme pack, including a first theme pack and a second theme pack. The first theme pack and the second theme pack are theme packs with matched themes. For example, the first theme pack and the second theme pack are both theme packs corresponding to the theme a. The first theme pack and the second theme pack may each include at least one of a background picture, a standby picture, a ring tone, an icon, and text in a corresponding style, but are not limited thereto.
Specifically, the first theme pack and the second theme pack are both produced according to the specified syntax and packaging rules. And packaging the first theme pack and the second theme pack into theme packs, and uploading the theme packs to a theme store. The first electronic equipment acquires a theme selected on a theme store and a theme pack corresponding to the theme. The format of the theme pack may specifically be xml (Extensible Markup Language) format. The first electronic device can analyze the theme pack to obtain a first theme pack and a second theme pack. For example, the first theme pack is adapted to the first electronic device, and the second theme pack is adapted to the second electronic device. The theme pack may be a desktop theme pack, a browser theme pack, an instant messaging theme pack, or a player theme pack. The corresponding first theme pack may be a first desktop theme pack, a first instant messaging theme pack, or a first player theme pack. The corresponding second theme pack may be a second desktop theme pack, a second instant messaging theme pack, or a second player theme pack.
And step 204, analyzing and rendering based on the first theme pack.
Wherein, the parsing is based on a set of grammar description rules customized by the xml file. The dial plate package needs to describe the effect which the dial plate package wants to achieve in the xml file according to the designed grammar rule.
Specifically, the first electronic device analyzes the theme pack to obtain a first theme pack. The first electronic device analyzes the first theme pack to obtain an analyzed first theme pack, and the analyzed first theme pack comprises but is not limited to at least one of information of a picture to be displayed, a picture display position of the picture to be displayed, animation rules and audio playing. And the first electronic equipment renders based on the parsed first theme pack.
Step 206, sending a second theme pack to a second electronic device connected to the first electronic device, where the second theme pack is used to instruct the second electronic device to perform parsing and rendering based on the second theme pack.
The number of the second electronic devices connected with the first electronic device is not limited.
Specifically, the first electronic device sends the second theme pack to a second electronic device connected with the first electronic device. And after receiving the second theme pack, the second electronic device can display whether the configuration of the second theme pack is agreed or not on the interface, and when the instruction for agreeing to configure the second theme pack is obtained, the second electronic device analyzes and renders based on the second theme pack.
In the theme rendering method in this embodiment, the selected theme and the corresponding theme pack are obtained, the theme pack includes a first theme pack and a second theme pack, the first theme pack and the second theme pack are respectively applied to different types of electronic devices, and the themes of the first theme pack and the second theme pack are matched, then the first electronic device parses and renders the first theme pack, and the second electronic device parses and renders the second theme pack, so that the themes of the first electronic device and the second electronic device can be automatically matched, a linkage effect is generated between the theme of the first electronic device and the theme of the second electronic device, two themes do not need to be configured by a user, user operation is simplified, theme rendering efficiency is improved, and the user can feel that the first electronic device and the second electronic device are devices associated with each other and is more interesting.
In one embodiment, the theme rendering method further includes: and analyzing the theme pack to obtain a first theme pack and a dial theme pack. Sending a second theme pack to a second electronic device connected to the first electronic device, including: and sending a dial theme package to the wearable device connected with the first electronic device, wherein the dial theme package is used for indicating the wearable device to analyze the dial theme package and rendering the dial based on the analyzed dial theme package.
Wherein, dial plate theme package is used for the theme package of wearable equipment. The dial may refer to the primary interface of the wearable device. The connection may be specifically performed by means of a local area network, bluetooth, NFC (Near Field Communication), and the like.
Specifically, the first electronic device parses the theme pack to obtain a first theme pack applied to the first electronic device and a dial theme pack applied to the second electronic device. The first electronic equipment sends a dial theme pack to the wearable equipment connected with the first electronic equipment. After the wearable device receives the dial plate theme package, the dial plate theme package is analyzed to obtain the analyzed dial plate theme package, and the dial plate is rendered based on the analyzed dial plate theme package.
In this embodiment, as shown in fig. 3, an interface schematic diagram of the first electronic device rendered based on the first theme pack in one embodiment is shown. Fig. 4 is a schematic interface diagram of the wearable device rendered based on the second theme pack in one embodiment. As can be seen from fig. 3 and 4, the topics in the interface are matched, and by adopting the scheme of the present application, the user operation can be simplified, the rendering efficiency can be improved, and the user visual experience can be improved.
In the theme rendering method in this embodiment, the dial theme package is sent to the wearable device, and then the wearable device may parse the dial theme package and render the dial based on the parsed dial theme package, so that the theme of the first electronic device and the wearable device can be matched, the user operation is simplified, and the theme rendering efficiency is improved.
In one embodiment, parsing the theme pack to obtain a first theme pack and a dial theme pack includes: analyzing the theme pack to obtain a first theme pack; analyzing the first theme pack to obtain a first theme background; carrying out size adjustment processing on the first theme background to obtain a second theme background applicable to second electronic equipment; and generating a dial theme pack based on the second theme background.
The first theme background is a background picture applied to the first electronic device.
Specifically, the first electronic device analyzes the theme pack to obtain a first theme pack, and analyzes the first theme pack to obtain a first theme background. The first electronic device can cut the first theme background according to the display size of the second electronic device to obtain a second theme background suitable for the second electronic device. Or the first electronic device performs scaling processing on the first theme background according to the display size of the second electronic device to obtain a second theme background applicable to the second electronic device. And the first electronic equipment generates a dial theme pack containing second theme background information based on the second theme background, wherein the dial theme pack can also comprise at least one of standby pictures, ringtones and icons.
In the theme rendering method in this embodiment, the first theme pack is analyzed to obtain the first theme background, the size of the first theme background is adjusted to obtain the second theme background applicable to the second electronic device, and the dial theme pack is generated based on the second theme background, so that the backgrounds of the first electronic device and the wearable device can be matched, the user operation is simplified, and the theme rendering efficiency is improved.
In one embodiment, as shown in fig. 5, a flowchart of rendering a browser theme pack in one embodiment is shown. The method for obtaining the selected theme and the corresponding theme pack comprises the following steps:
step 502, obtaining a browser theme selected on an interface of a browser and a corresponding browser theme pack, where the browser theme pack includes a first browser theme pack and a second browser theme pack.
Specifically, the browser may also correspond to different themes, such as a brief theme, a chinese style theme, and the like, without being limited thereto. The browser theme pack may include at least one of a background picture, a standby picture, a ring tone, and an icon. The method comprises the steps that a first electronic device obtains a browser theme selected on an interface of a browser and a browser theme pack corresponding to the browser theme, wherein the browser theme pack comprises a first browser theme pack and a second browser theme pack. The first browser theme pack may be applied in a browser of the first electronic device. The second browser theme pack may be applied in a browser of the second electronic device.
Parsing and rendering based on a first browser theme pack, comprising:
step 504, parsing and rendering are performed based on the first browser theme pack.
Specifically, the first electronic device analyzes the theme pack to obtain a first browser theme pack. And the first electronic equipment analyzes the first theme pack to obtain an analyzed first browser theme pack. And the first electronic equipment renders based on the parsed first browser theme pack.
Sending a second browser theme pack to a second electronic device connected to the first electronic device, comprising:
step 506, a second browser theme pack corresponding to the browser is sent to a second electronic device connected with the first electronic device, and the second browser theme pack is used for instructing the second electronic device to analyze the second browser theme pack and render the browser based on the analyzed second browser theme pack.
Specifically, the first electronic device sends a second browser theme pack to a second electronic device connected to the first electronic device. And after receiving the second browser theme pack, the second electronic device can display whether the configuration of the second browser theme pack is agreed or not on the interface, and when an instruction for agreeing to configure the second browser theme pack is obtained, the second electronic device analyzes the second browser theme pack and renders the corresponding browser based on the analyzed second browser theme pack. That is, the theme packs corresponding to different browsers may be different. For example, browser A corresponds to theme A and browser B corresponds to theme B.
In the theme rendering method in this embodiment, the selected theme and the corresponding theme pack are obtained, the theme pack includes a first browser theme pack and a second browser theme pack, the first browser theme pack and the second browser theme pack are respectively applied to different types of electronic devices, and the themes of the first browser theme pack and the second browser theme pack are matched, so that the first electronic device parses and renders the first browser theme pack, and the second electronic device parses and renders the second browser theme pack, which can automatically match the browser themes of the first electronic device and the second electronic device, and does not require a user to configure browser themes twice, thereby simplifying user operation and improving browser theme rendering efficiency.
In one embodiment, as shown in fig. 6, a flow diagram of rendering an instant messaging theme pack in one embodiment is shown. The method for obtaining the selected theme and the corresponding theme pack comprises the following steps:
step 602, obtaining an instant messaging theme selected on an interface of an instant messaging tool and a corresponding instant messaging theme pack, wherein the instant messaging theme pack comprises a first instant messaging theme pack and a second instant messaging theme pack.
Here, Instant Messaging (IM) refers to a service capable of instantly sending and receiving an internet message and the like. The instant messaging tool refers to a tool capable of instantly sending and receiving internet messages. For example, the instant messaging tool may be a QQ, WeChat, or the like, but is not limited thereto.
The instant messaging theme can be applied to instant messaging software of the electronic device. Instant messaging themes are a style of instant messaging tools in electronic devices. The electronic device can configure the corresponding instant messaging theme by downloading a certain instant messaging theme pack. The instant communication theme pack comprises two instant communication theme packs, namely a first instant communication theme pack and a second instant communication theme pack. The first instant communication theme pack and the second instant communication theme pack are instant communication theme packs matched with instant communication themes. For example, the first instant messaging theme pack and the second instant messaging theme pack are both instant messaging theme packs corresponding to the instant messaging theme a. The first instant communication theme pack and the second instant communication theme pack may each include at least one of a background picture and an icon, but is not limited thereto.
Specifically, the first electronic device obtains an instant messaging theme selected on an instant messaging theme interface and an instant messaging theme pack corresponding to the instant messaging theme. The format of the instant messaging theme pack may specifically be xml (Extensible Markup Language) format. The first electronic device can analyze the instant messaging theme pack to obtain a first instant messaging theme pack and a second instant messaging theme pack. For example, a first instant messaging theme pack is adapted to a first electronic device and a second instant messaging theme pack is adapted to a second electronic device.
Analyzing and rendering based on the first instant messaging theme pack, wherein the analyzing and rendering comprises the following steps:
and step 604, analyzing and rendering based on the first instant messaging theme pack.
Specifically, the first electronic device analyzes the instant messaging theme pack to obtain a first instant messaging theme pack. The first electronic equipment analyzes the first instant messaging theme pack to obtain the analyzed first instant messaging theme pack. And the first electronic equipment renders based on the parsed first instant messaging theme pack.
Sending a second instant messaging theme pack to a second electronic device connected to the first electronic device, comprising:
step 606, sending a second instant messaging theme pack corresponding to the instant messaging tool to a second electronic device connected with the first electronic device, wherein the second instant messaging theme pack is used for instructing the second electronic device to analyze the second instant messaging theme pack and rendering the instant messaging tool based on the analyzed second instant messaging theme pack.
Specifically, the first electronic device sends a second instant messaging theme pack to a second electronic device connected with the first electronic device. And after receiving the second instant messaging theme pack, the second electronic device can display whether the configuration of the second instant messaging theme pack is agreed or not on an interface, and when an instruction for agreeing to configure the second instant messaging theme pack is obtained, the second electronic device analyzes the second instant messaging theme pack and renders based on the analyzed second instant messaging theme pack. That is, the theme packs corresponding to different instant messaging tools may be different. For example, instant messenger a corresponds to a topic and instant messenger B corresponds to B topic.
In the theme rendering method in this embodiment, the selected instant messaging theme and the corresponding instant messaging theme pack are obtained, the instant messaging theme pack includes a first instant messaging theme pack and a second instant messaging theme pack, the first instant messaging theme pack and the second instant messaging theme pack are respectively applied to different types of electronic devices, and the instant messaging themes of the first instant messaging theme pack and the second instant messaging theme pack are matched, so that the first electronic device parses and renders the first instant messaging theme pack, and the second electronic device parses and renders the second instant messaging theme pack, which can automatically match the instant messaging themes of the first electronic device and the second electronic device, and does not require a user to configure two instant messaging themes, simplify user operation, and improve instant messaging theme rendering efficiency.
In one embodiment, as shown in fig. 7, a rendering flow diagram of a player in one embodiment is shown. The method for obtaining the selected theme and the corresponding theme pack comprises the following steps:
step 702, obtaining a theme selected on an interface of a player and a corresponding player theme pack, where the player theme pack includes a first player theme pack and a second player theme pack.
The player refers to software capable of playing video or audio files stored in the form of digital signals, or an electronic device product having a function of playing video or audio files. The player may be a video player, an audio player, a picture player, etc., without limitation.
The player theme may be applied in player software of an electronic device. The player theme is a style of player in an electronic device. The electronic device can configure a corresponding player theme by downloading a certain player theme pack. The player theme pack comprises two player theme packs which are a first player theme pack and a second player theme pack respectively. The first player theme pack and the second player theme pack are player theme packs with matched player themes. For example, the first player theme pack and the second player theme pack are both player theme packs corresponding to the player theme a. The first player theme pack and the second player theme pack may each include at least one of a background picture and an icon, but are not limited thereto.
Specifically, the first electronic device obtains a player theme selected on a player theme interface and a player theme pack corresponding to the player theme. The format of the player theme pack may specifically be xml (Extensible Markup Language) format. The first electronic device can analyze the player theme pack to obtain a first player theme pack and a second player theme pack. For example, a first player theme pack is adapted to a first electronic device and a second player theme pack is adapted to a second electronic device.
Parsing and rendering based on a first player theme pack, comprising:
step 704, parsing and rendering are performed based on the first player theme pack.
Specifically, the first electronic device parses the player theme pack to obtain a first player theme pack. The first electronic equipment analyzes the first player theme pack to obtain the analyzed first player theme pack. And the first electronic equipment renders based on the parsed first player theme pack.
Sending a second theme pack to a second electronic device connected to the first electronic device, including:
step 706, sending a second player theme pack corresponding to the player to a second electronic device connected to the first electronic device, where the second player theme pack is used to instruct the second electronic device to analyze the second player theme pack and render the player based on the analyzed second player theme pack.
Specifically, the first electronic device sends a second player theme pack to a second electronic device connected with the first electronic device. And after receiving the second player theme pack, the second electronic device can display whether the configuration of the second player theme pack is agreed or not on the interface, and when an instruction for agreeing to configure the second player theme pack is obtained, the second electronic device analyzes the second player theme pack and renders based on the analyzed second player theme pack. I.e. the theme packs corresponding to different players may be different. For example, player a corresponds to a theme and player B corresponds to B theme.
In the theme rendering method in this embodiment, the selected player theme and the corresponding player theme pack are obtained, the player theme pack includes a first player theme pack and a second player theme pack, the first player theme pack and the second player theme pack are respectively applied to different types of electronic devices, and the player themes of the first player theme pack and the second player theme pack are matched, so that the first electronic device analyzes and renders the first player theme pack, and the second electronic device analyzes and renders the second player theme pack, which can automatically match the player themes of the first electronic device and the second electronic device, and does not require a user to configure player themes twice, thereby simplifying user operation and improving player theme rendering efficiency.
In one embodiment, as shown in fig. 8, a flowchart of a theme rendering method in another embodiment is shown. A theme rendering method is applied to a second electronic device and comprises the following steps:
step 802, receiving a second theme pack sent by a first electronic device connected to a second electronic device, where the second theme pack is obtained by the first electronic device analyzing a theme pack corresponding to a selected theme, and the theme pack includes a first theme pack and a second theme pack, the first theme pack and the second theme pack are theme packs corresponding to different types of electronic devices and having themes matched, and the first theme pack is used to instruct the first electronic device to perform analysis and rendering based on the first theme pack.
Specifically, the first electronic device obtains the selected theme and the corresponding theme pack, and analyzes the theme pack to obtain a first theme pack and a second theme pack. The first theme pack and the second theme pack correspond to different types of electronic equipment and are theme packs with matched themes. The first electronic equipment analyzes the first theme pack and renders the first theme pack based on the analyzed first theme pack. The first electronic device sends the second theme pack to a second electronic device connected with the first electronic device. And the second electronic equipment receives the second theme pack sent by the first electronic equipment.
And step 804, analyzing the second theme pack, and rendering based on the analyzed second theme pack.
Specifically, the second electronic device parses the second theme pack, and renders the corresponding software program based on the parsed second theme pack.
In the theme rendering method in this embodiment, by receiving the second theme pack sent by the first electronic device connected to the second electronic device, where the first theme pack and the second theme pack are respectively applied to different types of electronic devices, and the themes of the first theme pack and the second theme pack are matched, the first electronic device parses and renders the first theme pack, and the second electronic device parses and renders the second theme pack, the themes of the first electronic device and the second electronic device can be automatically matched, a user does not need to configure two themes, user operation is simplified, and theme rendering efficiency is improved.
In one embodiment, parsing the second theme pack and rendering based on the parsed second theme pack includes: when the second electronic equipment is wearable equipment, a dial plate engine is loaded on the desktop, and the dial plate theme pack is analyzed through the dial plate engine and rendered based on the analyzed dial plate theme pack.
Specifically, after receiving the dial theme pack, the second electronic device stores the dial theme pack in a designated directory. A set of dial plate engine is arranged in a system of the wearable device. And the dial plate engine is used for directly analyzing and rendering the dial plate theme pack on the storage equipment. The dial plate engine can read the xml file and the materials such as pictures and sound resources needed to be used from the dial plate resource package, and analyzes the rules in the xml file to render the xml file into the actually displayed dial plate.
According to the theme rendering method in the embodiment, when the second electronic device is a wearable device, the dial plate engine is loaded on the desktop, the dial plate theme pack is analyzed through the dial plate engine and rendered based on the analyzed dial plate theme pack, themes of the first electronic device and the second electronic device can be automatically matched, a linkage effect is generated between the theme of the first electronic device and the theme of the second electronic device, a user does not need to configure the themes twice, user operation is simplified, and theme rendering efficiency is improved.
It should be understood that although the steps in the flowcharts of fig. 2, and 5 to 8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, and 5 through 8 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
Fig. 9 is a block diagram of a structure of a theme rendering apparatus of an embodiment. As shown in fig. 9, a theme rendering apparatus includes an acquisition module 902, a first rendering module 904, and a transmission module 906, wherein:
an obtaining module 902, configured to obtain a selected theme and a corresponding theme pack, where the theme pack includes a first theme pack and a second theme pack, and the first theme pack and the second theme pack correspond to different types of electronic devices and are theme-matched;
a first rendering module 904 for parsing and rendering based on the first theme pack;
a sending module 906, configured to send a second theme pack to a second electronic device connected to the first electronic device, where the second theme pack is used to instruct the second electronic device to perform parsing and rendering based on the second theme pack.
The theme rendering device in this embodiment obtains the selected theme and the corresponding theme pack, and the theme pack includes a first theme pack and a second theme pack, where the first theme pack and the second theme pack are respectively applied to different types of electronic devices, and the themes of the first theme pack and the second theme pack are matched, then the first electronic device parses and renders the first theme pack, and the second electronic device parses and renders the second theme pack, so that the themes of the first electronic device and the second electronic device can be automatically matched, and the theme of the first electronic device and the theme of the second electronic device generate a linkage effect, and there is no need for a user to configure two themes, thereby simplifying user operation, improving theme rendering efficiency, and allowing the user to feel that the first electronic device and the second electronic device are devices associated with each other, and to have more interest.
In one embodiment, the theme rendering device further comprises an analysis module, and the analysis module is used for analyzing the theme pack to obtain the first theme pack and the dial theme pack. The sending module 906 is configured to send a dial theme package to the wearable device connected to the first electronic device, where the dial theme package is used to instruct the wearable device to parse the dial theme package and render the dial based on the parsed dial theme package.
The theme rendering device in this embodiment sends the dial plate theme package to the wearable device, and then the wearable device can parse the dial plate theme package and render the dial plate based on the parsed dial plate theme package, can realize the theme phase-match of first electronic equipment and wearable device, simplifies user operation, improves theme rendering efficiency.
In one embodiment, the theme rendering apparatus further includes a parsing module. The analysis module is used for the theme rendering device in the embodiment, and sends the dial plate theme package to the wearable device, so that the wearable device can analyze the dial plate theme package and render the dial plate based on the analyzed dial plate theme package, the theme matching between the first electronic device and the wearable device can be realized, the user operation is simplified, and the theme rendering efficiency is improved.
In the theme rendering apparatus in this embodiment, the first theme pack is analyzed to obtain the first theme background, the size of the first theme background is adjusted to obtain the second theme background applicable to the second electronic device, and the dial theme pack is generated based on the second theme background, so that the backgrounds of the first electronic device and the wearable device can be matched, the user operation is simplified, and the theme rendering efficiency is improved.
In an embodiment, the obtaining module 902 is configured to obtain a browser theme selected on an interface of a browser and a corresponding browser theme pack, where the browser theme pack includes a first browser theme pack and a second browser theme pack. The first rendering module 904 is for parsing and rendering based on the first browser theme pack. The sending module 906 is configured to send a second browser theme pack corresponding to the browser to a second electronic device connected to the first electronic device, where the second browser theme pack is used to instruct the second electronic device to analyze the second browser theme pack and render the browser based on the analyzed second browser theme pack.
In the theme rendering device in this embodiment, the selected theme and the corresponding theme pack are obtained, the theme pack includes a first browser theme pack and a second browser theme pack, the first browser theme pack and the second browser theme pack are respectively applied to different types of electronic devices, and the themes of the first browser theme pack and the second browser theme pack are matched, so that the first electronic device parses and renders the first browser theme pack, and the second electronic device parses and renders the second browser theme pack, which can automatically match the browser themes of the first electronic device and the second electronic device, and does not require a user to configure browser themes twice, thereby simplifying user operation and improving browser theme rendering efficiency.
In an embodiment, the obtaining module 902 is configured to obtain an instant messaging theme selected on an interface of an instant messaging tool and a corresponding instant messaging theme pack, where the instant messaging theme pack includes a first instant messaging theme pack and a second instant messaging theme pack. The first rendering module 904 is configured to perform parsing rendering based on the first instant messaging theme pack. The sending module 906 is configured to send a second instant messaging theme pack corresponding to the instant messaging tool to a second electronic device connected to the first electronic device, where the second instant messaging theme pack is used to instruct the second electronic device to analyze the second instant messaging theme pack and render the instant messaging tool based on the analyzed second instant messaging theme pack.
In the theme rendering device in this embodiment, the selected instant messaging theme and the corresponding instant messaging theme pack are obtained, the instant messaging theme pack includes a first instant messaging theme pack and a second instant messaging theme pack, the first instant messaging theme pack and the second instant messaging theme pack are respectively applied to different types of electronic devices, and the instant messaging themes of the first instant messaging theme pack and the second instant messaging theme pack are matched, so that the first electronic device parses and renders the first instant messaging theme pack, and the second electronic device parses and renders the second instant messaging theme pack, which can automatically match the instant messaging themes of the first electronic device and the second electronic device, and does not require a user to configure two instant messaging themes, simplify user operation, and improve instant messaging theme rendering efficiency.
In an embodiment, the obtaining module 902 is configured to obtain a theme selected on an interface of a player and a corresponding player theme pack, where the player theme pack includes a first player theme pack and a second player theme pack. The rendering module is used for analyzing and rendering based on the first player theme pack. The sending module 906 is configured to send a second player theme pack corresponding to the player to a second electronic device connected to the first electronic device, where the second player theme pack is used to instruct the second electronic device to parse the second player theme pack and render the player based on the parsed second player theme pack.
The theme rendering device in this embodiment obtains the selected player theme and the corresponding player theme pack, where the player theme pack includes a first player theme pack and a second player theme pack, the first player theme pack and the second player theme pack are respectively applied to different types of electronic devices, and the player themes of the first player theme pack and the second player theme pack are matched, so that the first electronic device parses and renders the first player theme pack, and the second electronic device parses and renders the second player theme pack, which can automatically match the player themes of the first electronic device and the second electronic device, and does not require a user to configure player themes twice, thereby simplifying user operation and improving player theme rendering efficiency.
Fig. 10 is a block diagram illustrating a structure of a theme rendering apparatus according to another embodiment. As shown in fig. 9, a theme rendering apparatus includes a receiving module 1002 and a second rendering module 1004, wherein:
the receiving module 1002 is configured to receive a second theme pack sent by a first electronic device connected to a second electronic device, where the second theme pack is obtained by the first electronic device by analyzing a theme pack corresponding to a selected theme, the theme pack includes a first theme pack and a second theme pack, the first theme pack and the second theme pack are theme packs corresponding to different types of electronic devices and having themes matched, and the first theme pack is used to instruct the first electronic device to perform analysis and rendering based on the first theme pack;
and a second rendering module 1004, configured to parse the second theme pack and render based on the parsed second theme pack.
In the theme rendering apparatus in this embodiment, by receiving the second theme pack sent by the first electronic device connected to the second electronic device, where the first theme pack and the second theme pack are respectively applied to different types of electronic devices, and the themes of the first theme pack and the second theme pack are matched, the first electronic device parses and renders the first theme pack, and the second electronic device parses and renders the second theme pack, the themes of the first electronic device and the second electronic device can be automatically matched, a user does not need to configure two themes, user operation is simplified, and theme rendering efficiency is improved.
In one embodiment, the second rendering module 1004 is configured to load a dial plate engine on a desktop when the second electronic device is a wearable device, parse the dial plate theme pack through the dial plate engine, and render based on the parsed dial plate theme pack.
In the theme rendering device in this embodiment, when the second electronic device is a wearable device, the dial plate engine is loaded on the desktop, the dial plate theme package is analyzed by the dial plate engine and rendered based on the analyzed dial plate theme package, so that the themes of the first electronic device and the second electronic device can be automatically matched, the theme of the first electronic device and the theme of the second electronic device generate a linkage effect, the user does not need to configure two themes, the user operation is simplified, and the theme rendering efficiency is improved.
The division of each module in the theme rendering apparatus is merely used for illustration, and in other embodiments, the theme rendering apparatus may be divided into different modules as needed to complete all or part of the functions of the theme rendering apparatus.
For specific limitations of the theme rendering device, reference may be made to the above limitations of the theme rendering method, which are not described herein again. The respective modules in the above-described theme rendering apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 11 is a schematic diagram of an internal structure of an electronic device in one embodiment. The electronic device may specifically be the first electronic device or the second electronic device in this embodiment of the application. As shown in fig. 10, the electronic device includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing a theme rendering method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of Sales (POS), a vehicle-mounted computer, and a wearable device.
The implementation of each module in the subject rendering apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the theme rendering method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a method of theme rendering.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A theme rendering method is applied to a first electronic device, and comprises the following steps:
the method comprises the steps of obtaining a selected theme and a corresponding theme pack, wherein the theme pack comprises a first theme pack and a second theme pack, and the first theme pack and the second theme pack correspond to different types of electronic equipment and are theme-matched;
parsing and rendering based on the first theme pack;
and sending the second theme pack to a second electronic device connected with the first electronic device, wherein the second theme pack is used for instructing the second electronic device to perform analysis and rendering based on the second theme pack.
2. The method of claim 1, further comprising:
analyzing the theme pack to obtain a first theme pack and a dial theme pack;
the sending the second theme pack to a second electronic device connected to the first electronic device includes:
and sending the dial plate theme package to wearable equipment connected with the first electronic equipment, wherein the dial plate theme package is used for indicating the wearable equipment to analyze the dial plate theme package and rendering a dial plate based on the analyzed dial plate theme package.
3. The method of claim 2, wherein parsing the theme pack to obtain a first theme pack and a dial theme pack comprises:
analyzing the theme pack to obtain a first theme pack;
analyzing the first theme pack to obtain a first theme background;
carrying out size adjustment processing on the first theme background to obtain a second theme background applicable to the second electronic equipment;
generating a dial theme pack based on the second theme background.
4. The method of claim 1, wherein the obtaining the selected theme and the corresponding theme pack comprises:
the method comprises the steps of obtaining a browser theme selected on an interface of a browser and a corresponding browser theme pack, wherein the browser theme pack comprises a first browser theme pack and a second browser theme pack;
the parsing and rendering based on the first theme pack includes:
parsing and rendering based on the first browser theme pack;
the sending the second theme pack to a second electronic device connected to the first electronic device includes:
and sending a second browser theme pack corresponding to the browser to a second electronic device connected with the first electronic device, wherein the second browser theme pack is used for instructing the second electronic device to analyze the second browser theme pack and render the browser based on the analyzed second browser theme pack.
5. The method of claim 1, wherein the obtaining the selected theme and the corresponding theme pack comprises:
the method comprises the steps of obtaining an instant messaging theme selected on an interface of an instant messaging tool and a corresponding instant messaging theme pack, wherein the instant messaging theme pack comprises a first instant messaging theme pack and a second instant messaging theme pack;
the parsing and rendering based on the first theme pack includes:
analyzing and rendering based on the first instant messaging theme pack;
the sending the second theme pack to a second electronic device connected to the first electronic device includes:
and sending a second instant messaging theme pack corresponding to the instant messaging tool to second electronic equipment connected with the first electronic equipment, wherein the second instant messaging theme pack is used for indicating the second electronic equipment to analyze the second instant messaging theme pack and rendering the instant messaging tool based on the analyzed second instant messaging theme pack.
6. The method of claim 1, wherein the obtaining the selected theme and the corresponding theme pack comprises:
obtaining a theme selected on an interface of a player and a corresponding player theme pack, wherein the player theme pack comprises a first player theme pack and a second player theme pack;
the parsing and rendering based on the first theme pack includes:
parsing and rendering based on the first player theme pack;
the sending the second theme pack to a second electronic device connected to the first electronic device includes:
and sending a second player theme pack corresponding to the player to a second electronic device connected with the first electronic device, wherein the second player theme pack is used for instructing the second electronic device to analyze the second player theme pack and render the player based on the analyzed second player theme pack.
7. A theme rendering method is applied to a second electronic device, and comprises the following steps:
receiving a second theme pack sent by first electronic equipment connected with the second electronic equipment, wherein the second theme pack is obtained by analyzing a theme pack corresponding to a selected theme by the first electronic equipment, the theme pack comprises a first theme pack and a second theme pack, the first theme pack and the second theme pack correspond to different types of electronic equipment and are matched in theme, and the first theme pack is used for indicating the first electronic equipment to analyze and render based on the first theme pack;
and analyzing the second theme pack, and rendering based on the analyzed second theme pack.
8. The method of claim 7, wherein parsing the second theme pack and rendering based on the parsed second theme pack comprises:
and when the second electronic equipment is wearable equipment, loading a dial plate engine on a desktop, analyzing the dial plate theme package through the dial plate engine, and rendering based on the analyzed dial plate theme package.
9. A theme rendering apparatus, comprising:
the system comprises an acquisition module, a selection module and a display module, wherein the acquisition module is used for acquiring a selected theme and a corresponding theme package, the theme package comprises a first theme package and a second theme package, and the first theme package and the second theme package correspond to different types of electronic equipment and are theme-matched;
the first rendering module is used for analyzing and rendering based on the first theme pack;
a sending module, configured to send the second theme pack to a second electronic device connected to the first electronic device, where the second theme pack is used to instruct the second electronic device to perform parsing and rendering based on the second theme pack.
10. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202010603370.XA 2020-06-29 2020-06-29 Theme rendering method and device, electronic equipment and computer-readable storage medium Pending CN113934477A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010603370.XA CN113934477A (en) 2020-06-29 2020-06-29 Theme rendering method and device, electronic equipment and computer-readable storage medium
PCT/CN2021/100018 WO2022001647A1 (en) 2020-06-29 2021-06-15 Theme rendering method and apparatus, and electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010603370.XA CN113934477A (en) 2020-06-29 2020-06-29 Theme rendering method and device, electronic equipment and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN113934477A true CN113934477A (en) 2022-01-14

Family

ID=79272721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010603370.XA Pending CN113934477A (en) 2020-06-29 2020-06-29 Theme rendering method and device, electronic equipment and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113934477A (en)
WO (1) WO2022001647A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515279B (en) * 2020-04-09 2024-01-12 Oppo广东移动通信有限公司 Dial generation method, dial generation device, electronic equipment, intelligent watch and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170025153A1 (en) * 2013-03-05 2017-01-26 Wevideo, Inc. Theme-based effects multimedia editor
US20170099602A1 (en) * 2015-10-06 2017-04-06 Samsung Electronics Co., Ltd. Theme applying method and electronic device for performing the same

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113596175A (en) * 2014-03-18 2021-11-02 小米科技有限责任公司 Scene synchronization method, terminal, server and system
CN105630436B (en) * 2014-10-28 2018-11-02 Tcl集团股份有限公司 The data sharing method and device of a kind of shared lower desktop layouts of multi-screen
CN106714143B (en) * 2015-07-21 2020-01-21 华为终端有限公司 Terminal and synchronization method thereof
CN105847916A (en) * 2016-04-29 2016-08-10 乐视控股(北京)有限公司 Theme synchronizing and switching method and system
CN110213648B (en) * 2019-06-05 2022-09-16 重庆菜鸽途讯科技有限公司 Same-screen method, system, mobile terminal and computer readable storage medium
CN111147549B (en) * 2019-12-06 2023-05-12 珠海格力电器股份有限公司 Terminal desktop content sharing method, device, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170025153A1 (en) * 2013-03-05 2017-01-26 Wevideo, Inc. Theme-based effects multimedia editor
US20170099602A1 (en) * 2015-10-06 2017-04-06 Samsung Electronics Co., Ltd. Theme applying method and electronic device for performing the same

Also Published As

Publication number Publication date
WO2022001647A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
CN109358936B (en) Information processing method, device, storage medium, electronic device and system
CN114629865B (en) Instant messaging system for interacting with dynamically expanding applications
CN106569800B (en) Front-end interface generation method and device
EP2642382A1 (en) Method of enabling voice input for a visually based interface
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN111580879A (en) Applet running method and device, electronic equipment and computer storage medium
CN105718313A (en) Application operation method and device
CN106055328B (en) For the subject replacement device and method of third-party application
CN106547547B (en) data acquisition method and device
CN111324343B (en) Code generation method and device
US20050080880A1 (en) Presenting remote and local information in a web browser
CN114168460A (en) Remote debugging method, device and storage medium for front-end code in hybrid development
CN104811485A (en) Resource sharing method
CN113835571A (en) Terminal device, information display method and storage medium
CN114385164A (en) Page generation and rendering method and device, electronic equipment and storage medium
Hernandez War of the mobile browsers
CN105446625A (en) Picture pasting method and apparatus based on browser
CN106789832B (en) Data processing method, device and system in call process
US20240119216A1 (en) Method and apparatus, electronic device and storage media for content presentation
CN113934477A (en) Theme rendering method and device, electronic equipment and computer-readable storage medium
CN110442416B (en) Method, electronic device and computer-readable medium for presenting information
CN116112457A (en) Method, device, computer equipment and storage medium for notifying message
CN111079040A (en) Resource sniffing method, device, terminal, server and storage medium
EP4351117A1 (en) Information display method and apparatus, and electronic device
CN111327766B (en) Information sharing method, terminal and readable 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