Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Client skin changing method, device, equipment and computer-readable storage medium

A client replacement and skinning technology, applied in the direction of program control devices, user interface execution, etc., can solve the problems of heavy workload of programmers, inconvenient unified management, low code reusability, etc., to solve the huge workload and facilitate the later stage The effect of maintaining and increasing code reusability

Active Publication Date: 2021-11-09
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If there are multiple controls that need to be skinned, each control needs to be coded separately to realize the skinning of the control. The workload of the programmer is heavy, and the code reusability is low. Skin codes are maintained separately, even if common problems occur, they need to be solved one by one, so the later maintenance costs are relatively large, and it is not convenient for unified management

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Client skin changing method, device, equipment and computer-readable storage medium
  • Client skin changing method, device, equipment and computer-readable storage medium
  • Client skin changing method, device, equipment and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] figure 1 It is a flow chart of the client skin changing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of client skin changing. The method can be executed by a client skin changing device, which can be implemented by hardware and / or Realized by software, the device can be integrated in a terminal (such as a computer), such as figure 1 As shown, it specifically includes the following steps:

[0026] Step 101, calling the switchSkin interface of the SkinManager object, querying the target array list of the SkinManager object to obtain at least one target skinning control.

[0027] Among them, the SkinManager object is a global management object used by the client for skinning, and the function of the SkinManager object is a target skinning control for global and unified management of skinning. The constructor of the global object is executed first at the beginning of the program (earlier than the program entry po...

Embodiment 2

[0058] figure 2 It is a flow chart of a client skinning method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment is optionally based on the calling of the at least one target skinning control and the at least one target skinning control The SkinItemBase base class corresponding to the skin control includes: determining the SkinItemBase base class corresponding to the at least one target skin control according to the at least one target skin control; converting the target skin control pointer corresponding to the target skin control become the base class pointer of the SkinItemBase base class; find and call the SkinItemBase base class based on the base class pointer. Such as figure 2 As shown, the method in this embodiment may specifically include the following steps:

[0059] Step 201, call the switchSkin interface of the SkinManager object, query the target array list of the SkinManager object to obtain at least one ...

Embodiment 3

[0074] The client skin changing device provided by the embodiment of the present invention can execute the client skin changing method provided by any embodiment of the present invention, and the specific structure of the device is as follows: target skin changing control query module 31, base class calling module 32 and skin Set up module 33.

[0075] Wherein, the target skin change control query module 31 is used to call the switchSkin interface of the SkinManager object, query the target array list of the SkinManager object to obtain at least one target skin change control;

[0076] A base class calling module 32, configured to call the SkinItemBase base class corresponding to the at least one target skinning control based on the at least one target skinning control, wherein the target skinning control is instantiated by a target skinning subclass object, the target skinning subclass inherits the SkinItemBase base class;

[0077] The skin setting module 33 is configured to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a client skin changing method, device, equipment and computer-readable storage medium. The method includes: calling the switchSkin interface of the SkinManager object, querying the target array list of the SkinManager object to obtain at least one target skin control; calling the SkinItemBase base class corresponding to the at least one target skin control based on the at least one target skin control , wherein, the target skin change control is an object instantiated by the target skin change subclass, and the target skin change subclass inherits the SkinItemBase base class; call the setItemColor interface, and set at least one of the skin properties according to the skin properties stored in the SkinItemBase base class The skin for the target skinnable control. The technical solution of the embodiment of the present invention reduces the workload of programmers, increases code reusability, and reduces later maintenance costs when the client is skinned.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of computer applications, and in particular to a method, device, equipment and computer-readable storage medium for skinning a client. Background technique [0002] The client usually contains multiple controls. For example, the control can be the overall appearance interface of the client and some buttons, avatars, etc. In order to meet the individual needs of users, the client is generally equipped with a skin-changing function. Skinning generally refers to the operation of changing the appearance of the client program interface to achieve different visual effects and increase the aesthetic effect of the client program. Users can set the control skin according to their own preferences, such as changing the background color of one or several controls, or entering night mode, eye protection mode, etc. to achieve skin change. [0003] In the prior art, if the skin of a control need...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/451
CPCG06F9/451
Inventor 黄浩
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products