CN114422858B - Linux smart television skin rapid generation method, system, device and medium - Google Patents

Linux smart television skin rapid generation method, system, device and medium Download PDF

Info

Publication number
CN114422858B
CN114422858B CN202210299497.6A CN202210299497A CN114422858B CN 114422858 B CN114422858 B CN 114422858B CN 202210299497 A CN202210299497 A CN 202210299497A CN 114422858 B CN114422858 B CN 114422858B
Authority
CN
China
Prior art keywords
skin
variable
television
generation
map
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
CN202210299497.6A
Other languages
Chinese (zh)
Other versions
CN114422858A (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.)
Beijing Zhixiang Information Technology Co ltd
Original Assignee
Beijing Zhixiang 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 Beijing Zhixiang Information Technology Co ltd filed Critical Beijing Zhixiang Information Technology Co ltd
Priority to CN202210299497.6A priority Critical patent/CN114422858B/en
Publication of CN114422858A publication Critical patent/CN114422858A/en
Application granted granted Critical
Publication of CN114422858B publication Critical patent/CN114422858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Library & Information Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Circuits (AREA)

Abstract

The invention provides a method, a system, equipment and a medium for quickly generating Linux smart television skin, which belong to the technical field of smart televisions, wherein the method comprises the following steps: s1, creating a plurality of skin files, and setting skin variables and skin methods of the skin files; s2, traversing the skin variables by using the skin method to generate a plurality of skin patterns; and S3, extracting each skin pattern to a corresponding skin file to finish the generation of the television skin. The invention has the advantages that: the television skin generation efficiency and the fluency are greatly improved.

Description

Linux smart television skin rapid generation method, system, device and medium
Technical Field
The invention relates to the technical field of intelligent televisions, in particular to a method, a system, equipment and a medium for quickly generating Linux intelligent television skins.
Background
The smart television is a new product formed based on the impact of internet wave tide, aims to bring more convenient experience to users, and has become the trend of televisions at present. Nowadays, the smart television has gone into thousands of households, and becomes an essential part in the life of people, and the Linux smart television is one of the smart televisions. The user can switch the skins of the Linux smart television according to the mood and the preference, and the user experience can be obviously improved by developing various skins.
Aiming at the development of the Linux smart television skin, the following two methods exist in the prior art, wherein the method comprises the steps of separating a public cs style and then compiling a plurality of sets of skins; and the second method is realized by modifying variables through pre-compiling languages such as sass/less and the like. However, the first method needs to repeatedly write and maintain a plurality of sets of skin patterns, and the second method loads all variables into the memory, so that the Linux intelligent television is blocked.
Therefore, how to provide a method, a system, a device and a medium for quickly generating a Linux smart television skin to improve the generation efficiency and the fluency of the television skin becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide a method, a system, equipment and a medium for quickly generating Linux smart television skin, so that the generation efficiency and the fluency of the television skin are improved.
In a first aspect, the invention provides a Linux smart television skin fast generation method, which comprises the following steps:
s1, creating a plurality of skin files, and setting skin variables and skin methods of the skin files;
s2, traversing the skin variables by using the skin method to generate a plurality of skin patterns;
and S3, extracting each skin pattern to a corresponding skin file to finish the generation of the television skin.
Further, in step S1, the skin variables at least include skin name, font, text color, background picture, and selected style;
the skin method includes at least a skinny method and a getSkinKey method.
Further, the step S2 specifically includes:
and introducing the skin variable into an export file, integrating the skin variable into a global variable, traversing the skin variable to a skin map by using the skinny method, and acquiring the skin variable from the skin map by using the getSkinKey method to generate a plurality of skin patterns.
Further, the step S3 specifically includes:
and extracting the skin patterns to corresponding skin files by a method of regularly matching skin names to finish the generation of the television skin.
In a second aspect, the invention provides a Linux smart television skin fast generation system, which comprises the following modules:
the skin variable and method setting module is used for creating a plurality of skin files and setting the skin variable and the skin method of each skin file;
the skin pattern generation module is used for traversing the skin variables by using the skin method to generate a plurality of skin patterns;
and the television skin generation module is used for extracting each skin pattern to a corresponding skin file to finish the generation of the television skin.
Further, in the skin variable and method setting module, the skin variable at least includes a skin name, a font, a text color, a background picture and a selected style;
the skin method includes at least a skinny method and a getskinnkey method.
Further, the skin pattern generation module is specifically:
and introducing the skin variable into an export file, integrating the skin variable into a global variable, traversing the skin variable to a skin map by using the skinny method, and acquiring the skin variable from the skin map by using the getSkinKey method to generate a plurality of skin patterns.
Further, the television skin generation module specifically comprises:
and extracting the skin patterns to corresponding skin files by a method of regularly matching skin names to finish the generation of the television skin.
In a third aspect, the present invention provides a Linux smart television skin fast generation device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method according to the first aspect when executing the program.
In a fourth aspect, the present invention provides a Linux smart television skin fast generation medium, on which a computer program is stored, wherein when the program is executed by a processor, the method of the first aspect is implemented.
One or more technical schemes provided in the embodiments of the present invention have at least the following technical effects or advantages:
through setting a skin variable and a skin method of a skin file, traversing the skin variable by using the skin method to generate a plurality of skin patterns, extracting each skin pattern to a corresponding skin file to generate a television skin, and only modifying the skin variable when the television skin is additionally generated or modified, and outputting a plurality of sets of television skins at one time without modifying codes in a page; and the skin variable is traversed through the skinfy method and the getskinKey method to generate the skin pattern, all the skin variables do not need to be loaded into a memory, the Linux intelligent television is prevented from being jammed, and finally the television skin generation efficiency and the television skin generation fluency are greatly improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a flow chart of a Linux smart television skin rapid generation method of the invention.
Fig. 2 is a schematic structural diagram of a Linux smart television skin fast generation system of the present invention.
Fig. 3 is a schematic structural diagram of a Linux smart television skin fast generation device of the present invention.
FIG. 4 is a schematic structural diagram of a Linux smart television skin fast generation medium.
Detailed Description
The embodiment of the application provides a method, a system, equipment and a medium for quickly generating the skin of the Linux smart television, so that the generation efficiency and the fluency of the skin of the television are improved.
The technical scheme in the embodiment of the application has the following general idea: traversing the skin variables by using a set skin method to generate a plurality of skin patterns, extracting each skin pattern to a corresponding skin file to generate a television skin, and only modifying the skin variables when the television skin is additionally generated or modified without modifying codes inside the page; the skin pattern is generated by traversing the skin variables through the skinfy method and the getSkinKey method, and all the skin variables do not need to be loaded into a memory, so that the generation efficiency and the fluency of the television skin are improved.
Example one
The embodiment provides a Linux smart television skin fast generation method, as shown in fig. 1, including the following steps:
s1, creating a plurality of skin files, and setting skin variables and skin methods of the skin files;
s2, traversing the skin variables by using the skin method to generate a plurality of skin patterns;
and S3, extracting each skin pattern to a corresponding skin file to finish the generation of the television skin.
The invention can dynamically compile and load each set of television skins according to the requirements of customers, greatly lightens the workload of developers, and has the advantages of easy pattern management, simple pattern searching, high development efficiency, high expansibility and low maintenance cost.
In the step S1, the skin variables at least include skin names, fonts, text colors, background pictures, and selected patterns;
the skin method includes at least a skinny method and a getskinnkey method.
The skin variables are set as follows, for example:
skinA:{
font_color:#000;
background:#ccc;
}
the step S2 specifically comprises the following steps:
introducing the skin variable into an export file, integrating the skin variable into a global variable $ skins, traversing the skin variable to a skin map $ skin-map by using the skinny method, and finally acquiring the skin variable from the skin map $ skin-map by using the getSkinKey method to generate a plurality of skin patterns.
The codes are exemplified as follows:
@mixin skinify {
@each $skin-name,
$skin-map in $skins {
$skin-map: $skin-map !global;
.#{$skin-name} & {
@content;
}
}
}
@function getSkinKey($key) {
@return map-get($skin-map, $key);
}
@mixin font_color() {
@include skinify {
color: getSkinKey(‘font_color’);
}
}
the step S3 specifically includes:
and extracting the skin patterns to corresponding skin files by a method of regularly matching skin names to finish the generation of the television skin.
Example two
The embodiment provides a Linux smart television skin fast generation system, as shown in fig. 2, including the following modules:
the skin variable and method setting module is used for creating a plurality of skin files and setting the skin variable and the skin method of each skin file;
the skin pattern generation module is used for traversing the skin variables by using the skin method to generate a plurality of skin patterns;
and the television skin generation module is used for extracting each skin pattern to a corresponding skin file to finish the generation of the television skin.
The invention can dynamically compile and load each set of television skins according to the requirements of customers, greatly lightens the workload of developers, and has the advantages of easy pattern management, simple pattern searching, high development efficiency, high expansibility and low maintenance cost.
In the skin variable and method setting module, the skin variables at least comprise skin names, fonts, character colors, background pictures and selected patterns;
the skin method includes at least a skinny method and a getSkinKey method.
The skin variables are set as follows, for example:
skinA:{
font_color:#000;
background:#ccc;
}
the skin pattern generation module specifically comprises:
introducing the skin variable into an export file, integrating the skin variable into a global variable $ skins, traversing the skin variable to a skin map $ skin-map by using the skinny method, and finally acquiring the skin variable from the skin map $ skin-map by using the getSkinKey method to generate a plurality of skin patterns.
The codes are exemplified as follows:
@mixin skinify {
@each $skin-name,
$skin-map in $skins {
$skin-map: $skin-map !global;
.#{$skin-name} & {
@content;
}
}
}
@function getSkinKey($key) {
@return map-get($skin-map, $key);
}
@mixin font_color() {
@include skinify {
color: getSkinKey(‘font_color’);
}
}
the television skin generation module specifically comprises:
and extracting the skin patterns to corresponding skin files by a method of regularly matching skin names to finish the generation of the television skin.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, which is detailed in the third embodiment.
EXAMPLE III
The embodiment provides a Linux smart television skin fast generation device, as shown in fig. 3, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, any one of the embodiments may be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a person skilled in the art can understand a specific implementation manner of the electronic device in this embodiment and various variations thereof, and therefore, a detailed description of how the electronic device implements the method in the first embodiment of the present application is not given here. The equipment used by those skilled in the art to implement the methods in the embodiments of the present application is within the scope of the present application.
Based on the same inventive concept, the present application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
The embodiment provides a Linux smart television skin fast generation medium, as shown in fig. 4, on which a computer program is stored, and when the computer program is executed by a processor, any one of the embodiments may be implemented.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
through setting a skin variable and a skin method of a skin file, traversing the skin variable by using the skin method to generate a plurality of skin patterns, extracting each skin pattern to a corresponding skin file to generate a television skin, and only modifying the skin variable when the television skin is additionally generated or modified, and outputting a plurality of sets of television skins at one time without modifying codes in a page; and the skin variable is traversed through the skin method and the getSkinKey method to generate a skin pattern, all the skin variables do not need to be loaded into a memory, the Linux intelligent television is prevented from being blocked, and finally the television skin generation efficiency and the smoothness are greatly improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (4)

