Movatterモバイル変換


[0]ホーム

URL:


CN111552537B - Theme switching method and device, computer equipment and storage medium - Google Patents

Theme switching method and device, computer equipment and storage medium
Download PDF

Info

Publication number
CN111552537B
CN111552537BCN202010372343.6ACN202010372343ACN111552537BCN 111552537 BCN111552537 BCN 111552537BCN 202010372343 ACN202010372343 ACN 202010372343ACN 111552537 BCN111552537 BCN 111552537B
Authority
CN
China
Prior art keywords
theme
switching
user interface
interface control
target
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.)
Active
Application number
CN202010372343.6A
Other languages
Chinese (zh)
Other versions
CN111552537A (en
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.)
Shenzhen Kaniu Technology Co ltd
Original Assignee
Shenzhen Kaniu 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 Shenzhen Kaniu Technology Co ltdfiledCriticalShenzhen Kaniu Technology Co ltd
Priority to CN202010372343.6ApriorityCriticalpatent/CN111552537B/en
Publication of CN111552537ApublicationCriticalpatent/CN111552537A/en
Application grantedgrantedCritical
Publication of CN111552537BpublicationCriticalpatent/CN111552537B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The embodiment of the invention discloses a theme switching method, a theme switching device, computer equipment and a storage medium. The method comprises the following steps: when a theme switching instruction is received, a theme switching request is sent to a target user interface control through a theme management component, wherein the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server; requesting target switching component information from the theme management component when a theme switching request is received through the target user interface control, wherein the target switching component is matched with the target user interface control; invoking a matched target switching component according to the target switching component information fed back by the theme management component through the target user interface control; and performing theme switching on the target user interface control through the target switching component. The embodiment of the invention can reduce the development cost of the user interface of the application program and improve the updating efficiency of the user interface.

Description

