CN111240718A - Theme updating method and device, electronic equipment and medium - Google Patents

Theme updating method and device, electronic equipment and medium Download PDF

Info

Publication number
CN111240718A
CN111240718A CN202010060159.8A CN202010060159A CN111240718A CN 111240718 A CN111240718 A CN 111240718A CN 202010060159 A CN202010060159 A CN 202010060159A CN 111240718 A CN111240718 A CN 111240718A
Authority
CN
China
Prior art keywords
information
theme
application program
target
server
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
CN202010060159.8A
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.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Infinite Light Field Technology 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 Beijing Infinite Light Field Technology Co Ltd filed Critical Beijing Infinite Light Field Technology Co Ltd
Priority to CN202010060159.8A priority Critical patent/CN111240718A/en
Publication of CN111240718A publication Critical patent/CN111240718A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the disclosure provides a theme updating method and device, electronic equipment and a medium. The method comprises the following steps: the method comprises the steps of obtaining target theme information of an application program, wherein the target theme information comprises display information of each theme element in the application program, determining display modes corresponding to each created page element in the application program based on the target theme information, and displaying each created page element in the application program based on the determined display modes so as to update the theme of the application program. The embodiment of the disclosure realizes that the whole application program does not need to be updated, can reduce the flow consumption of the user, reduce the theme updating complexity of the application program, reduce the theme updating time of the application program, and further improve the user experience.

Description