1. A Linux smart television skin rapid generation method is characterized by comprising the following steps: the method comprises the following steps:
s1, creating a plurality of skin files, and setting skin variables and skin methods of the skin files; the skin variables at least comprise skin names, fonts, text colors, background pictures and selected patterns; the skin method includes at least a skinny method and a getskinnkey method;
s2, introducing the skin variable into an export file, integrating the skin variable into a global variable, traversing the skin variable to a skin map by using the skinny method, and finally acquiring the skin variable from the skin map by using the getSkinKey method to generate a plurality of skin patterns;
and S3, extracting the corresponding skin file from each skin pattern by a method of regularly matching skin names to finish the generation of the television skin.
2. A Linux smart television skin rapid generation system is characterized in that: the system comprises the following modules:
the skin variable and method setting module is used for creating a plurality of skin files and setting the skin variable and the skin method of each skin file; the skin variables at least comprise skin names, fonts, text colors, background pictures and selected styles; the skin method includes at least a skinny method and a getskinnkey method;
the skin pattern generation module is used for introducing the skin variable into an export file, integrating the skin variable into a global variable, traversing the skin variable to a skin map by using the skinny method, and finally acquiring the skin variable from the skin map by using the getskinnkey method to generate a plurality of skin patterns;
and the television skin generation module is used for extracting the skin patterns to corresponding skin files by a regular matching skin name method so as to finish the generation of the television skin.
3. A Linux smart television skin flash device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of claim 1.
4. A computer-readable storage medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the Linux smart tv skin fast generation method as recited in claim 1.
CN202210299497.6A 2022-03-25 2022-03-25 Linux smart television skin rapid generation method, system, device and medium Active CN114422858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210299497.6A CN114422858B (en) 2022-03-25 2022-03-25 Linux smart television skin rapid generation method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210299497.6A CN114422858B (en) 2022-03-25 2022-03-25 Linux smart television skin rapid generation method, system, device and medium

