[go: up one dir, main page]

CN118568372A - Front-end processing method, device and equipment for implementing theme switching based on SVG - Google Patents

Front-end processing method, device and equipment for implementing theme switching based on SVG Download PDF

Info

Publication number
CN118568372A
CN118568372A CN202410626214.3A CN202410626214A CN118568372A CN 118568372 A CN118568372 A CN 118568372A CN 202410626214 A CN202410626214 A CN 202410626214A CN 118568372 A CN118568372 A CN 118568372A
Authority
CN
China
Prior art keywords
svg
colors
color
picture
switching
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.)
Pending
Application number
CN202410626214.3A
Other languages
Chinese (zh)
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.)
Zhongdian Cloud Computing Technology Co ltd
Original Assignee
Zhongdian Cloud Computing 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 Zhongdian Cloud Computing Technology Co ltd filed Critical Zhongdian Cloud Computing Technology Co ltd
Priority to CN202410626214.3A priority Critical patent/CN118568372A/en
Publication of CN118568372A publication Critical patent/CN118568372A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明公开了一种基于SVG实现主题切换的前端处理方法、装置及设备,涉及网页处理技术领域,该方法包括获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色;基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果;基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果;根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换。本发明能够实现主题切换,满足图片颜色切换的要求,同时有效较少各种主题切换时需要维护各个主题下颜色变量的维护成本。

The present invention discloses a front-end processing method, device and equipment for implementing theme switching based on SVG, and relates to the technical field of web page processing. The method comprises obtaining a website to be switched to a theme, and classifying target colors in the obtained website to obtain conventional colors and picture colors; controlling the switching of target colors based on SVG filters, processing conventional colors to obtain color effects with filters; dividing pictures into different areas based on SVG cropping functions, and setting SVG filters for different areas to process picture colors to obtain color effects with partition filters; and implementing theme switching of the website to be switched to a theme according to the processing results of conventional colors and picture colors. The present invention can implement theme switching, meet the requirements of picture color switching, and effectively reduce the maintenance cost of maintaining color variables under various themes when switching various themes.

Description

基于SVG实现主题切换的前端处理方法、装置及设备Front-end processing method, device and equipment for implementing theme switching based on SVG

技术领域Technical Field

本申请涉及网页处理技术领域,具体涉及一种基于SVG实现主题切换的前端处理方法、装置及设备。The present application relates to the technical field of web page processing, and in particular to a front-end processing method, device and equipment for implementing theme switching based on SVG.

背景技术Background Art

在网站的浏览过程中,经常会发现一些网站能够实现深色、浅色模式的主题切换,甚至有些网站能够提供多种颜色的主题切换,效果十分炫酷。在检查这些网站的实现原理中,可大致分为如下三种方式:When browsing websites, you will often find that some websites can switch between dark and light modes, and some websites can even provide multiple color themes, which is very cool. When checking the implementation principles of these websites, they can be roughly divided into the following three methods:

第一种,也是最早使用的方案,使用link标签动态引入CSS(Cascading StyleSheets,层叠样式表),通过改变CSS的引用地址来控制相同类名的不同属性,达到切换的目的。这种方案的优点是可以在首次打开时只加载1种当前主题的样式,提升了首屏加载速度;然而缺点是当切换主题时,需要额外下载其他主题的样式文件,导致切换时存在网络请求导致的延迟;The first, and earliest, solution uses the link tag to dynamically introduce CSS (Cascading Style Sheets), and controls different properties of the same class name by changing the CSS reference address to achieve the purpose of switching. The advantage of this solution is that only one style of the current theme can be loaded when it is first opened, which improves the first screen loading speed; however, the disadvantage is that when switching themes, the style files of other themes need to be downloaded additionally, resulting in delays caused by network requests when switching;

第二种,通过在根节点元素上插入一个如dark-theme(暗色主题)的class名,从而在写样式时,单独维护一份dark-theme模式颜色变量的主题配置。这种方案是如今比较常用的方案,他的优点是可以有单独维护各个颜色的主题,还可以实现秒切换,解决了第一种方案还需额外请求的问题;然而缺点是,比如要维护所有主题的各种颜色配置,还有他仅能实现如颜色、背景颜色、边框颜色等颜色的切换,不能解决图片在各种模式下的显示切换。The second method is to insert a class name such as dark-theme on the root node element, so that when writing the style, a separate theme configuration of the color variable of the dark-theme mode can be maintained. This solution is a more commonly used solution nowadays. Its advantages are that it can maintain themes of each color separately and can switch in seconds, solving the problem of the first solution requiring additional requests; however, its disadvantages are that, for example, it is necessary to maintain various color configurations of all themes, and it can only switch colors such as color, background color, border color, etc., and cannot solve the display switching of images in various modes.

第三种,通过第三方库,这里以css-vars-ponyfill(一个用于实现CSS变量的浏览器兼容性的polyfill库)换肤方案举例,他使用纯JS(一种编程语言)编写换肤核心功能,不依CSS赖预处理,他通过抽离基础色转换为比较语义化的业务变量色,然后配合主题,使用JS对应去改变具体的颜色。他的优点是不依CSS赖预处理,缺点也和第二个一样,需要维护各个颜色的主题配置,同样也不能实现图片在不同主题颜色下的显示切换。The third method is to use a third-party library. Here, we take the css-vars-ponyfill (a polyfill library for implementing browser compatibility of CSS variables) skinning solution as an example. It uses pure JS (a programming language) to write the core skinning function and does not rely on CSS preprocessing. It extracts the basic color and converts it into a more semantic business variable color, and then uses JS to change the specific color in accordance with the theme. Its advantage is that it does not rely on CSS preprocessing, but its disadvantage is the same as the second one, which requires the maintenance of the theme configuration of each color, and it also cannot realize the display switching of images under different theme colors.