Theme updating method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a theme updating method and apparatus, an electronic device, and a medium.
Background
With the continuous development of computer technology, the variety of application programs is increasing, and the application programs become essential tools in daily life and work of people. In order to repair a bug (bug) of an application program and optimize the application program, the application program needs to be updated, wherein generally, the theme of the application program can be updated so as to improve the functions of the application program and beautify the interface of the application program.
The application theme refers to the interface style of the application, and comprises the color of a window, the layout of a control, the icon style and other visual contents. At present, when an application theme is updated, the whole application needs to be updated, that is, the server sends an application update package to the client, the client needs to download and install the application update package, and the updated application is re-run to complete the update of the application theme. The mode of updating the theme of the application program by updating the whole application program greatly consumes the flow of a user, causes higher complexity of updating the theme of the application program and longer time consumption, brings great inconvenience to the user and further reduces the user experience.
Disclosure of Invention
The present disclosure provides a theme update method, apparatus, electronic device, and medium, which may solve at least one of the above technical problems.
In a first aspect, a theme updating method is provided, and the method includes:
acquiring target theme information of the application program, wherein the target theme information comprises display information of each theme element in the application program;
determining a display mode corresponding to each established page element in the application program based on the target subject information;
and displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
In a second aspect, there is provided a theme updating apparatus, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target theme information of an application program, and the target theme information comprises display information of each theme element in the application program;
the first determining module is used for determining display modes corresponding to all established page elements in the application program based on the target subject information;
and the display module is used for displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: and executing the operation corresponding to the theme updating method shown in the first aspect.
In a fourth aspect, there is provided a computer-readable medium on which a computer program is stored, which program, when executed by a processor, implements the theme update method shown in the first aspect.
The technical scheme provided by the disclosure has the following beneficial effects:
compared with the prior art, the theme updating method, the device, the electronic equipment and the medium have the advantages that the target theme information of the application program is obtained, the target theme information comprises the display information of each theme element in the application program, the display modes corresponding to each created page element in the application program are determined based on the target theme information, each created page element in the application program is displayed based on the determined display modes, and therefore the theme of the application program is updated. According to the method and the device, each page element created in the application program is displayed based on the acquired target theme information, the theme update of the application program is realized, the whole application program does not need to be updated, the flow consumption of a user can be reduced, the theme update complexity of the application program is reduced, the theme update time of the application program is reduced, and the user experience is further improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flowchart of a theme update method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a theme update apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The embodiment of the present disclosure provides a theme updating method, which may be executed by a terminal device, as shown in fig. 1, the method includes:
step S101, obtaining target theme information of the application program, wherein the target theme information comprises display information of each theme element in the application program.
For the embodiment of the disclosure, the target theme information includes display information of at least one theme element in the application, and the theme element includes a background, a font, a control and the like. In the embodiment of the present disclosure, the display information of the background includes a background color, the display information of the font includes at least one of a font size, a font style, and a font color, and the display information of the control includes at least one of a control border shape, a control border color, and a control internal color.
Step S102, determining the display modes corresponding to the page elements established in the application program based on the target subject information.
For the embodiment of the disclosure, each page element created in the application program includes information such as a control, text, and a background picture created in the application program page. In the embodiment of the present disclosure, a display manner of a background picture created in an application page is determined based on display information of a background in target theme information, for example, a color of the created background picture is determined to be red, a display manner of each character created in the application page is determined based on display information of a font in the target theme information, for example, each character is determined to be a bold-type five-pointed character with an underlined line and a color of blue, a display manner of each control created in the application page is determined based on display information of a control in the target theme information, for example, a shape of a frame of each control is determined to be circular and a color of the frame is determined to be yellow, and an internal color of each control is determined to be purple.
And step S103, displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
For the embodiment of the present disclosure, the theme of the application is updated to the display mode corresponding to each of the determined created page elements, each of the created page elements in the application is displayed, that is, the created background picture in the application page is displayed based on the display mode of the created background picture in the application page, each of the created characters in the application page is displayed based on the display mode of each of the created characters in the application page, and each of the created controls in the application page is displayed based on the display mode of each of the created controls in the application page.
Compared with the prior art, the theme updating method provided by the embodiment of the disclosure updates the theme of the application program by acquiring the target theme information of the application program, wherein the target theme information comprises display information of each theme element in the application program, determining the display mode corresponding to each created page element in the application program based on the target theme information, and displaying each created page element in the application program based on the determined display mode. According to the method and the device for updating the theme of the application program, each page element created in the application program is displayed based on the acquired target theme information, the theme of the application program is updated without updating the whole application program, the flow consumption of a user can be reduced, the theme updating complexity of the application program is reduced, the theme updating time of the application program is reduced, and the user experience is further improved.
In step S101 of the theme update method according to the embodiment of the present disclosure, the target theme information of the application program may be acquired from the server, or the target theme information of the application program may be acquired locally, and the two acquisition methods will be described in detail below.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may further include: when a first preset condition is met, sending a theme information acquisition request to a server; and receiving target subject information sent by the server or indication information corresponding to the target subject information.
Wherein, satisfying the first preset condition includes: at least one of reaching a first preset time interval, detecting a login request for the application program, and detecting that a user triggers an acquisition request for the subject information.
For the embodiment of the present disclosure, a first preset time interval may be reached, and an acquisition request of the subject information is sent to the server, for example, an acquisition request of the subject information is sent to the server every 5 minutes; or sending a request for acquiring the subject information to the server when a login request for the application program is detected, for example, sending a request for acquiring the subject information to the server when a login request triggered when the user logs in the application program is detected; the method may further include sending the request for obtaining the theme information to the server when it is detected that the user triggers the request for obtaining the theme information, for example, sending the request for obtaining the theme information to the server when it is detected that the request for obtaining the theme information is triggered when the user triggers the refresh control of the theme information.
Further, the client receives target subject information or indication information corresponding to the target subject information, which is fed back by the server based on the acquisition request of the subject information. The indication information of the target theme is used for indicating the client to determine the target theme information according to the indication information.
For the embodiment of the disclosure, when the first preset condition is met, the acquisition request of the theme information is sent to the server, and the target theme information sent by the server or the indication information corresponding to the target theme information is received, so that the application program can timely receive the target theme information or the indication information corresponding to the target theme information, the theme information of the application program can be timely updated, the application program is beautified, and the user experience is improved.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may include at least one of step a1 (not shown in the figure) and step a2 (not shown in the figure). Wherein the content of the first and second substances,
step A1, the target subject information sent by the server is determined as the target subject information of the application program.
For the embodiment of the disclosure, the client determines the target theme information sent by the server as the target theme information of the application program, so that the client modifies the theme of the application program according to the target theme information, enriches the theme of the application program, beautifies the application program, and improves user experience.
Step A2, the subject information indicated by the indication information is obtained from the local based on the indication information corresponding to the target subject information, and the obtained subject information is used as the target subject information of the application program.
For example, three themes are preconfigured locally: the three themes respectively correspond to the indicating information 1, 2 and 3. If the indication information corresponding to the target theme is 2, the client may obtain the theme information indicated by the indication information 2, that is, the theme B, from the local as the target theme information of the application program.
For the embodiment of the disclosure, at least one kind of theme information is preconfigured locally, the client can obtain the theme information indicated by the indication information from the at least one kind of theme information preconfigured locally based on the indication information corresponding to the target theme information, because the client only receives the indication information corresponding to the target theme information, traffic can be saved, and the theme information indicated by the indication information can be obtained locally based on the indication information, so that the client modifies the theme of the application program according to the target theme information, enriches the theme of the application program, beautifies the application program, and improves user experience.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may include: and receiving the updated theme information sent by the server as the target theme information of the application program.
And the updated theme information is sent when the server detects that the theme information currently used by the client is updated.
For the embodiment of the present disclosure, when the server detects that the theme information currently used by the client is updated, the updated theme information is sent to the client, the client receives the updated theme information sent by the server, and the updated theme information is used as the target theme information of the application program, further, the theme of the application program is updated by using the manners of step S102 and step S103, so that the application program theme is updated in time, and the user experience is improved.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may include: and receiving prompt information sent by the server, and acquiring updated theme information from the server as target theme information of the application program when detecting the confirmation operation of the user for the prompt information.
The prompt information is sent when the server detects that the theme information currently used by the client is updated, and the prompt information is used for prompting the user whether to update the theme.
For the embodiment of the present disclosure, when the server detects that the theme information currently used by the client is updated, the server sends a prompt message to the client, where the prompt message is used to prompt the user whether to update the theme, for example, "if the current theme is updated, please confirm whether to update the theme"; the client receives prompt information sent by the server, displays the prompt information, and sends confirmation operation information of the user to the server when detecting that the user triggers confirmation operation aiming at the prompt information; the server receives the confirmation operation information sent by the client and sends the updated theme information to the client; and the client acquires the updated theme information from the server as the target theme information of the application program. The user may trigger the confirmation operation for the prompt information, and the confirmation operation for the prompt information may be triggered when the user triggers the confirmation control related to the prompt information.
For the embodiment of the disclosure, when the server detects that the theme information currently used by the client is updated, the server sends the prompt information, the client receives the prompt information so that the user can confirm whether to update the theme, and user experience is improved, and when the client detects that the user confirms the prompt information, the updated theme information is obtained from the server and is used as the target theme information of the application program, further, the theme of the application program is updated by using the methods of step S102 and step S103, so that the application program theme is updated in time, and user experience is further improved.
In another possible implementation manner of the embodiment of the present disclosure, step S101 may include: and when the second preset condition is met, acquiring target theme information of the application program from the local.
Wherein, satisfying the second preset condition may include: at least one of reaching a second preset time interval, detecting a login operation for the application program, and detecting that a user triggers an acquisition operation for the subject information.
For the embodiment of the present disclosure, when the second preset time interval is reached, the target theme information of the application program may be obtained from the local, for example, the target theme information of the application program may be obtained from the local every 10 minutes; the target theme information of the application program can be acquired from the local by detecting the login operation aiming at the application program, for example, the target theme information of the application program is acquired from the local by detecting the operation of the user for logging in the application program; the method can also be used for detecting that the user triggers the obtaining operation aiming at the theme information and obtaining the target theme information of the application program from the local, and for example, when the obtaining operation aiming at the theme information is triggered when the user triggers the updating control of the theme, the target theme information of the application program is obtained from the local.
For the embodiment of the disclosure, at least one theme can be pre-configured locally, and target theme information of an application program can be randomly acquired from the local; or determining the target theme information of the application program obtained from the local at this time based on the target theme information of the application program obtained from the local last time.
For the embodiment of the present disclosure, when the second preset condition is met, the target theme information of the application program is obtained from the local, and further, the theme of the application program is updated by using the manner of step S102 and step S103, so that the application program theme is updated in time, the application program is beautified, and the user experience is improved.
In the theme updating method according to the embodiment of the present disclosure, in step S101, the target theme information of the application program may be acquired in any one of the manners described above, and then step S102 and step S103 are executed, where a specific implementation manner of step S102 is as follows.
In another possible implementation manner of the embodiment of the present disclosure, step S102 may specifically include: changing attribute information corresponding to each created page element in the application program based on the target theme information; and determining the display modes corresponding to the page elements respectively based on the determined attribute information.
For the embodiment of the present disclosure, each page element created in the application has been initialized, and each page element has its corresponding attribute information. In the embodiment of the present disclosure, the attribute information corresponding to each created page element in the application is changed based on the target topic information, that is, each created page element in the application is traversed, and the attribute information of each page element in the application is changed based on the target topic information. Further, the display modes corresponding to the page elements are determined based on the determined attribute information of the page elements, so that the page elements established in the application program are displayed based on the determined display modes, the theme update of the application program is realized, the application program is beautified, and the user experience is improved.
In another possible implementation manner of the embodiment of the present disclosure, the method may further include: when detecting that the page elements in the application program are changed, determining a display mode corresponding to the changed page elements based on the target theme information; and displaying the changed page elements based on the display mode corresponding to the changed page elements.
The above steps may be executed before step S102, before step S103, after step S103, or even simultaneously with step S102 or step S103, and are not limited in the embodiment of the present disclosure.
For the embodiment of the present disclosure, each page element in the application is changed, that is, a new page element is created, for example, a new page element is created when a page of the application is refreshed, and a new page element is also created when a new page is generated in the application. In the embodiment of the disclosure, when it is detected that the page element in the application program is changed, the attribute information of the changed page element is determined based on the target theme information, the display mode corresponding to the changed page element is determined based on the attribute information of the changed page element, and the changed page element is displayed based on the display mode corresponding to the changed page element, so that the changed page element is displayed based on the target theme information of the application program, the application program is beautified, and the user experience is improved.
The theme updating method is specifically explained from the perspective of the method steps, and a theme updating apparatus is introduced from the perspective of a virtual module or a virtual unit, as follows:
an embodiment of the present disclosure provides a theme update apparatus, as shown in fig. 2, the theme update apparatus 20 may include: an acquisition module 201, a first determination module 202, and a display module 203, wherein,
the obtaining module 201 is configured to obtain target theme information of the application, where the target theme information includes display information of each theme element in the application.
The first determining module 202 is configured to determine, based on the target theme information, display manners corresponding to each created page element in the application program.
And the display module 203 is configured to display each page element created in the application program based on the determined display manner, so as to update the theme of the application program.
In another possible implementation manner of the embodiment of the present disclosure, the theme update apparatus 20 further includes a sending module and a receiving module, wherein,
and the sending module is used for sending the acquisition request of the theme information to the server when the first preset condition is met.
And the receiving module is used for receiving the target subject information sent by the server or the indication information corresponding to the target subject information.
Wherein, satisfying the first preset condition includes at least one of:
reaching a first preset time interval;
detecting a login request for the application;
and detecting that the user triggers an acquisition request for the subject information.
In another possible implementation manner of the embodiment of the present disclosure, the obtaining module 201 includes at least one of a first determining unit and a first obtaining unit, wherein,
and the first determining unit is used for determining the target subject information sent by the server as the target subject information of the application program.
And the first acquisition unit is used for acquiring the theme information indicated by the indication information from local based on the indication information corresponding to the target theme information as the target theme information of the application program.
In another possible implementation manner of the embodiment of the present disclosure, the obtaining module 201 includes a first receiving unit, wherein,
the first receiving unit is used for receiving the updated theme information sent by the server as the target theme information of the application program, and the updated theme information is sent when the server detects that the theme information currently used by the client is updated.
In another possible implementation manner of the embodiment of the present disclosure, the obtaining module 201 includes a second receiving unit and a second obtaining unit, wherein,
and the second receiving unit is used for receiving prompt information sent by the server, wherein the prompt information is sent when the server detects that the theme information currently used by the client is updated, and the prompt information is used for prompting the user whether to update the theme.
And the second acquisition unit is used for acquiring the updated theme information from the server as the target theme information of the application program when the confirmation operation of the user for the prompt information is detected.
In another possible implementation manner of the embodiment of the present disclosure, the obtaining module 201 includes a third obtaining unit, wherein,
and the third acquisition unit is used for acquiring the target theme information of the application program from the local area when a second preset condition is met.
Wherein, satisfying the second preset condition includes at least one of:
reaching a second preset time interval;
detecting a login operation for an application program;
and detecting that the user triggers the acquisition operation for the theme information.
In another possible implementation manner of the embodiment of the present disclosure, the first determining module 202 includes a changing unit and a second determining unit, wherein,
and the changing unit is used for changing the attribute information corresponding to each page element established in the application program based on the target theme information.
And the second determining unit is used for determining the display modes corresponding to the page elements respectively based on the determined attribute information.
In another possible implementation manner of the embodiment of the present disclosure, the theme update module 20 further includes a second determining module and a display module, wherein,
and the second determining module is used for determining a display mode corresponding to the changed page element based on the target theme information when the page element in the application program is detected to be changed.
And the display module is used for displaying the changed page elements based on the display mode corresponding to the changed page elements.
For the embodiment of the present disclosure, the first determining module 202 and the second determining module may be the same determining module, or may also be two different determining modules, the first obtaining unit, the second obtaining unit, and the third obtaining unit may be the same obtaining unit, or may also be different obtaining units, or any two of them may be combined into the same obtaining unit, and the first receiving unit and the second receiving unit may be the same receiving unit, or may also be different receiving units, which is not limited in the embodiment of the present disclosure.
The theme update apparatus 20 provided in the embodiment of the present disclosure is suitable for the above method embodiments, and the implementation principle thereof is similar, and is not described herein again.
Compared with the prior art, the theme updating device provided by the embodiment of the disclosure updates the theme of the application by acquiring the target theme information of the application, wherein the target theme information includes display information of each theme element in the application, determining the display mode corresponding to each created page element in the application based on the target theme information, and displaying each created page element in the application based on the determined display mode. According to the method and the device for updating the theme of the application program, each page element created in the application program is displayed based on the acquired target theme information, the theme of the application program is updated without updating the whole application program, the flow consumption of a user can be reduced, the theme updating complexity of the application program is reduced, the theme updating time of the application program is reduced, and the user experience is further improved.
The subject updating apparatus of the present disclosure is described above from the perspective of a virtual module or a virtual unit, and the electronic device of the present disclosure is described below from the perspective of a physical device.
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., the terminal device of fig. 1) 300 suitable for implementing embodiments of the present disclosure is shown. The electronic device 300 includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: and executing the corresponding operation of the theme updating method shown according to the embodiment of the method.
The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as a processing device 301 described below, and the memory may include at least one of a Read Only Memory (ROM)302, a Random Access Memory (RAM)303, and a storage device 308, which are described below:
as shown in fig. 3, the electronic device 300 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage means 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code 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 means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, 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 or 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 disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either 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. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring target theme information of an application program, wherein the target theme information comprises display information of each theme element in the application program; determining a display mode corresponding to each established page element in the application program based on the target subject information; and displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
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 disclosure. In this regard, 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module or a unit does not in some cases constitute a limitation of the unit itself, and for example, the acquisition module may also be described as a "module that acquires target subject information of an application".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 or 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.
The disclosed embodiment provides an electronic device, and the electronic device in the disclosed embodiment includes: a memory and a processor; at least one program stored in the memory for execution by the processor, which when executed by the processor, implements: the method comprises the steps of obtaining target theme information of an application program, wherein the target theme information comprises display information of each theme element in the application program, determining display modes corresponding to each created page element in the application program based on the target theme information, and displaying each created page element in the application program based on the determined display modes so as to update the theme of the application program. According to the method and the device for updating the theme of the application program, each page element created in the application program is displayed based on the acquired target theme information, the theme of the application program is updated without updating the whole application program, the flow consumption of a user can be reduced, the theme updating complexity of the application program is reduced, the theme updating time of the application program is reduced, and the user experience is further improved.
The electronic apparatus of the present disclosure is described above from the perspective of a physical device, and the computer-readable storage medium of the present disclosure is described below from the perspective of a medium.
The disclosed embodiments provide a computer-readable storage medium having stored thereon a computer program, which, when run on a computer, enables the computer to perform the corresponding content in the aforementioned method embodiments. Compared with the prior art, the target theme information of the application program is obtained, the target theme information comprises display information of each theme element in the application program, the display modes corresponding to each created page element in the application program are determined based on the target theme information, each created page element in the application program is displayed based on the determined display modes, and therefore updating of the theme of the application program is achieved. According to the method and the device for updating the theme of the application program, each page element created in the application program is displayed based on the acquired target theme information, the theme of the application program is updated without updating the whole application program, the flow consumption of a user can be reduced, the theme updating complexity of the application program is reduced, the theme updating time of the application program is reduced, and the user experience is further improved.
According to one or more embodiments of the present disclosure, there is provided a theme update method including:
acquiring target theme information of the application program, wherein the target theme information comprises display information of each theme element in the application program;
determining a display mode corresponding to each established page element in the application program based on the target subject information;
and displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
According to one or more embodiments of the present disclosure, before obtaining target subject information of an application, the method further includes:
when a first preset condition is met, sending a theme information acquisition request to a server;
receiving target subject information sent by a server or indicating information corresponding to the target subject information;
wherein, satisfying the first preset condition includes at least one of:
reaching a first preset time interval;
detecting a login request for an application;
and detecting that the user triggers an acquisition request for the subject information.
According to one or more embodiments of the disclosure, target subject information of an application program is acquired, which includes at least one of the following:
determining the target subject information sent by the server as the target subject information of the application program;
and acquiring the subject information indicated by the indicating information from local based on the indicating information corresponding to the target subject information, and using the subject information as the target subject information of the application program.
According to one or more embodiments of the disclosure, acquiring target subject information of an application program includes:
and receiving updated theme information sent by the server as target theme information of the application program, wherein the updated theme information is sent when the server detects that the theme information currently used by the client is updated.
According to one or more embodiments of the disclosure, acquiring target subject information of an application program includes:
receiving prompt information sent by a server, wherein the prompt information is sent when the server detects that the theme information currently used by the client is updated, and the prompt information is used for prompting a user whether to update the theme;
and when the confirmation operation of the user for the prompt message is detected, acquiring the updated theme information from the server as the target theme information of the application program.
According to one or more embodiments of the disclosure, acquiring target subject information of an application program includes:
when a second preset condition is met, acquiring target theme information of the application program from the local;
wherein, satisfying the second preset condition includes at least one of:
reaching a second preset time interval;
detecting a login operation for an application program;
and detecting that the user triggers the acquisition operation for the theme information.
According to one or more embodiments of the present disclosure, determining a display mode corresponding to each page element created in an application program based on target topic information includes:
changing attribute information corresponding to each created page element in the application program based on the target theme information;
and determining the display modes corresponding to the page elements respectively based on the determined attribute information.
According to one or more embodiments of the present disclosure, further comprising:
when detecting that the page elements in the application program are changed, determining a display mode corresponding to the changed page elements based on the target theme information;
and displaying the changed page elements based on the display mode corresponding to the changed page elements.
According to one or more embodiments of the present disclosure, there is provided a theme update apparatus including:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target theme information of an application program, and the target theme information comprises display information of each theme element in the application program;
the first determining module is used for determining display modes corresponding to all established page elements in the application program based on the target subject information;
and the display module is used for displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
According to one or more embodiments of the present disclosure, the apparatus further comprises a transmitting module and a receiving module, wherein,
the sending module is used for sending a theme information obtaining request to the server when a first preset condition is met;
the receiving module is used for receiving the target subject information sent by the server or the indication information corresponding to the target subject information;
wherein, satisfying the first preset condition includes at least one of:
reaching a first preset time interval;
detecting a login request for an application;
and detecting that the user triggers an acquisition request for the subject information.
According to one or more embodiments of the present disclosure, the obtaining module includes at least one of a first determining unit and a first obtaining unit, wherein,
the first determining unit is used for determining the target subject information sent by the server as the target subject information of the application program;
and the first acquisition unit is used for acquiring the theme information indicated by the indication information from local based on the indication information corresponding to the target theme information as the target theme information of the application program.
According to one or more embodiments of the present disclosure, an acquisition module includes a first receiving unit, wherein,
the first receiving unit is used for receiving the updated theme information sent by the server as the target theme information of the application program, and the updated theme information is sent when the server detects that the theme information currently used by the client is updated.
According to one or more embodiments of the present disclosure, the obtaining module includes a second receiving unit and a second obtaining unit, wherein,
the second receiving unit is used for receiving prompt information sent by the server, wherein the prompt information is sent when the server detects that the theme information currently used by the client is updated, and the prompt information is used for prompting the user whether to update the theme;
and the second acquisition unit is used for acquiring the updated theme information from the server as the target theme information of the application program when the confirmation operation of the user for the prompt information is detected.
According to one or more embodiments of the present disclosure, the acquisition module includes a third acquisition unit, wherein,
the third acquisition unit is used for acquiring target theme information of the application program from the local area when a second preset condition is met;
wherein, satisfying the second preset condition includes at least one of:
reaching a second preset time interval;
detecting a login operation for an application program;
and detecting that the user triggers the acquisition operation for the theme information.
According to one or more embodiments of the present disclosure, the first determination module includes a change unit and a second determination unit, wherein,
the changing unit is used for changing the attribute information corresponding to each page element established in the application program based on the target theme information;
and the second determining unit is used for determining the display modes corresponding to the page elements respectively based on the determined attribute information.
According to one or more embodiments of the present disclosure, the method further comprises a second determining module and a display module, wherein,
the second determining module is used for determining a display mode corresponding to the changed page element based on the target subject information when the page element in the application program is detected to be changed;
and the display module is used for displaying the changed page elements based on the display mode corresponding to the changed page elements.
According to one or more embodiments of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: the theme update method shown according to the method embodiment is performed.
According to one or more embodiments of the present disclosure, a computer-readable medium has stored thereon a computer program which, when executed by a processor, implements a theme update method as shown in method embodiments.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. A method for updating a theme, comprising:
acquiring target theme information of an application program, wherein the target theme information comprises display information of each theme element in the application program;
determining display modes corresponding to all created page elements in the application program based on the target subject information;
and displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
2. The method of claim 1, wherein before obtaining the target subject information of the application program, the method further comprises:
when a first preset condition is met, sending a theme information acquisition request to a server;
receiving target subject information sent by the server or indication information corresponding to the target subject information;
wherein the first preset condition is met, and the first preset condition comprises at least one of the following conditions:
reaching a first preset time interval;
detecting a login request for the application;
and detecting that the user triggers an acquisition request for the subject information.
3. The method of claim 2, wherein the obtaining target subject information of the application program comprises at least one of:
determining the target subject information sent by the server as the target subject information of the application program;
and acquiring the subject information indicated by the indicating information from local based on the indicating information corresponding to the target subject information, wherein the subject information is used as the target subject information of the application program.
4. The method of claim 1, wherein the obtaining target subject information of the application program comprises:
and receiving updated theme information sent by a server as target theme information of the application program, wherein the updated theme information is sent when the server detects that the theme information currently used by the client is updated.
5. The method of claim 1, wherein the obtaining target subject information of the application program comprises:
receiving prompt information sent by a server, wherein the prompt information is sent when the server detects that the theme information currently used by a client is updated, and the prompt information is used for prompting a user whether to update the theme;
and when the confirmation operation of the user for the prompt message is detected, acquiring the updated theme message from the server as the target theme message of the application program.
6. The method of claim 1, wherein the obtaining target subject information of the application program comprises:
when a second preset condition is met, acquiring target theme information of the application program from the local;
wherein the second preset condition is met, and the second preset condition comprises at least one of the following conditions:
reaching a second preset time interval;
detecting a login operation for the application program;
and detecting that the user triggers the acquisition operation for the theme information.
7. The method according to any one of claims 1 to 6, wherein the determining, based on the target subject information, a display manner corresponding to each page element created in the application program comprises:
changing attribute information corresponding to each page element established in the application program based on the target theme information;
and determining the display modes corresponding to the page elements respectively based on the determined attribute information.
8. The method of any one of claims 1-7, further comprising:
when detecting that the page elements in the application program are changed, determining a display mode corresponding to the changed page elements based on the target theme information;
and displaying the changed page elements based on the display mode corresponding to the changed page elements.
9. A theme update apparatus, comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring target theme information of an application program, and the target theme information comprises display information of each theme element in the application program;
the first determining module is used for determining display modes corresponding to all established page elements in the application program based on the target theme information;
and the display module is used for displaying each page element created in the application program based on the determined display mode so as to update the theme of the application program.
10. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the theme update method according to any one of claims 1 to 8.
11. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the theme update method according to any one of claims 1 to 8.
CN202010060159.8A 2020-01-19 2020-01-19 Theme updating method and device, electronic equipment and medium Pending CN111240718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010060159.8A CN111240718A (en) 2020-01-19 2020-01-19 Theme updating method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010060159.8A CN111240718A (en) 2020-01-19 2020-01-19 Theme updating method and device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN111240718A true CN111240718A (en) 2020-06-05

Family

ID=70878022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010060159.8A Pending CN111240718A (en) 2020-01-19 2020-01-19 Theme updating method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN111240718A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656718A (en) * 2021-08-17 2021-11-16 北京奇艺世纪科技有限公司 Theme switching method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136089A (en) * 2007-09-24 2008-03-05 腾讯科技(深圳)有限公司 Method, system and device for updating e-mail web page background
US20150149939A1 (en) * 2013-11-25 2015-05-28 Cellco Partnership D/B/A Verizon Wireless Variable user interface theme customization
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN108509526A (en) * 2018-03-13 2018-09-07 百度在线网络技术(北京)有限公司 The method and apparatus of interface element for Dynamic Distribution's mobile application
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109558042A (en) * 2018-11-09 2019-04-02 北京小米移动软件有限公司 Show topics the method, apparatus and computer readable storage medium of skin
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136089A (en) * 2007-09-24 2008-03-05 腾讯科技(深圳)有限公司 Method, system and device for updating e-mail web page background
US20150149939A1 (en) * 2013-11-25 2015-05-28 Cellco Partnership D/B/A Verizon Wireless Variable user interface theme customization
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device
CN108509526A (en) * 2018-03-13 2018-09-07 百度在线网络技术(北京)有限公司 The method and apparatus of interface element for Dynamic Distribution's mobile application
CN109408177A (en) * 2018-09-29 2019-03-01 北京金山安全软件有限公司 Method and device for configuring color of characters in picture and electronic equipment
CN109558042A (en) * 2018-11-09 2019-04-02 北京小米移动软件有限公司 Show topics the method, apparatus and computer readable storage medium of skin
CN110007992A (en) * 2019-02-27 2019-07-12 努比亚技术有限公司 A kind of page display method, terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113656718A (en) * 2021-08-17 2021-11-16 北京奇艺世纪科技有限公司 Theme switching method and device

Similar Documents

Publication Publication Date Title
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN110851863B (en) Application program authority control method and device and electronic equipment
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN112383787B (en) Live broadcast room creating method and device, electronic equipment and storage medium
CN113741756A (en) Information processing method, device, terminal and storage medium
CN110658961A (en) Information display method and device and electronic equipment
CN111246228A (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN112256231A (en) Volume control method, device, terminal and storage medium
CN111694629A (en) Information display method and device and electronic equipment
CN111273830A (en) Data display method and device, electronic equipment and computer readable medium
CN110879729A (en) Channel configuration method and device for live broadcast room, readable medium and electronic equipment
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112732302A (en) Configuration updating method and device of application program and electronic equipment
CN111240718A (en) Theme updating method and device, electronic equipment and medium
CN112256370A (en) Information display method and device and electronic equipment
CN110619101B (en) Method and apparatus for processing information
CN111273884A (en) Image display method and device and electronic equipment
CN111324405A (en) Character display method and device and electronic equipment
CN112307393A (en) Information issuing method and device and electronic equipment
CN111259287B (en) Page content display method and device, electronic equipment and storage medium
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN111444457B (en) Data release method and device, storage medium and electronic equipment
CN114089891A (en) Display control method and device and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer 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
TA01 Transfer of patent application right

Effective date of registration: 20230421

Address after: Room 802, Information Building, 13 Linyin North Street, Pinggu District, Beijing, 101299

Applicant after: Beijing youzhuju Network Technology Co.,Ltd.

Address before: No. 715, 7th floor, building 3, 52 Zhongguancun South Street, Haidian District, Beijing 100081

Applicant before: Beijing infinite light field technology Co.,Ltd.

TA01 Transfer of patent application right