CN111078221A - Page color theme switching method and device, storage medium and electronic equipment - Google Patents

Page color theme switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111078221A
CN111078221A CN201911405201.9A CN201911405201A CN111078221A CN 111078221 A CN111078221 A CN 111078221A CN 201911405201 A CN201911405201 A CN 201911405201A CN 111078221 A CN111078221 A CN 111078221A
Authority
CN
China
Prior art keywords
css
theme
rule
color
target
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
Application number
CN201911405201.9A
Other languages
Chinese (zh)
Other versions
CN111078221B (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.)
Jiangsu Manyun Software Technology Co Ltd
Original Assignee
Jiangsu Manyun Software 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 Jiangsu Manyun Software Technology Co Ltd filed Critical Jiangsu Manyun Software Technology Co Ltd
Priority to CN201911405201.9A priority Critical patent/CN111078221B/en
Publication of CN111078221A publication Critical patent/CN111078221A/en
Application granted granted Critical
Publication of CN111078221B publication Critical patent/CN111078221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The embodiment of the application discloses a page color theme switching method and device, a storage medium and electronic equipment. The method comprises the following steps: the css file of the reference color theme is divided into css rules to be selected; determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected; generating a default theme css file according to the target css rule; and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme. By operating the technical scheme provided by the application, the effect that repeated operation is not needed in the development process, and the response to the color theme switching scene can be quickly realized.

Description

Page color theme switching method and device, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for switching page color themes, a storage medium and electronic equipment.
Background
With the rapid development of network technology, the personalized demand of users for browsing page contents is higher and higher, and one of the most direct embodiments is the demand of page color theme. For example, some users prefer a single-tone color theme such as black, white and gray, some users prefer a color theme, and different color themes are provided for the users, which are often obtained by recoding in the prior art.
However, there are many problems in this method, firstly, two or more sets of css (cascading style Sheet) need to be developed, so that a lot of workload is increased, the increased workload belongs to repetitive labor, and the difference between different files is only the difference of color values. Further, it causes more network request overhead. In the webpage operation stage, when the theme is switched, a new css file needs to be acquired from the server to replace the current style file, in fact, the difference between the css files with different themes before and after the current style file may be very small, but the whole css file needs to be acquired and analyzed again, which causes unnecessary network request overhead, and in addition, the operation of switching the theme by the user cannot be responded in time due to network delay, which may affect user experience.
Disclosure of Invention
The embodiment of the application provides a switching method and device of page color themes, a storage medium and electronic equipment, so that the effect of quickly responding to a color theme switching scene without repeated operation in a development process can be realized.
In a first aspect, an embodiment of the present application provides a method for switching a page color theme, where the method includes:
the css file of the reference color theme is divided into css rules to be selected;
determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected;
generating a default theme css file according to the target css rule;
and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
Optionally, determining, from the various cs rules to be selected, the cs rule to be selected having an association relationship with the reference color group as a target cs rule includes:
detecting each css rule to be selected one by adopting a regular expression detection method or a character string substring detection method;
and if the css rule to be selected has the specified color value, determining the css rule to be selected as a target css rule.
Optionally, if the css rule to be selected has a specified color value, determining the css rule to be selected as a target css rule, including:
if the to-be-selected css rule has a specified color value, and the specified color value is a specified color value switched along with a theme, determining the to-be-selected css rule as a target css rule;
and if the css rule to be selected has a specified color value and the specified color value is a specified color value which is not switched along with the theme, filtering the css rule to be selected.
Optionally, generating a default theme css file according to the target css rule includes:
and writing the target css rule into a newly added css file, and determining the newly added css file as a default theme css file.
Optionally, determining a mapping relationship between a reference color group associated with each target css rule in the default theme css file and a switching color group includes:
determining at least one switching color group associated with the reference color group;
acquiring a color value mapping relation between each color value in the reference color group and each color value in the switching color group;
and determining the mapped theme css file according to the color value mapping relation.
Optionally, the method further includes:
responding to a theme switching request, and determining a target color group according to the theme switching request;
determining a target theme css file according to the mapping relation between the target color group and the current color theme group;
and inserting the target theme css file into a page through a preset interface to obtain a switching response result of the page color theme.
In a second aspect, an embodiment of the present application provides a device for switching a page color theme, where the device includes:
the to-be-selected css rule segmentation module is used for segmenting the css file of the reference color theme into to-be-selected css rules;
the target css rule screening module is used for determining a to-be-selected css rule having an association relation with the reference color group as a target css rule from the to-be-selected css rules;
the default theme css file generation module is used for generating a default theme css file according to the target css rule;
and the page color theme switching module is used for determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
Optionally, the target css rule screening module includes:
the inspection unit is used for detecting each cs rule to be selected one by adopting a regular expression inspection method or a character string substring inspection method;
and the determining unit is used for determining the css rule to be selected as the target css rule if the css rule to be selected has the specified color value.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the switching method for page color theme according to the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable by the processor, where the processor executes the computer program to implement the method for switching the page color theme according to the embodiment of the present application.
According to the technical scheme provided by the embodiment of the application, the css file of the reference color theme is divided into the css rules to be selected; determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected; generating a default theme css file according to the target css rule; and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme. By adopting the technical scheme provided by the application, the effect that repeated operation is not needed in the development process, and the response to the color theme switching scene can be quickly realized.
Drawings
Fig. 1 is a flowchart of a switching method of a page color theme according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a switching device for page color theme according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a switching method for a page color theme according to an embodiment of the present application, where the present embodiment is suitable for a switching situation of a page color theme, and the method may be executed by a switching apparatus for a page color theme according to an embodiment of the present application, where the apparatus may be implemented by software and/or hardware, and may be integrated in an electronic device such as an intelligent terminal.
As shown in fig. 1, the switching method of the page color theme includes:
s110, dividing the css file of the reference color theme into css rules to be selected.
The css file of the reference color theme may be a css file of a default theme that has been determined in advance, or may be a css file of a reference color theme that needs to be generated by setting a css file. For example, a reference color theme, for example, including three color values therein, may be determined by setting. #0f0 (green), # f00 (red), and #00f (blue). Or, the color theme used by the current page may be determined as the reference theme, and the color group information therein may be extracted.
The css file not only comprises color information in the page, but also comprises information such as styles of contents of all parts, and the css file can be divided into a plurality of css rules to be selected. Each of the cs rules to be selected may include a part of content for controlling a color or a style of information in the page. In the embodiment, the rules of the css to be selected related to color control are further screened on the basis of the segmentation.
And S120, determining the css rule to be selected, which has an association relation with the reference color group, as a target css rule from the css rules to be selected.
And determining the candidate css rules with the association relation with the reference color group of the reference color theme as target css rules from the candidate css rules. For example, all the candidate css rules may be determined, and as long as there is a specific color value, the candidate css rule may be determined to be the target css rule.
In this scheme, optionally, determining, from among the cs rules to be selected, the cs rule to be selected having an association relationship with the reference color group as a target cs rule includes: detecting each css rule to be selected one by adopting a regular expression detection method or a character string substring detection method; and if the css rule to be selected has the specified color value, determining the css rule to be selected as a target css rule.
The scheme provides a method for extracting the css rules related to the color theme, and particularly can read the css file content and divide the file content into one css rule. And detecting whether the css rule has the specified color value or not one by using a regular expression or character string substring detection method, and if so, putting the css rule into a screening result set, namely determining the css rule as a target css rule. In the scheme, the target css rule can be quickly and accurately determined through a regular expression or a character string substring detection method, and data support is provided for subsequent theme switching.
On the basis of the above technical solution, optionally, if the cs rule to be selected has a specified color value, determining the cs rule to be selected as a target cs rule includes: if the to-be-selected css rule has a specified color value, and the specified color value is a specified color value switched along with a theme, determining the to-be-selected css rule as a target css rule; and if the css rule to be selected has a specified color value and the specified color value is a specified color value which is not switched along with the theme, filtering the css rule to be selected.
Specifically, in an actual scene, individual color values may be the same as theme color values, but switching with the theme is not required, and at this time, the css rules are excluded by providing filtering rules when the css rules are extracted. Through the arrangement, the information that the colors of certain elements in the page adopt fixed color values under any color theme can be filtered, and the controllability of the colors of all the elements in the page can be improved in the switching process of the page color theme.
And S130, generating a default theme css file according to the target css rule.
Wherein a default theme css file may be generated according to the determined target css rule. In the scheme, the default theme css file is a color control of the current theme and can also be used as a theme template, and when color switching is needed, switching of the color theme can be achieved as long as color values in the default theme css file are switched.
In this embodiment, optionally, generating a default theme css file according to the target css rule includes: and writing the target css rule into a newly added css file, and determining the newly added css file as a default theme css file. Specifically, a theme css file may be generated and introduced, for example, the result of the previous step is written into a new css file, and the file is introduced into an html file as a default theme. In the technical scheme, the default theme css file is determined, a switching carrier for providing color values for subsequent color theme switching can be realized, the whole css file of the page does not need to be recoded, and therefore the workload of workers can be reduced, and the operation efficiency is improved.
S140, determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
In this embodiment, after determining the default theme css file, a mapping relationship between a color group of the default theme and a color group to be switched is determined, and after determining the mapping relationship, the reference color group and the switching color group may be mapped and written into the theme css file, so as to obtain the mapped theme css file. Correspondingly, if the mapped theme css file is executed, the switching result of the page color theme can be obtained.
According to the technical scheme provided by the embodiment of the application, the css file of the reference color theme is divided into the css rules to be selected; determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected; generating a default theme css file according to the target css rule; and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme. By adopting the technical scheme provided by the application, the effect that repeated operation is not needed in the development process, and the response to the color theme switching scene can be quickly realized.
On the basis of the above technical solutions, optionally, determining a mapping relationship between a reference color group associated with each target css rule in the default theme css file and a switching color group includes: determining at least one switching color group associated with the reference color group; acquiring a color value mapping relation between each color value in the reference color group and each color value in the switching color group; and determining the mapped theme css file according to the color value mapping relation. In connection with the above example, #0f0 is replaced with # a52A2A, #0f0 is replaced with # f00, and #00f is replaced with #800080 in the reference color group. A mapped theme css file consisting of # a52A2A (brown), # ccc (gray), and #800080 (purple) can be obtained. According to the technical scheme, the switching effect of various color themes can be realized by editing the cs file, repeated editing operation of workers is not needed, and meanwhile quick response can be carried out on the switched themes.
On the basis of the above technical solutions, optionally, the method further includes: responding to a theme switching request, and determining a target color group according to the theme switching request; determining a target theme css file according to the mapping relation between the target color group and the current color theme group; and inserting the target theme css file into a page through a preset interface to obtain a switching response result of the page color theme.
Specifically, the content of the theme css file is obtained, the theme css file loaded along with the page serves as a default theme, and meanwhile the theme css file also serves as a css rule template for subsequent theme switching. The css file content is obtained through an Application Programming Interface (API), and a caching policy may be added, that is, the file content is directly read from a cache/memory after being obtained in a current session.
The generation of the new theme css rule may be that a user selects a theme to be switched through a preset theme switching function button or a menu, obtains a color group corresponding to a theme selected by the user, such as # a52A2A (brown), # ccc (gray), and #800080 (purple), uses the obtained css file content as a css rule template, and replaces theme color values in the css rule template with color values in the user-selected color group one by one in a character string replacement manner, that is, #0f0 is replaced with # a52A2A, #0f0 is replaced with # f00, and #00f is replaced with # 800080.
For the application of the new theme, the generated new css rule can be inserted into the page by using the relevant API of the browser, and the browser parses the css rule and acts on the page element, so that the new theme takes effect.
In order to make the technical solution more clear to those skilled in the art, the present application also provides the following code language:
the cs rule language is as follows:
Figure BDA0002348433140000101
Figure BDA0002348433140000111
according to the technical scheme, under a web page development scene, the requirement of color theme switching is frequently met, the conventional scheme is high in implementation cost, the high-efficiency dynamic switching scheme for the color theme of the web page is provided, the specified color value relevant rules in the css style file are extracted in the web project compiling stage, and the specified color values are replaced in batches in the web page running stage, so that the purpose of dynamic switching of the color theme of the web page is achieved.
Example two
Fig. 2 is a schematic structural diagram of a switching device for page color theme according to a second embodiment of the present application. As shown in fig. 2, the switching device for page color theme includes:
a to-be-selected css rule division module 210, configured to divide the css file with the reference color theme into to-be-selected css rules;
a target css rule screening module 220, configured to determine, from the to-be-selected css rules, a to-be-selected css rule having an association relationship with the reference color group as a target css rule;
a default theme css file generation module 230, configured to generate a default theme css file according to the target css rule;
and the page color theme switching module 240 is configured to determine a mapping relationship between a reference color group associated with each target css rule in the default theme css file and a switching color group, and execute the mapped theme css file to obtain a switching result of the page color theme.
According to the technical scheme provided by the embodiment of the application, the css file of the reference color theme is divided into the css rules to be selected; determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected; generating a default theme css file according to the target css rule; and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme. By adopting the technical scheme provided by the application, the effect that repeated operation is not needed in the development process, and the response to the color theme switching scene can be quickly realized.
On the basis of the above technical solutions, optionally, the target css rule screening module includes:
the inspection unit is used for detecting each cs rule to be selected one by adopting a regular expression inspection method or a character string substring inspection method;
and the determining unit is used for determining the css rule to be selected as the target css rule if the css rule to be selected has the specified color value.
The product can operate the method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the operation method.
EXAMPLE III
Embodiments of the present application further provide a storage medium containing computer executable instructions, which when executed by a computer processor, are configured to execute a method for switching a page color theme, the method including:
the css file of the reference color theme is divided into css rules to be selected;
determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected;
generating a default theme css file according to the target css rule;
and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing the computer executable instructions is not limited to the switching operation of the page color theme as described above, and may also execute the related operations in the switching method of the page color theme provided in any embodiment of the present application.
Example four
The embodiment of the application provides electronic equipment, and a switching device of a page color theme provided by the embodiment of the application can be integrated in the electronic equipment. Fig. 3 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application. As shown in fig. 3, the present embodiment provides an electronic device 300, which includes: one or more processors 320; the storage device 310 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 320, the one or more processors 320 implement the method for switching the page color theme provided in the embodiment of the present application, where the method includes:
the css file of the reference color theme is divided into css rules to be selected;
determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected;
generating a default theme css file according to the target css rule;
and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
The electronic device 300 shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 3, the electronic device 300 includes a processor 320, a storage device 310, an input device 330, and an output device 340; the number of the processors 320 in the electronic device may be one or more, and one processor 320 is taken as an example in fig. 3; the processor 320, the storage device 310, the input device 330, and the output device 340 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 350 in fig. 3.
The storage device 310 is a computer-readable storage medium, and can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the switching method of page color theme in the embodiment of the present application.
The storage device 310 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage device 310 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 310 may further include memory located remotely from processor 320, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 330 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic apparatus. The output device 340 may include a display screen, speakers, etc.
The electronic equipment provided by the embodiment of the application can realize the effect that repeated operation is not needed in the development process, and the response can be quickly carried out to the color theme switching scene.
The switching device, the storage medium and the electronic device for the page color theme provided in the above embodiments may operate the switching method for the page color theme provided in any embodiment of the present application, and have corresponding functional modules and beneficial effects for operating the method. For the technical details not described in detail in the above embodiments, reference may be made to a switching method of a page color theme provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. A method for switching page color themes is characterized by comprising the following steps:
the css file of the reference color theme is divided into css rules to be selected;
determining the css rules to be selected, which have an association relation with the reference color group, as target css rules from the css rules to be selected;
generating a default theme css file according to the target css rule;
and determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
2. The method according to claim 1, wherein determining, from among the candidate css rules, a candidate css rule having an association relationship with a reference color group as a target css rule comprises:
detecting each css rule to be selected one by adopting a regular expression detection method or a character string substring detection method;
and if the css rule to be selected has the specified color value, determining the css rule to be selected as a target css rule.
3. The method of claim 2, wherein determining the candidate css rule as a target css rule if the candidate css rule has a specified color value comprises:
if the to-be-selected css rule has a specified color value, and the specified color value is a specified color value switched along with a theme, determining the to-be-selected css rule as a target css rule;
and if the css rule to be selected has a specified color value and the specified color value is a specified color value which is not switched along with the theme, filtering the css rule to be selected.
4. The method of claim 1, wherein generating a default theme css file according to the target css rule comprises:
and writing the target css rule into a newly added css file, and determining the newly added css file as a default theme css file.
5. The method of claim 1, wherein determining a mapping relationship between a reference color group and a switching color group associated with each target css rule in the default theme css file comprises:
determining at least one switching color group associated with the reference color group;
acquiring a color value mapping relation between each color value in the reference color group and each color value in the switching color group;
and determining the mapped theme css file according to the color value mapping relation.
6. The method of claim 1, further comprising:
responding to a theme switching request, and determining a target color group according to the theme switching request;
determining a target theme css file according to the mapping relation between the target color group and the current color theme group;
and inserting the target theme css file into a page through a preset interface to obtain a switching response result of the page color theme.
7. A device for switching page color theme, comprising:
the to-be-selected css rule segmentation module is used for segmenting the css file of the reference color theme into to-be-selected css rules;
the target css rule screening module is used for determining a to-be-selected css rule having an association relation with the reference color group as a target css rule from the to-be-selected css rules;
the default theme css file generation module is used for generating a default theme css file according to the target css rule;
and the page color theme switching module is used for determining the mapping relation between the reference color group and the switching color group associated with each target css rule in the default theme css file, and executing the mapped theme css file to obtain the switching result of the page color theme.
8. The apparatus of claim 7, wherein the target css rule screening module comprises:
the inspection unit is used for detecting each cs rule to be selected one by adopting a regular expression inspection method or a character string substring inspection method;
and the determining unit is used for determining the css rule to be selected as the target css rule if the css rule to be selected has the specified color value.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for switching the theme of page colors according to any one of claims 1 to 6.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of switching page color theme according to any one of claims 1-6 when executing the computer program.
CN201911405201.9A 2019-12-30 2019-12-30 Page color theme switching method and device, storage medium and electronic equipment Active CN111078221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911405201.9A CN111078221B (en) 2019-12-30 2019-12-30 Page color theme switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911405201.9A CN111078221B (en) 2019-12-30 2019-12-30 Page color theme switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111078221A true CN111078221A (en) 2020-04-28
CN111078221B CN111078221B (en) 2022-09-16

Family

ID=70320243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911405201.9A Active CN111078221B (en) 2019-12-30 2019-12-30 Page color theme switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111078221B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666123A (en) * 2020-05-28 2020-09-15 平安医疗健康管理股份有限公司 Page theme control method and system and computer equipment
CN111813471A (en) * 2020-06-16 2020-10-23 北京明略软件系统有限公司 Skin changing method, terminal and storage medium
CN112433798A (en) * 2020-11-24 2021-03-02 北京字节跳动网络技术有限公司 Page adaptation method and device based on mode switching
CN113076150A (en) * 2021-04-13 2021-07-06 北京同邦卓益科技有限公司 Interface theme switching method, device, equipment, storage medium and program product
CN115202535A (en) * 2022-08-01 2022-10-18 北京金山办公软件股份有限公司 Icon editing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126733A (en) * 2016-07-04 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method and system changing CSS style
CN106569885A (en) * 2016-10-13 2017-04-19 乐视控股(北京)有限公司 Application theme switching method and device
CN109101293A (en) * 2018-08-01 2018-12-28 Oppo(重庆)智能科技有限公司 Theme configuration method and device, electronic equipment, computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126733A (en) * 2016-07-04 2016-11-16 浪潮(北京)电子信息产业有限公司 A kind of method and system changing CSS style
CN106569885A (en) * 2016-10-13 2017-04-19 乐视控股(北京)有限公司 Application theme switching method and device
CN109101293A (en) * 2018-08-01 2018-12-28 Oppo(重庆)智能科技有限公司 Theme configuration method and device, electronic equipment, computer readable storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666123A (en) * 2020-05-28 2020-09-15 平安医疗健康管理股份有限公司 Page theme control method and system and computer equipment
CN111813471A (en) * 2020-06-16 2020-10-23 北京明略软件系统有限公司 Skin changing method, terminal and storage medium
CN112433798A (en) * 2020-11-24 2021-03-02 北京字节跳动网络技术有限公司 Page adaptation method and device based on mode switching
CN113076150A (en) * 2021-04-13 2021-07-06 北京同邦卓益科技有限公司 Interface theme switching method, device, equipment, storage medium and program product
CN115202535A (en) * 2022-08-01 2022-10-18 北京金山办公软件股份有限公司 Icon editing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111078221B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN111078221B (en) Page color theme switching method and device, storage medium and electronic equipment
CN111045655B (en) Page rendering method and device, rendering server and storage medium
CN105511873B (en) User interface control display method and device
TW202141300A (en) Page processing method, device, apparatus and storage medium
US9754359B2 (en) Identifying previously-blurred areas for creating a blur effect for an image
CN108829371B (en) Interface control method and device, storage medium and electronic equipment
CN110968808B (en) Method and device for realizing webpage theme update
CN111177621B (en) Web page development method, device and system
CN106933887B (en) Data visualization method and device
CN107608674A (en) One kind applies skin change method, device, computer and storage medium
CN113655999B (en) Page control rendering method, device, equipment and storage medium
CN105354138A (en) Method for determining specific control attribute of mobile phone page
EP3467681A1 (en) Data migration method and device
CN110727429A (en) Front-end page generation method, device and equipment
KR101552914B1 (en) Web server application framework web application processing method using the framework and computer readable medium processing the method
CN111414168B (en) Web application development method and device based on mind map and electronic equipment
CN113656005A (en) Application component library construction method, application component configuration method and related device
CN105159673A (en) Method and device for setting control style
CN105739717B (en) Data inputting method and device
CN111258434A (en) Method, device, equipment and storage medium for inserting pictures into chat interface
CN113590564B (en) Data storage method, device, electronic equipment and storage medium
CN113709575B (en) Video editing processing method and device, electronic equipment and storage medium
CN113268232B (en) Page skin generation method and device and computer readable storage medium
CN114356330A (en) Page configuration method and device, electronic equipment and storage medium
CN114449063A (en) Message processing method, device and equipment

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20200428

Assignee: Nanjing Manyun Cold Chain Technology Co.,Ltd.

Assignor: JIANGSU MANYUN SOFTWARE TECHNOLOGY Co.,Ltd.

Contract record no.: X2023980038397

Denomination of invention: Method, device, storage medium, and electronic device for switching page color themes

Granted publication date: 20220916

License type: Common License

Record date: 20230724