CN109657233A - Generate method, apparatus, storage medium and the electronic equipment of theme - Google Patents
Generate method, apparatus, storage medium and the electronic equipment of theme Download PDFInfo
- Publication number
- CN109657233A CN109657233A CN201811408356.3A CN201811408356A CN109657233A CN 109657233 A CN109657233 A CN 109657233A CN 201811408356 A CN201811408356 A CN 201811408356A CN 109657233 A CN109657233 A CN 109657233A
- Authority
- CN
- China
- Prior art keywords
- attribute
- property parameters
- target
- objective
- association
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 238000004590 computer program Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 8
- 230000005236 sound signal Effects 0.000 description 4
- 238000013461 design Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/258—Heading extraction; Automatic titling; Numbering
Abstract
This disclosure relates to which a kind of method, apparatus, storage medium and electronic equipment for generating theme, can determine objective attribute target attribute, and obtain the first property parameters of the objective attribute target attribute in preset themes template;Attribute Association relationship is obtained, and determines the association type of the objective attribute target attribute according to the Attribute Association relationship;According to Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;According to the association type and first property parameters, the second property parameters of the relating attribute are determined;Target topic is generated according to first property parameters and second property parameters.
Description
Technical field
This disclosure relates to which theme generates field, and in particular, to it is a kind of generate the method, apparatus of theme, storage medium and
Electronic equipment.
Background technique
With the rapid development of Internet technology, social network sites are also quite universal, due to the otherness of user group,
Demand of each user to social network sites page subject matter pattern be not also identical, this is just needed before operation system is online, needs root
According to the pattern of user demand setting page subject matter.
Under normal conditions, when generating theme, user needs to each variable attribute to be placed in preset themes template
It is arranged one by one, but the preset themes template of complete set usually contains a large amount of variable attribute, therefore, if it is desirable to one by one
Variable attribute to be placed is set, then needs to carry out a large amount of data point reuse depending on the user's operation, so that it is raw to increase theme
At complexity, cause theme generate efficiency it is lower.
Summary of the invention
Purpose of this disclosure is to provide method, apparatus, storage medium and electronic equipments that one generates theme.
According to the first aspect of the embodiments of the present disclosure, a kind of method for generating theme is provided, which comprises default
Objective attribute target attribute is determined in theme template, and obtains the first property parameters of the objective attribute target attribute;Obtain Attribute Association relationship, and root
The association type of the objective attribute target attribute is determined according to the Attribute Association relationship;According to the Attribute Association Relation acquisition and the mesh
Mark the relating attribute of Attribute Association;According to the association type and first property parameters, the of the relating attribute is determined
Two property parameters;
Target topic is generated according to first property parameters and second property parameters.
Optionally, before the acquisition Attribute Association relationship, the method also includes: it determines in the preset themes template
Multiple variable attributes;Obtain the type parameter of each variable attribute in the preset themes template;It is true according to the type parameter
The variable attribute for determining same type, obtains kind attributes;The shared attribute-bit of the kind attributes is obtained, and according to described total
There is attribute-bit to determine the Attribute Association relationship.
Optionally, described according to the association type and first property parameters, determine the second of the relating attribute
Property parameters include: when the association type indicates that the objective attribute target attribute is first order attribute, by working as the relating attribute
Preceding property parameters replace with first property parameters, obtain second property parameters;Described in association type expression
When objective attribute target attribute is second level attribute, using the current attribute parameter of the relating attribute as second property parameters;It is described
Second level attribute is the sub- attribute of the first order attribute.
It is optionally, described that generate target topic according to first property parameters and second property parameters include: root
The style sheet that the preset themes template is adjusted according to first property parameters and second property parameters, obtains the mesh
Mark theme.
According to the second aspect of an embodiment of the present disclosure, a kind of device for generating theme is provided, described device includes: first to obtain
Modulus block for determining objective attribute target attribute in preset themes template, and obtains the first property parameters of the objective attribute target attribute;First
Determining module for obtaining Attribute Association relationship, and determines according to the Attribute Association relationship association class of the objective attribute target attribute
Type;Second obtains module, for according to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;Second
Determining module, for determining the second attribute ginseng of the relating attribute according to the association type and first property parameters
Number;Theme generation module, for generating target topic according to first property parameters and second property parameters.
Optionally, described device further include: third determining module, it is multiple variable in the preset themes template for determining
Attribute;Third obtains module, for obtaining the type parameter of each variable attribute in the preset themes template;4th determines mould
Block obtains kind attributes for determining the variable attribute of same type according to the type parameter;5th determining module, is used for
The shared attribute-bit of the kind attributes is obtained, and the Attribute Association relationship is determined according to the shared attribute-bit.
Optionally, second determining module includes: the 4th determining submodule, described in indicating in the association type
When objective attribute target attribute is first order attribute, the current attribute parameter of the relating attribute is replaced with into first property parameters, is obtained
To second property parameters;5th determines submodule, for indicating that the objective attribute target attribute is the second level in the association type
When attribute, using the current attribute parameter of the relating attribute as second property parameters;The second level attribute is described
The sub- attribute of first order attribute.
Optionally, the theme generation module, for according to first property parameters and the second property parameters tune
The style sheet of the whole preset themes template, obtains the target topic.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine program, when which is executed by processor the step of realization disclosure first aspect the method.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising: memory is stored thereon with meter
Calculation machine program;Processor, for executing the computer program in the memory, to realize described in disclosure first aspect
The step of method.
Through the above technical solutions, can determine objective attribute target attribute in preset themes template, and obtain the objective attribute target attribute
The first property parameters;Attribute Association relationship is obtained, and determines the association of the objective attribute target attribute according to the Attribute Association relationship
Type;According to Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;According to the association type and described
First property parameters determine the second property parameters of the relating attribute;Belonged to according to first property parameters and described second
Property parameter generate target topic, in this way, mesh can be quickly generated according to the association type and Attribute Association relationship of objective attribute target attribute
Theme is marked, so as to avoid the complex operations that each variable attribute to be placed is arranged one by one, is generated so as to improve theme
Efficiency.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the flow chart of the method for the first generation theme shown according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for second of generation theme shown according to an exemplary embodiment;
Fig. 3 is a kind of schematic diagram of Attribute Association relationship shown according to an exemplary embodiment;
Fig. 4 is the block diagram of the device of the first generation theme shown according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of second of generation theme shown according to an exemplary embodiment;
Fig. 6 is that shown according to an exemplary embodiment the third generates the block diagram of the device of theme;
Fig. 7 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched
The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
The disclosure provides a kind of method, apparatus, storage medium and electronic equipment for generating theme, can get user
After the objective attribute target attribute of selection, the association type of the objective attribute target attribute is determined according to Attribute Association relationship, then according to the objective attribute target attribute
Association type and Attribute Association relationship quickly generate target topic, in this way, user only needs by the way that the objective attribute target attribute is arranged
The target topic for meeting oneself demand can be obtained in property parameters, sets one by one so as to avoid to each variable attribute to be placed
The complex operations set so as to improve the efficiency that theme generates, and then improve the experience of user.
The specific embodiment of the disclosure is described in detail combined with specific embodiments below.
Fig. 1 is a kind of flow chart of method for generating theme shown according to an exemplary embodiment, as shown in Figure 1, should
Method the following steps are included:
S101 determines objective attribute target attribute in preset themes template, and obtains the first property parameters of the objective attribute target attribute.
Wherein, which may include the styles at terminal (such as mobile phone, computer) interface, which can wrap
Include font on interface, font color, background colour, margin away from etc. a variety of attributes attribute set, which can be with
Theme template including pre-set one or more kinds of styles, for example, including template 1, template in the preset themes template
2, when 3 three kinds of theme templates of template, which can correspond to the theme of cartoon type, and template 2 can correspond to the master of landscape type
Topic, template 3 can correspond to the theme of dreamlike type;The objective attribute target attribute may include the attribute of user's selection, for example, the target category
Property may include font, background colour, color, text type, Header font, title background colour, text background colour, menu background
Any one in a variety of attributes such as color, menu font color, text type color, first property parameters may include indicating
The attribute value of the objective attribute target attribute, for example, when the objective attribute target attribute is font, and the corresponding font of attribute value 1 is " Song typeface ", attribute value
When 2 corresponding fonts are " regular script ", when getting first property parameters is 1, indicate that user wants to set Song for font
Body.
In one possible implementation, user can generate application program (such as " conception design by logging in theme
Device ") generate the theme for meeting oneself demand, wherein and the interface that the theme generates application program can be generally divided into a variety of
Functional area, for example, the multiple functions such as the selection region that is the theme, attribute setting area, topic style preview area can be divided
Region, in this way, user after logging in the theme and generating application program, can select oneself to need default in theme selection region
Then the first property parameters of the objective attribute target attribute are arranged in theme template in attribute setting area, and can be in the topic style
The theme effect of preview area preview user oneself setting.
S102 obtains Attribute Association relationship, and the association type of the objective attribute target attribute is determined according to the Attribute Association relationship.
Wherein, which may include the attribute corresponding relationship pre-established, which may include
First order attribute type or second level attribute type, and the first order attribute is the parent attribute of the second level attribute, and this
Secondary attributes are the sub- attribute of the first order attribute, which can control the main style of theme, which can be real
The personalization of existing theme, which may include the corresponding relationship of parent attribute Yu sub- attribute, in the objective attribute target attribute
When association type is parent attribute, the association type with the associated relating attribute of the objective attribute target attribute is sub- attribute, in the target category
Property association type be sub- attribute when, the association type with the associated relating attribute of the objective attribute target attribute is parent attribute.
It in the disclosure, can be multiple in the preset themes template by determining before obtaining the Attribute Association relationship
Then variable attribute obtains the type parameter of each variable attribute in the preset themes template, and is determined according to such shape parameter
The variable attribute of same type, obtains kind attributes, obtains the shared attribute-bit of the kind attributes, and shares attribute according to this
It identifies and determines the Attribute Association relationship.
Wherein, which may include the adjustable object of attribute value in preset themes template, for example, the variable category
Property may include text type, Header font, menu font, text background colour, title background colour, menu background color, text word
Number, the attributes such as title font size, menu font size, and the attribute can be configured by user, in one possible implementation,
Above-mentioned multiple variable attributes can be determined as multiple sub- variables;Such shape parameter may include indicating that the variable attribute is specifically
The attribute class label of which kind of attribute, for example, the type parameter of " text type " in variable attribute is the class of A1, " Header font "
Shape parameter is A2, and the type parameter of " menu font " is A3, and the type parameter of " text background colour " in variable attribute is B1,
The type parameter of " title background colour " is B2, and the type parameter of " menu background color " is B3, at this point, " text type ", " lemma
Body ", " menu font " are the kind attributes that one group of predicable is identified as " font ", " text background colour ", " title background
Color ", " menu background color " are the kind attributes that one group of predicable is identified as " background colour ", then share attribute mark according to this
Know determining Attribute Association relationship are as follows: attribute " font " correspondence " text type ", " Header font ", " menu font " three are variable
Attribute, attribute " background colour " correspondence " text background colour ", " title background colour ", " menu background color " three variable attributes, herein
It is merely illustrative, the disclosure is not construed as limiting this.
After determining the Attribute Association relationship, the json file record Attribute Association relationship and each attribute can be passed through
Initial value, the initial value can be generated at random by system, can also preset a default value according to the theme demand of user.
S103, according to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute.
Wherein, which may include the category corresponding with the objective attribute target attribute determined according to the Attribute Association relationship
Property, for example, being " text type ", " lemma with the associated relating attribute of the objective attribute target attribute when the objective attribute target attribute is " font "
Body ", " menu font ";It is " font " with the associated relating attribute of the objective attribute target attribute when the objective attribute target attribute is " text type ".
S104 determines the second property parameters of the relating attribute according to the association type and first property parameters.
In this step, when the association type indicates that the objective attribute target attribute is first order attribute, by working as the relating attribute
Preceding property parameters replace with first property parameters, obtain second property parameters;The objective attribute target attribute is indicated in the association type
When for second level attribute, using the current attribute parameter of the relating attribute as second property parameters;The second level attribute is should
The sub- attribute of first order attribute, in this way, the mesh is being arranged in user when the objective attribute target attribute is first order attribute (such as " parent attribute ")
After the first property parameters for marking attribute, it can also be modified together with the current attribute parameter of the associated relating attribute of the objective attribute target attribute
For first property parameters, to improve the efficiency of theme modification;(such as " the sub- category when the objective attribute target attribute is second level attribute
Property "), current category of the user after the first property parameters that the objective attribute target attribute is set, with the associated relating attribute of the objective attribute target attribute
Property parameter remain unchanged so that user targetedly can only modify one of them or several sub- attributes, and with the son
The parent attribute of Attribute Association remains unchanged, and in this way while the main style for guaranteeing theme is constant, can also realize theme
It is personalized.
S105 generates target topic according to first property parameters and second property parameters.
In this step, the preset themes template can be adjusted according to first property parameters and second property parameters
Style sheet obtains the target topic.
In one possible implementation, which generates application program and is getting first property parameters and be somebody's turn to do
After second property parameters, the target topic can be presented to user in the topic style preview area on interface, and then can root
The corresponding pattern file of the target topic is generated according to the trigger action of user and is saved, so that user is using the target topic
When, can download the pattern file with directly packing can pass through the less language generation mesh in one possible implementation
Mark the corresponding pattern file of theme.
Using the above method, target master can be quickly generated according to the association type and Attribute Association relationship of objective attribute target attribute
Topic, so as to avoid the complex operations that each variable attribute to be placed is arranged one by one, the efficiency generated so as to improve theme.
Fig. 2 is a kind of flow chart of method for generating theme shown according to an exemplary embodiment, it is contemplated that the disclosure
Purpose be according to the association type of Attribute Association relationship and objective attribute target attribute generate target topic, therefore, in the present embodiment
In, as shown in Fig. 2, the Attribute Association relationship can be pre-established by executing S201 to S204, in this way, getting user's choosing
When the objective attribute target attribute selected, the Attribute Association relationship that can be directly pre-established according to this determines the association type of the objective attribute target attribute,
Then target topic is generated according to the association type of the objective attribute target attribute and the Attribute Association relationship, specifically, can be by holding
Row S205 to S209 generates the target topic, as shown in Fig. 2, method includes the following steps:
S201 determines multiple variable attributes in preset themes template.
Wherein, which may include the styles at terminal (such as mobile phone, computer) interface, which can wrap
Include font on interface, font color, background colour, margin away from etc. a variety of attributes attribute set;The preset themes template can be with
Theme template including pre-set one or more kinds of styles, for example, including template 1, template in the preset themes template
2, when 3 three kinds of theme templates of template, which can correspond to the theme of cartoon type, and template 2 can correspond to the master of landscape type
Topic, template 3 can correspond to the theme of dreamlike type;The variable attribute may include in preset themes template attribute value it is adjustable
Object, for example, the variable attribute may include text type, Header font, menu font, text background colour, title background colour,
The attributes such as menu background color, text font size, title font size, menu font size, and the attribute can be configured by user, in one kind
In possible implementation, above-mentioned multiple variable attributes can be determined as multiple sub- variables.
S202 obtains the type parameter of each variable attribute in the preset themes template.
Wherein, such shape parameter may include indicate the variable attribute be specifically which kind of attribute attribute class label, for example,
The type parameter of " text type " in variable attribute is A1, the type parameter of " Header font " is A2, the class of " menu font "
Shape parameter is A3, and the type parameter of " text background colour " in variable attribute is B1, and the type parameter of " title background colour " is B2,
The type parameter of " menu background color " is B3, and the type parameter of " text font size " in variable attribute is C1, " title font size "
Type parameter is C2, and the type parameter of " menu font size " is C3, is merely illustrative herein, the disclosure does not limit this.
S203 determines the variable attribute of same type according to such shape parameter, obtains kind attributes.
Illustratively, using the multiple variable attribute got as text type, Header font, menu font, text background
Color, title background colour, menu background color, and the type parameter of " text type " is A1, the type parameter of " Header font " is
A2, the type parameter of " menu font " are A3, and the type parameter of " text background colour " is B1, the type parameter of " title background colour "
For B2, the type parameter of " menu background color " is illustrated for being B3, can be true according to the type parameter of each variable attribute
Fixed " text type ", " Header font ", " menu font " are all A generic attribute, " text background colour ", " title background colour ", " menu
Background colour " is all B generic attribute, at this point it is possible to determine that " text type ", " Header font ", " menu font " are one group of same generic
Property, " text background colour ", " title background colour ", " menu background color " they are another group of kind attributes, it is above-mentioned to be merely illustrative, this
It is open that this is not construed as limiting.
S204 obtains the shared attribute-bit of the kind attributes, and shares attribute-bit according to this and determine the Attribute Association
Relationship.
Illustratively, continue to be illustrated by taking the example in S203 as an example, it is in this step, available to arrive kind attributes
" text type ", " Header font ", " menu font " shared attribute-bit be " font ", it is available to kind attributes " just
Literary background colour ", " title background colour ", " menu background color " shared attribute-bit be " background colour ", in a kind of possible realization
In mode, this can be shared to attribute-bit and be determined as father's variable, each variable attribute is determined as sub- variable, at this point it is possible to
According to this share attribute-bit determine Attribute Association relationship are as follows: father's variable " font " correspondence " text type ", " Header font ",
" menu font " three sub- variables, father's variable " background colour " correspondence " text background colour ", " title background colour ", " menu background color "
Three sub- variables, above-mentioned example are merely illustrative, and the disclosure is not construed as limiting this.
It, can be by json file record Attribute Association relationship and each in addition, after determining the Attribute Association relationship
The initial value of attribute, the initial value can be generated at random by system, can also preset one according to the theme demand of user
Default value.
S205 determines objective attribute target attribute in the preset themes template, and obtains the first property parameters of the objective attribute target attribute.
Wherein, which may include the attribute of user's selection, for example, the objective attribute target attribute may include font, back
Scenery, color, text type, Header font, title background colour, text background colour, menu background color, menu font color, just
Any one in a variety of attributes such as literary font color, first property parameters may include the attribute for indicating the objective attribute target attribute
Value, for example, when the objective attribute target attribute is font, and the corresponding font of attribute value 1 is " Song typeface ", the corresponding font of attribute value 2 is " pattern
When body ", when getting first property parameters is 1, indicate that user wants to set the Song typeface for font.
In one possible implementation, user can generate application program (such as " conception design by logging in theme
Device ") generate the theme for meeting oneself demand, wherein and the interface that the theme generates application program can be generally divided into a variety of
Functional area, for example, the multiple functions such as the selection region that is the theme, attribute setting area, topic style preview area can be divided
Region, in this way, user after logging in the theme and generating application program, can select oneself to need default in theme selection region
Then the first property parameters of the objective attribute target attribute are arranged in theme template in attribute setting area, and can be in the topic style
The theme effect of preview area preview user oneself setting.
S206 determines the association type of the objective attribute target attribute according to the Attribute Association relationship.
Wherein, association type may include first order attribute type or second level attribute type, and the first order category
Property be the second level attribute parent attribute, which is the sub- attribute of the first order attribute, which can control
The personalization of theme may be implemented in the main style of theme, the sub- attribute, which may include parent attribute and son
The corresponding relationship of attribute, it should be noted that when the association type of the objective attribute target attribute is parent attribute, be associated with the objective attribute target attribute
The association type of relating attribute be sub- attribute, when the association type of the objective attribute target attribute is sub- attribute, with the objective attribute target attribute
The association type of associated relating attribute is parent attribute.
S207, according to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute.
Illustratively, Fig. 3 is a kind of Attribute Association relation schematic diagram shown according to an exemplary embodiment, as shown in figure 3,
The Attribute Association relationship are as follows: father's variable " font " correspondence " text type ", " Header font ", " menu font " three sub- variables,
Father's variable " background colour " correspondence " text background colour ", " title background colour ", " menu background color " three sub- variables, in the target category
Property be father's variable " font " when, can be determined and the objective attribute target attribute " font " associated relating attribute according to the Attribute Association relationship
For sub- variable " text type ", " Header font ", " menu font ";When the objective attribute target attribute is sub- variable " text background colour ",
It can determine that with the objective attribute target attribute " text background colour " associated relating attribute be father's variable " background according to the Attribute Association relationship
Color ", above-mentioned example are merely illustrative, and the disclosure is not construed as limiting this.
S208 determines the second property parameters of the relating attribute according to the association type and first property parameters.
In this step, when the association type indicates that the objective attribute target attribute is first order attribute, by working as the relating attribute
Preceding property parameters replace with first property parameters, obtain second property parameters;The objective attribute target attribute is indicated in the association type
When for second level attribute, using the current attribute parameter of the relating attribute as second property parameters;The second level attribute is should
The sub- attribute of first order attribute, in this way, the mesh is being arranged in user when the objective attribute target attribute is first order attribute (such as " parent attribute ")
After the first property parameters for marking attribute, it can also be modified together with the current attribute parameter of the associated relating attribute of the objective attribute target attribute
For first property parameters, to improve the efficiency of theme modification;(such as " the sub- category when the objective attribute target attribute is second level attribute
Property "), current category of the user after the first property parameters that the objective attribute target attribute is set, with the associated relating attribute of the objective attribute target attribute
Property parameter remain unchanged so that user targetedly can only modify one of them or several sub- attributes, and with the son
The parent attribute of Attribute Association remains unchanged, and in this way while the main style for guaranteeing theme is constant, can also realize theme
It is personalized.
It illustratively, is " font " in the objective attribute target attribute, and first property parameters are target when indicating the 1 of " Song typeface "
Attribute is first order attribute, at this point it is possible to will be with objective attribute target attribute " font " the associated relating attribute " text type ", " mark
Autograph body ", the current attribute parameter of " menu font " replace with first property parameters 1, and obtaining second property parameters is 1,
It is " text type " in the objective attribute target attribute in this way, text type, Header font, menu font can be all modified to the Song typeface,
And first property parameters are when indicating the 2 of " regular script ", which is second level attribute, at this point it is possible to will be with the mesh
The current attribute parameter value 1 for marking attribute " text type " associated relating attribute " font " is used as second property parameters, in this way,
Text type only can be revised as regular script by the Song typeface, other fonts remain as the Song typeface, so that the personalization of theme is realized, on
It states example to be merely illustrative, the disclosure is not construed as limiting this.
S209 generates target topic according to first property parameters and second property parameters.
In this step, the preset themes template can be adjusted according to first property parameters and second property parameters
Style sheet obtains the target topic.
In one possible implementation, which generates application program and is getting first property parameters and be somebody's turn to do
After second property parameters, the target topic can be presented to user in the topic style preview area on interface, and then can root
According to the trigger action of user generate the corresponding pattern file of the target topic (pattern file 1 as shown in Figure 3, pattern file 2,
Pattern file 3) and save, so that user is when using the target topic, the pattern file can be downloaded to be directly packaged.In one kind
In possible implementation, the corresponding pattern file of the less language generation target topic can be passed through.
Using the above method, target master can be quickly generated according to the association type and Attribute Association relationship of objective attribute target attribute
Topic, so as to avoid the complex operations that each variable attribute to be placed is arranged one by one, the efficiency generated so as to improve theme.
Fig. 4 is a kind of block diagram of device for generating theme shown according to an exemplary embodiment, as shown in figure 3, the dress
It sets and includes:
First obtains module 401, for determining objective attribute target attribute in preset themes template, and obtains the of the objective attribute target attribute
One property parameters;
First determining module 402 determines the target category for obtaining Attribute Association relationship, and according to the Attribute Association relationship
The association type of property;
Second obtains module 403, for according to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;
Second determining module 404, for according to the association type and first property parameters, determining the of the relating attribute
Two property parameters;
Theme generation module 405, for generating target topic according to first property parameters and second property parameters.
Optionally, Fig. 5 is the block diagram for implementing a kind of device of the generation theme exemplified according to Fig.4, such as Fig. 5 institute
Show, the device further include:
Third determining module 406, for determining multiple variable attributes in the preset themes template;
Third obtains module 407, for obtaining the type parameter of each variable attribute in the preset themes template;
4th determining module 408 obtains same generic for determining the variable attribute of same type according to such shape parameter
Property;
5th determining module 409 for obtaining the shared attribute-bit of the kind attributes, and shares attribute-bit according to this
Determine the Attribute Association relationship.
Optionally, Fig. 6 is the block diagram for implementing a kind of device of the generation theme exemplified according to Fig.4, such as Fig. 6 institute
Show, which includes:
4th determine submodule 4041, for the association type indicate the objective attribute target attribute be the first order attribute when, by this
The current attribute parameter of relating attribute replaces with first property parameters, obtains second property parameters;
5th determine submodule 4042, for the association type indicate the objective attribute target attribute be the second level attribute when, by this
The current attribute parameter of relating attribute is as second property parameters;The second level attribute is the sub- attribute of the first order attribute.
Optionally, theme generation module 405, for being somebody's turn to do according to first property parameters and second property parameters adjustment
The style sheet of preset themes template obtains the target topic.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Using above-mentioned apparatus, target master can be quickly generated according to the association type and Attribute Association relationship of objective attribute target attribute
Topic, so as to avoid the complex operations that each variable attribute to be placed is arranged one by one, the efficiency generated so as to improve theme.
Fig. 7 is the block diagram of a kind of electronic equipment 700 shown according to an exemplary embodiment.As shown in fig. 7, the electronics is set
Standby 700 may include: processor 701, memory 702.The electronic equipment 700 can also include multimedia component 703, input/
Export one or more of (I/O) interface 704 and communication component 705.
Wherein, processor 701 is used to control the integrated operation of the electronic equipment 700, to complete above-mentioned generation theme
All or part of the steps in method.Memory 702 is for storing various types of data to support in the electronic equipment 700
Operation, these data for example may include the instruction of any application or method for operating on the electronic equipment 700,
And the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory
702 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random is deposited
Access to memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory
(Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable
Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 703 may include screen and audio component.Wherein
Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include
One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage
Device 702 is sent by communication component 705.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O
Interface 704 provides interface between processor 701 and other interface modules, other above-mentioned interface modules can be keyboard, mouse,
Button etc..These buttons can be virtual push button or entity button.Communication component 705 is for the electronic equipment 700 and other
Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 705 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 700 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing the above-mentioned method for generating theme.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of method of above-mentioned generation theme is realized when program instruction is executed by processor.For example, the computer-readable storage medium
Matter can be the above-mentioned memory 702 including program instruction, and above procedure instruction can be held by the processor 701 of electronic equipment 700
Method of the row to complete above-mentioned generation theme.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.
Claims (10)
1. a kind of method for generating theme, which is characterized in that the described method includes:
Objective attribute target attribute is determined in preset themes template, and obtains the first property parameters of the objective attribute target attribute;
Attribute Association relationship is obtained, and determines the association type of the objective attribute target attribute according to the Attribute Association relationship;
According to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;
According to the association type and first property parameters, the second property parameters of the relating attribute are determined;
Target topic is generated according to first property parameters and second property parameters.
2. the method according to claim 1, wherein the method is also before the acquisition Attribute Association relationship
Include:
Determine multiple variable attributes in the preset themes template;
Obtain the type parameter of each variable attribute in the preset themes template;
The variable attribute that same type is determined according to the type parameter, obtains kind attributes;
The shared attribute-bit of the kind attributes is obtained, and determines that the Attribute Association is closed according to the shared attribute-bit
System.
3. the method according to claim 1, wherein described join according to the association type and first attribute
Number, determines that the second property parameters of the relating attribute include:
When the association type indicates that the objective attribute target attribute is first order attribute, by the current attribute parameter of the relating attribute
First property parameters are replaced with, second property parameters are obtained;
When the association type indicates that the objective attribute target attribute is second level attribute, by the current attribute parameter of the relating attribute
As second property parameters;
The second level attribute is the sub- attribute of the first order attribute.
4. method according to any one of claims 1 to 3, which is characterized in that it is described according to first property parameters and
Second property parameters generate target topic
The style sheet that the preset themes template is adjusted according to first property parameters and second property parameters, obtains
The target topic.
5. a kind of device for generating theme, which is characterized in that described device includes:
First obtains module, for determining objective attribute target attribute in preset themes template, and obtains the first of the objective attribute target attribute and belongs to
Property parameter;
First determining module determines the objective attribute target attribute for obtaining Attribute Association relationship, and according to the Attribute Association relationship
Association type;
Second obtains module, for according to the Attribute Association Relation acquisition and the associated relating attribute of the objective attribute target attribute;
Second determining module, for according to the association type and first property parameters, determining the of the relating attribute
Two property parameters;
Theme generation module, for generating target topic according to first property parameters and second property parameters.
6. device according to claim 5, which is characterized in that described device further include:
Third determining module, for determining multiple variable attributes in the preset themes template;
Third obtains module, for obtaining the type parameter of each variable attribute in the preset themes template;
4th determining module obtains kind attributes for determining the variable attribute of same type according to the type parameter;
5th determining module, for obtaining the shared attribute-bit of the kind attributes, and it is true according to the shared attribute-bit
The fixed Attribute Association relationship.
7. device according to claim 5, which is characterized in that second determining module includes:
4th determines submodule, is used for when the association type indicates that the objective attribute target attribute is first order attribute, by the pass
Attribute current attribute parameter replaces with first property parameters, obtains second property parameters;
5th determines submodule, is used for when the association type indicates that the objective attribute target attribute is second level attribute, by the pass
Attribute current attribute parameter is as second property parameters;The second level attribute is that the son of the first order attribute belongs to
Property.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that the theme generation module, for according to institute
It states the first property parameters and second property parameters adjusts the style sheet of the preset themes template, obtain the target master
Topic.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-4 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-4
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811408356.3A CN109657233B (en) | 2018-11-23 | 2018-11-23 | Method and device for generating theme, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811408356.3A CN109657233B (en) | 2018-11-23 | 2018-11-23 | Method and device for generating theme, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109657233A true CN109657233A (en) | 2019-04-19 |
CN109657233B CN109657233B (en) | 2024-01-02 |
Family
ID=66111520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811408356.3A Active CN109657233B (en) | 2018-11-23 | 2018-11-23 | Method and device for generating theme, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109657233B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286904A (en) * | 2019-05-30 | 2019-09-27 | 重庆金融资产交易所有限责任公司 | Generate method, apparatus, computer equipment and the storage medium of front end skin |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761273A (en) * | 2014-01-08 | 2014-04-30 | 兴天通讯技术(天津)有限公司 | Tree structure node attribute configuration method and system |
CN106097417A (en) * | 2016-06-07 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Subject generating method, device, equipment |
CN106408321A (en) * | 2015-07-31 | 2017-02-15 | 华为技术有限公司 | Management method and device of commodity template, and method and device for calling database, and system |
CN107911448A (en) * | 2017-11-14 | 2018-04-13 | 北京金山安全软件有限公司 | Content pushing method and device |
CN108228184A (en) * | 2018-01-26 | 2018-06-29 | 福建中金在线信息科技有限公司 | Style sheet generation method, device, electronic equipment and computer storage media |
CN108614886A (en) * | 2018-05-03 | 2018-10-02 | 北京搜狐互联网信息服务有限公司 | A kind of generation method and device of subject of Web site |
CN108829758A (en) * | 2018-05-28 | 2018-11-16 | 郑州悉知信息科技股份有限公司 | A kind of Website construction method and apparatus |
-
2018
- 2018-11-23 CN CN201811408356.3A patent/CN109657233B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103761273A (en) * | 2014-01-08 | 2014-04-30 | 兴天通讯技术(天津)有限公司 | Tree structure node attribute configuration method and system |
CN106408321A (en) * | 2015-07-31 | 2017-02-15 | 华为技术有限公司 | Management method and device of commodity template, and method and device for calling database, and system |
CN106097417A (en) * | 2016-06-07 | 2016-11-09 | 腾讯科技(深圳)有限公司 | Subject generating method, device, equipment |
CN107911448A (en) * | 2017-11-14 | 2018-04-13 | 北京金山安全软件有限公司 | Content pushing method and device |
CN108228184A (en) * | 2018-01-26 | 2018-06-29 | 福建中金在线信息科技有限公司 | Style sheet generation method, device, electronic equipment and computer storage media |
CN108614886A (en) * | 2018-05-03 | 2018-10-02 | 北京搜狐互联网信息服务有限公司 | A kind of generation method and device of subject of Web site |
CN108829758A (en) * | 2018-05-28 | 2018-11-16 | 郑州悉知信息科技股份有限公司 | A kind of Website construction method and apparatus |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110286904A (en) * | 2019-05-30 | 2019-09-27 | 重庆金融资产交易所有限责任公司 | Generate method, apparatus, computer equipment and the storage medium of front end skin |
Also Published As
Publication number | Publication date |
---|---|
CN109657233B (en) | 2024-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106170764B (en) | Method and apparatus for automatic device program generation | |
CN110058856A (en) | Page configuration method and device | |
KR102131159B1 (en) | Methods and devices for controlling smart devices and computer storage media | |
CN105354022B (en) | A kind of page layout document generating method and device | |
CN101778160B (en) | Method and device for dynamically presetting message | |
CN103208046A (en) | Workflow engine architecture method and system based on interactive dynamic flow diagram | |
KR101638725B1 (en) | Application text adjusting method, device, terminal, program, and recording medium | |
CN105701183A (en) | User personalized template implementation method and apparatus | |
CN104598119A (en) | Screen capture method and device | |
CN103744598B (en) | A kind of method and apparatus of information processing | |
CN108572825A (en) | A kind of user interface process method, apparatus and equipment | |
CN104598185A (en) | Character font correction method and system | |
CN109753641A (en) | A kind of method, apparatus, electronic equipment and storage medium for changing object's position | |
CN107407922A (en) | The control method and control program of programmable logic controller (PLC), programmable logic controller (PLC) | |
CN105094584B (en) | View scaling method and view scaling processing device | |
CN109657233A (en) | Generate method, apparatus, storage medium and the electronic equipment of theme | |
CN108255976A (en) | The method, apparatus and storage medium and electronic equipment of data sorting | |
CN109325220A (en) | Chart generation method, device, storage medium and electronic equipment | |
CN108958859A (en) | RTL layout adaptation method, device, storage medium and electronic equipment based on Android | |
CN103034742A (en) | Method for generating devices rapidly | |
CN106406666A (en) | A processing method and device for application program icons | |
CN109255104A (en) | Certification template configuration method, apparatus, computer equipment and storage medium | |
CN110531968B (en) | Method for automatically extracting web front-end function code to generate independent template | |
TW201931178A (en) | Impedance calculation method for circuit layout pattern and layout detection system | |
CN104750691A (en) | User-defined webpage generation method and user-defined webpage generation device |
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 |