Theme switching method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of data processing, in particular to a theme switching method, a theme switching device, computer equipment and a storage medium.
Background
With the development of mobile terminals becoming more mature, the requirements of users on products are higher and higher, and the User Interface (UI) of Application (APP) is the most intuitive way for users to understand APP, so making APP with rich styles and absorbing the human eye ball is an important goal for developers.
In the prior art, the management of the UI style by the mobile terminal has not always lacked a set of flexible and global dynamic management. If the UI of the APP is updated, a large amount of modification needs to be made on the existing codes, and new specifications are made on the configuration of the styles, so that for some APP with larger scale, larger development cost is brought, and the UI styles can only be updated in a version-sending period, so that the difficulty of UI updating is increased, and the time is prolonged.
Disclosure of Invention
The embodiment of the invention provides a theme switching method, a theme switching device, computer equipment and a storage medium, which can reduce the development cost of a user interface of an application program and improve the updating efficiency of the user interface.
In a first aspect, an embodiment of the present invention provides a theme switching method, including:
when a theme switching instruction is received, a theme switching request is sent to a target user interface control through a theme management component, wherein the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server;
Requesting target switching component information from the theme management component when a theme switching request is received through the target user interface control, wherein the target switching component is matched with the target user interface control;
invoking a matched target switching component according to the target switching component information fed back by the theme management component through the target user interface control;
and performing theme switching on the target user interface control according to the theme configuration file to be switched through the target switching component.
In a second aspect, an embodiment of the present invention provides a theme switching apparatus, including:
the system comprises a theme switching request module, a theme management module and a target user interface control, wherein the theme switching request module is used for sending a theme switching request to the target user interface control through the theme management module when a theme switching instruction is received, the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server;
the switching component information request module is used for requesting target switching component information from the theme management component when a theme switching request is received through the target user interface control, and the target switching component is matched with the target user interface control;
The switching component calling module is used for calling a matched target switching component according to the target switching component information fed back by the theme management component through the target user interface control;
and the theme switching module is used for performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the program to implement a theme switching method according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a theme switching method according to any one of the embodiments of the present invention.
According to the embodiment of the invention, the theme management component is configured, the theme switching request is generated according to the theme configuration file updated by the server in time and is sent to the target user interface control to control the theme switching of the target user interface control, the target user interface control obtains the matched target switching component through the theme management component and invokes the matched target switching component, and the theme switching operation of the target user interface control is realized through the target switching component, so that the theme switching of the user interface is realized, the problems that the user interface can only be updated in a version period and the code modification amount of the theme switching of the user interface is large in the prior art are solved, the development cost of the user interface of an application program can be reduced, and the updating efficiency of the user interface is improved.
Drawings
FIG. 1a is a flow chart of a theme switching method according to a first embodiment of the present invention;
FIG. 1b is a flow chart of a theme switching method according to the first embodiment of the present invention;
FIG. 2a is a flow chart of a theme switching method according to a second embodiment of the present invention;
FIG. 2b is a flowchart of a theme update method based on a client according to a second embodiment of the present invention;
FIG. 2c is a flow chart of a handover verification method based on a target handover component in a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a theme switching device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1a is a flowchart of a theme switching method in a first embodiment of the present invention, where the method may be applied to a case of switching a theme by an application in a mobile terminal, and the method may be performed by a theme switching apparatus provided in the embodiment of the present invention, where the apparatus may be implemented in software and/or hardware, and may be generally integrated into a computer device, for example, a terminal device, etc. The method of the embodiment specifically comprises the following steps:
S110, when a theme switching instruction is received, a theme switching request is sent to a target user interface control through a theme management component, wherein the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server.
The theme switching instruction is used for controlling the client to switch the theme, and can be an instruction generated according to user input operation or an instruction sent by the server. In particular, theme switching refers to changing a style of a user interface, for example, adjusting a layout, a color, a font, and the like of the user interface.
In the embodiment of the invention, the client can be provided with a plurality of user interfaces, different user interfaces can display different contents, and the user interfaces can be switched. The user interface comprises a plurality of visual elements, and a user can interact with the visual elements to realize the operation of the user interface.
The visual element may refer to a user interface control, specifically, the user interface control is used for at least one of displaying in a user interface, receiving a value input by a user, interacting with the user, responding to a user operation, and the like. By way of example, the user interface controls may include: buttons (uibuton), labels (UILabel), and input boxes (uintextfields), etc., and accordingly, user interface control theme switching may include changes in text size, text style, and background color, etc.
The theme management component may traverse and obtain all of the user interface controls and filter them to obtain at least one target user interface control. The number of target user interface controls is typically at least one. The screening method may be to screen out a user interface control containing the subject information.
Optionally, the operating system of the terminal device is an IOS system. Optionally, the target user interface control includes: uire response object, uire response object sub-class object, cayer object and cayer object sub-class object.
The uiring response is a class under the IOS system, and is used for defining a group of interfaces for objects needing to respond to and process events, in particular, when a user triggers a button on a user interface, a button trigger event is correspondingly required to be generated, and corresponding processing is performed to respond to the user. The uiiresponder object subclass object may refer to an object that inherits the class of uiiresponder.
The layer is a layer, specifically a rectangular area with visible content on the user interface, in which a drawing can be performed to display visual effects of controls, images or text. Virtually all user interface controls need to be displayed in the view, specifically, the user interface controls are drawn in the layers, and the system copies the layers to the user interface to display the content drawn on the layers. The CALayer object subclass object may refer to an object inheriting a class of CALayer.
By limiting the scope of the target user interface control to: the UIREspoonder object, the UIREspoonder object sub-class object, the CALayer object and the CALayer object sub-class object can completely contain the related controls of the user interface, and the coverage of the target user interface control is increased, so that the user interface control range of theme switching is increased, and the accuracy of theme switching is improved.
The theme management component is used for managing the user interface control, and is mainly used for managing whether the user interface control executes theme switching operation or not.
The theme switch request is used for the theme management component to inform each target user interface control to switch the theme. The theme switch request is sent by the theme management component to each target user interface control. For example, the theme switch request may include a historical theme profile and a theme profile to be switched. The theme configuration file to be switched is a new theme configuration file. The historical theme profile may be a theme profile that is currently in use.
The theme configuration file is used for determining the theme of each target user interface control, and specifically may include information about the switched theme, for example, the color of a configuration button in the theme configuration file is red, and correspondingly, after the button performs theme switching, the color of the button is adjusted to be red.
The theme configuration file to be switched is used for indicating each target user interface control to carry out theme adjustment. The theme profile to be switched may include theme information adjusted by the target user interface control.
A plurality of theme configuration files are stored locally, and the theme configuration files to be switched can be determined according to theme switching instructions. The theme configuration file is updated in real time through the server, which indicates that the theme configuration file is updated at any time through the server, and the updating period of the user interface is greatly shortened.
S120, when a theme switching request is received through the target user interface control, requesting target switching component information from the theme management component, wherein the target switching component is matched with the target user interface control.
Requesting, by the target user interface control, target switching component information from the theme management component when receiving the theme switching request may include: and when the target user interface control receives the theme switching request, if the theme switching request determines that the theme switching condition is met, the target user interface control requests the theme management component for the target switching component information. If it is determined that the theme switching condition is not satisfied, the target switching component information is not requested from the theme management component. Specifically, the target user interface control may determine that the theme switching condition is satisfied when it is determined that the history profile is the same as the currently used (or activated) profile according to the history profile in the theme switching request.
The target switching component information is used by the target user interface control to invoke the target switching component, and may refer to interface information of the target switching component, for example. The target switching component is used for switching the theme of the target user interface control.
Different target user interface controls differ in the method or attribute of theme switching. Thus, a different switching component needs to be invoked for each target user interface control to effect the corresponding theme switching. The user interface control can query the corresponding relation between the pre-stored target user interface control, the theme information and the switching component according to the theme information to be switched in the theme switching request, and determine the matched switching component.
The theme management component stores target switching component information, so that the switching components can be managed uniformly.
The target user interface control may store identification information of the switching component required by the target user interface control, and obtain, through the theme management component, target switching component information matched with the identification information. And the matched switching component is determined through the target user interface control, the switching component information is directly requested to the theme management component, and the theme management component only needs to inquire the target switching component information and feed back the target switching component information, so that the data volume processed by the theme management component can be reduced.
Optionally, the number of the target user interface controls includes at least two, and the number of the switching components matched by the at least two target user interface controls includes at least two.
By configuring at least two target user interface controls and at least one switching component for each user interface control, theme switching can be accurately performed for the user interface controls, and flexibility and accuracy of theme switching are improved.
S130, calling a matched target switching component through the target user interface control according to the target switching component information fed back by the theme management component.
The target user interface control does not have the function of theme switching, and the theme switching of the target user interface control can be realized by calling the target switching component.
And S140, performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
The object switching component is configured to modify a parameter value of a parameter in the object user interface control to a parameter value that matches the theme configuration file, for example, a shape parameter of the object user interface control is rectangular, a shape parameter in the theme configuration file is elliptical, and the theme switching refers to modifying the shape parameter of the object user interface control to be elliptical.
Optionally, before sending the theme switching request to the target user interface control through the theme management component, the method further includes: and inquiring at least one user interface control which is currently operated and matched with the theme switching instruction through a theme management component, wherein the at least one user interface control is used as a target user interface control.
The currently running user interface control may refer to a user interface control displayed on a display screen. It should be noted that the currently running user interface control may also refer to a currently activated user interface control, and in addition, there are other limitations, and in contrast, embodiments of the present invention are not limited in detail. The currently non-running user interface controls may not require theme switching and may do so when needed for display.
The user interface control matched with the theme switching instruction refers to a user interface control containing theme information. The user interface control containing the theme information indicates that the user interface control is different with the theme, and the corresponding visual effect or function is different, that is, the user interface control containing the theme information is changed with the theme switching. In general, user interface controls that do not contain theme information do not change as the theme changes. Eliminating user interface controls which do not contain theme information can reduce the number of user interface controls for theme switching.
As illustrated in fig. 1b, the theme switching method may include:
s101, inquiring at least one user interface control which is currently operated and matched with the theme switching instruction through a theme management component, wherein the at least one user interface control is used as a target user interface control.
S102, sending a theme switching request to each target user interface control through the theme management component.
S103, when a theme switching request is received through the target user interface control, target switching component information is requested to the theme management component.
S104, calling a matched target switching component through the target user interface control according to the target switching component information fed back by the theme management component.
S105, performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
At least one user interface control which is currently operated and matched with the theme switching instruction is used as a target user interface control, so that the target user interface control is screened, the number of the user interface controls for theme switching is reduced, and the updating efficiency of theme switching is improved.
According to the embodiment of the invention, the theme management component is configured, the theme switching request is generated according to the theme configuration file updated by the server in time and is sent to the target user interface control to control the theme switching of the target user interface control, the target user interface control obtains the matched target switching component through the theme management component and invokes the matched target switching component, and the theme switching operation of the target user interface control is realized through the target switching component, so that the theme switching of the user interface is realized, the problems that the user interface can only be updated in a version period and the code modification amount of the theme switching of the user interface is large in the prior art are solved, the development cost of the user interface of an application program can be reduced, and the updating efficiency of the user interface is improved.
Example two
Fig. 2a is a flowchart of a theme switching method in a second embodiment of the present invention, where the theme switching is performed on the target user interface control by the target switching component according to the theme configuration file to be switched, based on the foregoing embodiment, and is specifically: performing switching verification on the target user interface control through the target switching component, wherein the switching verification comprises a switching method and attribute accessibility verification and/or topic information existence verification; and when the verification is passed, performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
Specifically, the method of the embodiment specifically includes:
and S210, when a theme switching instruction is received, a theme switching request is sent to a target user interface control through a theme management component, wherein the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server.
Reference may be made to the description of the above embodiments for a non-detailed description of the present embodiments.
As shown in fig. 2b, before receiving the theme switching instruction, the method may further include:
S201, starting the client.
A client may refer to an application where the functionality of the application includes, but is not limited to, live, video, gaming, billing, financial, sports, and the like.
The method can also comprise the following steps when the client starts up: and loading all the user interface controls displayed on the current user interface into the memory, namely creating user interface control objects.
S202, the client acquires a user interface control through a theme management component.
The theme management component may obtain all user interface controls currently running by traversing the created user interface control objects. When the user interface is switched, the user interface control displayed on the original user interface is released from the memory, and the user interface control displayed on the new user interface is loaded in the memory. Correspondingly, the theme management component can correspondingly release the user interface control of the history operation by traversing the user interface control object in the memory, and acquire all the user interface controls of the current operation, so that the memory leakage is avoided.
S203, the client initializes the switching component.
Initializing the switch component may refer to loading the switch component in memory. It should be noted that all the switching components may be initialized, and only the switching components that match the currently running user wiring control may be initialized. Optionally, the client acquires and initializes a switching component matched with each user interface control.
S204, the client updates the local topic configuration file.
Specifically, the updating of the local topic configuration file by the client may include: when the client is started each time, the client requests the server for updating, and receives an updated configuration file fed back by the server; or the client requests the server for updating according to the set period and receives the updated configuration file fed back by the server; or the server transmits updated configuration files to the client according to the set period; or, when receiving the update instruction of the technician, the server issues the updated configuration file to the client, and in addition, the server may also set according to the actual situation, which is not particularly limited in the embodiment of the present invention.
The client side obtains a local theme configuration file through the theme management component, generates a theme configuration file update request and sends the theme configuration file update request to the server. And the server feeds back the updated theme configuration file according to the theme configuration file updating request. And the client updates the local theme configuration file according to the received updated theme configuration file. The theme profile update request may include identification information of an updated theme profile or identification information of a locally latest theme profile, and the server may determine and acquire the updated theme profile according to the identification information.
When the client is started, the user interface control is obtained, the switching component is initialized, and the theme configuration file is updated, so that the client can finish the preparation work of theme switching, and the accuracy of theme switching is improved.
S220, when a theme switching request is received through the target user interface control, requesting target switching component information from the theme management component, wherein the target switching component is matched with the target user interface control.
S230, calling a matched target switching component through the target user interface control according to the target switching component information fed back by the theme management component.
S240, performing switching verification on the target user interface control through the target switching component, wherein the switching verification comprises a switching method and attribute accessibility verification and/or topic information existence verification.
The switching verification is used for judging whether the user interface control can perform theme switching. In practice, the switching verification is used for judging whether the theme switching of the user interface control is abnormal, namely, the security check is performed, and in particular, is used for judging whether the switching method and the attribute in the user interface control are accessible and whether the theme information exists.
The switching method and the attribute accessibility verification are used for verifying the method for switching the theme, and whether the switching attribute can be accessed, in particular, whether the method for verifying the theme switching and the switching attribute can be modified. If both the switching method and/or the switching attribute are accessible, the verification is passed. If the switching method and/or the switching attribute cannot be accessed, verification fails, which indicates that the method and the attribute of the target user interface control cannot be updated, and theme switching cannot be performed. The method is exemplified by the setTitleContor in UIBtton, the for State method, and the attribute is the color attribute in CALayer. In addition, there are other methods or attributes to which embodiments of the present invention are not limited.
In particular, the switching methods and attributes may include methods and attributes associated with the theme profile. For example, the theme profile is used to modify the original button function (e.g., change the shape of the title after clicking) to change the color of the title after clicking, where the accessibility of the method of changing the color of the title (e.g., setTitleContolor: for State) needs to be determined first, and if accessible, it indicates that the method can be modified. Accordingly, if the attribute is accessible, information such as an attribute value indicating the attribute may be modified.
The topic information presence verification is used to verify whether topic information is contained in the target user interface control. If the user interface control contains theme information, the user interface control is indicated to be different along with the theme, and the corresponding visual effect or function is different, namely the user interface control containing the theme information is changed along with theme switching. In general, user interface controls that do not contain theme information do not change as the theme changes. If the target user interface control contains subject information, the verification passes. If the theme information does not exist in the target user interface control, verification fails, and the method and the attribute of the target user interface control cannot be updated, namely theme switching cannot be performed. The information in the user interface control can be judged whether to belong to the theme information or not through the theme identification.
It should be noted that, if the foregoing filtering operation of the user interface control is performed, that is, the user interface control matched with the theme switching instruction is used as the target user interface control, at this time, the theme information presence verification operation may be omitted, or may be selected not to be omitted, so as to further ensure that the target user interface control has the capability of theme switching.
Optionally, the switching component includes a general switching component for performing a theme switching operation for a plurality of user interface controls of the same type, and a specific switching component for performing a theme switching operation for user interface controls that satisfy a theme-specific control condition.
Generally, the switching methods of the partial theme information of the plurality of user interface controls are the same, and meanwhile, the switching methods of the partial theme information of the user interface controls are different. Theme information that can use the same switching method can be implemented using the same switching component, and theme information that uses different switching methods requires additional reconfiguration of the adaptive switching component implementation. Thus, the generic switching component and the specific switching component can be configured accordingly.
The generic switching component may perform theme switching for as multiple user interface controls and the specific switching component may perform theme switching for only a few user interface controls. The theme of one user interface control can be switched, and a plurality of switching components can be simultaneously invoked, wherein the plurality of switching components comprise a general switching component and/or a specific switching component.
The user interface controls of the same type may mean that theme information contained in the plurality of user interface controls may be subjected to theme switching by using the same switching method.
The theme-specific control condition is used for judging whether the switching method of the theme information of the user interface control is the same as the switching method of the theme information of other user interface controls.
The user interface control meeting the condition of the theme-specific control may be that a switching method of theme information of the user interface control is different from a switching method of theme information of other user interface controls, that is, the theme information contained in the user interface control cannot be subjected to theme switching by adopting the same switching method as that of other user interface controls.
The functions and the number of the specific switching components are determined according to the theme information of the user interface control, and can be specifically set according to actual conditions, so that the embodiment of the invention is not particularly limited. At the same time, the particular switching component may be updated in accordance with the update of the user interface control.
By configuring the universal switching component, the theme switching of the same mode can be realized for a plurality of types of target user interface controls, and configuring the specific switching component, the theme switching can be realized for the specific target user interface control, the repeated configuration cost of the switching component can be reduced, and meanwhile, the theme switching can be independently realized for the specific user interface control, so that the theme switching accuracy is improved.
And S250, when verification is passed, performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
And when the verification is passed, indicating that the target user interface control can perform theme switching. And after the verification is passed, performing theme switching on the target user interface control, ensuring successful realization of theme switching, and avoiding abnormal situations.
Specifically, as shown in fig. 2c, after the target user interface control invokes the matched target switch component, the method may further include:
s211, the target switching component judges whether the switching method and the attribute of the matched target user interface control are accessible, if so, S212 is executed; otherwise, S214 is performed.
S212, the target switching component judges whether the matched target user interface control contains theme information or not, and if so, S213 is executed; otherwise, S214 is performed.
And S213, the target switching component performs theme switching on the matched target user interface control.
And S214, the target switching component does not subject to switching on the matched target user interface control.
According to the embodiment of the invention, the target user interface control is verified, and when verification passes, the main body switching is executed, so that the user interface control can be ensured to accurately and safely realize the theme switching, and the error of the theme switching is reduced.
Example III
Fig. 3 is a schematic diagram of a theme switching device according to a third embodiment of the present invention. The third embodiment is a corresponding device for implementing the theme switching method provided by the above embodiment of the present invention, where the device may be implemented in software and/or hardware, and may generally be integrated with a computer device or the like.
Accordingly, the apparatus of this embodiment may include:
the theme switching request module 310 is configured to send, when receiving a theme switching instruction, a theme switching request to a target user interface control through a theme management component, where the theme switching request includes a theme configuration file to be switched, and the theme configuration file is updated in real time through a server;
a switching component information request module 320, configured to request, when receiving a theme switching request through the target user interface control, target switching component information from the theme management component, where the target switching component is matched with the target user interface control;
a switching component calling module 330, configured to call, through the target user interface control, a matched target switching component according to the target switching component information fed back by the theme management component;
and the theme switching module 340 is configured to perform theme switching on the target user interface control according to the theme configuration file to be switched through the target switching component.
According to the embodiment of the invention, the theme management component is configured, the theme switching request is generated according to the theme configuration file updated by the server in time and is sent to the target user interface control to control the theme switching of the target user interface control, the target user interface control obtains the matched target switching component through the theme management component and invokes the matched target switching component, and the theme switching operation of the target user interface control is realized through the target switching component, so that the theme switching of the user interface is realized, the problems that the user interface can only be updated in a version period and the code modification amount of the theme switching of the user interface is large in the prior art are solved, the development cost of the user interface of an application program can be reduced, and the updating efficiency of the user interface is improved.
Further, the number of target user interface controls includes at least two, and the number of switching components that the at least two target user interface controls match includes at least two.
Further, the theme switching request module 310 includes: the switching verification unit is used for performing switching verification on the target user interface control through the target switching component, wherein the switching verification comprises a switching method and attribute accessibility verification and/or theme information existence verification; and when the verification is passed, performing theme switching on the target user interface control through the target switching component according to the theme configuration file to be switched.
Further, the switch component includes a generic switch component for performing a theme switch operation for a plurality of user interface controls of the same type and a specific switch component for performing a theme switch operation for user interface controls that satisfy a theme-specific control condition.
Further, the theme switching device further includes: and the user interface control screening module is used for inquiring at least one user interface control which is currently operated and matched with the theme switching instruction through the theme management component before the theme switching request is sent to the target user interface control through the theme management component, and the at least one user interface control is used as the target user interface control.
Further, the operating system includes an IOS system.
Further, the target user interface control comprises: uire response object, uire response object sub-class object, cayer object and cayer object sub-class object.
The theme switching device can execute the theme switching method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executed theme switching method.
Example IV
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 4, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16. Computer device 12 may be a device that is attached to a bus.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include industry standard architecture (Industry Standard Architecture, ISA) bus, micro channel architecture (Micro Channel Architecture, MCA) bus, enhanced ISA bus, video electronics standards association (Video Electronics Standards Association, VESA) local bus, and peripheral component interconnect (Peripheral Component Interconnect, PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a disk drive for reading from and writing to a removable nonvolatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from and writing to a removable nonvolatile optical disk (e.g., a compact disk Read Only Memory (CD-ROM), digital versatile disk (Digital Video Disc-Read Only Memory, DVD-ROM), or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may be via an Input/Output (I/O) interface 22. The computer device 12 may also communicate with one or more networks (e.g., local area network (Local Area Network, LAN), wide area network (Wide Area Network, WAN)) via the network switching component 20. As illustrated, the network switching component 20 communicates with other modules of the computer device 12 via the bus 18. It should be appreciated that, although not shown in FIG. 4, other hardware and/or software modules may be employed in connection with the computer device 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, (Redundant Arrays of Inexpensive Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing a theme switching method provided by any embodiment of the present application.
Example five
A fifth embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the theme switching method as provided by all the embodiments of the present application: when a theme switching instruction is received, a theme switching request is sent to a target user interface control through a theme management component, wherein the theme switching request comprises a theme configuration file to be switched, and the theme configuration file is updated in real time through a server; requesting target switching component information from the theme management component when a theme switching request is received through the target user interface control, wherein the target switching component is matched with the target user interface control; invoking a matched target switching component according to the target switching component information fed back by the theme management component through the target user interface control; and performing theme switching on the target user interface control according to the theme configuration file to be switched through the target switching component.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, 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.
The computer readable signal medium may include 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 any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 wireless, wireline, optical fiber cable, radio frequency (RadioFrequency, RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including 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 kind of network, including a LAN or WAN, or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

CN202010372343.6A2020-05-062020-05-06Theme switching method and device, computer equipment and storage mediumActiveCN111552537B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010372343.6ACN111552537B (en)2020-05-062020-05-06Theme switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010372343.6ACN111552537B (en)2020-05-062020-05-06Theme switching method and device, computer equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN111552537A CN111552537A (en)2020-08-18
CN111552537Btrue CN111552537B (en)2023-10-20

Family

ID=72002599

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010372343.6AActiveCN111552537B (en)2020-05-062020-05-06Theme switching method and device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN111552537B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112367535B (en)*2020-11-182022-10-04广州博冠信息科技有限公司Generation method and device of active user interface
CN118550620A (en)*2023-02-272024-08-27华为技术有限公司Icon display method based on theme switching, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101243439A (en)*2005-08-302008-08-13微软公司Markup-based extensibility for user interfaces
CN107729103A (en)*2017-09-292018-02-23努比亚技术有限公司A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN109032722A (en)*2018-06-272018-12-18广州视源电子科技股份有限公司Method, device, equipment and medium for updating display effect of UI component
CN110162374A (en)*2019-05-282019-08-23深圳前海微众银行股份有限公司Method for switching theme, device, equipment and computer readable storage medium
CN110737519A (en)*2019-09-112020-01-31视联动力信息技术股份有限公司theme switching method and device
CN110737493A (en)*2019-09-022020-01-31华为技术有限公司theme switching method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101243439A (en)*2005-08-302008-08-13微软公司Markup-based extensibility for user interfaces
CN107729103A (en)*2017-09-292018-02-23努比亚技术有限公司A kind of method for switching theme, mobile terminal and computer-readable storage medium
CN109032722A (en)*2018-06-272018-12-18广州视源电子科技股份有限公司Method, device, equipment and medium for updating display effect of UI component
CN110162374A (en)*2019-05-282019-08-23深圳前海微众银行股份有限公司Method for switching theme, device, equipment and computer readable storage medium
CN110737493A (en)*2019-09-022020-01-31华为技术有限公司theme switching method and device
CN110737519A (en)*2019-09-112020-01-31视联动力信息技术股份有限公司theme switching method and device

Also Published As

Publication numberPublication date
CN111552537A (en)2020-08-18

Similar Documents

PublicationPublication DateTitle
JP7018463B2 (en) Managing the delivery of code and dependent data using the application container
CN102073507B (en)Method, device and system for calling widget
CN109857506B (en)Method and device for realizing guide information, electronic equipment and storage medium
CN112114761A (en)Wireless screen projection control method and device, terminal equipment and readable storage medium
CN108762956B (en)Method for acquiring Native local data, server, mobile terminal and storage medium
CN110139118B (en) Function running method, device, electronic device and storage medium of application program
US20070240150A1 (en)Simplifying installation of a suite of software products
CN108776587B (en)Data acquisition method and device, computer equipment and storage medium
CN111552537B (en)Theme switching method and device, computer equipment and storage medium
CN119883296A (en)Acceleration application and sub-package installation
CN112068895B (en)Code configuration method, device, video playing equipment and storage medium
CN110674050B (en)Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN109857503B (en)Page interaction effect self-adaption method and device and electronic equipment
CN112835671B (en) Application page scene switching method, device and equipment
CN107016262A (en)Application program right management method and client
CN113282363A (en)Method and device for optimizing hybrid APP
CN113934453B (en)Risk detection method, risk detection device and storage medium
WO2022171058A1 (en)Application program processing method and apparatus, and electronic device
CN112988265A (en)Applet processing method, applet processing apparatus, device, medium and product
CN119989388B (en)Authority verification method, filter, front-end server and storage medium
CN113835846B (en)Method and device for creating k8s cluster and computer-readable storage medium
US20250217516A1 (en)Dynamic provision of software application features
US20240370290A1 (en)Method and apparatus, device and medium for user-based service isolation
CN110858155B (en)Automatic icon hiding system and method based on mobile device application
CN118642795A (en) Layout adjustment method, device and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp