[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114035825A - Method, device, equipment and medium for updating control style - Google Patents

Method, device, equipment and medium for updating control style Download PDF

Info

Publication number
CN114035825A
CN114035825A CN202111395141.4A CN202111395141A CN114035825A CN 114035825 A CN114035825 A CN 114035825A CN 202111395141 A CN202111395141 A CN 202111395141A CN 114035825 A CN114035825 A CN 114035825A
Authority
CN
China
Prior art keywords
style
candidate
target
resource
control
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
CN202111395141.4A
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.)
Cognitive Computing Nanjing Information Technology Co ltd
Original Assignee
Cognitive Computing Nanjing Information 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 Cognitive Computing Nanjing Information Technology Co ltd filed Critical Cognitive Computing Nanjing Information Technology Co ltd
Priority to CN202111395141.4A priority Critical patent/CN114035825A/en
Publication of CN114035825A publication Critical patent/CN114035825A/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
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for updating control styles, which relate to the technical field of computers, and the method comprises the following steps: determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet; and updating the style of the control to be updated according to the target style resource. The embodiment of the invention realizes the effect of updating the style of the control contained in the software on the premise of not increasing the data volume of the software greatly.

Description

Method, device, equipment and medium for updating control style
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a medium for updating control styles.
Background
The beautification of the software cannot be avoided in the software development process, and the use desire of people on the software can be increased by designing the elegant software. However, the aesthetic ideas of each person are different, and the software has the function of changing the skin in order to meet the aesthetic ideas of most people.
The current method is to write the code of each software skin directly into the software, but as the number of skins increases, the data volume of the software is undoubtedly increased greatly.
Disclosure of Invention
The embodiment of the application discloses a method, a device, equipment and a medium for updating control styles, and aims to solve the problem that the data volume of software can be greatly improved by the existing software skin changing method.
In a first aspect, an embodiment of the present invention provides a method for updating a control style, including:
determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and updating the style of the control to be updated according to the target style resource.
In a second aspect, an embodiment of the present invention provides an apparatus for updating a control style, including:
the style resource determining module is used for determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and the style updating module is used for updating the style of the control to be updated according to the target style resource.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method for updating a style of a control according to any one of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for updating a control style according to any one of the embodiments of the present invention.
The embodiment of the invention realizes the effect of updating the style of the control contained in the software on the premise of not increasing the data volume of the software greatly.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope, and for a user of ordinary skill in the art, other related drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart of a method for updating a control style according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for updating a control style according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for updating control styles according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only the structures related to the embodiments of the present invention are shown in the drawings, not all the structures.
Example one
Fig. 1 is a flowchart of a method for updating a control style according to an embodiment of the present invention. The embodiment is applicable to the case of updating the control style in software, and the method can be executed by the control style updating device provided by the embodiment of the invention, and the device can be realized in a software and/or hardware manner. As shown in fig. 1, the method may include:
step 101, determining a target style resource from candidate style resources according to a style updating request of a control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet.
The control to be updated represents a control of which the user wants to update the style in the target software, and the target software may include one control to be updated, that is, the user only wants to update the style of one control, or may include a plurality of controls to be updated, that is, the user wants to update the styles of the plurality of controls. The candidate style resources comprise candidate style sheets and icon resources related to each candidate style sheet, wherein the candidate style sheets represent tools capable of customizing the appearance of the control, such as QSS style sheets and the like, and technicians can predefine the candidate style sheets containing different style contents for selection by users; the icon resource represents an image or logo to which the associated candidate style sheet refers, such as a control background image or the like.
In one embodiment, a technician presets at least two candidate style sheets and associated icon resources for each control included in target software, and each candidate style sheet includes different style contents, so that a user can select a target style sheet from the candidate style sheets according to needs and update the style of the control according to the target style sheet and the associated icon resources.
Specifically, a user uses at least one control in the target software as a control to be updated according to own requirements, sends a style updating request aiming at the control to be updated to the target software, the target software analyzes the style updating request, determines a style resource identifier selected by the user in the style updating request, and determines a target style resource from candidate style resources according to the style resource identifier. The style resource identifier may specifically be a style sheet identifier, that is, a target style sheet is determined from the candidate style sheets according to the style sheet identifier, and an icon resource referred to by the target style sheet, that is, an icon resource associated with the target style sheet.
The embodiment also provides an implementation manner of S101 in an actual scene: after the user opens the target software, the user clicks a control style updating button, such as a 'one-key skin changing' button, the target software displays all the included candidate controls to the user, and the user selects at least one candidate control as a control to be updated according to the requirement of the user. The target software displays preview images of candidate styles included by each control to be updated to a user according to the check operation of the user, wherein each preview image corresponds to one candidate style sheet, the user checks one preview image as a target preview image, determines style sheet identifiers of the candidate style sheets corresponding to the target preview image according to the check operation of the user on the target preview image, and generates a style updating request containing the style sheet identifiers. And the target software receives the style updating request, analyzes the style updating request, determines a style sheet identifier included in the style updating request, and determines a target style sheet and icon resources related to the target style sheet from the candidate style sheets according to the style sheet identifier.
And step 102, updating the style of the control to be updated according to the target style resource.
In one embodiment, the target software first uninstalls the style resource corresponding to the control to be updated, for example, by calling a QResource:: unregisterResource function to uninstall the current style resource. And then, according to the determined target style sheet, loading and reading the target style sheet and the icon resource associated with the target style sheet, for example, loading and reading the target style sheet and the icon resource through setStyleSeet, so as to perform style update on the control to be updated.
According to the technical scheme provided by the embodiment of the invention, the target style resource is determined from the candidate style resources according to the style updating request of the control to be updated; the candidate style resources comprise a candidate style sheet and icon resources related to the candidate style sheet, and the style of the control to be updated is updated according to the target style resources.
On the basis of the foregoing embodiment, optionally, the candidate style sheet includes at least one of a preset foreground color, a preset background color, and a preset icon.
The preset foreground color represents foreground colors selectable by the control corresponding to the candidate style sheet, the preset background color represents background colors selectable by the control corresponding to the candidate style sheet, and the preset icon represents images, marks and the like selectable by the control corresponding to the candidate style sheet. That is, the foreground color, the background color, the image and the identifier of the control to be updated can be updated according to the preset foreground color, the preset background color and the preset icon in the candidate style sheet.
The effect of updating the foreground color, the background color, the image and the identification of the control can be realized by setting at least one of the preset foreground color, the preset background color and the preset icon in the candidate style sheet, and the requirement of user individuation is met.
Example two
Fig. 2 is a flowchart of a method for updating a control style according to a second embodiment of the present invention, which is further optimized and expanded based on the foregoing technical solution, and can be combined with the foregoing optional embodiments.
As shown in fig. 2, the method for updating the control style disclosed in the second embodiment may include:
s201, determining a target style identification according to a style updating request, and determining a target style file from candidate style files associated with the control to be updated according to the target style identification.
Before executing S201, the present embodiment first provides an implementation manner of generating a candidate style file, and in the present embodiment, the target software is developed based on the Qt framework, and the candidate style sheet is a QSS style sheet as an example for explanation, but the specific forms of the development framework and the candidate style sheet of the target software are not limited.
Establishing a resource management file, preferably a QRC file, for candidate styles of each control in the target software, and adding a QSS style sheet and icon resources related to the QSS style sheet, which are pre-constructed by technicians, in the QRC file of each candidate style.
And compiling the QRC file into a binary file by using an rcc command in the Qt to obtain a candidate style file. For example, assuming that the QRC file corresponding to the candidate style a is blue.qrc, a command rcc-bind blue.qrc-o blue.skin may be used, and the rcc command may compile both the QSS style sheet in blue.qrc and the icon resource associated with the QSS style sheet into the candidate style file blue.skin corresponding to blue.qrc.
When the target software is started, loading a default style file default in each control by adopting a QRESOURCE-register command, acquiring a QSS style sheet in the default style sheet and icon resources related to the QSS style sheet, and loading and reading the icon resources related to the QSS style sheet and the QSS style sheet by using a setStyleSexet function so as to display the default style of each control in the target software.
For step S201, in an implementation manner, a style update request for a control to be updated issued by a user is received, and the style update request is analyzed to obtain a target style identifier included in the style update request, so as to determine a target style file from candidate style files according to the target style identifier. For example, if parsing the style update request determines that the target style is identified as "blue", a search is performed with "blue" as a search word in the candidate style file, finding the candidate style file "blue.
S202, acquiring candidate style resources contained in the target style file as the target style resources.
In one embodiment, for a determined target style file, searching is performed in the target style file according to a resource identifier corresponding to a candidate style resource, and the candidate style resource contained in the target style file is acquired as the target style resource.
Optionally, S202 includes:
taking the resource identifier of the candidate style resource as a search path, and searching in the target style file according to the search path to obtain the candidate style resource contained in the target style file; wherein different candidate style resources have the same resource identification.
Specifically, in order to improve the search efficiency of style resources, uniform naming is performed on candidate style resources included in different style files, for example, in a blue.skin style file, a blue.qss candidate style sheet and blue.qss associated icon resources are added, and in the blue.skin style file, resource identifiers of the blue.qss and blue.qss associated icon resources are set as ": // skin/qss "; and adding a red.qss candidate style sheet and red.qss associated icon resources in the red.skin style file, and setting resource identifiers of the red.qss and the red.qss associated icon resources to be' in the red.skin style file: // skin/qss ".
When the candidate style resources are required to be acquired from the target style file, the uniformly named resource identifiers are directly used as search paths, and the target style file is searched to acquire the candidate style resources. Continuing with the explanation based on the above example, when the target style file is blue. The method comprises the following steps that// skin/qss' is used as a search path, searching is carried out in blue.skin, and a blue.qss candidate style sheet and blue.qss associated icon resources are obtained; skin, when the target style file is red, will ": and// skin/qss' is used as a search path, searching is carried out in red.skin, and a red.qss candidate style sheet and red.qss associated icon resources are obtained.
The resource identification of the candidate style resource is used as a search path, and the target style file is searched according to the search path, so that the candidate style resource contained in the target style file is obtained; different candidate style resources have the same resource identification, and because the resource identifications of the different candidate style resources are the same, different target style files can be directly searched according to the uniform resource identification without determining the identification of the candidate style resource in each target style file, so that the searching efficiency is greatly improved, and the management of the candidate style resources is facilitated.
S203, updating the style of the control to be updated according to the target style resource.
In one embodiment, a preset function is adopted to load, read and obtain the target style resource, and the style update of the control to be updated is realized.
Optionally, S203 includes:
unloading the style file currently associated with the control to be updated, and loading the target style file; and loading the target style resources contained in the target style file, and performing style updating on the control to be updated.
For example, assuming that the style file currently associated with the control to be updated is default.skin and the target style file is blue.skin, the default.skin style file is unloaded first using a QResource: ("default.skin") function, and then the blue.skin target style file is loaded using a QResource: ("blue.skin") function. After loading the blue.skin target style file, using a setStyleSheet function to load and read the target style resource acquired in S202, thereby performing style update on the control to be updated.
The QRESOURCE function enables the target software to dynamically update the style of the control without recompiling and starting the target software, avoids the defect that the target software needs to be recompiled every time the style of the control is updated in the prior art, and improves the updating efficiency.
According to the technical scheme provided by the embodiment of the invention, the target style identification is determined according to the style updating request, the target style file is determined from the candidate style files associated with the control to be updated according to the target style identification, the candidate style resources contained in the target style file are obtained and used as the target style resources, and the style of the control to be updated is updated according to the target style resources, so that the effect of updating the style of the control contained in the software is realized on the premise of not increasing the data volume of the software greatly.
On the basis of the above embodiment, optionally, the candidate style file is stored in the cloud server.
Specifically, after a style update request issued by a user is received, the target software acquires all candidate style files from the cloud server to the local, so as to determine the target style file from the candidate style files.
By storing the candidate style files in the cloud server, the data volume occupied by the target software is further reduced, and the storage pressure of a local end is relieved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a control style updating apparatus according to a third embodiment of the present invention, where the control style updating apparatus is capable of executing a control style updating method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 3, the apparatus may include:
the style resource determining module 31 is configured to determine a target style resource from the candidate style resources according to a style update request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and the style updating module 32 is configured to perform style updating on the control to be updated according to the target style resource.
On the basis of the foregoing embodiment, the style resource determining module 31 is specifically configured to:
determining a target style identification according to the style updating request, and determining a target style file from candidate style files associated with the control to be updated according to the target style identification;
and acquiring candidate style resources contained in the target style file as the target style resources.
On the basis of the foregoing embodiment, the style resource determining module 31 is further specifically configured to:
taking the resource identifier of the candidate style resource as a search path, and searching in the target style file according to the search path to obtain the candidate style resource contained in the target style file;
wherein different candidate style resources have the same resource identification.
On the basis of the foregoing embodiment, the style updating module 32 is specifically configured to:
unloading the style file currently associated with the control to be updated, and loading the target style file;
and loading the target style resources contained in the target style file, and performing style updating on the control to be updated.
On the basis of the above embodiment, the candidate style sheet includes at least one of a preset foreground color, a preset background color, and a preset icon.
On the basis of the above embodiment, the candidate style file is stored in the cloud server.
The control style updating device provided by the embodiment of the invention can execute the control style updating method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to a method for updating a control style provided in any embodiment of the present invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary device 400 suitable for use in implementing embodiments of the present invention. The apparatus 400 shown in fig. 4 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 400 is in the form of a general purpose computing device. The components of device 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 400 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic 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 or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
Device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with device 400, and/or with any devices (e.g., network card, modem, etc.) that enable device 400 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) through network adapter 412. As shown, the network adapter 412 communicates with the other modules of the device 400 over the bus 403. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implementing an update method of a control style provided by an embodiment of the present invention, including:
determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and updating the style of the control to be updated according to the target style resource.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-executable instructions, when executed by a computer processor, are configured to perform a method for updating a control style, where the method includes:
determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and updating the style of the control to be updated according to the target style resource.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in a method for updating a control style provided by any embodiment of the present invention. The computer-readable storage media of embodiments of the invention may take 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. 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 (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 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 context of 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
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, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects 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 + + or the like 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. 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 modifications, rearrangements and substitutions without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for updating a control style is characterized by comprising the following steps:
determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and updating the style of the control to be updated according to the target style resource.
2. The method according to claim 1, wherein the determining a target style resource from candidate style resources according to the style update request of the control to be updated comprises:
determining a target style identification according to the style updating request, and determining a target style file from candidate style files associated with the control to be updated according to the target style identification;
and acquiring candidate style resources contained in the target style file as the target style resources.
3. The method according to claim 2, wherein the obtaining of the candidate style resource included in the target style file as the target style resource comprises:
taking the resource identifier of the candidate style resource as a search path, and searching in the target style file according to the search path to obtain the candidate style resource contained in the target style file;
wherein different candidate style resources have the same resource identification.
4. The method according to claim 2, wherein the style updating the control to be updated according to the target style resource comprises:
unloading the style file currently associated with the control to be updated, and loading the target style file;
and loading the target style resources contained in the target style file, and performing style updating on the control to be updated.
5. The method of claim 1, wherein the candidate style sheet comprises at least one of a preset foreground color, a preset background color, and a preset icon.
6. The method of claim 2, wherein the candidate style file is stored in a cloud server.
7. An apparatus for updating control style, comprising:
the style resource determining module is used for determining a target style resource from the candidate style resources according to the style updating request of the control to be updated; wherein the candidate style resource comprises a candidate style sheet and an icon resource associated with the candidate style sheet;
and the style updating module is used for updating the style of the control to be updated according to the target style resource.
8. The apparatus of claim 7, wherein the style resource determining module is specifically configured to:
determining a target style identification according to the style updating request, and determining a target style file from candidate style files associated with the control to be updated according to the target style identification;
and acquiring candidate style resources contained in the target style file as the target style resources.
9. An electronic device, characterized in that the electronic device further comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of updating a style of control of any of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of updating a style of a control according to any one of claims 1 to 6.
CN202111395141.4A 2021-11-23 2021-11-23 Method, device, equipment and medium for updating control style Pending CN114035825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111395141.4A CN114035825A (en) 2021-11-23 2021-11-23 Method, device, equipment and medium for updating control style

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111395141.4A CN114035825A (en) 2021-11-23 2021-11-23 Method, device, equipment and medium for updating control style

Publications (1)

Publication Number Publication Date
CN114035825A true CN114035825A (en) 2022-02-11

Family

ID=80145219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111395141.4A Pending CN114035825A (en) 2021-11-23 2021-11-23 Method, device, equipment and medium for updating control style

Country Status (1)

Country Link
CN (1) CN114035825A (en)

Similar Documents

Publication Publication Date Title
US11868785B2 (en) Application program page processing method and device
US9116680B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
CN110309475B (en) Page display method and device, terminal equipment and storage medium
CN109474467B (en) Network automation management method and device, storage medium and electronic equipment
CN110083399B (en) Applet running method, computer device and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN109951553B (en) Data processing method, system, electronic device and computer readable storage medium
CN112764802A (en) Business logic customization method and device, electronic equipment and storage medium
CN110221840B (en) Function implementation method and device of application program, equipment and storage medium
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
US20200301721A1 (en) Reusable runtime environments
CN111338699A (en) Computer mainboard initialization method and device, computer equipment and storage medium
CN113760318B (en) Information processing method, device, server and storage medium
CN114048415A (en) Form generation method and device, electronic equipment and computer readable storage medium
CN113626095A (en) Switching method and switching system of configuration center, electronic equipment and storage medium
CN110262841B (en) Method and device for enhancing byte codes
CN114035825A (en) Method, device, equipment and medium for updating control style
US9292318B2 (en) Initiating software applications requiring different processor architectures in respective isolated execution environment of an operating system
CN112929675B (en) Image resource compression method and device and electronic equipment
CN113986385A (en) Item font library loading method and device, electronic equipment and storage medium
CN110716753B (en) Cloud host initialization method and device, storage medium and electronic equipment
CN111443983B (en) Application program virtualization method and device, electronic equipment and storage medium
CN112667310A (en) Game engine editor starting method and device, electronic equipment and storage medium
US9928090B2 (en) Method for processing dynamic language and electronic device using the same
KR101211673B1 (en) Binary compatibility system for executing program of external terminal with different system environment in user terminal and method thereof

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