Publications (2)

Publication Number Publication Date
CN114422858A CN114422858A (en) 2022-04-29
CN114422858B true CN114422858B (en) 2022-11-18

Family

ID=81263747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210299497.6A Active CN114422858B (en) 2022-03-25 2022-03-25 Linux smart television skin rapid generation method, system, device and medium

Country Status (1)

Country Link
CN (1) CN114422858B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604071A (en) * 2016-12-19 2017-04-26 四川长虹电器股份有限公司 Voice skin switching system and voice skin switching method for intelligent television end
CN112394932A (en) * 2020-11-19 2021-02-23 建信金融科技有限责任公司 Automatic browser webpage skin changing method and device
CN113868565A (en) * 2021-09-23 2021-12-31 深圳市腾讯网域计算机网络有限公司 Skin style file editing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050106103A1 (en) * 2003-11-13 2005-05-19 Unilever Home & Personal Care Usa, Division Of Conopco, Inc. Method and system for characterizing tactile perception

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106604071A (en) * 2016-12-19 2017-04-26 四川长虹电器股份有限公司 Voice skin switching system and voice skin switching method for intelligent television end
CN112394932A (en) * 2020-11-19 2021-02-23 建信金融科技有限责任公司 Automatic browser webpage skin changing method and device
CN113868565A (en) * 2021-09-23 2021-12-31 深圳市腾讯网域计算机网络有限公司 Skin style file editing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
vue 一键换肤;席小丽;《简书》;20200716;全文 *

Also Published As

Publication number Publication date
CN114422858A (en) 2022-04-29

Similar Documents

Publication Publication Date Title
CN105511873B (en) User interface control display method and device
CN106775744B (en) Method and device for generating static library
Miecznikowski et al. Decompiling Java using staged encapsulation
CN111078279A (en) Processing method, device and equipment of byte code file and storage medium
CN109857398A (en) A kind of generation method of front end page, device, storage medium and computer equipment
CN110555185A (en) Page customization method and system based on PC client
CN107153563B (en) Software version generation method and device
CN114422858B (en) Linux smart television skin rapid generation method, system, device and medium
CN113849161A (en) Application control method and device, storage medium and electronic equipment
CN113342399A (en) Application structure configuration method and device and readable storage medium
JP6674048B2 (en) Judgment device, judgment method and judgment program
CN113064591A (en) WPF page dynamic generation method, system, equipment and medium
CN111222066A (en) Pull-down component system and method for event processing and searching
Kushsairy et al. Embedded vision: Enhancing embedded platform for face detection system
CN113792247B (en) Method, apparatus, device and medium for generating functional flow chart based on code characteristics
JP7293544B2 (en) Q&A system update processing method and device
CN113867714B (en) Automatic code generation method adapting to multiple languages
CN113961292B (en) Security product generation method and device, electronic equipment and storage medium
CN112698835B (en) Singlechip compiling and linking method and device, computer equipment and storage medium
CN117891930B (en) Book knowledge question-answering method based on knowledge graph enhanced large language model
CN114879967A (en) Code running method and device and computer readable storage medium
US20210356947A1 (en) Information processing apparatus, information processing method and computer readable medium
JP2018106538A (en) Information processing device, information processing system, control method, and program
CN118034660A (en) Graph compiling method and device for large language model fusion operator and storage medium
CN117742679A (en) Kernel fusion method and system based on deep neural network

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
GR01 Patent grant
GR01 Patent grant