Color configuration method, color configuration device, and electronic device
By responding to each group of identical color configuration requests in the portable printer's app by sending a single request, obtaining and caching server data, the problem of multiple requests for color configuration areas is solved. This reduces network redundancy and server load, ensuring normal printer operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ZHONGSHAN POLONO ELECTRONIC TECHNOLOGY CO LTD
- Filing Date
- 2026-03-20
- Publication Date
- 2026-06-30
AI Technical Summary
The existing portable printer app requires sending requests for each color configuration area when configuring colors, which leads to network request redundancy and increased server concurrency pressure, affecting normal printing operations.
By responding to each group's need for the same color configuration, a color configuration data retrieval request is sent once to obtain and cache server data, reducing the number of times the server interface is called, and the same color arrangement is loaded into the area with the same need using local storage.
This reduces the number of times the app calls the server interface, lowers network request redundancy and server concurrency pressure, and ensures the normal operation speed of the app and the normal printing operation of the portable printer.
Smart Images

Figure CN122308757A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of printing and imaging technology, and in particular to a color configuration method, a color configuration device, and an electronic device. Background Technology
[0002] Portable printers, also known as mini printers, are compact mobile printing devices that are small in size, lightweight, and easy to carry. They support printing operations by connecting to electronic devices such as mobile phones or tablets via Bluetooth, Wi-Fi, etc., meeting users' printing needs in mobile scenarios. They are widely used in mobile office, retail label, photo printing, on-site evidence collection and other scenarios.
[0003] To use a portable printer, users typically need to download a companion app. The app's editing interface allows users to interact with the printer, receive instructions, and control the printing process. This editing interface usually includes multiple color configuration areas. For each color configuration request from the user, the app needs to send a request to the printer to retrieve the corresponding color configuration data. However, sending one-to-one requests for each area significantly increases the number of times the app calls the server interface, leading to network request redundancy, increased server concurrency pressure, and potentially affecting the app's normal operating speed, thus impacting the portable printer's printing operation.
[0004] Optimizing the color configuration method of an app to reduce the number of times the app calls the server interface has become a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this application is to provide a color configuration method, electronic device, computer-readable storage medium, and computer program product that reduces the number of times an APP calls the server interface during the color configuration process.
[0006] To achieve the objectives of this application, the following technical solution is adopted:
[0007] Firstly, a color configuration method is provided for use with an app that works with a portable printer, including the following steps:
[0008] Obtain the color configuration requirements for multiple color configuration areas in the editing page;
[0009] In response to each group's requirement for the same color configuration, a color configuration data retrieval request is sent to the server.
[0010] Receive color configuration data sent by the server;
[0011] Based on the color configuration data sent by the server, load the same color arrangement into the color configuration area that has the same color configuration requirement.
[0012] Furthermore, the step of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes the following steps:
[0013] The color configuration data sent by the storage server;
[0014] Read the stored color configuration data;
[0015] Based on the read color configuration data, color configuration areas with the same color configuration requirements are displayed with the same color arrangement.
[0016] Furthermore, obtaining the color configuration requirements of multiple color configuration areas in the editing page includes the following steps:
[0017] Obtain one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page;
[0018] The color configuration requirements of the multiple color configuration areas in the editing page are determined based on one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page.
[0019] In one specific implementation, the color configuration data includes print mode color configuration data, and the step of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes:
[0020] Obtain the current printing mode of the portable printer used in conjunction with the APP;
[0021] Based on the current printing mode and the printing mode color configuration data, load the same color arrangement into the color configuration area that has the same color configuration requirements.
[0022] In another specific implementation, the color configuration data includes application scenario color configuration data, and the step of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes:
[0023] Obtain the current application scenario of the portable printer used in conjunction with the APP;
[0024] Based on the current application scenario and the color configuration data of the application scenario, load the same color arrangement into the color configuration area with the same color configuration requirements.
[0025] In another specific implementation, the color configuration data includes font type color configuration data, and the step of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes:
[0026] Get the current font type of the editing page;
[0027] Based on the current font type and the font type color configuration data, load the same color arrangement into the color configuration area that has the same color configuration requirements.
[0028] Secondly, a color configuration device is provided for use with an app that works with a portable printer, including:
[0029] The acquisition unit is used to acquire the color configuration requirements of multiple color configuration areas in the editing page;
[0030] The sending unit is used to send a color configuration data retrieval request to the server in response to each group of identical color configuration requirements;
[0031] The receiving unit is used to receive color configuration data sent by the server;
[0032] The loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the color configuration data sent by the server.
[0033] Thirdly, an electronic device is provided, including a processing module, a storage module, and a communication module; the storage module and the communication module are coupled to the processing module, the communication module being used to communicate with a portable printer and a server; the storage module is used to store computer program code, the computer program code including computer instructions, and the processing module reads the computer instructions from the storage module to cause the electronic device to execute the color configuration method as described in any of the preceding claims.
[0034] Fourthly, a computer-readable storage medium is provided, the computer-readable storage medium including a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the above-described color configuration method.
[0035] Fifthly, a computer program product is provided that, when the computer program product is run on a computer, enables the computer to execute the above-described color configuration method.
[0036] The beneficial effects of this application are:
[0037] The color configuration method, color configuration device, electronic device, computer-readable storage medium, and computer program product provided in this application, by responding to each group of identical color configuration requirements, send a color configuration data retrieval request to the server once. Only one call to the server interface is needed to obtain the color configuration data of the color configuration areas with the same color configuration requirements. When there are multiple color configuration areas with the same color configuration requirements, the number of times the APP calls the server interface is reduced, thereby reducing network request redundancy and server concurrency pressure, making it easier to ensure the normal operation speed of the APP, and thus ensuring the normal printing operation of the portable printer. Attached Figure Description
[0038] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments are briefly described below. The drawings described below are merely embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without creative effort. Figure 1 This is a schematic diagram of the radio frequency identification mechanism provided in the embodiments of this application;
[0039] Figure 1 This is a schematic diagram of a printing system provided in an embodiment of this application;
[0040] Figure 2 This is a schematic flowchart of a color configuration method provided in an embodiment of this application;
[0041] Figure 3 This is a schematic diagram of an APP editing page provided in an embodiment of this application;
[0042] Figure 4 This is a schematic diagram of a color configuration device provided in an embodiment of this application. Detailed Implementation
[0043] The technical solutions provided by the embodiments of this application will be described in detail below with reference to the accompanying drawings. The terms "comprising" and "having," and any variations thereof, mentioned in the description of this application, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.
[0044] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0045] In the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone.
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0047] Portable printers, also known as mini printers, are compact mobile printing devices that are small in size, lightweight, and easy to carry. They support printing operations by connecting to electronic devices such as mobile phones or tablets via Bluetooth, Wi-Fi, etc., meeting users' printing needs in mobile scenarios. They are widely used in mobile office, retail label, photo printing, on-site evidence collection and other scenarios.
[0048] To use a portable printer, users typically need to download a companion app. The app's editing interface allows users to interact with the printer, receive instructions, and control the printing process. This editing interface usually includes multiple color configuration areas. For each color configuration request from the user, the app needs to send a request to the printer to retrieve the corresponding color configuration data. However, sending one-to-one requests for each area significantly increases the number of times the app calls the server interface, leading to network request redundancy, increased server concurrency pressure, and potentially affecting the app's normal operating speed, thus impacting the portable printer's printing operation.
[0049] Optimizing the color configuration method of an app and reducing the number of times the app calls the server interface has become a technical problem that needs to be solved by those skilled in the art.
[0050] Based on this, this application provides a color configuration method that can reduce the number of times the APP calls the server interface, reduce network request redundancy, reduce the concurrent pressure on the server, ensure the normal operation speed of the APP, and thus ensure the normal printing operation of the portable printer.
[0051] For example, Figure 1 This diagram illustrates the architecture of a printing system in which a color configuration method according to an embodiment of this application is applied. Figure 1 As shown, the printing system 100 includes an electronic device 110 and a portable printer 120.
[0052] The electronic device 110 can be any electronic device with a display screen. For example, the electronic device 110 can include, but is not limited to, smartphones, tablets, writing tablets, smartwatches, smart bracelets, phone watches, smart cameras, PDAs, in-vehicle computers, personal computers (PCs), personal digital assistants (PDAs), portable multimedia players (PMPs), augmented reality (AR) / virtual reality (VR) devices, smart TVs, projection devices, or motion-sensing game consoles in human-computer interaction scenarios. Alternatively, the electronic device 110 can also be other types or structures of electronic devices with a display screen; this application embodiment does not impose any limitations on this. Specifically, the electronic device 110 is equipped with an APP (Application) for use with the portable printer 120, enabling interaction with the user through the APP, obtaining various user commands, and controlling the operation of the portable printer 120 according to the user's commands.
[0053] The portable printer 120 can receive various instructions sent by the electronic device 110 to perform various operations, such as, but not limited to, printing and querying. Based on the colors it can print, the portable printer 120 has black and white printing mode, grayscale printing mode, and color printing mode. Furthermore, the same printer can have any one of these three printing modes, or any two of them, or all three simultaneously. Designers in the art can design according to actual needs. Based on the technology used, the portable printer 120 can be classified as an inkjet printer, thermal printer, laser printer, dot matrix printer, thermal transfer printer, and dye-sublimation printer, etc. This application embodiment does not impose any limitations on these types.
[0054] Optionally, the electronic device 110 and the portable printer 120 can establish a connection via wired or wireless communication. For example, wireless communication methods may include, but are not limited to, Bluetooth, wireless local area networks, etc., and this application embodiment does not impose any limitations on this.
[0055] For example, Figure 2 A flowchart illustrating a color configuration method provided in an embodiment of this application is shown. This color configuration method is applied to an app used in conjunction with a portable printer 120, and the app is mounted on an electronic device 110. Figure 2 As shown, the method includes the following steps:
[0056] Obtain the color configuration requirements for multiple color configuration areas in the editing page;
[0057] The editing page is a page on the app used to receive user commands. Optionally, the editing page is displayed on the touch screen of the electronic device 110, and user commands are received through the touch screen. Figure 3 An example editing page for the app is provided. For example... Figure 3 As shown, this editing page includes multiple color configuration areas, including a text editing area, a time editing area, a doodle editing area, a shape editing area, a line editing area, and a table editing area. These text, time, doodle, shape, line, and table editing areas are the multiple color configuration areas on the editing page that require color configuration. Figure 3As shown, the editing page also includes a color display area, which is used to display the color information configured for multiple color configuration areas. Specifically, multiple color configuration areas share the color display area, and the color information of the color configuration area currently selected by the user is displayed in the color display area. Other color configuration areas can also be set on the editing page according to the user's actual needs. Simultaneously, multiple color display areas corresponding one-to-one with the multiple color configuration areas can also be set on the editing page. Those skilled in the art can design according to actual needs, and this application does not impose any restrictions on this.
[0058] In one specific implementation, the color configuration requirements of all color configuration areas are collected before page rendering by using the lifecycle hooks of the front-end framework. Lifecycle hooks are a series of pre-defined callback functions provided by front-end frameworks (such as Vue, React, Angular, and WeChat Mini Programs) throughout the entire process of a component's creation and destruction. They allow you to execute custom logic at different stages of the component, acting like "intercept points" or "timing triggers."
[0059] In response to each group's requirement for the same color configuration, a color configuration data retrieval request is sent to the server.
[0060] Specifically, the color configuration requirement refers to the color arrangement set by the user for multiple color configuration areas through the editing page. The color arrangement set by the user for the color configuration areas through the editing page can include one color or multiple colors, and the color configuration requirements for multiple color configuration areas can be all the same, all different, or partially the same. The color configuration requirement for each color configuration area is set by user instructions received by the editing page. In one specific embodiment, the user instructions received by the editing page are generated by the user clicking the screen on the touchscreen. This application does not limit the specific implementation of how the editing page obtains user instructions; those skilled in the art can set it according to actual needs.
[0061] In one exemplary implementation, the color configuration requirements for the text editing area, time editing area, doodle editing area, shape editing area, line editing area, and table editing area are all black, red, green, and blue. All the color configuration areas are the same, and only one color configuration data retrieval request needs to be sent to the server to call the server interface once to obtain the color configuration data of all color configuration areas.
[0062] In another exemplary implementation, the text editing area and table editing area are required to be black, while the time editing area, doodle editing area, shape editing area, and line editing area are required to be red, green, and blue, respectively. Two color configuration data retrieval requests need to be sent to the server, which will retrieve the server interface twice: once to retrieve the color configuration data for the text editing area and table editing area, and the other time to retrieve the color configuration data for the time editing area, doodle editing area, shape editing area, and line editing area.
[0063] In another exemplary implementation, the color configuration requirement for the text editing area is black, the color configuration requirement for the time editing area is red, the color configuration requirement for the doodle editing area is yellow, the color configuration requirement for the shape editing area is green, the color configuration requirement for the line editing area is gray, and the color configuration requirement for the table editing area is blue. Six color configuration data retrieval requests need to be sent, which will call the server interface six times. The six interface calls are respectively used to retrieve the color configuration data for the text editing area, time editing area, doodle editing area, shape editing area, line editing area, and table editing area.
[0064] Receive color configuration data sent by the server;
[0065] Specifically, after receiving the color configuration data retrieval request, the server sends the corresponding color configuration data to the electronic device 110.
[0066] Based on the color configuration data sent by the server, load the same color arrangement into the color configuration area with the same color configuration requirements.
[0067] Specifically, after receiving color configuration data from the server, for color configuration areas with the same color configuration requirements, the same color arrangement is displayed in the color display area; for color configuration areas with different color configuration requirements, different color arrangements are displayed in the color display area. The color arrangement includes the number, shape, arrangement order, and arrangement method of the color blocks. Arrangement methods include horizontal arrangement, vertical arrangement, array arrangement, color wheel arrangement, etc., of multiple color blocks. Those skilled in the art can design according to actual needs, and this application does not limit the color arrangement method.
[0068] The color configuration method provided in this application sends a color configuration data retrieval request to the server once in response to each group of identical color configuration requirements. Only one call to the server interface is needed to obtain the color configuration data of the color configuration areas with the same color configuration requirements. When there are multiple color configuration areas with the same color configuration requirements, the number of times the APP calls the server interface is reduced, thereby reducing network request redundancy and server concurrency pressure, which helps to ensure the normal operation speed of the APP, and thus ensures the normal printing operation of the portable printer.
[0069] In a preferred embodiment, loading the same color arrangement into a color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes the following steps:
[0070] The color configuration data sent by the storage server;
[0071] Read the stored color configuration data;
[0072] Based on the read color configuration data, color configuration areas with the same color configuration requirements are displayed with the same color arrangement.
[0073] Specifically, the color configuration data sent by the server is cached in the local storage of electronic device 110. Color configuration data corresponding to color configuration areas with the same color configuration requirements are stored in the same storage space, while color configuration data corresponding to color configuration areas with different color configuration requirements are stored in different storage spaces. The editing page reads the color configuration data cached in each storage space in the local storage, displays the same color arrangement for color configuration areas with the same color configuration requirements, and displays different color arrangements for color configuration areas with different color configuration requirements.
[0074] The color configuration method provided in this application embodiment caches the color configuration data in the local memory of the electronic device 110. This allows multiple color configuration areas with the same color configuration requirements to directly read the color configuration data cached in the same storage space and present their required color arrangement. This eliminates the need to repeatedly call the server interface to obtain color configuration data, reducing the number of times the APP calls the server interface, thereby reducing network request redundancy and server concurrency pressure, and improving the APP's response speed and stability.
[0075] In another specific implementation, after receiving the color configuration data sent by the server, the editing page does not cache the received color configuration data in local storage. Instead, it directly uses the received color configuration data to display the same color arrangement for color configuration areas with the same color configuration requirements. After the editing page completes the loading of the color arrangement for a group of color configuration areas with the same color configuration requirements, it sends a request to the server to retrieve the color configuration data for the next group of color configuration areas with the same color configuration requirements. Then, it receives the color configuration data for the next group of color configuration areas with the same color configuration requirements from the server and loads the same color arrangement for the next group of color configuration areas with the same color configuration requirements, and so on, until the color arrangement of all color configuration areas is loaded.
[0076] Furthermore, obtaining the color configuration requirements for multiple color configuration areas in the editing page includes: determining the color configuration requirements for multiple color configuration areas in the editing page based on one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page.
[0077] In one specific implementation, the color configuration data includes print mode color configuration data. Based on the color configuration data sent by the server, loading color configuration areas with the same color arrangement requirements includes the following steps:
[0078] Get the current printing mode of the portable printer used with the APP;
[0079] Based on the current printing mode and printing mode color configuration data, load the same color arrangement into the color configuration area with the same color configuration requirements.
[0080] Specifically, when the current printing mode of the portable printer used with the APP is determined to be black and white printing mode, the printing mode color configuration data is the same as the black and white printing mode color configuration data. Correspondingly, based on the current printing mode and the printing mode color configuration data, the same colors are loaded into the color configuration areas with the same color configuration requirements. When the current printing mode of the portable printer used with the APP is determined to be grayscale printing mode, the printing mode color configuration data is the same as the black and white printing mode color configuration data. Correspondingly, based on the current printing mode and the printing mode color configuration data, the same colors are loaded into the color configuration areas with the same color configuration requirements. When the current printing mode of the portable printer used with the APP is obtained as color printing mode, the printing mode color configuration data is the color printing mode color configuration data; correspondingly, based on the current printing mode and the printing mode color configuration data, the same color arrangement is loaded into the color configuration area with the same color configuration requirement.
[0081] For each printing mode, one or more color configuration data retrieval requests are sent to the server based on the configuration requirements of multiple color configuration areas.
[0082] Specifically, for the grayscale printing mode of the printer, the color configuration requirements include black, dark gray, light gray, and other colors; for the color printing mode of the printer, the color configuration requirements include black, red, blue, green, and other colors.
[0083] In one specific implementation, the current printing mode of the portable printer used with the APP is obtained by real-time detection of the printing mode of the portable printer 120 currently used with the APP. More specifically, the APP obtains the device information of the portable printer 120 via Bluetooth / WiFi connection protocol to obtain the printing mode of the portable printer 120. In another specific implementation, the APP obtains the printing mode of the portable printer 120 used with the APP by recognizing the identification value stored in the portable printer 120. More specifically, when the APP mounted on the electronic device 110 is launched, it detects the printing mode of the portable printer 120 used with it.
[0084] The embodiments provided in this application pre-store printing mode color configuration data related to the printing mode of the portable printer 120 when the APP is launched. This makes it easier for the APP to automatically read the corresponding printing mode color configuration data from the local memory when it detects portable printers with different printing modes, so as to quickly adjust the color configuration of the portable printer 120 for different printing modes.
[0085] This application embodiment automatically adapts color configurations for portable printers with different printing modes, such as black and white printing, grayscale printing, and color printers, improving color configuration efficiency. The color configuration method provided in this application embodiment automatically adjusts color requirements for different printing modes to retrieve color configuration data for different printing modes accordingly, thereby displaying the color arrangement under different printing modes and improving user operation efficiency and satisfaction.
[0086] In one specific implementation, the color configuration data includes application scenario color configuration data. Based on the color configuration data sent by the server, loading color configuration areas with the same color arrangement to have the same color configuration requirements includes:
[0087] Obtain the current application scenarios of portable printers used in conjunction with the APP;
[0088] Based on the current application scenario and the application scenario color configuration data, load the same color arrangement into the color configuration area with the same color configuration requirements.
[0089] In one specific implementation, the application scenarios include multiple application scenarios of the portable printer 120 currently used in conjunction with the APP. These multiple application scenarios include, but are not limited to, office document printing, retail label printing, and photo printing. The electronic device 110 pre-stores color configuration data related to these multiple application scenarios. The color configuration data for different application scenarios can be the same or different.
[0090] When the current application scenario of the portable printer 120 used with the APP is determined to be an office document printing scenario, the corresponding office document printing scenario color configuration data includes colors such as black, white, and gray. Accordingly, based on the current application scenario and the application scenario color configuration data, the same colors are loaded into the color configuration area with the same color configuration requirements. When displaying the color arrangement in the color display area, neutral tones are prioritized for ease of document printing. Neutral tones are intermediate color attributes with transitional properties in the color system, determined by a combination of factors such as hue, brightness, and saturation. They are defined as a set of colors with low saturation and weak color perception, including traditional colors such as beige and ivory, as well as derived natural colors such as camel and sand.
[0091] When the current application scenario of the portable printer 120 used in conjunction with the APP is determined to be a retail label printing scenario, the color configuration data for the retail label printing scenario includes colors such as red, blue, and green. Accordingly, based on the current application scenario and the application scenario color configuration data, the same colors are loaded into the color configuration area with the same color configuration requirements. When the color display area displays its color arrangement, colors with high contrast are prioritized to improve label recognition.
[0092] When the current application scenario of the portable printer 120 used with the APP is determined to be a photo printing scenario, the photo printing scenario color configuration data corresponding to the photo printing scenario includes a full range of colors, specifically warm colors, cool colors, and neutral colors. Accordingly, based on the current application scenario and the application scenario color configuration data, the same color arrangement is loaded into the color configuration area with the same color configuration requirements. When the color display area displays its color arrangement, the color wheel arrangement is selected first to facilitate the adjustment of photo colors.
[0093] Specifically, for each application scenario, one or more color configuration data retrieval requests are sent to the server based on the configuration requirements of multiple color configuration areas.
[0094] The embodiments provided in this application pre-store application scenario color configuration data related to the application scenarios of the portable printer 120 when the APP is launched. This makes it easier for the APP to automatically read the application scenario color configuration data of the corresponding application scenario from the local storage when it detects different application scenarios of the portable printer, so as to quickly adjust the color configuration of the portable printer 120 for different application scenarios.
[0095] The color configuration method provided in this application embodiment automatically adjusts color requirements for different application scenarios, thereby retrieving color configuration data for different application scenarios and displaying color arrangements under different application scenarios, improving user operation efficiency and satisfaction.
[0096] In another specific implementation, the color configuration data includes font type color configuration data. Based on the color configuration data sent by the server, loading color configuration areas with the same color arrangement to have the same color configuration requirements includes:
[0097] Get the current font type on the editing page;
[0098] Based on the current font type and font type color configuration data, load the same color arrangement into the color configuration area with the same color configuration requirements.
[0099] Specifically, the font types on the editing page include various types, including but not limited to serif fonts, sans-serif fonts, and handwritten fonts. The color configuration data for different font types can be the same or different.
[0100] When the current font type on the editing page is determined to be a serif font, the color configuration data corresponding to serif fonts mainly includes colors such as black, dark gray, and dark blue, which helps to enhance the formality of the font. Serif fonts have additional decorations at the beginning and end of the strokes, and the thickness of the strokes varies. Accordingly, the font type color configuration data is the serif font color configuration data. Based on the current font type and the font type color configuration data, loading the same colors to color configuration areas with the same color configuration requirements is the same as loading the same colors to color configuration areas with the same color configuration requirements based on the serif font type and the serif font type color configuration data.
[0101] When the current font type on the editing page is determined to be a sans-serif font, the color configuration data corresponding to sans-serif fonts mainly includes colors such as black, red, and blue, which helps to enhance the font's stylishness. Sans-serif fonts have no additional decoration at the beginning and end of the strokes, and the stroke thickness is roughly the same. Accordingly, the font type color configuration data is sans-serif font color configuration data. Based on the current font type and font type color configuration data, loading the same colors to color configuration areas with the same color configuration requirements is based on loading the same colors to color configuration areas with the same color configuration requirements for both sans-serif and serif font types.
[0102] When the font type of the editing page is determined to be handwritten, the color configuration data corresponding to handwritten fonts mainly includes colors such as black, brown, and blue, which helps to enhance the artistic feel of the font. Accordingly, the font type color configuration data is the handwritten font color configuration data; based on the current font type and font type color configuration data, loading the same colors into color configuration areas with the same color configuration requirements is the same as loading the same colors into color configuration areas with the same color configuration requirements based on the handwritten font type and handwritten font type color configuration data.
[0103] Specifically, for each font type, one or more color configuration request retrieval requests are sent to the server based on the configuration requirements of multiple color configuration areas.
[0104] As one specific implementation method, the current font type of the editing page is obtained by detecting the font type of the editing page in real time.
[0105] Specifically, the embodiments provided in this application pre-store color configuration data related to the font type of the editing page when the APP starts, so that when the APP detects different font types of the editing page, it can automatically read the corresponding color configuration requirements from the local storage to quickly adjust the color configuration of the editing page for different font types.
[0106] The color configuration method provided in this application automatically adjusts color requirements for different font types, accordingly retrieving color configuration data for different font types, and then displaying the color arrangement under different font types, thereby improving user operation efficiency and satisfaction. The color configuration device provided in this application automatically configures matching color arrangements for different fonts, improving text display effects and user editing experience.
[0107] The above primarily describes the solutions provided by the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Based on the units and algorithm steps of the various examples described in the embodiments disclosed in this application, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by a computer driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solutions of the embodiments of this application.
[0108] Based on this, embodiments of this application also provide a color configuration device. For example, Figure 4 This diagram illustrates a structural block diagram of a process configuration device provided in an embodiment of this application. Figure 4 As shown, the process configuration device includes:
[0109] The acquisition unit is used to acquire the color configuration requirements of multiple color configuration areas in the editing page;
[0110] The editing page is a page on the app used to receive user commands. Optionally, the editing page is displayed on the touch screen of the electronic device 110, and user commands are received through the touch screen. Figure 3 An example editing page for the app is provided. For example... Figure 3 As shown, this editing page includes multiple color configuration areas, including a text editing area, a time editing area, a doodle editing area, a shape editing area, a line editing area, and a table editing area. These text, time, doodle, shape, line, and table editing areas are the multiple color configuration areas on the editing page that require color configuration. Figure 3 As shown, the editing page also includes a color display area, which is used to display the color information configured for multiple color configuration areas. Specifically, multiple color configuration areas share the color display area, and the color information of the color configuration area currently selected by the user is displayed in the color display area. Other color configuration areas can also be set on the editing page according to the user's actual needs. Simultaneously, multiple color display areas corresponding one-to-one with the multiple color configuration areas can also be set on the editing page. Those skilled in the art can design according to actual needs, and this application does not impose any restrictions on this.
[0111] In one specific implementation, the color configuration requirements of all color configuration areas are collected before page rendering by using the lifecycle hooks of the front-end framework. Lifecycle hooks are a series of pre-defined callback functions provided by front-end frameworks (such as Vue, React, Angular, and WeChat Mini Programs) throughout the entire process of a component's creation and destruction. They allow you to execute custom logic at different stages of the component, acting like "intercept points" or "timing triggers."
[0112] The sending unit is used to send a color configuration data retrieval request to the server in response to each group of identical color configuration requirements;
[0113] Specifically, color configuration requirements refer to the color arrangement set by the user for multiple color configuration areas through the editing page. The color arrangement set by the user for the color configuration areas through the editing page can include one color or multiple colors, and the color configuration requirements for multiple color configuration areas can be all the same, all different, or partially the same. The color configuration requirements for each color configuration area are set by user instructions received by the editing page, and this application does not impose any restrictions on this.
[0114] In one exemplary implementation, the color configuration requirements for the text editing area, time editing area, doodle editing area, shape editing area, line editing area, and table editing area are all black, red, green, and blue. All the color configuration areas are the same, and only one color configuration data retrieval request needs to be sent to the server to call the server interface once to obtain the color configuration data of all color configuration areas.
[0115] In another exemplary implementation, the text editing area and table editing area are required to be black, while the time editing area, doodle editing area, shape editing area, and line editing area are required to be red, green, and blue, respectively. Two color configuration data retrieval requests need to be sent to the server, which will retrieve the server interface twice: once to retrieve the color configuration data for the text editing area and table editing area, and the other time to retrieve the color configuration data for the time editing area, doodle editing area, shape editing area, and line editing area.
[0116] In another exemplary implementation, the color configuration requirement for the text editing area is black, the color configuration requirement for the time editing area is red, the color configuration requirement for the doodle editing area is yellow, the color configuration requirement for the shape editing area is green, the color configuration requirement for the line editing area is gray, and the color configuration requirement for the table editing area is blue. Six color configuration data retrieval requests need to be sent, which will call the server interface six times. The six interface calls are respectively used to retrieve the color configuration data for the text editing area, time editing area, doodle editing area, shape editing area, line editing area, and table editing area.
[0117] The receiving unit receives color configuration data sent by the server;
[0118] Specifically, after receiving the color configuration data retrieval request, the server sends the corresponding color configuration data to the electronic device 110.
[0119] The loading unit loads color configuration data sent by the server into color configuration areas that have the same color configuration requirements.
[0120] Specifically, after receiving color configuration data from the server, for color configuration areas with the same color configuration requirements, the same color arrangement is displayed in the color display area; for color configuration areas with different color configuration requirements, different color arrangements are displayed in the color display area. The color arrangement includes the number, shape, arrangement order, and arrangement method of the color blocks. Arrangement methods include horizontal arrangement, vertical arrangement, array arrangement, color wheel arrangement, etc., of multiple color blocks. Those skilled in the art can design according to actual needs, and this application does not limit the color arrangement method.
[0121] The color configuration device provided in this application sends a color configuration data retrieval request to the server once in response to each group of identical color configuration requirements. It only needs to call the server interface once to obtain the color configuration data of the color configuration areas with the same color configuration requirements. When there are multiple color configuration areas with the same color configuration requirements, the number of times the APP calls the server interface is reduced, thereby reducing network request redundancy and server concurrency pressure, which helps to ensure the normal operation speed of the APP, and thus ensures the normal printing operation of the portable printer.
[0122] In a preferred embodiment, the loading unit includes:
[0123] Storage unit, used to store color configuration data sent by the server;
[0124] The read unit is used to read the color configuration data stored in the storage unit.
[0125] The display unit is used to display the same color arrangement for color configuration areas with the same color configuration requirements based on the read color configuration data.
[0126] Specifically, the storage unit is the local memory of the electronic device 110. Color configuration data sent by the server is cached in the local memory of the electronic device 110. Color configuration data corresponding to color configuration areas with the same color configuration requirements are stored in the same storage space, while color configuration data corresponding to color configuration areas with different color configuration requirements are stored in different storage spaces. The editing page reads the color configuration data cached in each storage space of the local memory, displays the same color arrangement for color configuration areas with the same color configuration requirements, and displays different color arrangements for color configuration areas with different color configuration requirements.
[0127] The color configuration device provided in this application embodiment caches the color configuration data in the local memory of the electronic device 110. This allows multiple color configuration areas with the same color configuration requirements to directly read the color configuration data cached in the same storage space and present their required color arrangement. This eliminates the need to repeatedly call the server interface to obtain color configuration data, reducing the number of times the APP calls the server interface, thereby reducing network request redundancy and server concurrency pressure, and improving the APP's response speed and stability.
[0128] In another specific implementation, after receiving the color configuration data sent by the server, the editing page does not cache the received color configuration data in local storage. Instead, it directly uses the received color configuration data to display the same color arrangement for color configuration areas with the same color configuration requirements. After the editing page completes the loading of the color arrangement for a group of color configuration areas with the same color configuration requirements, it sends a request to the server to retrieve the color configuration data for the next group of color configuration areas with the same color configuration requirements. Then, it receives the color configuration data for the next group of color configuration areas with the same color configuration requirements from the server and loads the same color arrangement for the next group of color configuration areas with the same color configuration requirements, and so on, until the color arrangement of all color configuration areas is loaded.
[0129] Furthermore, the acquisition unit includes a determination unit; the determination unit is used to determine the color configuration requirements of multiple color configuration areas in the editing page based on one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page.
[0130] In one specific implementation, the color configuration data includes print mode color configuration data. The loading unit includes:
[0131] The first sub-acquisition unit is used to acquire the current printing mode of the portable printer used in conjunction with the APP;
[0132] The first sub-loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the current printing mode and the printing mode color configuration data.
[0133] Specifically, when the first sub-acquisition unit obtains that the current printing mode of the portable printer used with the APP is black and white printing mode, the printing mode color configuration data is the black and white printing mode color configuration data; correspondingly, the first sub-loading unit loads the same colors arranged in the same color configuration area based on the black and white printing mode and the black and white printing mode configuration data. When the first sub-acquisition unit obtains that the current printing mode of the portable printer used with the APP is grayscale printing mode, the printing mode color configuration data is the black and white printing mode color configuration data; correspondingly, the first sub-loading unit loads the same colors arranged in the same color configuration area based on the black and white grayscale printing mode and the black and white grayscale printing mode configuration data. When the first sub-acquisition unit obtains that the current printing mode of the portable printer used with the APP is color printing mode, the printing mode color configuration data is the color printing mode color configuration data; correspondingly, the first sub-loading unit loads the same colors arranged in the same color configuration area based on the color printing mode and the color printing mode configuration data.
[0134] For each printing mode, the sending unit sends one or more color configuration data retrieval requests to the server based on the configuration requirements of multiple color configuration areas.
[0135] Specifically, for the grayscale printing mode of the printer, the color configuration requirements include black, dark gray, light gray, and other colors; for the color printing mode of the printer, the color configuration requirements include black, red, blue, green, and other colors.
[0136] In one specific implementation, the first sub-acquisition unit acquires the current printing mode of the portable printer 120 used in conjunction with the APP by real-time detection of the printing mode of the portable printer 120 currently used with the APP. More specifically, the first sub-acquisition unit acquires the device information of the portable printer 120 via Bluetooth / WiFi connection protocol to obtain the printing mode of the portable printer 120. In another specific implementation, the first sub-acquisition unit acquires the printing mode of the portable printer 120 used with the APP by recognizing the identification value stored in the portable printer 120. More specifically, when the APP installed on the electronic device 110 is launched, it detects the printing mode of the portable printer 120 used with it.
[0137] The embodiments provided in this application pre-store printing mode color configuration data related to the printing mode of the portable printer 120 when the APP is launched. This makes it easier for the APP to automatically read the corresponding printing mode color configuration data from the local memory when it detects portable printers with different printing modes, so as to quickly adjust the color configuration of the portable printer 120 for different printing modes.
[0138] This application embodiment automatically adapts color configurations for portable printers with different printing modes, such as black and white printing, grayscale printing, and color printers, improving color configuration efficiency. The color configuration method provided in this application embodiment automatically adjusts color requirements for different printing modes to retrieve color configuration data for different printing modes accordingly, thereby displaying the color arrangement under different printing modes and improving user operation efficiency and satisfaction.
[0139] In another specific implementation, the color configuration data includes application scenario color configuration data, and the loading unit includes:
[0140] The second sub-acquisition unit is used to acquire the current application scenario of the portable printer used in conjunction with the APP;
[0141] The second sub-loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the current application scenario and the application scenario color configuration data.
[0142] In one specific implementation, the application scenarios include multiple application scenarios of the portable printer 120 currently used in conjunction with the APP. These multiple application scenarios include, but are not limited to, office document printing, retail label printing, and photo printing. The electronic device 110 pre-stores color configuration data related to these multiple application scenarios. The color configuration data for different application scenarios can be the same or different.
[0143] When the second sub-acquisition unit determines that the current application scenario of the portable printer 120 used in conjunction with the APP is an office document printing scenario, the color configuration data corresponding to the office document printing scenario includes colors such as black, white, and gray. Accordingly, the second sub-loading unit loads the same color arrangement into the color configuration area with the same color configuration requirements based on the office document printing scenario and the office document printing scenario color configuration data. When the color display area shows its color arrangement, neutral tones are prioritized for easy document printing. Neutral tones are intermediate color attributes with transitional properties in the color system, determined by a combination of hue, brightness, and saturation. They are defined as a set of colors with low saturation and weak color perception, including traditional colors such as beige and ivory, as well as derived natural colors such as camel and sand.
[0144] When the second acquisition unit obtains that the current application scenario of the portable printer 120 used in conjunction with the APP is a retail label printing scenario, the retail label printing scenario color configuration data corresponding to the retail label printing scenario includes colors such as red, blue, and green. Accordingly, the second sub-loading unit loads the same color arrangement into the color configuration area with the same color configuration requirements based on the retail label printing scenario and the retail label printing scenario color configuration data. When the color display area displays its color arrangement, it prioritizes the arrangement of colors with high contrast to improve label recognition.
[0145] When the second acquisition unit obtains that the current application scenario of the portable printer 120 used in conjunction with the APP is a photo printing scenario, the photo printing scenario color configuration data corresponding to the photo printing scenario includes a full range of colors, specifically including warm colors, cool colors and neutral colors. Accordingly, the second sub-loading unit loads the same color arrangement into the color configuration area with the same color configuration requirements based on the photo printing scenario and the photo printing scenario color configuration data. When the color display area displays its color arrangement, the color wheel arrangement is selected first to facilitate the adjustment of photo colors.
[0146] Specifically, for each application scenario, the sending unit sends one or more color configuration data retrieval requests to the server based on the configuration requirements of multiple color configuration areas.
[0147] The embodiments provided in this application pre-store application scenario color configuration data related to the application scenarios of the portable printer 120 when the APP is launched. This makes it easier for the APP to automatically read the application scenario color configuration data of the corresponding application scenario from the local storage when it detects different application scenarios of the portable printer, so as to quickly adjust the color configuration of the portable printer 120 for different application scenarios.
[0148] The color configuration method provided in this application embodiment automatically adjusts color requirements for different application scenarios, thereby retrieving color configuration data for different application scenarios and displaying color arrangements under different application scenarios, improving user operation efficiency and satisfaction.
[0149] In another specific implementation, the color configuration data includes font type color configuration data. Based on the color configuration data sent by the server, loading color configuration areas with the same color arrangement to have the same color configuration requirements includes:
[0150] The third sub-acquisition unit is used to obtain the current font type of the editing page;
[0151] The third sub-loading unit loads the same color arrangement into the color configuration area with the same color configuration requirements, based on the current font type and font type color configuration data.
[0152] Specifically, the font types on the editing page include various types, including but not limited to serif fonts, sans-serif fonts, and handwritten fonts. The color configuration data for different font types can be the same or different.
[0153] When the third sub-acquisition unit detects that the current font type on the editing page is a serif font, the color configuration data corresponding to serif fonts mainly includes colors such as black, dark gray, and dark blue, which helps to enhance the formality of the font. Serif fonts have additional decorations at the beginning and end of the strokes, and the thickness of the strokes varies. Accordingly, the font type color configuration data is serif font color configuration data; the third sub-loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the serif font type and the serif font type color configuration data.
[0154] When the third sub-acquisition unit detects that the current font type on the editing page is a sans-serif font, the color configuration data corresponding to sans-serif fonts mainly includes colors such as black, red, and blue, which helps to enhance the font's stylishness. Sans-serif fonts have no additional decoration at the beginning and end of the strokes, and the stroke thickness is roughly the same. Accordingly, the font type color configuration data is sans-serif font color configuration data; the third sub-loading unit loads the same color arrangement into the color configuration area with the same color configuration requirements based on the sans-serif font type and serif font type color configuration data.
[0155] When the third sub-acquisition unit obtains that the font type of the editing page is handwritten, the color configuration data corresponding to the handwritten font mainly includes colors such as black, brown, and blue, which helps to enhance the artistic feel of the font. Accordingly, the font type color configuration data is the handwritten font color configuration data; the third sub-loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the handwritten font type and the handwritten font type color configuration data.
[0156] Specifically, for each font type, the sending unit sends one or more color configuration requirement retrieval requests to the server based on the configuration requirements of multiple color configuration areas.
[0157] In one specific implementation, the third acquisition unit acquires the current font type of the editing page by detecting the font type of the editing page in real time.
[0158] Specifically, the embodiments provided in this application pre-store color configuration data related to the font type of the editing page when the APP starts, so that when the APP detects different font types of the editing page, it can automatically read the corresponding color configuration requirements from the local storage to quickly adjust the color configuration of the editing page for different font types.
[0159] The color configuration method provided in this application automatically adjusts color requirements for different font types, accordingly retrieving color configuration data for different font types, and then displaying the color arrangement under different font types, thereby improving user operation efficiency and satisfaction. The color configuration device provided in this application automatically configures matching color arrangements for different fonts, improving text display effects and user editing experience.
[0160] The color configuration device provided in this application embodiment is a functional module division based on the above method example. Each function can be divided into separate functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or software functional modules. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; in actual implementation, other division methods may be used.
[0161] For example, embodiments of this application also provide an electronic device, including a processing module, a storage module, and a communication module; the storage module and the communication module are coupled to the processing module, the communication module is used to communicate with a portable printer and a server; the storage module is used to store computer program code, the computer program code including computer instructions, and the processing module reads the computer instructions from the storage module to cause the electronic device to execute the method executed in the above-described color configuration method.
[0162] For example, embodiments of this application also provide a computer-readable storage medium; the computer-readable storage medium includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the above-described color configuration method.
[0163] For example, embodiments of this application also provide a computer program product that, when run on a computer, enables the computer to execute the above-described color configuration method.
[0164] The technical effects of the electronic device shown in the embodiments of this application can be referred to the technical effects described in the above method embodiments and device embodiments, and will not be repeated here. The processing module can be implemented by a processor or processor-related circuit components. The communication module can be implemented by a transceiver or transceiver-related circuit components.
[0165] The processing module provided in this application embodiment may include one or more processors. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory. Exemplarily, the processor can be a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips. It should be understood that the steps in the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0166] Optionally, the storage module provided in this application embodiment may include one or more memories. The memory may be integrated with the processor or may be separately configured; this application does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and processor.
[0167] In addition, the electronic devices, computer storage media, and computer program products provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0168] The above description is merely a preferred embodiment of this application. The scope of protection of this application is not limited to the above embodiments. All technical solutions falling within the scope of this application's concept are within the scope of protection of this application. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of this application should also be considered within the scope of protection of this application.
Claims
1. A color configuration method, applied to an app used in conjunction with a portable printer, characterized in that, Includes the following steps: Obtain the color configuration requirements for multiple color configuration areas in the editing page; In response to each group's requirement for the same color configuration, a color configuration data retrieval request is sent to the server. Receive color configuration data sent by the server; Based on the color configuration data sent by the server, the same color arrangement is loaded into the color configuration area that has the same color configuration requirement.
2. The color configuration method according to claim 1, characterized in that: The process of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes the following steps: The color configuration data sent by the storage server; Read the stored color configuration data; Based on the read color configuration data, color configuration areas with the same color configuration requirements are displayed with the same color arrangement.
3. The color configuration method according to any one of claims 1 or 2, characterized in that: The process of obtaining the color configuration requirements of multiple color configuration areas in the editing page includes the following steps: Obtain one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page; The color configuration requirements of the multiple color configuration areas in the editing page are determined based on one or more of the following: the printing mode of the portable printer used with the App, the application scenario of the portable printer used with the App, and the font type of the editing page.
4. The color configuration method according to claim 3, characterized in that, The color configuration data includes print mode color configuration data. The step of loading the same color arrangement into the color configuration area with the same color configuration requirements based on the color configuration data sent by the server includes: Obtain the current printing mode of the portable printer used in conjunction with the APP; Based on the current printing mode and the printing mode color configuration data, load the same color arrangement into the color configuration area that has the same color configuration requirements.
5. The color configuration method according to claim 3, characterized in that, The color configuration data includes application scenario color configuration data. The step of loading the same color arrangement into the color configuration area with the same color configuration requirement based on the color configuration data sent by the server includes: Obtain the current application scenario of the portable printer used in conjunction with the APP; Based on the current application scenario and the color configuration data of the application scenario, load the same color arrangement into the color configuration area with the same color configuration requirements.
6. The color configuration method according to claim 3, characterized in that, The color configuration data includes font type color configuration data. The step of loading the same color arrangement into the color configuration area with the same color configuration requirements based on the color configuration data sent by the server includes: Get the current font type of the editing page; Based on the current font type and the font type color configuration data, load the same color arrangement into the color configuration area that has the same color configuration requirements.
7. A color configuration device, applied to an app used in conjunction with a portable printer, characterized in that, include: The acquisition unit is used to acquire the color configuration requirements of multiple color configuration areas in the editing page; The sending unit is used to send a color configuration data retrieval request to the server in response to each group of identical color configuration requirements; The receiving unit is used to receive color configuration data sent by the server; The loading unit is used to load the same color arrangement into the color configuration area with the same color configuration requirements based on the color configuration data sent by the server.
8. An electronic device, characterized in that, The device includes a processing module, a storage module, and a communication module; the storage module and the communication module are coupled to the processing module, and the communication module is used to communicate with a portable printer and a server; the storage module is used to store computer program code, the computer program code including computer instructions, and the processing module reads the computer instructions from the storage module to cause the electronic device to execute the color configuration method as described in any one of claims 1-8.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program or instructions that, when executed on an electronic device, cause the electronic device to perform the color configuration method as described in any one of claims 1-8.
10. A computer program product, characterized in that: When the computer program product is run on a computer, the computer is able to perform the color configuration method as described in any one of claims 1-8.