CN112181580A - Application theme switching method, device and system - Google Patents

Application theme switching method, device and system Download PDF

Info

Publication number
CN112181580A
CN112181580A CN202011116324.3A CN202011116324A CN112181580A CN 112181580 A CN112181580 A CN 112181580A CN 202011116324 A CN202011116324 A CN 202011116324A CN 112181580 A CN112181580 A CN 112181580A
Authority
CN
China
Prior art keywords
scheme
theme
application
interface
identifier
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
CN202011116324.3A
Other languages
Chinese (zh)
Other versions
CN112181580B (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202011116324.3A priority Critical patent/CN112181580B/en
Publication of CN112181580A publication Critical patent/CN112181580A/en
Application granted granted Critical
Publication of CN112181580B publication Critical patent/CN112181580B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides an application theme switching method, which comprises the following steps: calling a scheme identifier corresponding to a locally stored default theme scheme according to the application starting instruction; analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value; generating a parameter request instruction, acquiring a system scheme identifier at a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier; when the comparison result is inconsistent, replacing the scheme identification of the default theme scheme with a system scheme identification, and destroying the current application theme interface; and analyzing a second configuration parameter value corresponding to the locally pre-stored system scheme identifier according to the system scheme identifier, and loading a corresponding application theme interface.

Description

Application theme switching method, device and system
Technical Field
The invention relates to the field of computers, can be applied to the field of intelligent terminals and other fields, and particularly relates to an application theme switching method, device and system suitable for an IOS (input/output system).
Background
With the development of mobile internet, mobile phone application apps are rapidly developed, apples serve as one of two major camps of a mobile phone operating system, and an application market App Store of the apples provides millions of apps for users to use. Under the background, the mobile phone App is realized by setting different App theme colors in order to set atmosphere on holidays or to convey heavy and mourning emotions on national great disaster memorial days.
The apple system sets the App theme color, and the processing schemes in the industry are probably as follows: dynamically updating picture resources; the key page develops a color code of a specific theme, and different theme colors are displayed by setting parameters through the server. Both solutions present different problems: the first picture resource dynamic updating: the designer is required to temporarily design the picture resources, upload the picture resources, and replace the daily picture resources after holidays and anniversaries, so that the cost is high, and the response speed is low. And only the picture resources are replaced, some built-in pictures of the App cannot be changed, only part of functions of the App can be changed to display the special theme color, the theme color set on the H5 page is not supported, the coverage range is small, and the effect is poor. Secondly, a specific theme color code is developed in a key page, parameters are set through a server, and different pages are displayed: only when the key page is displayed as the specific theme color, the normal theme color is still displayed when the secondary function page is entered, and the scheme effect is poor. The page modification needs to modify the color of a specific theme synchronously, the workload is large, new contents need to be released into a new version, an apple App Store is submitted for review, the apple App Store can be put on the shelf after the new contents pass, and the timeliness is poor.
Disclosure of Invention
The invention aims to provide an application theme switching method, device and system, and solves the problems of poor effect, low timeliness and the like of a mobile phone application APP when theme colors are adjusted on a special holiday.
To achieve the above object, the method for switching application themes provided by the present invention specifically comprises: calling a scheme identifier corresponding to a locally stored default theme scheme according to the application starting instruction; analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value; generating a parameter request instruction, acquiring a system scheme identifier at a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier; when the comparison result is inconsistent, replacing the scheme identification of the default theme scheme with a system scheme identification, and destroying the current application theme interface; and analyzing a second configuration parameter value corresponding to the locally pre-stored system scheme identifier according to the system scheme identifier, and loading a corresponding application theme interface.
In the above method for switching application themes, preferably, replacing the scheme identifier of the default theme scheme with the system scheme identifier includes: and replacing the scheme identification of the default theme scheme with the system scheme identification through a method exchange function.
In the foregoing method for switching application themes, preferably, loading an application theme interface by using the first configuration parameter value includes: obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values; respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter; and injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page.
In the foregoing method for switching application themes, preferably, loading an application theme interface by using the first configuration parameter value further includes: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode.
The invention also provides an application theme switching device, which comprises a starting module, a comparison module and a switching module; the starting module is used for calling a scheme identifier corresponding to a locally stored default theme scheme according to an application starting instruction; analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value; analyzing a second configuration parameter value corresponding to the system scheme identifier which is prestored locally according to the system scheme identifier, and loading a corresponding application theme interface; the comparison module is used for generating a parameter request instruction, acquiring a system scheme identifier from a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier; and the switching module is used for replacing the scheme identifier of the default theme scheme with a system scheme identifier and destroying the current application theme interface when the comparison result is inconsistent.
In the above application theme switching apparatus, preferably, the switching module includes: and replacing the scheme identification of the default theme scheme with the system scheme identification through a method exchange function.
In the above application theme switching apparatus, preferably, the starting module includes: obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values; respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter; and injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page.
In the above application theme switching apparatus, preferably, the starting module further includes: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode.
The invention also provides a system comprising the application theme switching device, and the system also comprises a server side, wherein the server side is used for comparing and obtaining a system scheme identifier according to the received setting instruction and a pre-stored scheme corresponding table; and when a parameter request instruction initiated by the application theme switching device is received, feeding back the system scheme identifier to the application theme switching device through an interface.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the computer program.
The present invention also provides a computer-readable storage medium storing a computer program for executing the above method.
The invention has the beneficial technical effects that: parameters are set through the server, the color switch of a specific theme is controlled, online auditing is not needed, and timeliness is high; through this scheme, the theme color sets up and covers the full function of App, guarantees App experience uniformity. Once development, reuse, App adds new function and need not develop relevant code again.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a schematic flowchart of an application theme switching method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a configuration parameter value loading application interface according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an application theme switching apparatus according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a system according to an embodiment of the present invention
FIG. 5 is a schematic diagram illustrating an application flow of the system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, unless otherwise specified, the embodiments and features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Additionally, the steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions and, although a logical order is illustrated in the flow charts, in some cases, the steps illustrated or described may be performed in an order different than here.
Referring to fig. 1, an application theme switching method provided in an embodiment of the present invention specifically includes:
s101, calling a scheme identifier corresponding to a locally stored default theme scheme according to an application starting instruction;
s102, analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value;
s103, generating a parameter request instruction, acquiring a system scheme identifier at a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier;
s104, when the comparison result is inconsistent, replacing the scheme identification of the default theme scheme with a system scheme identification, and destroying the current application theme interface;
s105, according to the system scheme identification, analyzing a second configuration parameter value corresponding to the system scheme identification which is pre-stored locally, and loading a corresponding application theme interface.
In practical work, the application theme switching method is mainly applicable to an ios system, wherein replacing the scheme identifier of the default theme scheme with the system scheme identifier comprises: and replacing the system scheme identification with the current default theme scheme through a method exchange function. Namely, the method of exchanging functions through method _ exchange integrations provided by the system completes the switching of the theme scheme, and the main principle of the method is that the method _ exchange integrations is used for switching two functions, so that after the functions are switched, the original default theme scheme is dynamically replaced by the system scheme identifier, and the theme replacement is quickly completed without online auditing.
It should be noted that, in the above embodiment, the staff may store one or more preset theme schemes into the data packet of the application end according to actual needs, and then generate corresponding scheme identifiers according to the theme schemes, where the scheme identifiers may be simpler symbol identifiers such as numbers and numbers; therefore, in the subsequent process, whether the local application terminal needs to perform corresponding theme switching can be determined only by using the system scheme identifier, and if so, the locally pre-stored corresponding theme scheme can be called to complete interface generation. By the method, the problem that a traditional server sends a large amount of code data or resource files to be required to be examined can be avoided, and meanwhile, the system parameters required to be acquired by the application end are fewer, so that the waste of resources such as networks is lower, and the timeliness is better.
Referring to fig. 2, in an embodiment of the present invention, loading an application theme interface through the first configuration parameter value includes:
s201, obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values;
s202, respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter;
s203, injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page.
Further, in another embodiment of the present invention, loading the application theme interface through the first configuration parameter value may further include: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode. It should be noted that, similar to this embodiment, the way of replacing the application theme interface according to the second configuration parameter value subsequently is consistent with the way of replacing the theme interface according to the first configuration parameter value, and the specific interface generation way thereof is described in detail in the foregoing embodiment, and is not described in detail herein.
In actual work, the theme interface of the application mainly comprises two types: firstly, a native page written by a code; and secondly, embedding an H5 page in the WebView browser. For the two types, the display content is adjusted mainly in the following mode, the original page sets the theme color by modifying the rendering color value and adding the picture filter, and the H5 page sets the theme color by injecting a CSS style.
Wherein the native page sets the adjustment of the theme color including UIColor, UIImage and UIAlertController by modifying the rendering color value and adding the picture filter;
the UIColor mainly exchanges 11 rapid color setting methods (lightGrayColor, grayColor, redColor, greenColor, blue Color, cyanColor, yellowColor, magentaColor, orangeColor, purpleColor, brownColor) provided by the system and a custom color setting method + (UIColor) color WithRed (CGfloat) redgreen (CGfloat) green (CGfloat) alpha into a corresponding theme color setting method.
The UIImage mainly exchanges an imageNamed method and an imageWithData method provided by the system with a corresponding filter setting increasing method. Aiming at the default font color in the directly used system component UIAlertController, the titleTextColor is modified into the corresponding theme color in a key value coding KVC mode.
Referring to fig. 3, the present invention further provides an application theme switching apparatus, which includes a starting module, a comparing module and a switching module; the starting module is used for calling a scheme identifier corresponding to a locally stored default theme scheme according to an application starting instruction; analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value; analyzing a second configuration parameter value corresponding to the system scheme identifier which is prestored locally according to the system scheme identifier, and loading a corresponding application theme interface; the comparison module is used for generating a parameter request instruction, acquiring a system scheme identifier from a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier; and the switching module is used for replacing the scheme identifier of the default theme scheme with a system scheme identifier and destroying the current application theme interface when the comparison result is inconsistent. In practical work, the application theme switching device can be a mobile intelligent terminal device capable of running an ios system, and when scheme replacement is executed, a method of method _ exchange implementation provided by the system can be adopted to exchange functions to complete theme scheme switching.
In an embodiment of the present invention, the starting module may include: obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values; respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter; and injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page. In another embodiment, the start module further comprises: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode. It should be noted that, similar to this embodiment, the way of replacing the application theme interface according to the second configuration parameter value subsequently is consistent with the way of replacing the theme interface according to the first configuration parameter value, and the specific interface generation way thereof is described in detail in the foregoing embodiment, and is not described in detail herein.
Referring to fig. 4, the present invention further provides a system including an application theme switching apparatus, where the system further includes a server, and the server is configured to compare the received setting instruction with a pre-stored scheme mapping table to obtain a system scheme identifier; and when a parameter request instruction initiated by the application theme switching device is received, feeding back the system scheme identifier to the application theme switching device through an interface.
In actual work, the specific operation flow of the system can be shown in fig. 5, and the loading flow of the application interface is as follows:
1. the application theme switching device, namely the application end, presets n theme color schemes and numbers corresponding to the schemes. And the server configures the number list and the corresponding subject name in an operation management system.
2. And the operator selects a corresponding theme scheme in the management system.
3. When the App is started, the theme color scheme number stored in the client is firstly obtained, and the page is loaded according to the corresponding theme color scheme.
4. And acquiring the latest theme color scheme number from the server side in an interface mode, and comparing the latest theme color scheme number with the local color scheme number. If the theme color scheme numbers are the same, no processing is carried out, if the theme color scheme numbers are different, firstly, the latest theme color scheme numbers are stored to the local, secondly, method exchange is carried out, and finally, all current pages are destroyed and loaded again.
The invention has the beneficial technical effects that: timeliness: the parameters are set through the server, the color switch of the specific theme is controlled, online auditing is not needed, and timeliness is high. The setting range is fully covered: through this scheme, the theme color sets up and covers the full function of App, guarantees App experience uniformity. Once development, reuse, App adds new function and need not develop relevant code again.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the computer program. The electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may refer to the implementation of the above method and the above apparatus, and the contents thereof are incorporated herein, and repeated descriptions thereof are omitted.
The present invention also provides a computer-readable storage medium storing a computer program for executing the above method.
Fig. 6 is a schematic block diagram of a system configuration of an electronic apparatus 600 according to an embodiment of the present invention. As shown in fig. 6, the electronic device 600 may include a central processor 100 and a memory 140; the memory 140 is coupled to the central processor 100. Notably, this diagram is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
As further shown in fig. 6, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in FIG. 6; furthermore, the electronic device 600 may also comprise components not shown in fig. 6, which may be referred to in the prior art.
As shown in fig. 6, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. An application theme switching method, comprising:
calling a scheme identifier corresponding to a locally stored default theme scheme according to the application starting instruction;
analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value;
generating a parameter request instruction, acquiring a system scheme identifier at a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier;
when the comparison result is inconsistent, replacing the scheme identification of the default theme scheme with a system scheme identification, and destroying the current application theme interface;
and analyzing a second configuration parameter value corresponding to the locally pre-stored system scheme identifier according to the system scheme identifier, and loading a corresponding application theme interface.
2. The method for switching application themes according to claim 1, wherein replacing the scheme identification of the default theme scheme with the system scheme identification comprises: and replacing the scheme identification of the default theme scheme with the system scheme identification through a method exchange function.
3. The method for switching application themes according to claim 1, wherein loading an application theme interface by the first configuration parameter value comprises:
obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values;
respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter;
and injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page.
4. The method of claim 3, wherein loading an application theme interface with the first configuration parameter value further comprises: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode.
5. The application theme switching device is characterized by comprising a starting module, a comparison module and a switching module;
the starting module is used for calling a scheme identifier corresponding to a locally stored default theme scheme according to an application starting instruction; analyzing a first configuration parameter value corresponding to the default theme scheme prestored locally according to the scheme identifier, and loading an application theme interface through the first configuration parameter value; analyzing a second configuration parameter value corresponding to the system scheme identifier which is prestored locally according to the system scheme identifier, and loading a corresponding application theme interface;
the comparison module is used for generating a parameter request instruction, acquiring a system scheme identifier from a server interface through the parameter request instruction, and comparing the system scheme identifier with the scheme identifier;
and the switching module is used for replacing the scheme identifier of the default theme scheme with a system scheme identifier and destroying the current application theme interface when the comparison result is inconsistent.
6. The application theme switching device according to claim 5, wherein the switching module comprises: and replacing the scheme identification of the default theme scheme with the system scheme identification through a method exchange function.
7. The application theme switching apparatus of claim 5, wherein the starting module comprises:
obtaining rendering color parameters, filter setting parameters and cascading style sheet data according to the first configuration parameter values;
respectively setting a rendering color value and a theme filter of a native page in an application theme interface through a rendering color parameter and the filter setting parameter;
and injecting the cascading style sheet data into an H5 page frame in the application theme interface to generate an H5 page.
8. The application theme switching apparatus of claim 7, wherein the starting module further comprises: and obtaining font color parameters according to the first configuration parameter values, and modifying font colors in an application theme interface by using a system control through the font color parameters in a key value coding mode.
9. The system comprising the application theme switching apparatus according to any one of claims 5 to 8, wherein the system further comprises a server, and the server is configured to compare the received setting instruction with a pre-stored scheme correspondence table to obtain a system scheme identifier; and when a parameter request instruction initiated by the application theme switching device is received, feeding back the system scheme identifier to the application theme switching device through an interface.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 4 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202011116324.3A 2020-10-19 2020-10-19 Application theme switching method, device and system Active CN112181580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011116324.3A CN112181580B (en) 2020-10-19 2020-10-19 Application theme switching method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011116324.3A CN112181580B (en) 2020-10-19 2020-10-19 Application theme switching method, device and system

Publications (2)

Publication Number Publication Date
CN112181580A true CN112181580A (en) 2021-01-05
CN112181580B CN112181580B (en) 2024-06-14

Family

ID=73950797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011116324.3A Active CN112181580B (en) 2020-10-19 2020-10-19 Application theme switching method, device and system

Country Status (1)

Country Link
CN (1) CN112181580B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076150A (en) * 2021-04-13 2021-07-06 北京同邦卓益科技有限公司 Interface theme switching method, device, equipment, storage medium and program product
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device
CN115113948A (en) * 2022-06-29 2022-09-27 重庆长安汽车股份有限公司 Application interface theme adaptation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046317A (en) * 2019-03-13 2019-07-23 平安城市建设科技(深圳)有限公司 Page info recording method, terminal and the storage medium of IOS application
CN110286974A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Application configuration method, apparatus, equipment and storage medium based on the H5 page
US20190332398A1 (en) * 2018-04-25 2019-10-31 Shenzhen Launch Software Co., Ltd. Interface switching method and device, and computer readable storage medium
CN111240792A (en) * 2020-02-10 2020-06-05 腾讯科技(深圳)有限公司 Theme switching method and device for user interface, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190332398A1 (en) * 2018-04-25 2019-10-31 Shenzhen Launch Software Co., Ltd. Interface switching method and device, and computer readable storage medium
CN110046317A (en) * 2019-03-13 2019-07-23 平安城市建设科技(深圳)有限公司 Page info recording method, terminal and the storage medium of IOS application
CN110286974A (en) * 2019-05-21 2019-09-27 深圳壹账通智能科技有限公司 Application configuration method, apparatus, equipment and storage medium based on the H5 page
CN111240792A (en) * 2020-02-10 2020-06-05 腾讯科技(深圳)有限公司 Theme switching method and device for user interface, terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113076150A (en) * 2021-04-13 2021-07-06 北京同邦卓益科技有限公司 Interface theme switching method, device, equipment, storage medium and program product
CN113448670A (en) * 2021-06-28 2021-09-28 吉林亿联银行股份有限公司 APP client skin changing method and device
CN115113948A (en) * 2022-06-29 2022-09-27 重庆长安汽车股份有限公司 Application interface theme adaptation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112181580B (en) 2024-06-14

Similar Documents

Publication Publication Date Title
CN112181580B (en) Application theme switching method, device and system
CN110427385B (en) Block chain data updating method, related node and block chain
CN102789357A (en) Method and device for setting subject resources based on Andriod application technology
CN111324378B (en) Configuration method, device and equipment for video monitoring application software
CN111061536A (en) Method and device for changing skin of application program
CN112328413A (en) Application service calling method, device and system
CN106066794A (en) Switching on and shutting down cartoon making device, mobile terminal and method
CN101035337B (en) Method for reducing booting time of mobile communication terminal
CN113515344B (en) Cross-technology-platform virtual machine automatic migration method and device
CN113656005B (en) Application component library construction method, application component configuration method and related devices
CN112468574B (en) Processing method, device and system for application service publishing and subscribing mechanism
CN106330561A (en) Dynamic UI setting method and apparatus
CN111367561B (en) Remote development method and device for software program
CN112559158A (en) Micro-service timing task scheduling method and device
CN111443945B (en) Component code modification method and device
CN111752454A (en) Skin control method, device, terminal and medium for application program interface
CN111782260A (en) Gray scale distribution method and gray scale distribution device
CN112035162B (en) Configuration file batch modification method and device
CN110673992A (en) Multi-mirror image fusion self-starting method and system
CN112596748B (en) Desktop fusion use method, device, equipment and readable storage medium
CN113434423B (en) Interface testing method and device
CN114416212A (en) Mobile terminal application program data resource processing method and device
CN110502296B (en) Method, equipment and storage medium for displaying firmware upgrading command
CN113127268A (en) Data transmission method and device for bank database
CN111444225B (en) Universal index analysis method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant