CN107608709B - Icon color change method and device and electronic equipment - Google Patents

Icon color change method and device and electronic equipment Download PDF

Info

Publication number
CN107608709B
CN107608709B CN201710729292.6A CN201710729292A CN107608709B CN 107608709 B CN107608709 B CN 107608709B CN 201710729292 A CN201710729292 A CN 201710729292A CN 107608709 B CN107608709 B CN 107608709B
Authority
CN
China
Prior art keywords
color
custom
icon
icons
application program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710729292.6A
Other languages
Chinese (zh)
Other versions
CN107608709A (en
Inventor
蒋文钦
辜志豪
朱兴民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201710729292.6A priority Critical patent/CN107608709B/en
Publication of CN107608709A publication Critical patent/CN107608709A/en
Application granted granted Critical
Publication of CN107608709B publication Critical patent/CN107608709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the specification provides an icon color change method and device and electronic equipment, wherein a target icon is determined; acquiring a custom color configured in an application program corresponding to the target icon; under the condition that the custom color configured in the application program corresponding to the target icon is changed, determining the changed custom color; and then, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.

Description

Icon color change method and device and electronic equipment
Technical Field
The embodiment of the specification relates to the technical field of internet, in particular to an icon color change method and device and electronic equipment.
Background
Generally, the color of the icon is set by a developer, and the color of the icon cannot be changed for a user.
Disclosure of Invention
The embodiment of the specification provides an icon color change method and device and electronic equipment.
According to an embodiment of the present specification, there is provided a method for changing a color of an icon, the method including:
determining a target icon;
acquiring a custom color configured in an application program corresponding to the target icon;
under the condition that the custom color configured in the application program corresponding to the target icon is changed, determining the changed custom color;
and displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
According to an embodiment of the present specification, there is provided an icon color changing device, including:
a first determination unit that determines a target icon;
the acquisition unit is used for acquiring the custom color configured in the application program corresponding to the target icon;
the second determining unit is used for determining the changed custom color under the condition that the custom color configured in the application program corresponding to the target icon is changed;
and the display unit displays the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
According to this specification embodiment, provide an electronic equipment, include:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a target icon;
acquiring a custom color configured in an application program corresponding to the target icon;
under the condition that the custom color configured in the application program corresponding to the target icon is changed, determining the changed custom color;
and displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
In the embodiment of the description, the icon color is associated with the custom color of the application program corresponding to the icon, so that the icon color and the custom color can be kept consistent, and a user can change the icon color by modifying the custom color. So, through setting up different colours to different icons to can show and distinguish different icons, and then be convenient for the user through the quick location icon of colour, improved user experience.
Drawings
FIG. 1a is a schematic diagram of a presentation icon in a page provided by an embodiment of the present specification;
FIG. 1b is a schematic illustration of the color of the icon shown in FIG. 1 a;
FIG. 2 is a flow chart of a method for changing color of an icon provided in an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an option for configuring color of an icon in a Payment treasure according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an icon color configuration option in an interface for providing a "Life number" sub-application according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of a drop-down menu of a custom color box provided in an embodiment of the present specification;
FIG. 6 is a diagrammatic illustration of an option provided by an embodiment of the present description that includes multiple actual colors;
FIG. 7 is a schematic view of the icon of FIG. 1a showing the icon in the page after changing the color of the icon;
fig. 8 is a block diagram of an icon color changing device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As mentioned above, in general, the color of the icon is fixed and cannot be changed by the user. Generally, different icons on the same page are in the same style and even in the same color; once the number of icons in the page is large, the icons are not easily distinguished due to the fact that the colors of the icons are close to each other, and the icons needing to be used cannot be quickly located. As shown in fig. 1a, a schematic diagram of an icon displayed in a page provided for this specification is provided, the icon styles in the page are substantially consistent, and the colors of the icon are only a few common colors, such as blue, yellow, and green, as shown in fig. 1b, since the colors of the icons are all relatively similar, a user cannot easily distinguish the icons, and cannot quickly locate the icon to be used.
An embodiment of a method for implementing icon color change in the present specification is described below with reference to an example shown in fig. 2, where the method may be applied to a client, and the method may include the following steps:
step 110: and determining a target icon.
In this specification, the icon may refer to an icon of an application installed in an operating system. The operating system may comprise any other operating system such as an Android system (Android), an apple system (IOS), or a windows system. For this situation, the client in this embodiment may refer to an operating system where the icon is located, for example, an icon of an application installed in an android system, and then the client may refer to the android system.
The icons may also refer to icons of different functions or sub-applications within the host application. As shown in fig. 1a, the icon is an icon of a neutron application in the pay for baby, and includes "life number", "bonus money", "dribble travel", "pig travel", and the like. For this situation, the client in this embodiment may refer to a host application, for example, an icon of a sub-application in the pay bank shown in fig. 1a, and then the client may be the pay bank.
Step 120: and acquiring the custom color configured in the application program corresponding to the target icon.
In one implementation: each application program can add the function of configuring the custom color. The custom color may be configurable by a user. In the case where the user has not configured, the default is the original icon color for the application.
In another implementation: the custom color may include a theme color of the application.
The theme color may be understood as the color of the background of the page in the application. For example, the application's "skin", and typically, the application may provide a "skin change" function, and the user may modify the application's "skin" color, thereby modifying the theme color.
Step 130: and under the condition that the custom color configured in the application program corresponding to the target icon is changed, determining the changed custom color.
In this embodiment, the user may configure the custom color in the application program. Taking fig. 1a as an example:
in a first approach, the client may provide an option for changing the color of the icon. As shown in fig. 3, the pay pal may provide an icon color configuration option; in this interface, the user can set the icon color for each sub-application. For example, the icon color of "life number" is set to red; the icon for "bonus" is color set to purple.
In a second manner, the application program corresponding to each icon may provide an icon color configuration option. For example, the user may enter the "number of life" sub-application by clicking on the "number of life" icon in fig. 1a, as shown in fig. 4, the icon color configuration option is provided in the "number of life" sub-application interface, and the user may set the color of the "number of life" icon.
Generally, when the client monitors that the custom color configured in the application program corresponding to the target icon is changed, the changed custom color can be determined.
The monitoring can be realized by presetting an event monitor (also called an event monitor) for monitoring the custom color change. Such as a Java event listener, Js event listener, etc.
It is worth mentioning that the manner of setting the custom color may include at least one of the following manners:
mode 1: and setting the custom color according to the characters representing the actual color.
As shown in fig. 5, a user can view a plurality of characters representing actual colors provided in a pull-down menu of a custom color option box provided by a client, and select a custom color to be changed;
alternatively, the user may enter text representing the actual color.
Mode 2: and setting custom colors according to the three primary colors of the RBG.
Generally, each of the colors can be represented by an RGB color scheme, i.e., three components of R (red), G (green), and B (blue) can be used. In a computer, the RGB size may refer to luminance, and may be usually expressed by an integer, R, G, B may have 256 levels of luminance, and numbers 0, 1, 2, 3 … …, and 255 are generally adopted, that is, R, G, B may have a range of values of 0 to 255. Thus, 256 × 16777216 different colors can be displayed using the RGB color pattern.
Mode 3: and setting the custom color according to the actual color.
The method is different from the method 1, a tab diagram containing a plurality of actual colors is provided, and a user can set a custom color by clicking any one color in the tab diagram. Referring to fig. 6, a schematic diagram of selecting a desktop background color in a computer is shown, and fig. 6 provides an option diagram 61 including a plurality of actual colors.
Step 140: and displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
For example, many of the icons in FIG. 1b are divided into only 3 colors:
green icon: "Life number", "sesame credit";
yellow icon: reward gold, drip trip, pig travel, recharge center, invoice manager, sport, credit card repayment and my express;
blue icon: the method comprises the following steps of 'train ticket air ticket', 'Formica borrowing', 'life payment', 'city service', 'in place', 'my customer service'.
It can be seen that the number of yellow icons is large, and in the "recently used" area, the yellow icons are concentrated and cannot be easily distinguished quickly. Suppose that the user sets the custom color of "bonus" to red; setting the custom color of the flying pig travel as purple; setting the custom color of invoice management to be black; as shown in fig. 7, the color of each icon in the "most recently used" area is different, so that the user can quickly locate the icon according to the color of the application icon that needs to be used.
Through the embodiment of the specification, the icon color is associated with the custom color of the application program corresponding to the icon, so that the icon color is consistent with the custom color, and a user can change the icon color by modifying the custom color. So, through setting up different colours to different icons to can show and distinguish different icons, and then be convenient for the user through the quick location icon of colour, improved user experience.
In practical applications, if the color of the icon is the same as or similar to the color of the background on which the icon is located, the icon is easily not displayed clearly or even cannot be seen.
In order to avoid such a problem, on the basis of the embodiment shown in fig. 2, before the step 140, the method may further include:
a1: acquiring the color of a background area where the target icon is located;
a2: judging whether the changed custom color is similar to the color of the background area;
the step 140 specifically includes:
and under the condition that the changed custom color is not similar to the color of the background area, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
In the case that the modified custom color is similar to the color of the background area, the color of the target image may not be modified.
In this specification, the a2 may adopt three primary colors RBG between the modified custom color and the color of the background region;
for example: comparing in sequence whether the difference of the R value, the difference of the G value and the difference of the B value are all smaller than a threshold value; if so, determining that the changed custom color is similar to the color of the background area; otherwise, they are not similar;
for another example, calculating the sum of the R value, the G value and the B value of the modified custom color;
calculating the sum of the R value, the G value and the B value of the color of the background area;
judging whether the difference value of the sum of the two RGB values is smaller than a threshold value;
if so, determining that the changed custom color is similar to the color of the background area; otherwise, they are not similar.
In another embodiment, the a2 may specifically include:
calculating a first gray value of the modified custom color;
calculating a second gray value of the color of the background area;
judging whether the difference between the first gray value and the second gray value is smaller than a threshold value;
determining that the modified custom color is similar to the color of the background area if the difference between the first gray value and the second gray value is less than a threshold;
determining that the modified custom color is not similar to the color of the background area if the difference between the first grayscale value and the second grayscale value is not less than a threshold.
In general, in the RGB color mode, when R ═ G ═ B, a color can be expressed as one gray-scale color. In general, the value of R ═ G ═ B may be referred to as a gradation value, and the gradation value may range from 0 to 255. Therefore, for the original image, the RGB values in the original image need to be converted into gray values first, and the conversion of the gray values can be realized as follows:
in a first implementation, a component method may be adopted:
and randomly selecting one component value from the RGB three components in the color image as a gray value. That is, the user can only select the value of the R component as the gray value according to the requirement of the actual application; or only selecting the value of the G component as the gray value; it is also possible to select only the value of the B component as the gray value.
In a second implementation, a maximum method may be employed:
the maximum value of the three RGB components in the color image is taken as the gray value. The formula for calculating the gray value may be: max (R, G, B). For example, when one of the RGB three components is (R is 122, G is 90, and B is 200), the maximum value B may be 200, that is, the grayscale value may be 200.
In a third implementation, an average method may be used:
and summing the RGB three components in the color image, calculating an average value, and taking the average value as a gray value. Thus, the formula for calculating the gray value can be: (R + G + B)/3.
In a fourth implementation, a weighted average may be employed:
in this implementation, a weight may be set for each component in advance, and during calculation, weighted average is performed on the RGB three components, and the weighted average is used as the gray value. Generally, the set weight may be set according to practical application requirements, for example, if human eyes are most sensitive to green and least sensitive to blue, a high weight such as 0.59 may be set for G, a low weight such as 0.11 may be set for B, and an intermediate weight such as 0.3 may be set for R; thus, the formula for calculating the gray value can be: (0.3R +0.59G + 0.11B)/3.
Calculating a first gray value of the modified theme color and a second gray value of the background area color; judging whether the difference between the first gray value and the second gray value is smaller than a threshold value; if yes, the changed custom color is similar to the color of the background area; otherwise, they are not similar.
It is worth mentioning that the threshold shown in the above embodiments may be an empirical value set manually.
With the continuous development of computer technology, especially the progress of artificial intelligence, the threshold value can also be calculated through machine learning. For example, based on the historically set threshold, an optimal threshold may be calculated by a machine learning algorithm.
Still further, the threshold may be calculated based on big data techniques. For example, if the threshold value set for most of the determinations is 10 in the mass data, it may be determined that the threshold value in the current determination is set to 10.
By the embodiment, the icon color after change can be prevented from being similar to the background color.
On the basis of the embodiment shown in fig. 2, the method may further include:
the classification is made according to the color of the icon.
As also shown in fig. 1b, if the icons are classified according to their colors, they can be classified into 3 categories:
green icon: "Life number", "sesame credit";
yellow icon: reward gold, drip trip, pig travel, recharge center, invoice manager, sport, credit card repayment and my express;
blue icon: the method comprises the following steps of 'train ticket air ticket', 'Formica borrowing', 'life payment', 'city service', 'in place', 'my customer service'.
With the present embodiment, icons of the same color are classified into one type, so that the divided display is performed according to the icon color.
Corresponding to the embodiment of the icon color display method described in the foregoing fig. 2, the present specification further provides an embodiment of an icon color changing device. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and is formed by reading corresponding computer program instructions in the nonvolatile memory into the memory for operation through the processor of the device where the software implementation is located as a logical means. In terms of hardware, a hardware structure of the device in which the icon color changing apparatus of this specification is located may include a processor, a network interface, a memory, and a nonvolatile memory, and the device in which the apparatus is located in the embodiment usually changes an actual function according to the icon color, and may also include other hardware, which is not described again.
Referring to fig. 8, a block diagram of an icon color changing apparatus provided for an embodiment of the present disclosure may be applied to a client, where the apparatus includes:
a first determination unit 810 that determines a target icon;
an obtaining unit 820, which obtains a custom color configured in an application program corresponding to the target icon;
a second determining unit 830, configured to determine the changed custom color when the custom color configured in the application program corresponding to the target icon is changed;
the display unit 840 displays the color of the target icon as the modified custom color according to the association relationship between the custom color and the color of the target icon.
In an alternative embodiment:
the custom color comprises a theme color of the application.
In an alternative embodiment:
the setting mode of the custom color comprises at least one of the following modes:
a first setting subunit that sets a custom color according to a character representing an actual color;
the second setting subunit sets the custom color according to the RBG three primary colors;
and the third setting subunit sets the custom color according to the actual color.
In an alternative embodiment:
before the display unit 840, the apparatus further includes:
the obtaining subunit obtains the color of the background area where the target icon is located;
the judging subunit judges whether the changed custom color is similar to the color of the background area;
the display unit 840 specifically includes:
and under the condition that the changed custom color is not similar to the color of the background area, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
In an alternative embodiment:
the judging subunit specifically includes:
the first gray scale operator unit is used for calculating a first gray scale value of the modified custom color;
a second gray scale operator unit for calculating a second gray scale value of the color of the background region;
a threshold judgment subunit for judging whether the difference between the first gray value and the second gray value is smaller than a threshold;
a first determining subunit, configured to determine that the modified custom color is similar to the color of the background region, if a difference between the first grayscale value and the second grayscale value is smaller than a threshold value;
and the second determining subunit determines that the modified custom color is not similar to the color of the background area if the difference between the first gray value and the second gray value is not less than the threshold value.
In an alternative embodiment:
the device further comprises:
and a classification unit for classifying the icons according to their colors.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution in the specification. One of ordinary skill in the art can understand and implement it without inventive effort.
Fig. 8 above describes the internal functional modules and the structural schematic of the icon color changing device, and the substantial execution subject may be an electronic device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a target icon;
acquiring a custom color configured in an application program corresponding to the target icon;
under the condition that the custom color configured in the application program corresponding to the target icon is changed, determining the changed custom color;
and displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
Optionally, the custom color includes a theme color of the application.
Optionally, the setting mode of the custom color includes at least one of the following modes:
setting a custom color according to characters representing the actual color;
setting custom colors according to three primary colors of RBG;
and setting the custom color according to the actual color.
Optionally, before displaying the color of the target icon as the modified custom color according to the association relationship between the custom color and the color of the target icon, the method further includes:
acquiring the color of a background area where the target icon is located;
judging whether the changed custom color is similar to the color of the background area;
displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon, specifically comprising:
and under the condition that the changed custom color is not similar to the color of the background area, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon.
Optionally, the determining whether the changed custom color is similar to the color of the background area specifically includes:
calculating a first gray value of the modified custom color;
calculating a second gray value of the color of the background area;
judging whether the difference between the first gray value and the second gray value is smaller than a threshold value;
determining that the modified custom color is similar to the color of the background area if the difference between the first gray value and the second gray value is less than a threshold;
determining that the modified custom color is not similar to the color of the background area if the difference between the first grayscale value and the second grayscale value is not less than a threshold.
Optionally, the method further includes:
the classification is made according to the color of the icon.
In the above embodiments of the electronic device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiment of the electronic device, since it is substantially similar to the embodiment of the method, the description is simple, and for the relevant points, reference may be made to part of the description of the embodiment of the method.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

Claims (5)

1. A method of icon color change, the method comprising:
determining a plurality of target icons from a specific area containing a plurality of same-color icons on an interface of an application program; wherein the specific area is used for accommodating icons of specific sub-applications; the specific sub-application is a plurality of most recently used sub-applications determined according to the last used time of each sub-application in the application; the target icons are the same in color;
acquiring a custom color configured in a sub-application program corresponding to the target icon; the custom color is a theme color of a target icon corresponding to the sub-application program displayed in the application program; the custom color is obtained by configuring icon color configuration options of each sub-application program in an icon color configuration interface provided by the application program;
when the custom color configured in the sub-application program corresponding to the target icon is monitored to be changed, the changed custom color is determined; the changed custom colors corresponding to the target icons are different;
acquiring the color of a background area where the target icon is located;
calculating a first gray value of the changed custom color and a second gray value of the background area color, and judging whether the difference between the first gray value and the second gray value is smaller than a threshold value;
determining that the modified custom color is similar to the color of the background area if the difference between the first gray value and the second gray value is less than a threshold;
determining that the modified custom color is not similar to the color of the background area if the difference between the first gray value and the second gray value is not less than a threshold;
under the condition that the changed custom color is not similar to the color of the background area, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon, so that the color of each changed target icon is different;
and dividing icons with the same color into one type in the application program according to the color of the icons, and displaying icons in different types in the same area.
2. The method of claim 1, wherein the setting of the custom color comprises at least one of:
setting a custom color according to characters representing the actual color;
setting custom colors according to three primary colors of RBG;
and setting the custom color according to the actual color.
3. An icon color changing apparatus, the apparatus comprising:
a first determination unit that determines a plurality of target icons from a specific area containing a plurality of icons of the same color on an interface of an application; wherein the specific area is used for accommodating icons of specific sub-applications; the specific sub-application is a plurality of most recently used sub-applications determined according to the last used time of each sub-application in the application; the target icons are the same in color;
the acquisition unit is used for acquiring the custom color configured in the sub-application program corresponding to the target icon; the custom color is a theme color of a target icon corresponding to the sub-application program displayed in the application program; the custom color is obtained by configuring icon color configuration options of each sub-application program in an icon color configuration interface provided by the application program;
the second determining unit is used for determining the changed custom color when the custom color change configured in the sub application program corresponding to the target icon is monitored; the changed custom colors corresponding to the target icons are different;
the obtaining subunit obtains the color of the background area where the target icon is located;
the judgment subunit comprises a first gray scale operator unit, a second gray scale operator unit, a threshold judgment subunit, a first determination subunit and a second determination subunit;
the first gray scale operator unit is used for calculating a first gray scale value of the modified custom color; the second gray scale operator unit is used for calculating a second gray scale value of the color of the background area; the threshold judging subunit judges whether the difference between the first gray value and the second gray value is smaller than a threshold; the first determining subunit determines that the modified custom color is similar to the color of the background area when whether the difference between the first gray value and the second gray value is smaller than a threshold value; the second determining subunit determines that the modified custom color is not similar to the color of the background area when the difference between the first gray value and the second gray value is not less than a threshold value;
the display unit is used for displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon under the condition that the changed custom color is not similar to the color of the background area, so that the color of each changed target icon is different; and dividing icons with the same color into one type in the application program according to the color of the icons, and displaying icons in different types in the same area.
4. The apparatus of claim 3, wherein the setting of the custom color comprises at least one of:
a first setting subunit that sets a custom color according to a character representing an actual color;
the second setting subunit sets the custom color according to the RBG three primary colors;
and the third setting subunit sets the custom color according to the actual color.
5. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining a plurality of target icons from a specific area containing a plurality of same-color icons on an interface of an application program; wherein the specific area is used for accommodating icons of specific sub-applications; the specific sub-application is a plurality of most recently used sub-applications determined according to the last used time of each sub-application in the application; the target icons are the same in color;
acquiring a custom color configured in a sub-application program corresponding to the target icon; the custom color is a theme color of a target icon corresponding to the sub-application program displayed in the application program; the custom color is obtained by configuring icon color configuration options of each sub-application program in an icon color configuration interface provided by the application program;
when the custom color configured in the sub-application program corresponding to the target icon is monitored to be changed, the changed custom color is determined; the changed custom colors corresponding to the target icons are different;
acquiring the color of a background area where the target icon is located;
calculating a first gray value of the changed custom color and a second gray value of the background area color, and judging whether the difference between the first gray value and the second gray value is smaller than a threshold value;
determining that the modified custom color is similar to the color of the background area if the difference between the first gray value and the second gray value is less than a threshold;
determining that the modified custom color is not similar to the color of the background area if the difference between the first gray value and the second gray value is not less than a threshold;
under the condition that the changed custom color is not similar to the color of the background area, displaying the color of the target icon as the changed custom color according to the incidence relation between the custom color and the color of the target icon, so that the color of each changed target icon is different;
and dividing icons with the same color into one type in the application program according to the color of the icons, and displaying icons in different types in the same area.
CN201710729292.6A 2017-08-23 2017-08-23 Icon color change method and device and electronic equipment Active CN107608709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710729292.6A CN107608709B (en) 2017-08-23 2017-08-23 Icon color change method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710729292.6A CN107608709B (en) 2017-08-23 2017-08-23 Icon color change method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107608709A CN107608709A (en) 2018-01-19
CN107608709B true CN107608709B (en) 2021-05-18

Family

ID=61065830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710729292.6A Active CN107608709B (en) 2017-08-23 2017-08-23 Icon color change method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107608709B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109165065B (en) * 2018-07-26 2021-10-12 创新先进技术有限公司 Method, device and equipment for processing word list
CN110134299A (en) * 2019-04-25 2019-08-16 珠海格力电器股份有限公司 A kind of method and apparatus that change target object shows information
CN112185022A (en) * 2020-08-31 2021-01-05 北京三快在线科技有限公司 Intelligent cabinet control system, method and device, electronic equipment and computer medium
CN112804330B (en) * 2021-01-14 2023-04-18 京东科技控股股份有限公司 Application communication method and device
CN114063850A (en) * 2021-11-12 2022-02-18 北京字跳网络技术有限公司 Client skin configuration method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649428A (en) * 2004-01-27 2005-08-03 乐金电子(中国)研究开发中心有限公司 Color changeover method of mobile communication terminal
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN105677352A (en) * 2016-01-06 2016-06-15 北京小米移动软件有限公司 Setting method and device for application icon color

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103037264A (en) * 2012-12-19 2013-04-10 乐视致新电子科技(天津)有限公司 Implement method of multiple desktops of television
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1649428A (en) * 2004-01-27 2005-08-03 乐金电子(中国)研究开发中心有限公司 Color changeover method of mobile communication terminal
CN101916168A (en) * 2010-08-31 2010-12-15 宇龙计算机通信科技(深圳)有限公司 Method and system for displaying application icon and mobile terminal
CN105677352A (en) * 2016-01-06 2016-06-15 北京小米移动软件有限公司 Setting method and device for application icon color

Also Published As

Publication number Publication date
CN107608709A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107608709B (en) Icon color change method and device and electronic equipment
KR102347336B1 (en) Gaze point determination method and apparatus, electronic device and computer storage medium
US20130103571A1 (en) System and method for determination and reporting of credit use and impact on credit score
US10222396B2 (en) Method of and device for detecting and visually representing an impact event
CN106898026B (en) A kind of the dominant hue extracting method and device of picture
US20160364888A1 (en) Image data processing method and electronic device supporting the same
EP3547604A1 (en) Method and apparatus for security question generation and identity verification
CN106648747A (en) Method and device for processing pre-loading of process
CN111078521A (en) Abnormal event analysis method, device, equipment, system and storage medium
CN112116212B (en) Application evaluation method and device, storage medium and electronic equipment
CN112597931A (en) Screen state detection method and device, electronic equipment, server and storage medium
CN110188698B (en) Fingerprint identification control method and device and computer readable storage medium
TW201931192A (en) Method and device for presenting sensitive information
CN106445501A (en) Display method of notification bar, and terminal
CN107885754B (en) Method and device for extracting credit variable from transaction data based on LDA model
JP4993146B2 (en) System, method and computer program for preventing the display of unwanted content stored in a frame buffer
US11204949B1 (en) Systems, devices, and methods for content selection
CN115705231B (en) Screen display method and terminal equipment
CN108765002A (en) A kind of advertisement playing device and method
CN114330340A (en) Evaluation information processing method, electronic device and readable storage medium
US20230410706A1 (en) Method for image rendering, terminal device and non-transitory computer-readable storage medium
CN109714381B (en) Consumption tracking based information pushing method, equipment, storage medium and device
US20220405894A1 (en) Machine learning device, machine learning method, andrecording medium storing machine learning program
CN109271122B (en) File display method, device and equipment based on double display screens
US20210158775A1 (en) Display panel, and method and device for driving display panel

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant