This disclosure generally relates to graphical user interface and, more particularly, to a method for icon generation.
Most operating systems for computers or smart phones support various applications developed by third parties to be used in these systems. Therefore, such operating systems must provide a solution enabling users to identify these third party applications.
In almost all operating systems with a graphical user interface, third party applications can be identified by specific graphics called icons, which are generally provided by the developers of the third party applications.
Since icons for the third party applications are provided by various developers, the icon styles are often inconsistent; so the list of application icons in the user interface looks disorderly, reducing the user's experience.
Currently, limited graphics are built into operating systems. In accordance with each third party application, some graphics are selected randomly and merged with the application icon in a certain way to generate a new icon, realizing global consistency in icon styles.
However, the graphics selected randomly by the operating system may not be related to the content of the third party applications icons, so the merged icons may not be aesthetically pleasing and the final generated icons do not provide any predictability for the developers of the third party applications.
The present disclosure provides a method for icon generation, which generates new icons complying with a unified system style, and ensuring content consistency of the new icons.
To this end, the present disclosure adopts the following technical scheme:
A method for icon generation, comprising the following steps:
Step B comprises the following steps:
Through this technical scheme of the present disclosure, the content in icons of third party applications can be analyzed; and based on the content of the original icons, new icons complying with a unified system style could be generated, realizing consistency of a global icon style. Also, the new icon can be aesthetically pleasing while preserving the original content.
Embodiments of the present disclosure are further described in detail with reference to the accompanying figure.
Step 101. Adjust an original icon to a preset size for a certain resolution environment.
Step 102. Determine statistics for the color values of all pixels of the original icon, and calculate a dominant hue of the original icon. Firstly, obtain RGB values for all pixels of the original icon; determine an average R value by averaging R values for all pixels of the original icon; determine an average G value by averaging G values for all pixels of the original icon; determine an average B value by averaging B values for all pixels of the original icon; the dominant hue of the original icon based on the average R, average G and average B values.
Step 103. Generate a background color based on a hue angle of the dominant hue and preset values of color saturation and brightness.
Step 104. Apply the background color to a preset color gradient template to generate an icon background.
Step 105. Cut the adjusted icon from Step 101 using a preset icon edge cutting template.
Step 106. Combine the icon background, the cut icon, and a preset icon foreground template to generate a final icon.
The above is a detailed description of the technical features of the present disclosure based on a typical preferred embodiment. However, it should be appreciated that the present disclosure is capable of a variety of embodiments and various modifications by those skilled in the art, and all such variations or changes shall be embraced within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110060343 | Mar 2011 | CN | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/CN12/72283 | 3/13/2012 | WO | 00 | 9/13/2013 |