由此可见,对于上述几种方案,虽然都能够提供颜色切换功能,但对应的各种颜色配置都需要维护,有一定的维护成本,另外也都不能满足相同图片在不同主题下的切换显示。It can be seen that, for the above-mentioned solutions, although they can provide color switching functions, the corresponding color configurations need to be maintained, which has a certain maintenance cost. In addition, they cannot satisfy the switching display of the same picture under different themes.

发明内容Summary of the invention

本申请提供一种基于SVG实现主题切换的前端处理方法、装置及设备,能够实现主题切换,满足图片颜色切换的要求,同时有效较少各种主题切换时需要维护各个主题下颜色变量的维护成本。The present application provides a front-end processing method, device and equipment for implementing theme switching based on SVG, which can realize theme switching and meet the requirements of image color switching, while effectively reducing the maintenance cost of maintaining color variables under various themes when switching between various themes.

第一方面,本申请实施例提供一种基于SVG实现主题切换的前端处理方法,所述基于SVG实现主题切换的前端处理方法包括:In a first aspect, an embodiment of the present application provides a front-end processing method for implementing theme switching based on SVG, and the front-end processing method for implementing theme switching based on SVG includes:

获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色;Obtain the website to be switched to, and classify the target colors in the obtained website to obtain regular colors and picture colors;

基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果;Based on the SVG filter, the target color is switched and the conventional colors are processed to obtain the color effect with the filter.

基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果;Based on the SVG cropping function, the image is divided into different areas, and SVG filters are set for different areas to process the color of the image and obtain a color effect with a partition filter;

根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换。According to the processing results of the conventional colors and the picture colors, the theme switching of the website to be switched is realized.

结合第一方面,在一种实施方式中,In combination with the first aspect, in one implementation,

所述常规颜色包括文本颜色、背景颜色、边框颜色;The conventional colors include text color, background color, and border color;

所述图片颜色包括图片资源颜色、背景图片颜色。The picture color includes picture resource color and background picture color.

结合第一方面,在一种实施方式中,所述基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,具体包括:In combination with the first aspect, in one implementation, the switching of the target color is controlled based on the SVG filter, and conventional colors are processed to obtain a color effect with a filter, specifically including:

基于SVG滤镜控制常规颜色中各目标颜色的切换;Control the switching of target colors in regular colors based on SVG filters;

通过不同滤镜,实现不同颜色的效果,以对常规颜色进行处理,得到带有滤镜的颜色效果。Different color effects can be achieved through different filters, so that regular colors can be processed to obtain color effects with filters.

结合第一方面,在一种实施方式中,所述基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,具体包括:In combination with the first aspect, in one implementation, the image is divided into different regions based on the SVG cropping function, and SVG filters are set for the different regions to process the color of the image to obtain a color effect with a partition filter, specifically including:

基于SVG裁切功能将图片颜色中对应的图片划分为不同区域;Divide the image into different areas based on the SVG cropping function;

针对不同区域进行不同SVG滤镜的设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果。Different SVG filters are set for different areas to process the image color and obtain a color effect with a partition filter.

结合第一方面,在一种实施方式中,所述根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,具体包括:In combination with the first aspect, in one implementation, the method of implementing theme switching of a website to be theme switched according to the processing results of the conventional colors and the picture colors specifically includes:

根据对待进行主题切换的网站中常规颜色处理后得到的带有滤镜的颜色效果结果,以及对图片颜色处理后得到的带有分区滤镜的颜色效果结果,实现待进行主题切换的网站的主题切换。The theme switching of the website to be switched is achieved according to the color effect result with filter obtained after conventional color processing in the website to be switched and the color effect result with partition filter obtained after color processing of the picture.

第二方面,本申请实施例提供一种基于SVG实现主题切换的前端处理装置,所述基于SVG实现主题切换的前端处理装置包括:In a second aspect, an embodiment of the present application provides a front-end processing device for implementing theme switching based on SVG, wherein the front-end processing device for implementing theme switching based on SVG comprises:

分类模块,其用于获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色;A classification module is used to obtain the website to be switched to a certain theme, and classify the target colors in the obtained website to obtain regular colors and picture colors;

第一处理模块,其用于基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果;A first processing module is used to control the switching of target colors based on SVG filters, process regular colors, and obtain color effects with filters;

第二处理模块,其用于基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果;The second processing module is used to divide the image into different areas based on the SVG cropping function, and set SVG filters for the different areas to process the color of the image to obtain a color effect with a partition filter;

执行模块,其用于根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换。The execution module is used to implement theme switching of the website to be switched according to the processing results of the conventional colors and the picture colors.

结合第二方面,在一种实施方式中,In conjunction with the second aspect, in one implementation,

所述常规颜色包括文本颜色、背景颜色、边框颜色;The conventional colors include text color, background color, and border color;

所述图片颜色包括图片资源颜色、背景图片颜色。The picture color includes picture resource color and background picture color.

结合第二方面,在一种实施方式中,所述基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,具体包括:In conjunction with the second aspect, in one implementation, the switching of the target color is controlled based on the SVG filter, and conventional colors are processed to obtain a color effect with a filter, specifically including:

基于SVG滤镜控制常规颜色中各目标颜色的切换;Control the switching of target colors in regular colors based on SVG filters;

通过不同滤镜,实现不同颜色的效果,以对常规颜色进行处理,得到带有滤镜的颜色效果。Different color effects can be achieved through different filters, so that regular colors can be processed to obtain color effects with filters.

结合第二方面,在一种实施方式中,所述基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,具体包括:In conjunction with the second aspect, in one implementation, the image is divided into different regions based on the SVG cropping function, and SVG filters are set for the different regions to process the color of the image to obtain a color effect with a partition filter, specifically including:

基于SVG裁切功能将图片颜色中对应的图片划分为不同区域;Divide the image into different areas based on the SVG cropping function;

针对不同区域进行不同SVG滤镜的设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果。Different SVG filters are set for different areas to process the image color and obtain a color effect with a partition filter.

第三方面,本申请实施例提供一种基于SVG实现主题切换的前端处理设备,所述基于SVG实现主题切换的前端处理设备包括处理器、存储器、以及存储在所述存储器上并可被所述处理器执行的基于SVG实现主题切换的前端处理程序,其中所述基于SVG实现主题切换的前端处理程序被所述处理器执行时,实现上述所述的基于SVG实现主题切换的前端处理方法的步骤。In a third aspect, an embodiment of the present application provides a front-end processing device for implementing theme switching based on SVG, wherein the front-end processing device for implementing theme switching based on SVG comprises a processor, a memory, and a front-end processing program for implementing theme switching based on SVG stored in the memory and executable by the processor, wherein when the front-end processing program for implementing theme switching based on SVG is executed by the processor, the steps of the front-end processing method for implementing theme switching based on SVG described above are implemented.

本申请实施例提供的技术方案带来的有益效果包括:The beneficial effects brought by the technical solution provided by the embodiments of the present application include:

通过获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色,然后基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,然后基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,最后根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,使用SVG分别应对常规颜色和图片等复杂颜色的两种场景,最终实现主题切换,满足图片颜色切换的要求,同时有效较少各种主题切换时需要维护各个主题下颜色变量的维护成本。By obtaining the website to be switched in theme, and classifying the target colors in the obtained website, conventional colors and picture colors are obtained, and then the switching of the target color is controlled based on the SVG filter, the conventional colors are processed to obtain the color effect with the filter, and then the picture is divided into different areas based on the SVG cropping function, and the SVG filter is set for different areas to process the picture color to obtain the color effect with the partition filter. Finally, according to the processing results of the conventional colors and the picture colors, the theme switching of the website to be switched in theme is realized, and SVG is used to deal with the two scenes of complex colors such as conventional colors and pictures respectively, and finally the theme switching is realized to meet the requirements of picture color switching, and at the same time, the maintenance cost of maintaining the color variables under each theme when switching various themes is effectively reduced.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本申请基于SVG实现主题切换的前端处理方法的流程示意图;FIG1 is a flow chart of a front-end processing method for implementing theme switching based on SVG in the present application;

图2为本申请基于SVG实现主题切换的前端处理装置的功能模块示意图;FIG2 is a schematic diagram of functional modules of a front-end processing device for implementing theme switching based on SVG in the present application;

图3为本申请基于SVG实现主题切换的前端处理设备的硬件结构示意图。FIG. 3 is a schematic diagram of the hardware structure of a front-end processing device for implementing theme switching based on SVG in the present application.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

第一方面,本申请实施例提供一种基于SVG实现主题切换的前端处理方法,使用SVG(Scalable Vector Graphics,可缩放矢量图形)分别应对常规颜色和图片等复杂颜色的两种场景,最终实现主题切换。In a first aspect, an embodiment of the present application provides a front-end processing method for implementing theme switching based on SVG, using SVG (Scalable Vector Graphics) to deal with two scenarios of conventional colors and complex colors such as pictures, and finally achieving theme switching.

一实施例中,参照图1,图1为本申请基于SVG实现主题切换的前端处理方法的流程示意图。如图1所示,基于SVG实现主题切换的前端处理方法包括:In one embodiment, referring to FIG. 1 , FIG. 1 is a flow chart of a front-end processing method for implementing theme switching based on SVG in the present application. As shown in FIG. 1 , the front-end processing method for implementing theme switching based on SVG includes:

S1:获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色;本申请中,常规颜色包括文本颜色、背景颜色、边框颜色;图片颜色包括图片资源颜色、背景图片颜色。S1: Obtain the website to be switched to a new theme, and classify the target colors in the obtained website to obtain regular colors and picture colors; in this application, regular colors include text color, background color, and border color; picture colors include picture resource color and background picture color.

对于网站而言,其内的目标对象包括文本、背景、边框、图片资源、背景图片等,本申请首先对目标对象颜色进行分类,得到常规颜色和图片颜色,之后针对得到常规颜色和图片颜色分类进行处理。For a website, the target objects therein include text, background, border, image resources, background images, etc. This application first classifies the target object colors to obtain regular colors and image colors, and then processes the regular colors and image color classifications.

S2:基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果;S2: Control the switching of target colors based on SVG filters, process regular colors, and obtain color effects with filters;

进一步的,一实施例中,基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,具体包括:Furthermore, in one embodiment, based on the SVG filter, the target color is switched and the conventional color is processed to obtain the color effect with the filter, which specifically includes:

S201:基于SVG滤镜控制常规颜色中各目标颜色的切换;S201: Control switching of target colors in regular colors based on SVG filters;

S202:通过不同滤镜,实现不同颜色的效果,以对常规颜色进行处理,得到带有滤镜的颜色效果。S202: different color effects are achieved through different filters, so as to process the conventional colors and obtain color effects with filters.

对于本申请的基于SVG实现主题切换的前端处理方法而言,主要利用了SVG的两个能力:滤镜和裁切,实现主题切换效果。首先,使用SVG滤镜控制常规颜色中各目标颜色的切换,通过不同滤镜,实现不同颜色的效果,如各种主题下不同的文字颜色、背景颜色或边框颜色等。The front-end processing method for implementing theme switching based on SVG in this application mainly utilizes two capabilities of SVG: filter and cropping to achieve the theme switching effect. First, SVG filters are used to control the switching of target colors in conventional colors, and different color effects are achieved through different filters, such as different text colors, background colors or border colors under various themes.

S3:基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果;S3: Divide the image into different areas based on the SVG cropping function, and set SVG filters for different areas to process the color of the image to obtain a color effect with a partition filter;

进一步的,一实施例中,基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,具体包括:Furthermore, in one embodiment, the image is divided into different regions based on the SVG cropping function, and SVG filters are set for the different regions to process the color of the image to obtain a color effect with a partition filter, specifically including:

S301:基于SVG裁切功能将图片颜色中对应的图片划分为不同区域;S301: Divide the image corresponding to the image color into different areas based on the SVG cropping function;

S302:针对不同区域进行不同SVG滤镜的设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果。S302: Setting different SVG filters for different regions to process the color of the image and obtain a color effect with a partition filter.

即对于图片的主题切换,使用一个滤镜可能不能满足预期效果,本申请通过使用SVG的裁切功能,将图片划分为不同区域,从而针对不同区域设置不同的svg滤镜,以实现1张图片在各种主题下的对应效果。That is, for the theme switching of the picture, using one filter may not meet the expected effect. This application divides the picture into different areas by using the cropping function of SVG, and then sets different SVG filters for different areas to achieve the corresponding effects of one picture under various themes.

S4:根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换。S4: According to the processing results of the conventional colors and the image colors, the theme switching of the website to be switched is realized.

进一步的,一实施例中,根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,具体包括:Further, in one embodiment, according to the processing results of the conventional colors and the picture colors, the theme switching of the website to be switched is implemented, specifically including:

根据对待进行主题切换的网站中常规颜色处理后得到的带有滤镜的颜色效果结果,以及对图片颜色处理后得到的带有分区滤镜的颜色效果结果,实现待进行主题切换的网站的主题切换。The theme switching of the website to be switched is achieved according to the color effect result with filter obtained after conventional color processing in the website to be switched and the color effect result with partition filter obtained after color processing of the picture.

需要说明的是,对于不同主题下图片颜色切换的通用做法是:切换主题就改变图片的引用地址,每次切换都额外请求对应主题下的图片文件。而本申请针对图片因为丰富的颜色而不能使用单一滤镜就达到目标效果的问题,创新地把图片分为不同的区域,针对不同区域设置不同的滤镜,完成了只使用1张图片,就实现了多种主题模式下的不同显示效果。It should be noted that the common practice for switching the color of pictures under different themes is to change the reference address of the picture when switching the theme, and to request the picture file under the corresponding theme each time. However, this application innovatively divides the picture into different areas and sets different filters for different areas to achieve different display effects under multiple theme modes by using only one picture to solve the problem that a single filter cannot achieve the target effect due to the rich colors of the picture.

其次,在维护成本上本申请也有一定优势,包括以下两个优势:第一,SVG因为是标签语言,可以使直接用ts、JS动态改变SVG内部属性,相比CSS单独维护的文件,它可以更方便的改变内部属性和效果;第二,因为常规模式下各种主题的切换意味着要维护各个主题下全部的颜色变量,而SVG可以通过固定算法改变各种主题的滤镜,比如现有7个主题,每个主题下需要有文字颜色、背景颜色、边框颜色三种,常规模式就要维护7种模式分别3种颜色的变量,即21种颜色变量,而SVG滤镜可通过固定算法,在3种颜色变量上,覆盖7个滤镜,即只需要维护3个固有的颜色变量,和有转换算法的7个滤镜属性,从而极大减少了维护成本。Secondly, the present application also has certain advantages in terms of maintenance costs, including the following two advantages: First, because SVG is a tag language, ts and JS can be used to dynamically change the internal attributes of SVG. Compared with CSS files maintained separately, it can more conveniently change internal attributes and effects; second, because the switching of various themes in the normal mode means maintaining all color variables under each theme, and SVG can change the filters of various themes through a fixed algorithm. For example, there are 7 existing themes, and each theme needs to have three types of text color, background color, and border color. The normal mode needs to maintain 7 modes with 3 color variables respectively, that is, 21 color variables, and SVG filters can use a fixed algorithm to cover 7 filters on 3 color variables, that is, only 3 inherent color variables and 7 filter attributes with conversion algorithms need to be maintained, thereby greatly reducing maintenance costs.

由以上分析可知,本申请能够解决现有市面上主流的无法切换图片主题的问题,还可减少日常开发和维护成本。From the above analysis, it can be seen that this application can solve the current mainstream problem of being unable to switch picture themes on the market, and can also reduce daily development and maintenance costs.

本申请使用SVG滤镜改变颜色,包括但不限于文字颜色、背景颜色、边框颜色等,以达到切换主题的效果;使用SVG滤镜改变图片颜色,以达到切换主题的效果;使用SVG滤镜+SVG裁切分区改变图片颜色,以达到切换主题的效果;使用SVG滤镜+SVG裁切分区改变图片颜色,以达到预期目的。This application uses SVG filters to change colors, including but not limited to text color, background color, border color, etc., to achieve the effect of switching themes; uses SVG filters to change image colors to achieve the effect of switching themes; uses SVG filters + SVG cropping partitions to change image colors to achieve the effect of switching themes; uses SVG filters + SVG cropping partitions to change image colors to achieve the intended purpose.

本申请实施例的基于SVG实现主题切换的前端处理方法,通过获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色,然后基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,然后基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,最后根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,使用SVG分别应对常规颜色和图片等复杂颜色的两种场景,最终实现主题切换,满足图片颜色切换的要求,同时有效较少各种主题切换时需要维护各个主题下颜色变量的维护成本。The front-end processing method for implementing theme switching based on SVG in the embodiment of the present application obtains the website to be switched in theme, and classifies the target colors in the obtained website to obtain regular colors and picture colors, then controls the switching of the target colors based on the SVG filter, processes the regular colors to obtain color effects with filters, then divides the picture into different areas based on the SVG cropping function, and sets SVG filters for different areas to process the picture colors to obtain color effects with partition filters, and finally implements theme switching of the website to be switched in theme based on the processing results of the regular colors and picture colors, uses SVG to deal with two scenarios of complex colors such as regular colors and pictures, respectively, and finally implements theme switching to meet the requirements of picture color switching, while effectively reducing the maintenance cost of maintaining color variables under each theme when switching between various themes.

第二方面,本申请实施例还提供一种基于SVG实现主题切换的前端处理装置。In a second aspect, an embodiment of the present application further provides a front-end processing device for implementing theme switching based on SVG.

一实施例中,参照图2,图2为本申请基于SVG实现主题切换的前端处理装置的功能模块示意图。如图2所示,基于SVG实现主题切换的前端处理装置包括:分类模块、第一处理模块、第二处理模块、执行模块。In one embodiment, referring to Figure 2, Figure 2 is a functional module diagram of a front-end processing device for implementing theme switching based on SVG. As shown in Figure 2, the front-end processing device for implementing theme switching based on SVG includes: a classification module, a first processing module, a second processing module, and an execution module.

分类模块用于获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色;第一处理模块用于基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果;第二处理模块用于基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果;执行模块用于根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换。The classification module is used to obtain the website to be switched in theme, and classify the target colors in the obtained website to obtain regular colors and picture colors; the first processing module is used to control the switching of the target color based on the SVG filter, process the regular colors, and obtain the color effect with the filter; the second processing module is used to divide the picture into different areas based on the SVG cropping function, and set the SVG filter for the different areas to process the picture color to obtain the color effect with the partition filter; the execution module is used to realize the theme switching of the website to be switched in theme according to the processing results of the regular colors and the picture colors.

本申请中,常规颜色包括文本颜色、背景颜色、边框颜色;图片颜色包括图片资源颜色、背景图片颜色。In this application, conventional colors include text color, background color, and border color; image colors include image resource color and background image color.

本申请中,基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,具体包括:In this application, based on the SVG filter, the target color is switched and the conventional color is processed to obtain the color effect with the filter, which specifically includes:

基于SVG滤镜控制常规颜色中各目标颜色的切换;Control the switching of target colors in regular colors based on SVG filters;

通过不同滤镜,实现不同颜色的效果,以对常规颜色进行处理,得到带有滤镜的颜色效果。Different color effects can be achieved through different filters, so that regular colors can be processed to obtain color effects with filters.

对于本申请的基于SVG实现主题切换的前端处理方法而言,主要利用了SVG的两个能力:滤镜和裁切,实现主题切换效果。首先,使用SVG滤镜控制常规颜色中各目标颜色的切换,通过不同滤镜,实现不同颜色的效果,如各种主题下不同的文字颜色、背景颜色或边框颜色等。The front-end processing method for implementing theme switching based on SVG in this application mainly utilizes two capabilities of SVG: filter and cropping to achieve the theme switching effect. First, SVG filters are used to control the switching of target colors in conventional colors, and different color effects are achieved through different filters, such as different text colors, background colors or border colors under various themes.

本申请中,基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,具体包括:In this application, the image is divided into different areas based on the SVG cropping function, and SVG filters are set for different areas to process the color of the image to obtain a color effect with a partition filter, specifically including:

基于SVG裁切功能将图片颜色中对应的图片划分为不同区域;Divide the image into different areas based on the SVG cropping function;

针对不同区域进行不同SVG滤镜的设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果。Different SVG filters are set for different areas to process the image color and obtain a color effect with a partition filter.

即对于图片的主题切换,使用一个滤镜可能不能满足预期效果,本申请通过使用SVG的裁切功能,将图片划分为不同区域,从而针对不同区域设置不同的svg滤镜,以实现1张图片在各种主题下的对应效果。That is, for the theme switching of the picture, using one filter may not meet the expected effect. This application divides the picture into different areas by using the cropping function of SVG, and then sets different SVG filters for different areas to achieve the corresponding effects of one picture under various themes.

本申请中,根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,具体包括:In this application, according to the processing results of the conventional colors and the picture colors, the theme switching of the website to be switched is realized, which specifically includes:

根据对待进行主题切换的网站中常规颜色处理后得到的带有滤镜的颜色效果结果,以及对图片颜色处理后得到的带有分区滤镜的颜色效果结果,实现待进行主题切换的网站的主题切换。The theme switching of the website to be switched is achieved according to the color effect result with filter obtained after conventional color processing in the website to be switched and the color effect result with partition filter obtained after color processing of the picture.

本申请针对图片因为丰富的颜色而不能使用单一滤镜就达到目标效果的问题,创新地把图片分为不同的区域,针对不同区域设置不同的滤镜,完成了只使用1张图片,就实现了多种主题模式下的不同显示效果。In order to solve the problem that a single filter cannot achieve the desired effect due to the rich colors of images, this application innovatively divides the image into different areas, sets different filters for different areas, and achieves different display effects in multiple theme modes using only one image.

本申请的基于SVG实现主题切换的前端处理装置,通过获取待进行主题切换的网站,并对获取的网站中的目标颜色进行分类,得到常规颜色和图片颜色,然后基于SVG滤镜控制目标颜色的切换,对常规颜色进行处理,得到带有滤镜的颜色效果,然后基于SVG裁切功能将图片划分为不同区域,并对不同区域进行SVG滤镜设置,以对图片颜色进行处理,得到带有分区滤镜的颜色效果,最后根据对常规颜色和图片颜色的处理结果,实现待进行主题切换的网站的主题切换,使用SVG分别应对常规颜色和图片等复杂颜色的两种场景,最终实现主题切换,满足图片颜色切换的要求,同时有效较少各种主题切换时需要维护各个主题下颜色变量的维护成本。The front-end processing device for implementing theme switching based on SVG of the present application obtains the website to be switched in theme, and classifies the target colors in the obtained website to obtain regular colors and picture colors, then controls the switching of the target colors based on the SVG filter, processes the regular colors to obtain color effects with filters, then divides the picture into different areas based on the SVG cropping function, and sets SVG filters for different areas to process the picture colors to obtain color effects with partition filters, and finally implements theme switching of the website to be switched in theme according to the processing results of the regular colors and picture colors, uses SVG to deal with two scenarios of complex colors such as regular colors and pictures respectively, and finally implements theme switching to meet the requirements of picture color switching, while effectively reducing the maintenance cost of maintaining color variables under various themes when switching various themes.

其中,上述基于SVG实现主题切换的前端处理装置中各个模块的功能实现与上述基于SVG实现主题切换的前端处理方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。Among them, the functional implementation of each module in the above-mentioned front-end processing device for implementing theme switching based on SVG corresponds to the steps in the above-mentioned front-end processing method embodiment for implementing theme switching based on SVG, and its functions and implementation processes are no longer repeated here.

第三方面,本申请实施例提供一种基于SVG实现主题切换的前端处理设备,基于SVG实现主题切换的前端处理设备可以是个人计算机(personal computer,PC)、笔记本电脑、服务器等具有数据处理功能的设备。In a third aspect, an embodiment of the present application provides a front-end processing device for implementing theme switching based on SVG. The front-end processing device for implementing theme switching based on SVG may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

参照图3,图3为本申请实施例方案中涉及的基于SVG实现主题切换的前端处理设备的硬件结构示意图。本申请实施例中,基于SVG实现主题切换的前端处理设备可以包括处理器、存储器、通信接口以及通信总线。Referring to Figure 3, Figure 3 is a schematic diagram of the hardware structure of a front-end processing device for implementing theme switching based on SVG involved in the embodiment of the present application. In the embodiment of the present application, the front-end processing device for implementing theme switching based on SVG may include a processor, a memory, a communication interface, and a communication bus.

其中,通信总线可以是任何类型的,用于实现处理器、存储器以及通信接口互连。The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

通信接口包括输入/输出(input/output,I/O)接口、物理接口和逻辑接口等用于实现基于SVG实现主题切换的前端处理设备内部的器件互连的接口,以及用于实现基于SVG实现主题切换的前端处理设备与其他设备(例如其他计算设备或用户设备)互连的接口。物理接口可以是以太网接口、光纤接口、ATM接口等;用户设备可以是显示屏(Display)、键盘(Keyboard)等。The communication interface includes an input/output (I/O) interface, a physical interface, and a logical interface, etc., which are used to interconnect the devices inside the front-end processing device for implementing theme switching based on SVG, and an interface for interconnecting the front-end processing device for implementing theme switching based on SVG with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

存储器可以是各种类型的存储介质,例如随机存取存储器(randomaccessmemory,RAM)、只读存储器(read-only memory,ROM)、非易失性RAM(non-volatileRAM,NVRAM)、闪存、光存储器、硬盘、可编程ROM(programmable ROM,PROM)、可擦除PROM(erasable PROM,EPROM)、电可擦除PROM(electrically erasable PROM,EEPROM)等。The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

处理器可以是通用处理器,通用处理器可以调用存储器中存储的基于SVG实现主题切换的前端处理程序,并执行本申请实施例提供的基于SVG实现主题切换的前端处理方法。例如,通用处理器可以是中央处理器(central processing unit,CPU)。其中,基于SVG实现主题切换的前端处理程序被调用时所执行的方法可参照本申请基于SVG实现主题切换的前端处理方法的各个实施例,此处不再赘述。The processor may be a general-purpose processor, which may call a front-end processing program based on SVG for implementing theme switching stored in a memory, and execute a front-end processing method based on SVG for implementing theme switching provided in an embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the front-end processing program based on SVG for implementing theme switching is called may refer to the various embodiments of the front-end processing method based on SVG for implementing theme switching in the present application, which will not be described in detail here.

本领域技术人员可以理解,图3中示出的硬件结构并不构成对本申请的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the hardware structure shown in FIG. 3 does not constitute a limitation on the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

需要说明的是,上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

本申请的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。术语“第一”、“第二”和“第三”等描述,是用于区分不同的对象等,其不代表先后顺序,也不限定“第一”、“第二”和“第三”是不同的类型。The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.

在本申请实施例的描述中,“示例性的”、“例如”或者“举例来说”等用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”、“例如”或者“举例来说”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”、“例如”或者“举例来说”等词旨在以具体方式呈现相关概念。In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。In the description of the embodiments of the present application, unless otherwise specified, “/” means or. For example, A/B can mean A or B. The “and/or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

在本申请实施例描述的一些流程中,包含了按照特定顺序出现的多个操作或步骤,但是应该理解,这些操作或步骤可以不按照其在本申请实施例中出现的顺序来执行或并行执行,操作的序号仅用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作或步骤可以按顺序执行或并行执行,并且这些操作或步骤可以进行组合。In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备执行本申请各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims (10)

1. The front-end processing method for realizing the theme switching based on the SVG is characterized by comprising the following steps of:
Acquiring a website to be subject switched, and classifying the acquired target colors in the website to obtain a conventional color and a picture color;
Based on the switching of the SVG filter control target color, processing the conventional color to obtain the color effect with the filter;
Dividing the picture into different areas based on an SVG cutting function, and setting SVG filters for the different areas to process the colors of the picture so as to obtain a color effect with partition filters;
And according to the processing results of the conventional colors and the picture colors, realizing the theme switching of the website to be subjected to the theme switching.
2. The front-end processing method for implementing theme switching based on SVG as claimed in claim 1, wherein:
the conventional colors comprise text colors, background colors and frame colors;
the picture colors comprise picture resource colors and background picture colors.
3. The front-end processing method for realizing theme switching based on SVG according to claim 2, wherein the switching of the target color based on SVG filter is performed to process the conventional color to obtain the color effect with the filter, specifically comprising:
controlling switching of each target color in the conventional colors based on the SVG filter;
Different color effects are realized through different filters so as to treat the conventional colors and obtain the color effect with the filters.
4. The front-end processing method for implementing theme switching based on SVG as claimed in claim 2, wherein the SVG-based cutting function divides the picture into different areas, and performs SVG filter setting on the different areas to process the color of the picture to obtain the color effect with the partition filter, specifically comprising:
dividing corresponding pictures in the picture colors into different areas based on SVG cutting functions;
Different SVG filters are arranged for different areas so as to process the colors of the pictures and obtain the color effect with the partition filters.
5. The front-end processing method for implementing theme switching based on SVG as claimed in claim 2, wherein the implementing the theme switching of the website to be subjected to the theme switching according to the processing result of the conventional color and the picture color specifically includes:
and according to the color effect result with the filter obtained after the conventional color processing in the website to be subject switched and the color effect result with the partition filter obtained after the picture color processing, the subject switching of the website to be subject switched is realized.
6. The front-end processing device for realizing theme switching based on SVG is characterized by comprising:
the classification module is used for acquiring websites to be subject switched and classifying target colors in the acquired websites to obtain conventional colors and picture colors;
the first processing module is used for controlling the switching of the target color based on the SVG filter, and processing the conventional color to obtain the color effect with the filter;
The second processing module is used for dividing the picture into different areas based on the SVG cutting function, and setting SVG filters for the different areas so as to process the colors of the picture and obtain the color effect with the partition filters;
And the execution module is used for realizing the theme switching of the website to be subjected to the theme switching according to the processing results of the conventional colors and the picture colors.
7. The front-end processing device for implementing theme switching based on SVG according to claim 6, wherein:
the conventional colors comprise text colors, background colors and frame colors;
the picture colors comprise picture resource colors and background picture colors.
8. The front-end processing device for implementing theme switching based on SVG according to claim 7, wherein the SVG filter-based control target color switching processes a conventional color to obtain a color effect with a filter, and specifically includes:
controlling switching of each target color in the conventional colors based on the SVG filter;
Different color effects are realized through different filters so as to treat the conventional colors and obtain the color effect with the filters.
9. The front-end processing device for implementing theme switching based on SVG according to claim 7, wherein the SVG-based cutting function divides the picture into different areas, and performs SVG filter setting on the different areas to process the color of the picture, thereby obtaining the color effect with the partition filter, and the method specifically comprises:
dividing corresponding pictures in the picture colors into different areas based on SVG cutting functions;
Different SVG filters are arranged for different areas so as to process the colors of the pictures and obtain the color effect with the partition filters.
10. Front-end processing device for implementing theme switching based on SVG, wherein the front-end processing device for implementing theme switching based on SVG includes a processor, a memory, and a front-end processing program for implementing theme switching based on SVG stored on the memory and executable by the processor, wherein the front-end processing program for implementing theme switching based on SVG implements the steps of the front-end processing method for implementing theme switching based on SVG according to any one of claims 1 to 5 when the front-end processing program for implementing theme switching based on SVG is executed by the processor.
CN202410626214.3A 2024-05-20 2024-05-20 Front-end processing method, device and equipment for implementing theme switching based on SVG Pending CN118568372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410626214.3A CN118568372A (en) 2024-05-20 2024-05-20 Front-end processing method, device and equipment for implementing theme switching based on SVG

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410626214.3A CN118568372A (en) 2024-05-20 2024-05-20 Front-end processing method, device and equipment for implementing theme switching based on SVG

Publications (1)

Publication Number Publication Date
CN118568372A true CN118568372A (en) 2024-08-30

Family

ID=92462954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410626214.3A Pending CN118568372A (en) 2024-05-20 2024-05-20 Front-end processing method, device and equipment for implementing theme switching based on SVG

Country Status (1)

Country Link
CN (1) CN118568372A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN110688599A (en) * 2019-08-29 2020-01-14 北京三快在线科技有限公司 Webpage processing method and device, electronic equipment and readable storage medium
US20210405858A1 (en) * 2020-06-29 2021-12-30 Boe Technology Group Method for switching theme of application and electronic device
CN114357345A (en) * 2021-12-11 2022-04-15 深圳市优必选科技股份有限公司 Image processing method, apparatus, electronic device, and computer-readable storage medium
CN115587272A (en) * 2022-10-21 2023-01-10 中国农业银行股份有限公司 Front-end page color adjusting method, device, system and medium
CN116597038A (en) * 2023-05-22 2023-08-15 怀化学院 Intelligent color matching method and system based on big data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549928A (en) * 2015-12-02 2016-05-04 广州阿里巴巴文学信息技术有限公司 Color matching method and device of display content
CN110688599A (en) * 2019-08-29 2020-01-14 北京三快在线科技有限公司 Webpage processing method and device, electronic equipment and readable storage medium
US20210405858A1 (en) * 2020-06-29 2021-12-30 Boe Technology Group Method for switching theme of application and electronic device
CN114357345A (en) * 2021-12-11 2022-04-15 深圳市优必选科技股份有限公司 Image processing method, apparatus, electronic device, and computer-readable storage medium
CN115587272A (en) * 2022-10-21 2023-01-10 中国农业银行股份有限公司 Front-end page color adjusting method, device, system and medium
CN116597038A (en) * 2023-05-22 2023-08-15 怀化学院 Intelligent color matching method and system based on big data

Similar Documents

Publication Publication Date Title
US10747715B2 (en) Apparatus that provides generation service of document file incloud system, method, and storage medium
US7805445B2 (en) Simplifying complex data stream problems involving feature extraction from noisy data
US9645743B2 (en) Selective I/O prioritization by system process/thread
CN103428251B (en) A kind of downloading task distribution method and device
DE102012109959A1 (en) Automatic enlargement and selection confirmation
CN110727890A (en) Page loading method and device, computer equipment and storage medium
CN109582890B (en) Page loading method and device, computer equipment and storage medium
WO2017219524A1 (en) Page saving method and electronic device
WO2024148838A1 (en) Mutual page jump/closing method and system, and electronic device and storage medium
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
US11120840B2 (en) Information processing method and electronic device
CN115357834A (en) Page jump method, device, equipment and storage medium
CN118568372A (en) Front-end processing method, device and equipment for implementing theme switching based on SVG
CN111045576A (en) Display control method, display control device, terminal device and electronic device
CN107943921A (en) Page sharing information generation method, device, computer equipment and storage medium
CN116048517B (en) Method, system and device for generating API interface based on B/S architecture application system
WO2023236795A1 (en) Encyclopedia entry processing method and apparatus, and electronic device, medium and program product
CN115186207A (en) Method and device for loading page resources and electronic equipment
CN115774700A (en) File sharing method and device, computer equipment and storage medium
CN113849686A (en) Video data acquisition method and device, electronic equipment and storage medium
CN114780893A (en) Webpage management and control method and system
WO2024051439A1 (en) Webpage generation method and apparatus, and electronic device and storage medium
CN111897612A (en) Page updating method and device, electronic equipment and storage medium
CN118673233A (en) Web paging preview method, system, equipment and medium of PDF file
CN113535131B (en) Interface management method, device, electronic device and readable storage medium

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