Application interface style switching method and device
By obtaining and pushing target interface style information through the server, the terminal executes interface style switching, which solves the problem of high cost of enterprise user interface customization and realizes real-time flexible configuration of interface styles and cost reduction.
Patent Information
- Application Number
- CN202111528654.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2041-12-14
AI Technical Summary
In the prior art, the method of providing each enterprise with a customized terminal product package increases development and maintenance costs.
The target interface style information configured by the target enterprise user is obtained through the server, and a configuration message is sent to the associated terminal to achieve real-time switching of the interface style. The terminal performs the interface style switching operation based on the configuration message.
The target enterprise users can configure the interface style in real time and flexibly, improve product satisfaction and reduce development and maintenance costs.
Smart Images

Figure CN116263684B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for switching application interface styles. Background Art
[0002] When enterprise users use terminal products, they often need to customize the interface style of the terminal products to suit the enterprise's own style.
[0003] In the related art, in order to meet the above customization needs of enterprises, a terminal product customization package is provided for each enterprise. However, providing a customization package for each enterprise greatly increases the development and maintenance costs. Summary of the Invention
[0004] In view of the problems existing in the related art, the present invention provides a method and device for switching application interface styles.
[0005] The present invention provides a method for switching application interface styles, comprising:
[0006] Obtain target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user;
[0007] A configuration message is sent to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0008] According to a method for switching an application interface style provided by the present invention, obtaining target interface style information of a target application includes:
[0009] The target enterprise user's customized configuration operation for the interface style of the target application is received through the front-end configuration interface of the server to obtain the target interface style information.
[0010] According to a method for switching application interface styles provided by the present invention, the customized configuration operation includes at least one of the following: uploading, inputting, restoring default settings, selecting, and editing.
[0011] According to a method for switching application interface styles provided by the present invention, the method further includes:
[0012] When a preview operation is received from the target enterprise user, a preview result corresponding to the target interface style information is displayed on the front-end configuration interface.
[0013] According to a method for switching application interface styles provided by the present invention, the target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
[0014] The present invention also provides a method for switching application interface styles, comprising:
[0015] Receive a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; the target interface style information is configured by a target enterprise user;
[0016] An interface style switching operation is performed for the target application based on the configuration message.
[0017] According to a method for switching an application interface style provided by the present invention, before performing the interface style switching operation for the target application based on the configuration message, the method further includes:
[0018] Based on the configuration message, determining whether the target interface style information is the same as the current interface style information of the target application;
[0019] When the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, an interface style update broadcast notification is sent to N running processes of the target application, so that each of the N running processes performs an interface style switching operation based on the interface style update broadcast notification; wherein the interface style update broadcast notification includes: all information of the target interface style information, or the first interface style information.
[0020] According to a method for switching application interface styles provided by the present invention, the method further includes:
[0021] Receive an interface style registration request sent by a target running process among the N running processes; wherein, the interface style registration request is used to instruct the terminal to send the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of current interface style information of the target application.
[0022] According to a method for switching an application interface style provided by the present invention, performing an interface style switching operation for the target application based on the configuration message includes:
[0023] Generate a target interface style using the target interface style information of the target application included in the configuration message;
[0024] The target interface style is loaded to switch the current interface style of the target application to the target interface style.
[0025] According to a method for switching application interface styles provided by the present invention, the target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
[0026] According to a method for switching application interface styles provided by the present invention, the method further includes:
[0027] In a case where the target interface style information includes background image information, and the background image information is a download link, a target image corresponding to the background image information is downloaded based on the download link; and the target image is saved.
[0028] The present invention also provides a device for switching application interface styles, which is applied to a server and includes:
[0029] An acquisition module, configured to acquire target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user;
[0030] A sending module is used to send a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0031] The present invention also provides a device for switching application interface styles, which is applied to a terminal and includes:
[0032] A first receiving module is configured to receive a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; the target interface style information is configured by a target enterprise user;
[0033] An execution module is used to execute an interface style switching operation for the target application based on the configuration message.
[0034] The present invention also provides a server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for switching the application interface style as described above are implemented.
[0035] The present invention also provides a terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for switching the application interface style as described above are implemented.
[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described methods for switching application interface styles.
[0037] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the above-mentioned methods for switching application interface styles.
[0038] In the application interface style switching method provided by the present invention, by adopting a configurable interface style method, the target enterprise user independently configures the interface style of the target application online on the server, and the server sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can configure the interface style of the target application in real time and flexibly, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0040] Figure 1 This is one of the flow charts of the method for switching the application interface style provided by the present invention;
[0041] Figure 2 This is the second flow chart of the method for switching the application interface style provided by the present invention;
[0042] Figure 3 This is the third flow chart of the method for switching the application interface style provided by the present invention;
[0043] Figure 4 This is the fourth flow chart of the method for switching the application interface style provided by the present invention;
[0044] Figure 5 This is the fifth flow chart of the method for switching the application interface style provided by the present invention;
[0045] Figure 6 This is one of the structural diagrams of the device for switching the application interface style provided by the present invention;
[0046] Figure 7 This is a second structural diagram of the device for switching the application interface style provided by the present invention;
[0047] Figure 8 It is a structural diagram of the server provided by the present invention;
[0048] Figure 9 This is one of the structural diagrams of the terminal provided by the present invention;
[0049] Figure 10 This is the second structural diagram of the terminal provided by the present invention. DETAILED DESCRIPTION
[0050] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0051] The following describes in detail the method for switching application interface styles provided by the present invention through some embodiments and application scenarios with reference to the accompanying drawings.
[0052] The present invention provides a method for switching application interface styles. The method for switching application interface styles can be applied to scenarios where enterprise users customize applications. The server obtains target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user; and sends a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information. The present invention adopts a configurable interface style method, in which the target enterprise user independently configures the interface style of the target application online on the server. The server sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can flexibly configure the interface style of the target application in real time, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application.
[0053] Figure 1 This is one of the flow charts of the method for switching the application interface style provided by the present invention, such as Figure 1 As shown, the method includes steps 101 and 102, wherein:
[0054] Step 101: Acquire target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user;
[0055] Step 102: Send a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0056] It should be noted that the application interface style switching method provided by the present invention is applicable to scenarios where enterprise users customize applications. The execution subject of the method can be an application interface style switching device, such as a server, or a control module in the application interface style switching device for executing the application interface style switching method.
[0057] In the present invention, the target enterprise user can log in to the server of the target application based on the target account through a browser web page and perform customized configuration operations on the front-end configuration interface of the server.
[0058] It is understood that the process of the server sending a configuration message to at least one terminal associated with the target enterprise user can be a push process. When the interface style configuration of the target application changes, the server pushes the configuration message to the terminal, which receives the configuration message and then uses it to switch the interface style.
[0059] In practice, the target interface style information may include at least one of the following: background image information, title bar color value information, theme text color value information, and the logo of the target enterprise user's corresponding enterprise.
[0060] Specifically, the background image information is information indicating the background image of the running interface of the target application; the background image information may include a download link corresponding to the background image.
[0061] The title bar color value information indicates the color value of the title bar of the target application's running interface; the title bar includes the title bar of a pop-up window. The title bar color value information may include a title bar color value string, such as #1E90FF. Optionally, the title bar color value may include the background color of the target application's running interface.
[0062] The theme text color value information is information indicating the theme text color value of the target application's running interface; the theme text color value information may include: a theme text color value string, such as: #F2FF00. Optionally, the theme text may include text displayed in the target application's running interface.
[0063] It can be understood that in the present invention, the target enterprise user can configure at least one of the following items in the front-end configuration interface of the server: background image, title bar color value and theme text color value.
[0064] In the application interface style switching method provided by the present invention, by adopting a configurable interface style method, the target enterprise user independently configures the interface style of the target application online on the server, and the server sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can configure the interface style of the target application in real time and flexibly, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application.
[0065] Optionally, the implementation method of obtaining the target interface style information of the target application in step 101 may include: receiving a customized configuration operation of the target enterprise user for the interface style of the target application through the front-end configuration interface of the server to obtain the target interface style information.
[0066] Specifically, the custom configuration operation includes at least one of the following: uploading, inputting, restoring default settings, selecting, and editing.
[0067] Furthermore, when the server receives the preview operation of the target enterprise user, it displays the preview result corresponding to the target interface style information on the front-end configuration interface, so that the target enterprise user can preview the configuration effect online, which is convenient for the target enterprise user to make timely adjustments and improve configuration efficiency.
[0068] Figure 2 This is the second flow chart of the method for switching the application interface style provided by the present invention, see Figure 2 The method includes steps 201 to 205, wherein:
[0069] In step 201 , the target enterprise user starts customized configuration on the server; and then executes steps 202 to 204 respectively.
[0070] Step 202: Configure the background image of the target application.
[0071] Step 203: Configure the theme text color value of the target application.
[0072] Step 204: Configure the title bar color value of the target application.
[0073] Step 205: After steps 202 to 204 are completed, the server saves the target interface style information and sends it to at least one terminal associated with the target enterprise user.
[0074] Figure 3 This is the third flow chart of the method for switching the application interface style provided by the present invention. Figure 3As shown, the method includes steps 301 and 302, wherein:
[0075] Step 301: Receive a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; the target interface style information is configured by a target enterprise user;
[0076] Step 302: Execute an interface style switching operation for the target application based on the configuration message.
[0077] It should be noted that the application interface style switching method provided by the present invention can be applied to file distribution scenarios. The execution subject of the method can be an application interface style switching device, such as a terminal, or a control module in the application interface style switching device for executing the application interface style switching method.
[0078] It is understandable that the terminal may be any one of the at least one terminal associated with the target enterprise user. After receiving the configuration message sent by the server, the terminal stores the target interface style corresponding to the target interface style information locally in the terminal.
[0079] Optionally, after receiving the configuration message sent by the server, the terminal uses the target interface style information of the target application included in the configuration message to generate a target interface style; and then loads the target interface style to switch the current interface style of the target application to the target interface style.
[0080] It should be noted that the current interface style here is the interface style currently used by the user, which is generated based on the current interface style information.
[0081] Optionally, the target interface style information may include at least one of the following: background image information, title bar color value information, and theme text color value information.
[0082] Specifically, the background image information is information indicating the background image of the target application's running interface; the background image information may include a download link corresponding to the background image. In practice, if the target interface style information includes background image information, and the background image information is a download link, the terminal downloads the target image corresponding to the background image information based on the download link and then saves the target image.
[0083] In the application interface style switching method provided by the present invention, by adopting a configurable interface style method, the target enterprise user independently configures the interface style of the target application online on the server, and the server sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can configure the interface style of the target application in real time and flexibly, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application.
[0084] Optionally, before the terminal performs an interface style switching operation for the target application based on the configuration message, the terminal performs the following notification steps:
[0085] Step 1) Based on the configuration message, determine whether the target interface style information is the same as the current interface style information of the target application;
[0086] Step 2) When the target interface style information includes first interface style information that is different from at least one item of the current interface style information of the target application, an interface style update broadcast notification is sent to N running processes of the target application, so that each of the N running processes performs an interface style switching operation based on the interface style update broadcast notification; wherein the interface style update broadcast notification includes: all information of the target interface style information, or the first interface style information. It is understandable that the interface style update broadcast notification can also be called a skin change message notification.
[0087] In the present invention, when the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, the terminal broadcasts a notification through cross-process notification to notify the N interface processes of the target application to switch the interface style, thereby realizing that the configuration message takes effect in real time on multiple processes.
[0088] Figure 4 This is a fourth flow chart of the method for switching the application interface style provided by the present invention. Figure 4 As shown, the method includes steps 401 to 403, wherein:
[0089] Step 401: The terminal receives a configuration message, ie, a customized configuration.
[0090] In step 402, the terminal stores the target interface style corresponding to the configuration message locally in the terminal.
[0091] In step 403, the terminal broadcasts a notification to notify N interface processes of the target application to switch interface styles.
[0092] In practice, when any one of the above-mentioned N running processes receives the interface style update broadcast notification, the target interface style is generated using the target interface style information and the target interface style is reloaded; or, the first interface style information and the current interface style information are used to generate the target interface style and the target interface style is reloaded.
[0093] Optionally, for any one of the N running processes, taking the target running process as an example, the interface style switching process of the target running process includes:
[0094] 1) When the target running process is called, it obtains the current customized style. If there is no configuration, it obtains the default style;
[0095] 2) The target running process queries whether the background image, text color, background color and other information have been customized to determine the type of resources or information that needs to be loaded.
[0096] 3) Register for skin change notifications
[0097] The target running process sends an interface style registration request to the terminal; wherein, the interface style registration request is used to instruct the terminal to send the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of current interface style information of the target application.
[0098] 4) When the target running process receives the interface style update broadcast notification, it performs an interface style switching operation based on the interface style update broadcast notification and reloads the new target interface style.
[0099] Accordingly, the terminal receives an interface style registration request sent by a target running process among the N running processes; wherein the interface style registration request is used to instruct the terminal to send the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of the current interface style information of the target application. In response to the interface style registration request, the terminal sends the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of the current interface style information of the target application.
[0100] Figure 5 This is a fifth flow chart of the method for switching the application interface style provided by the present invention. Figure 5 As shown, the method includes steps 501 to 503, wherein:
[0101] Step 501: The target running process calls Qt to load the current interface style of the target application, that is, the style sheet (QtStyle Sheets, QSS).
[0102] Step 502: The target running process receives an interface style update broadcast notification, ie, a customization configuration change notification.
[0103] Step 503: The target running process generates a target interface style using the target interface style information and reloads the target interface style.
[0104] The following describes the device for switching application interface styles provided by the present invention. The device for switching application interface styles described below and the method for switching application interface styles described above can refer to each other.
[0105] Figure 6 This is one of the structural diagrams of the switching device for the application interface style provided by the present invention, and the switching device for the application interface style is applied to the server; Figure 6 As shown, the switching device 600 for the application interface style includes: an acquisition module 601 and a sending module 602; wherein,
[0106] Acquisition module 601 is used to acquire target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user;
[0107] The sending module 602 is configured to send a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0108] The application interface style switching device provided by the present invention adopts a configurable interface style method, whereby the target enterprise user independently configures the interface style of the target application online on the server, and sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can flexibly configure the interface style of the target application in real time, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application.
[0109] Optionally, the acquisition module 601 is specifically configured to receive a custom configuration operation of the target enterprise user for the interface style of the target application through a front-end configuration interface of the server, and obtain the target interface style information.
[0110] Optionally, the custom configuration operation includes at least one of the following: uploading, inputting, restoring default settings, selecting, and editing.
[0111] Optionally, the device 600 for switching the application interface style further includes:
[0112] The preview module is used to display the preview result corresponding to the target interface style information on the front-end configuration interface when receiving the preview operation of the target enterprise user.
[0113] Optionally, the target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
[0114] The switching device for application interface style provided by the present invention can realize Figure 1 The various processes implemented in the illustrated method embodiments achieve the same technical effects, and to avoid repetition, they will not be described again here.
[0115] Figure 7 This is a second structural diagram of the device for switching the application interface style provided by the present invention, and the device for switching the application interface style is applied to a terminal; Figure 7 As shown, the switching device 700 for the application interface style includes: a first receiving module 701 and an execution module 702; wherein,
[0116] The first receiving module 701 is configured to receive a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; the target interface style information is configured by a target enterprise user;
[0117] The execution module 702 is configured to execute an interface style switching operation for the target application based on the configuration message.
[0118] In the application interface style switching device provided by the present invention, by adopting a configurable interface style method, the target enterprise user independently configures the interface style of the target application online on the server, and the server sends the target interface style information to at least one terminal associated with the target enterprise user. After receiving the target interface style information, the terminal performs an interface style switching operation based on the configuration message, thereby realizing real-time switching of the interface style of the target application running on the terminal. The target enterprise user can configure the interface style of the target application in real time and flexibly, thereby improving the product satisfaction of the target enterprise user and reducing the development and maintenance costs for the target application.
[0119] Optionally, the device 700 for switching the application interface style further includes:
[0120] a notification module, configured to determine, based on the configuration message, whether the target interface style information is the same as the current interface style information of the target application;
[0121] When the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, an interface style update broadcast notification is sent to N running processes of the target application, so that each of the N running processes performs an interface style switching operation based on the interface style update broadcast notification; wherein the interface style update broadcast notification includes: all information of the target interface style information, or the first interface style information.
[0122] Optionally, the device 700 for switching the application interface style further includes:
[0123] The second receiving module is used to receive an interface style registration request sent by a target running process among the N running processes; wherein, the interface style registration request is used to instruct the terminal to send the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of current interface style information of the target application.
[0124] Optionally, the execution module 702 is specifically configured to generate a target interface style using the target interface style information of the target application included in the configuration message; and load the target interface style to switch the current interface style of the target application to the target interface style.
[0125] Optionally, the target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
[0126] Optionally, the device 700 for switching the application interface style further includes:
[0127] The download module is used to download the target image corresponding to the background image information based on the download link when the target interface style information includes background image information and the background image information is a download link; and save the target image.
[0128] Figure 8 It is a structural diagram of the server provided by the present invention, such as Figure 8As shown, the server 800 provided by the present invention includes a processor 801, a memory 802, and a program or instruction stored in the memory 802 and executable on the processor 801. When the program or instruction is executed by the processor 801, each process of the embodiment of the method for switching the application interface style on the server side described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0129] Figure 9 This is one of the structural diagrams of the terminal provided by the present invention, such as Figure 9 As shown, the terminal 900 provided by the present invention includes a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the embodiment of the method for switching the application interface style on the above-mentioned terminal side is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0130] Figure 10 This is the second structural diagram of the terminal provided by the present invention, such as Figure 10 As shown, the terminal 1000 may include: a processor 1010, a communications interface 1020, a memory 1030, and a communication bus 1040, wherein the processor 1010, the communications interface 1020, and the memory 1030 communicate with each other via the communication bus 1040. The processor 1010 may call logic instructions in the memory 1030 to execute a method for switching an application interface style, the method comprising: obtaining target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user; and sending a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0131] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0132] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the application interface style switching method provided by the above methods, the method including: obtaining target interface style information of the target application; wherein the target interface style information is configured for the target enterprise user; sending a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0133] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the application interface style switching method provided by the above methods, the method comprising: obtaining target interface style information of the target application; wherein the target interface style information is configured for the target enterprise user; sending a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal performs an interface style switching operation based on the configuration message; wherein the configuration message includes the target interface style information.
[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for switching application interface styles, characterized in that: include: Obtain target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user; Sending a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal determines whether the target interface style information is the same as the current interface style information of the target application based on the configuration message; when the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, sending an interface style update broadcast notification to N running processes of the target application through a cross-process notification method, so that each of the N running processes calls Qt to load a style sheet QSS corresponding to the current interface style information of the target application, generates a target interface style based on the style sheet QSS of the current interface style information and the first interface style information included in the interface style update broadcast notification, and reloads the target interface style to perform an interface style switching operation; wherein the configuration message includes the target interface style information; The step of obtaining target interface style information of a target application includes: The customized configuration operation of the target enterprise user for the interface style of the target application is received through the front-end configuration interface of the server to obtain the target interface style information; the customized configuration operation includes at least one of the following: uploading, inputting, restoring default settings, selecting and editing, and the customized configuration operation is a configuration operation for the target interface style information.
2. The method for switching application interface styles according to claim 1, characterized in that: The method further comprises: When a preview operation is received from the target enterprise user, a preview result corresponding to the target interface style information is displayed on the front-end configuration interface.
3. The method for switching application interface styles according to claim 1, wherein: The target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
4. A method for switching application interface styles, characterized in that: include: Receiving a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; the target interface style information is obtained by a front-end configuration interface of the server after receiving a customized configuration operation of a target enterprise user for the interface style of the target application, wherein the customized configuration operation includes at least one of the following: upload, input, restore default settings, select, and edit, and the customized configuration operation is a configuration operation for the target interface style information; Executing an interface style switching operation for the target application based on the configuration message; The performing the interface style switching operation for the target application based on the configuration message includes: Based on the configuration message, determining whether the target interface style information is the same as the current interface style information of the target application; When the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, an interface style update broadcast notification is sent to the N running processes of the target application through cross-process notification, so that each of the N running processes calls Qt to load the style sheet QSS corresponding to the current interface style information of the target application, generates a target interface style based on the style sheet QSS of the current interface style information and the first interface style information included in the interface style update broadcast notification, and reloads the target interface style to perform an interface style switching operation.
5. The method for switching application interface styles according to claim 4, characterized in that: The method further comprises: Receive an interface style registration request sent by a target running process among the N running processes; wherein, the interface style registration request is used to instruct the terminal to send the interface style update broadcast notification to the target running process when the target interface style information includes first interface style information that is different from at least one item of current interface style information of the target application.
6. The method for switching application interface styles according to claim 4, characterized in that: The performing the interface style switching operation for the target application based on the configuration message includes: Generate a target interface style using the target interface style information of the target application included in the configuration message; The target interface style is loaded to switch the current interface style of the target application to the target interface style.
7. The method for switching application interface styles according to claim 4, characterized in that: The target interface style information includes at least one of the following: background image information, title bar color value information, and theme text color value information.
8. The method for switching application interface styles according to claim 7, wherein: The method further comprises: In a case where the target interface style information includes background image information, and the background image information is a download link, a target image corresponding to the background image information is downloaded based on the download link; and the target image is saved.
9. A device for switching application interface styles, applied to a server, characterized in that: include: An acquisition module, configured to acquire target interface style information of a target application; wherein the target interface style information is configured by a target enterprise user; a sending module, configured to send a configuration message to at least one terminal associated with the target enterprise user, so that each of the at least one terminal determines, based on the configuration message, whether the target interface style information is the same as the current interface style information of the target application; when the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, sending an interface style update broadcast notification to N running processes of the target application by means of a cross-process notification, so that each of the N running processes calls Qt to load a style sheet QSS corresponding to the current interface style information of the target application, generates a target interface style based on the style sheet QSS of the current interface style information and the first interface style information included in the interface style update broadcast notification, and reloads the target interface style to perform an interface style switching operation; wherein, the configuration message includes the target interface style information; The acquisition module is specifically used to receive the customized configuration operation of the target enterprise user for the interface style of the target application through the front-end configuration interface of the server, and obtain the target interface style information; the customized configuration operation includes at least one of the following: upload, input, restore default settings, selection and editing, and the customized configuration operation is a configuration operation for the target interface style information.
10. A device for switching application interface styles, applied to a terminal, characterized in that: include: A first receiving module is configured to receive a configuration message sent by a server; wherein the configuration message includes target interface style information of a target application; The target interface style information is obtained by the front-end configuration interface of the server after receiving a custom configuration operation of the target enterprise user for the interface style of the target application, wherein the custom configuration operation includes at least one of the following: upload, input, restore default settings, select, and edit, and the custom configuration operation is a configuration operation for the target interface style information; An execution module, configured to execute an interface style switching operation for the target application based on the configuration message; The execution module is specifically used to: Based on the configuration message, determining whether the target interface style information is the same as the current interface style information of the target application; When the target interface style information includes first interface style information that is different from at least one item of information in the current interface style information of the target application, an interface style update broadcast notification is sent to the N running processes of the target application through cross-process notification, so that each of the N running processes calls Qt to load the style sheet QSS corresponding to the current interface style information of the target application, generates a target interface style based on the style sheet QSS of the current interface style information and the first interface style information included in the interface style update broadcast notification, and reloads the target interface style to perform an interface style switching operation.
11. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for switching the application interface style as described in any one of claims 1 to 3 are implemented.
12. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for switching the application interface style as described in any one of claims 4 to 8 are implemented.
13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for switching the application interface style as described in any one of claims 1 to 3 are implemented, or the steps of the method for switching the application interface style as described in any one of claims 4 to 8 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method for switching the application interface style as described in any one of claims 1 to 3 are implemented, or the steps of the method for switching the application interface style as described in any one of claims 4 to 8 are implemented.
Citation Information
Patent Citations
Personalizedinformationconfiguration method and system based on user terminal
CN111949331A