A subject dynamic switching method based on programming language and an electronic device

A programming language and theme technology, applied in the computer field, can solve the problem that the website cannot provide better color matching switching function, etc., to achieve the effect of dynamic switching

Inactive Publication Date: 2019-03-29
SHENZHEN DIANMAO TECH CO LTD
View PDF9 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above deficiencies in the prior art, the purpose of the present invention is to provide a method for dynamically switching themes based on a programming language and an electronic device, aiming at solving the problem that the prior art cannot provide a better color switching function for the website

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
  • A subject dynamic switching method based on programming language and an electronic device
  • A subject dynamic switching method based on programming language and an electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention provides a programming language-based theme dynamic switching method and electronic equipment. In order to make the purpose, technical solution and effect of the present invention more clear and definite, the present invention will be further described in detail below. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0028] see figure 1 , figure 1 It is a flow chart of a preferred embodiment of a programming language-based theme dynamic switching method in the present invention, which includes steps:

[0029] S1. Preset color schemes for multiple groups of themes, and define different variables for different color elements in each group of themes;

[0030] S2. Inject the variables of the current theme into the root component, and display the color scheme of the current theme;

[0031] S3. When receiving an instruction to switch the theme, in...

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 theme dynamic switching method and an electronic device based on a programming language, wherein, the method comprises the following steps: a color matching scheme of a plurality of themes is preset, and different variables are defined for different color elements in each theme; the variables of the current theme are injected into the root component to display the color scheme of the current theme; When an instruction to switch a theme is received, variables of the theme to be switched are injected into the root component to display a color scheme for the new theme. The invention defines different variables for different color elements, and then imports the set of theme variables into the root component, and all the child components will successfully apply the theme scheme. When the user switches themes, another set of theme variables is actually injected into the root component, enabling the theme to be dynamically switched.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a programming language-based theme dynamic switching method and electronic equipment. Background technique [0002] The colors of the various elements of the website are often fixed and cannot be changed. There can only be one color scheme for the website, and it will inevitably be monotonous for users to use for a long time. For users who want to try different color schemes, there is no better dynamic switching method in the prior art. [0003] Therefore, the prior art still needs to be improved and developed. Contents of the invention [0004] In view of the above deficiencies in the prior art, the purpose of the present invention is to provide a method for dynamically switching themes based on a programming language and an electronic device, aiming at solving the problem that the prior art cannot provide a better color switching function for the website. [0005] Techni...

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 Applications(China)
IPC IPC(8): G06F8/38
CPCG06F8/38
Inventor 孙悦李天驰
Owner SHENZHEN DIANMAO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products