Method and device for displaying icon badge
AssigneeXiaomi Inc.
InventorsFei Xiangli, Zhuang Qian, Baoke Chen
Life of this patent
Estimating the term…
Abstract
A method for displaying a badge of an icon is disclosed. The method may comprise acquiring feature information of the icon; determining a display element of the badge according to the acquired feature information; and generating and displaying the badge according to the determined display element, at a preset position of the icon.
Claims14
A method for displaying a badge of an icon, comprising:
- acquiring feature information of the icon, the feature information including at least a feature color of the icon;
- determining a display element of the badge according to the acquired feature information, the determining of the display element of the badge comprises:
- determining at least one of a shape of the badge, a background color of the badge, a color of a character in the badge, or a font of a character in the badge according to the acquired feature information;
- and
- generating and displaying the badge according to the determined display element, at a preset position of the icon,
- wherein when an application corresponding to the icon is an application folder, acquiring the feature information of the icon comprises at least one of:
- acquiring all image files of all application icons in the application folder, and using a most frequently appearing color value among color values of all pixels in all the image files as the feature color of the icon, or
- acquiring all image files of all application icons in the application folder;
- and averaging color values of pixels with similar colors among all pixels in the image files, and using the averaged value as the feature color of the icon.
A device for displaying a badge of an icon, comprising:
- a processor;
- and
- a memory for storing instructions executable by the processor;
- wherein the processor is configured to:
- acquire feature information of the icon, the feature information including at least a feature color of the icon;
- determine a display element of the badge according to the acquired feature information;
- and
- generate and display the badge, according to the determined display element, at a preset position of the icon, and
- wherein in determining the display element of the badge according to the acquired feature information, the processor is further configured to:
- determine at least one of a shape of the badge, a background color of the badge, a color of a character in the badge, or a font of a character in the badge according to the acquired feature information, and
- wherein when an application corresponding to the icon is an application folder, the processor is further configured to perform at least one of:
- acquiring all image files of all application icons in the application folder, and using a most frequently appearing color value among color values of all pixels in all the image files as the feature color of the icon, or
- acquiring all image files of all application icons in the application folder;
- and averaging color values of pixels with similar colors among all pixels in the image files, and using the averaged value as the feature color of the icon.
A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor in a terminal device, cause the terminal device to perform a method for displaying a badge of an icon, the method comprising:
- acquiring feature information of the icon, the feature information including at least a feature color of the icon;
- determining a display element of the badge according to the acquired feature information, the determining of the display element of the badge comprises:
- determining at least one of a shape of the badge, a background color of the badge, a color of a character in the badge, or a font of a character in the badge according to the acquired feature information;
- and
- generating and displaying the badge, according to the determined display element, at a preset position of the icon,
- wherein when an application corresponding to the icon is an application folder, acquiring the feature information of the icon comprises at least one of:
- acquiring all image files of all application icons in the application folder, and using a most frequently appearing color value among color values of all pixels in all the image files as the feature color of the icon, or
- acquiring all image files of all application icons in the application folder;
- and averaging color values of pixels with similar colors among all pixels in the image files, and using the averaged value as the feature color of the icon.
Dependencies are inferred from the claim text.