CN106296775B - Icon generation method and device - Google Patents

Icon generation method and device Download PDF

Info

Publication number
CN106296775B
CN106296775B CN201610698587.7A CN201610698587A CN106296775B CN 106296775 B CN106296775 B CN 106296775B CN 201610698587 A CN201610698587 A CN 201610698587A CN 106296775 B CN106296775 B CN 106296775B
Authority
CN
China
Prior art keywords
icon
preset
application
layer
original
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
CN201610698587.7A
Other languages
Chinese (zh)
Other versions
CN106296775A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610698587.7A priority Critical patent/CN106296775B/en
Publication of CN106296775A publication Critical patent/CN106296775A/en
Application granted granted Critical
Publication of CN106296775B publication Critical patent/CN106296775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to an icon generation method and device. The method comprises the following steps: acquiring an original icon of an application; acquiring icon setting parameters corresponding to the application; and generating a target icon corresponding to the application according to the original icon and the icon setting parameter. According to the technical scheme, the original icon of the application and the icon setting parameter corresponding to the application are obtained, and the target icon corresponding to the application can be automatically generated according to the original icon and the icon setting parameter, so that the target icon of the application with personalized display style is obtained, the situation that the icon of the application is stiff and single is avoided, the personalized requirement of a user on the display style of the icon is met, and meanwhile the icon of the application is more attractive.

Description

Icon generation method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to an icon generation method and apparatus.
Background
At present, icons of APPs installed on terminals such as mobile phones (especially icons of APPs of third parties) all come from original icons (as shown in fig. 1) stored in an installation package of the terminal, and in the related art, after the APPs are installed, the original icons can be directly displayed to areas such as a desktop, or the original icons are displayed after operations such as stretching and compressing, simple shape transformation, and the like are performed on the original icons, which results in a single display style (that is, the display styles are default styles of the original icons) and display styles of the icons of different APPs are not uniform.
Disclosure of Invention
The embodiment of the disclosure provides an icon generation method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an icon generation method, including:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
and generating a target icon corresponding to the application according to the original icon and the icon setting parameter.
In one embodiment, the obtaining an original icon of an application includes:
and when the application is installed, acquiring the original icon prestored in the installation package of the application.
In one embodiment, the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
and displaying parameters of each preset layer in the target icon.
In an embodiment, the display parameters of each preset layer include: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
In an embodiment, when each preset layer includes a first preset layer and a second preset layer, the generating a target icon corresponding to the application according to the original icon and the icon setting parameter includes:
generating the first preset layer according to the display parameters of the first preset layer;
generating a second preset layer according to the display parameters of the second preset layer;
when the position relation between the original icon and the first preset image layer and the position relation between the original icon and the second preset image layer are that the original icon and the second preset image layer cover the first preset image layer and the original icon is located above the second preset image layer, covering the second preset image layer and the original icon on the first preset image layer, and meanwhile, placing the original icon above the second preset image layer to obtain the target icon.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring an identifier of the installation package of the application;
and acquiring the color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring color parameters of various colors in the original icon;
and acquiring the color parameters of the first preset layer according to the color parameters of the various colors.
In one embodiment, before generating a target icon corresponding to the application according to the original icon and the icon setting parameter, the method further includes:
and displaying the icon setting parameters to ensure that a user confirms whether to adjust the icon setting parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided an icon generating apparatus including:
the first acquisition module is used for acquiring an original icon of an application;
the second acquisition module is used for acquiring the icon setting parameters corresponding to the application;
and the generating module is used for generating a target icon corresponding to the application according to the original icon and the icon setting parameter.
In one embodiment, the first obtaining module comprises:
and the first obtaining sub-module is used for obtaining the original icon prestored in the installation package of the application when the application is installed.
In one embodiment, the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
and displaying parameters of each preset layer in the target icon.
In an embodiment, the display parameters of each preset layer include: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
In one embodiment, the generating module comprises:
the first generation submodule is used for generating a first preset layer according to the display parameters of the first preset layer when each preset layer comprises a first preset layer and a second preset layer;
the second generation submodule is used for generating the second preset layer according to the display parameters of the second preset layer;
and the processing sub-module is used for covering the second preset layer and the original icon on the first preset layer and placing the original icon above the second preset layer to obtain the target icon when the position relation between the original icon and the first preset layer and the second preset layer is that the original icon and the second preset layer are both covered on the first preset layer and the original icon is positioned above the second preset layer.
In one embodiment, the second obtaining module comprises:
a second obtaining sub-module, configured to obtain an identifier of the installation package of the application when the icon setting parameter is a color parameter in the display parameter of the first preset layer;
and the third obtaining submodule is used for obtaining the color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm.
In one embodiment, the second obtaining module comprises:
a fourth obtaining sub-module, configured to obtain color parameters of various colors in the original icon when the icon setting parameter is a color parameter in the display parameters of the first preset layer;
and the fifth obtaining submodule is used for obtaining the color parameters of the first preset layer according to the color parameters of the various colors.
In one embodiment, the apparatus further comprises:
and the display module is used for displaying the icon setting parameters before generating the target icon corresponding to the application according to the original icon and the icon setting parameters so as to ensure that a user confirms whether to adjust the icon setting parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided an icon generating apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
and generating a target icon corresponding to the application according to the original icon and the icon setting parameter.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the technical scheme provided by the embodiment of the disclosure, the target icon corresponding to the application can be automatically generated according to the original icon and the icon setting parameter by acquiring the original icon of the application and the icon setting parameter corresponding to the application, so that the target icon of the application with personalized display style can be acquired, the situation that the icon of the application is stiff and single is avoided, the personalized requirement of a user on the display style of the icon is met, and the displayed icon is more attractive.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of an original icon applied in the related art.
FIG. 2 is a flow diagram illustrating a method of icon generation according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating another icon generation method in accordance with an exemplary embodiment.
FIG. 4 is a diagram illustrating a target icon of an application, according to an example embodiment.
Fig. 5A is a block diagram illustrating an icon generating apparatus according to an example embodiment.
Fig. 5B is a block diagram illustrating another icon generating apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating yet another icon generating apparatus according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating still another icon generating apparatus according to an exemplary embodiment.
Fig. 8 is a block diagram illustrating still another icon generating apparatus according to an exemplary embodiment.
Fig. 9 is a block diagram illustrating still another icon generating apparatus according to an exemplary embodiment.
Fig. 10 is a block diagram illustrating a suitable icon generating apparatus according to an example embodiment.
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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
At present, icons of APPs installed on terminals such as mobile phones (especially icons of APPs of third parties) all come from original icons (as shown in fig. 1) stored in an installation package of the terminal, and in the related art, after the APPs are installed, the original icons can be directly displayed to areas such as a desktop, or when the original icons are displayed to a certain preset area, if the original icons are not matched with the size of the preset area, the original icons can be further displayed to the preset area (for example, displayed to an installed application list) after operations such as stretching, compressing, simple shape transformation and the like are performed on the original icons, which results in a single display style (that is, the display styles are default styles of the original icons) and display styles of different APPs are not uniform.
In order to solve the above technical problem, an embodiment of the present disclosure provides an icon generating method, which may be used in an icon generating program, system or device, and an execution subject corresponding to the method may be a terminal such as a mobile phone, a tablet, a computer, and the like, as shown in fig. 2, and the method includes steps S201 to S203:
in step S201, an original icon of an application is acquired.
When the original icon of the application is obtained, the original icon may be obtained from an installation package of the application or from another preset storage location (e.g., a terminal or a server in which the application is installed).
The application may be any application provided by an official party, i.e. the manufacturer of the generating terminal, or any application provided by a third party.
The original icon is the original icon of the application, such as the icon shown in fig. 1, wherein "+" in fig. 1 represents the mark in the original icon. For example, when the application is a "beauty show," the "+" is the "show" in the "beauty show". As another example, when the application is "58 city," the "+" character is the "58" character in "58 city," and the rest is the background portion in the original icon. Also for example, when the application is "QQ", the "+" is the penguin's design.
In step S202, icon setting parameters corresponding to the application are acquired.
The icon setting parameters may be some preset personalized icon parameters, or some parameters automatically acquired according to the application and its original icon.
In addition, the icon setting parameters corresponding to different applications can be different, so that more personalized display requirements can be met.
In step S203, a target icon corresponding to the application is generated according to the original icon and the icon setting parameter.
According to the original icon and the icon setting parameters, a new target icon corresponding to the application can be automatically generated, so that the target icon of the application with personalized display style can be obtained, the situation that the icon of the application is stiff and single is avoided, the personalized requirement of a user on the display style of the icon is met, and meanwhile, the icon of the application is more attractive.
Further, if when a plurality of applications are installed, the above embodiment is adopted to obtain new icons of each application, so that the new icons of the plurality of applications in the installed APP list all have the same display style, but have different display effects.
In addition, some of the icon setting parameters may have been previously set in a desktop application for managing the desktop, and thus, the above-described steps S201 to S203 may be completed by the desktop application.
In one embodiment, step S201 shown in fig. 1 may be performed as follows:
when the application is installed, the original icon prestored in the installation package of the application is obtained.
In order to generate a new icon corresponding to the application as soon as possible, the original icon pre-stored in the installation package of the application can be automatically acquired when the application is installed, so that the target icon can be directly generated according to the original icon when the application is installed.
In one embodiment, the icon setting parameters include:
presetting position relations between pre-stored original icons and preset image layers in the target icons; and the display parameters of each preset layer in the target icon.
In the target icon, besides the layer where the original icon is located, there may be a plurality of preset layers, and each preset layer is a view, and in order to make the display effect of the original icon more beautiful, the icon setting parameters may include: and presetting the position relation between each prestored original icon and each preset layer in the target icon (namely all layers except the layer where the original icon is located).
Of course, in order to ensure that a target icon with a more personalized display mode can be obtained, the icon setting parameters should also include display parameters of each preset layer in the target icon.
In addition, the icon setting parameters corresponding to different applications can be different, so that more personalized display requirements can be met.
Of course, in order to make the display style more uniform, the icon setting parameters corresponding to each application program in the same type of application program may be the same or have smaller differences, for example: the preset position relationship between the original icon of each application in the same application program and each preset layer in the target icon of each application may be the same, and the display parameters of each preset layer in the target icons of different applications in the same application program may be slightly different.
In one embodiment, the display parameters of each preset layer include: at least one of a preset shape of each preset layer, a preset size of each preset layer, a preset transparency of each preset layer, and a color parameter of each preset layer.
The display parameters of each preset image layer may be preset in the desktop application program or prestored in a certain preset position.
As shown in fig. 3, in an embodiment, when each preset layer includes a first preset layer and a second preset layer, step S203 shown in fig. 2 may include:
in step a1, a first preset layer is generated according to the display parameters of the first preset layer;
in step a2, generating the second preset layer according to the display parameter of the second preset layer;
in step a3, when the original icon and the first and second preset layers are in a position relationship that the original icon and the second preset layer are both covered on the first preset layer and the original icon is located above the second preset layer, the second preset layer and the original icon are covered on the first preset layer and the original icon is placed above the second preset layer to obtain the target icon.
And when the position relation between the original icon and the first preset image layer and the position relation between the original icon and the second preset image layer are that the original icon and the second preset image layer are both covered on the first preset image layer and the original icon is positioned above the second preset image layer, the first preset image layer is a background layer of the target icon and the second preset image layer. Optionally, after the first preset layer is drawn according to the display parameters of the first preset layer, the second preset layer is drawn according to the display parameters of the second preset layer, such as the preset shape, the preset size, the preset transparency, the color parameters, and the like, and then after the second preset layer is drawn, the second preset layer and the original icon are overlaid on the first preset layer, and the original icon is placed (e.g., moved) above the second preset layer, so that the target icon of the application with a personalized display style (where the target icon is shown in fig. 4) is obtained, thereby avoiding that the icon of the application is stiff and single, meeting the personalized requirements of the user on the display style of the icon, and simultaneously making the icon of the application more beautiful.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, step S202 shown in fig. 2 may be performed as:
acquiring an identifier of an installation package of an application;
the identification of the installation package comprises: the name, number, etc. of the installation package is used to uniquely identify the information of the installation package.
The color parameters of the first preset map layer are obtained according to the identifier of the installation package and a preset algorithm, wherein the preset algorithm can be a hash algorithm (the hash algorithm is to convert an input with any length into an output with a fixed length, the output is a hash value), the color parameters are RGB values, and the RGB values are red (R), green (G) and blue (B) colors respectively.
When the color parameter of the first preset layer in the icon setting parameter is obtained, the identifier of the installation package can be used as the input of the preset algorithm, and then the output of the preset algorithm is used as the color parameter of the first preset layer, so that the personalized color parameter of the first preset layer can be automatically obtained according to the applied installation package.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, step S202 shown in fig. 2 may be performed as:
acquiring color parameters of various colors in the original icon;
and acquiring the color parameters of the first preset layer according to the color parameters of various colors.
When the color parameters of the first preset layer in the icon setting parameters are obtained, color parameters of various colors in the original icon, that is, RGB values, may also be obtained, and then the color parameters of the first preset layer are automatically obtained according to the color parameters of the various colors, and when the color parameters of the first preset layer are automatically obtained, according to the fact that the color parameters of various colors in the original icon are directly used as the values of the color parameters of the first preset layer, or in order to make the color of the first preset layer have a large difference from the color of the original icon to highlight the original icon and the first preset layer, the color parameters of various colors in the original icon may be adjusted, so as to obtain the values of the color parameters of the first preset layer (for example, only the color parameters of a part of the colors in the original icon are used as the values of the color parameters of the first preset layer, or taking a value with larger contrast with the color parameters of various colors in the original icon as the value of the color parameter of the first preset layer).
In one embodiment, the application is a third party application.
The step S202 shown in fig. 2 can be executed as follows: and acquiring icon setting parameters corresponding to the third-party application according to the icon parameters of the official application.
The step S203 shown in fig. 2 may be performed as follows: and generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter.
In the field of smart devices, smart devices developed and produced by manufacturers usually include some applications which are self-contained or installed in the smart devices, and the applications developed by the smart device manufacturers are called official applications. For example, an address book, a camera, a short message, and other official applications have been installed in a millet mobile phone. The millet television is provided with official applications such as a millet mall and a millet television manual. Besides these official applications, the user may also install applications developed by other vendors, such as an arcade video, an Tencent video, a Fox video, and the like, and the applications developed by these third-party vendors are called third-party applications.
In the prior art, the display styles of the original icons of the third-party applications installed by the users are various and can not be unified with the display style of the official application. Therefore, the icon setting parameters corresponding to the third-party application can be obtained according to the icon parameters of the official application. Here, the icon parameters of the official application include, but are not limited to: at least any one of the preset shape, the preset size, the preset transparency and the color parameter. For example, at least any one of a preset shape, a preset size, a preset transparency and a color parameter of the official application may be directly determined as an icon setting parameter corresponding to the third-party application. Accordingly, the generated target icon corresponding to the third-party application has a display style which is unified and harmonious with the official application.
In one embodiment, before performing step S203, the method may further include:
and displaying the icon setting parameters to ensure that the user confirms whether to adjust the icon setting parameters.
Before generating a new target icon corresponding to the application according to the original icon and the icon setting parameters, the icon setting parameters can be displayed so that a user can confirm whether to adjust the icon setting parameters, interaction with the user is achieved, the finally obtained icon setting parameters are ensured to be in accordance with the personalized requirements of the user, and the obtained target icon is in accordance with the personalized display style requirements of the user.
Corresponding to the icon generating method provided in the embodiment of the present disclosure, an embodiment of the present disclosure further provides an icon generating apparatus, as shown in fig. 5A, the apparatus includes:
a first obtaining module 501 configured to obtain an original icon of an application;
when the original icon of the application is obtained, the original icon may be obtained from an installation package of the application or from another preset storage location (e.g., a terminal or a server in which the application is installed).
The application may be any application provided by an official party, i.e. the manufacturer of the generating terminal, or any application provided by a third party.
A second obtaining module 502 configured to obtain an icon setting parameter corresponding to an application;
the icon setting parameters may be some preset personalized icon parameters, or some parameters automatically acquired according to the application and its original icon.
In addition, the icon setting parameters corresponding to different applications can be different, so that more personalized display requirements can be met.
And a generating module 503 configured to generate a target icon corresponding to the application according to the original icon and the icon setting parameter.
According to the original icon and the icon setting parameters, a new target icon corresponding to the application can be automatically generated, so that the target icon of the application with personalized display style is obtained, the situation that the icon of the application is stiff and single is avoided, the personalized requirement of a user on the display style of the icon is met, and meanwhile, the icon of the application is more attractive;
further, if when a plurality of applications are installed, the above embodiment is adopted to obtain new icons of each application, so that the new icons of the plurality of applications in the installed APP list all have the same display style, but have different display effects.
As shown in fig. 5B, in an embodiment, the first obtaining module 501 shown in fig. 1 may include:
the first obtaining sub-module 5011 is configured to obtain an original icon prestored in an installation package of an application when the application is installed.
In order to generate a new icon corresponding to the application as soon as possible, the original icon pre-stored in the installation package of the application can be automatically acquired when the application is installed, so that the target icon can be directly generated according to the original icon when the application is installed.
In one embodiment, the icon setting parameters include:
presetting position relations between pre-stored original icons and preset image layers in the target icons; and
and displaying parameters of each preset layer in the target icon.
In the target icon, besides the layer where the original icon is located, there may be a plurality of preset layers, and each preset layer is a view, and in order to make the display effect of the original icon more beautiful, the icon setting parameters may include: and presetting the position relation between each prestored original icon and each preset layer in the target icon (namely all layers except the layer where the original icon is located).
Of course, in order to make the display style more uniform, the icon setting parameters corresponding to each application program in the same type of application program may be the same or have smaller differences, for example: the preset position relationship between the original icon of each application in the same application program and each preset layer in the target icon of each application may be the same, and the display parameters of each preset layer in the target icons of different applications in the same application program may be slightly different.
In one embodiment, the display parameters of each preset layer include: at least one of a preset shape of each preset layer, a preset size of each preset layer, a preset transparency of each preset layer, and a color parameter of each preset layer.
As shown in fig. 6, in one embodiment, the generating module 503 may include:
the first generating sub-module 5031 is configured to generate a first preset layer according to the display parameter of the first preset layer when each preset layer includes a first preset layer and a second preset layer;
a second generating sub-module 5032 configured to generate a second preset layer according to the display parameter of the second preset layer;
a processing sub-module 5033 configured to overlay the second preset layer and the original icon on the first preset layer and simultaneously place the original icon on the second preset layer to obtain the target icon when the position relationship between the original icon and the first preset layer and the second preset layer is that the original icon and the second preset layer are both overlaid on the first preset layer and the original icon is located above the second preset layer.
When the position relationship between the original icon and the first preset map layer and the second preset map layer is that the original icon and the second preset map layer are both covered on the first preset map layer and the original icon is located above the second preset map layer, it indicates that the first preset map layer is a background layer of the target icon and the second preset map layer, so that after the first preset map layer is drawn according to the display parameters of the first preset map layer, the second preset map layer is drawn according to the display parameters of the second preset map layer, such as preset shape, preset size, preset transparency, color parameters, etc., and further after the second preset map layer is drawn, the second preset map layer and the original icon are covered on the first preset map layer, and the original icon is placed (e.g. moved) above the second preset map layer, thereby obtaining the target icon of the application with personalized display style (wherein, the target icon is shown in fig. 4), so that the icon of the application is prevented from being stiff and single, the personalized requirement of a user on the display style of the icon is met, and the icon of the display application is more attractive.
As shown in fig. 7, in one embodiment, the second obtaining module 502 may include:
the second obtaining sub-module 5021 is configured to obtain an identifier of an installation package of an application when the icon setting parameter is a color parameter in the display parameter of the first preset layer;
the third obtaining sub-module 5022 is configured to obtain the color parameter of the first preset layer according to the identifier of the installation package and a preset algorithm.
When the color parameter of the first preset layer in the icon setting parameter is obtained, the identifier of the installation package can be used as the input of the preset algorithm, and then the output of the preset algorithm is used as the color parameter of the first preset layer, so that the personalized color parameter of the first preset layer can be automatically obtained according to the applied installation package.
As shown in fig. 8, in one embodiment, the second obtaining module 502 includes:
the fourth obtaining sub-module 5023 is configured to obtain color parameters of various colors in the original icon when the icon setting parameter is a color parameter in the display parameters of the first preset layer;
the fifth obtaining sub-module 5024 is configured to obtain color parameters of the first preset layer according to the color parameters of the various colors.
When the color parameters of the first preset layer in the icon setting parameters are obtained, color parameters of various colors in the original icon, that is, RGB values, may also be obtained, and then the color parameters of the first preset layer are automatically obtained according to the color parameters of the various colors, and when the color parameters of the first preset layer are automatically obtained, according to the fact that the color parameters of various colors in the original icon are directly used as the values of the color parameters of the first preset layer, or in order to make the color of the first preset layer have a large difference from the color of the original icon to highlight the original icon and the first preset layer, the color parameters of various colors in the original icon may be adjusted, so as to obtain the values of the color parameters of the first preset layer (for example, only the color parameters of a part of the colors in the original icon are used as the values of the color parameters of the first preset layer, or taking a value with larger contrast with the color parameters of various colors in the original icon as the value of the color parameter of the first preset layer).
As shown in fig. 9, in one embodiment, the apparatus may further include:
the display module 901 is configured to display the icon setting parameters before generating the target icon corresponding to the application according to the original icon and the icon setting parameters, so that the user can confirm whether to adjust the icon setting parameters.
In one embodiment, the application is a third party application.
The second acquisition module includes:
and the sixth obtaining sub-module is configured to obtain the icon setting parameters corresponding to the third-party application according to the icon parameters of the official application.
The generation module comprises:
and the third generation sub-module is configured to generate a target icon corresponding to the third-party application according to the original icon and the icon setting parameter.
In the field of smart devices, smart devices developed and produced by manufacturers usually include some applications which are self-contained or installed in the smart devices, and the applications developed by the smart device manufacturers are called official applications. For example, an address book, a camera, a short message, and other official applications have been installed in a millet mobile phone. The millet television is provided with official applications such as a millet mall and a millet television manual. Besides these official applications, the user may also install applications developed by other vendors, such as an arcade video, an Tencent video, a Fox video, and the like, and the applications developed by these third-party vendors are called third-party applications.
In the prior art, the display styles of the original icons of the third-party applications installed by the users are various and can not be unified with the display style of the official application. Therefore, the sixth obtaining sub-module may be configured to obtain the icon setting parameters corresponding to the third-party application according to the icon parameters of the official application. Here, the icon parameters of the official application include, but are not limited to: at least any one of the preset shape, the preset size, the preset transparency and the color parameter. For example, at least any one of a preset shape, a preset size, a preset transparency and a color parameter of the official application may be directly determined as an icon setting parameter corresponding to the third-party application. Accordingly, the target icon corresponding to the third-party application generated by the third generation sub-module has a display style which is uniform and harmonious with the official application.
According to a third aspect of the embodiments of the present disclosure, there is provided an icon generating apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
and generating a target icon corresponding to the application according to the original icon and the icon setting parameter.
In one embodiment, the processor may be further configured to:
the acquiring of the original icon of the application comprises:
and when the application is installed, acquiring the original icon prestored in the installation package of the application.
In one embodiment, the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
and displaying parameters of each preset layer in the target icon.
In an embodiment, the display parameters of each preset layer include: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
In one embodiment, the processor may be further configured to:
when the preset image layers include a first preset image layer and a second preset image layer, the generating a target icon corresponding to the application according to the original icon and the icon setting parameter includes:
generating the first preset layer according to the display parameters of the first preset layer;
generating a second preset layer according to the display parameters of the second preset layer;
when the position relation between the original icon and the first preset image layer and the position relation between the original icon and the second preset image layer are that the original icon and the second preset image layer cover the first preset image layer and the original icon is located above the second preset image layer, covering the second preset image layer and the original icon on the first preset image layer, and meanwhile, placing the original icon above the second preset image layer to obtain the target icon.
In one embodiment, the processor may be further configured to:
when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring an identifier of the installation package of the application;
and acquiring the color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm.
In one embodiment, the processor may be further configured to:
when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring color parameters of various colors in the original icon;
and acquiring the color parameters of the first preset layer according to the color parameters of the various colors.
In one embodiment, the processor may be further configured to:
before generating a target icon corresponding to the application according to the original icon and the icon setting parameter, the method further includes:
and displaying the icon setting parameters to ensure that a user confirms whether to adjust the icon setting parameters.
In one embodiment, the application is a third party application, and the processor may be further configured to:
acquiring icon setting parameters corresponding to the application, including:
and acquiring icon setting parameters corresponding to the third-party application according to the icon parameters of the official application.
Generating a target icon corresponding to the application according to the original icon and the icon setting parameter, wherein the generating comprises the following steps:
and generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter.
Fig. 10 is a block diagram illustrating an icon generating apparatus 1000, which is suitable for a terminal device, according to an exemplary embodiment. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 1000 may include one or at least two of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or at least two processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, processing component 1002 may include one or at least two modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any stored object or method operating on device 1000, contact user data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or at least two power sources, and other components associated with generating, managing, and distributing power sources for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or at least two touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or at least two sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or at least two Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of the apparatus 1000, enable the apparatus 1000 to perform a method of icon generation, comprising:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
and generating a target icon corresponding to the application according to the original icon and the icon setting parameter.
In one embodiment, the obtaining an original icon of an application includes:
and when the application is installed, acquiring the original icon prestored in the installation package of the application.
In one embodiment, the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
and displaying parameters of each preset layer in the target icon.
In an embodiment, the display parameters of each preset layer include: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
In an embodiment, when each preset layer includes a first preset layer and a second preset layer, the generating a target icon corresponding to the application according to the original icon and the icon setting parameter includes:
generating the first preset layer according to the display parameters of the first preset layer;
generating a second preset layer according to the display parameters of the second preset layer;
when the position relation between the original icon and the first preset image layer and the position relation between the original icon and the second preset image layer are that the original icon and the second preset image layer cover the first preset image layer and the original icon is located above the second preset image layer, covering the second preset image layer and the original icon on the first preset image layer, and meanwhile, placing the original icon above the second preset image layer to obtain the target icon.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring an identifier of the installation package of the application;
and acquiring the color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm.
In an embodiment, when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring color parameters of various colors in the original icon;
and acquiring the color parameters of the first preset layer according to the color parameters of the various colors.
In one embodiment, before generating a target icon corresponding to the application according to the original icon and the icon setting parameter, the method further includes:
and displaying the icon setting parameters to ensure that a user confirms whether to adjust the icon setting parameters.
In one embodiment, the application is a third party application.
Acquiring icon setting parameters corresponding to the application, including:
and acquiring icon setting parameters corresponding to the third-party application according to the icon parameters of the official application.
Generating a target icon corresponding to the application according to the original icon and the icon setting parameter, wherein the generating comprises the following steps:
and generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 disclosure is limited only by the appended claims.

Claims (10)

1. An icon generating method, comprising:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
generating a target icon corresponding to the application according to the original icon and the icon setting parameter;
the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
the display parameters of each preset layer in the target icon are displayed, wherein the preset layers comprise a plurality of preset layers, and the difference of the icon setting parameters corresponding to each application in the same type of application is smaller than a threshold value;
the method further comprises the following steps:
when each preset layer includes a first preset layer and the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring an identifier of an installation package of the application;
acquiring a color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm;
the application is a third-party application,
acquiring icon setting parameters corresponding to the application, including:
acquiring icon setting parameters corresponding to the third-party application according to icon parameters of official applications;
generating a target icon corresponding to the application according to the original icon and the icon setting parameter, wherein the generating comprises the following steps:
generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter;
the acquiring of the original icon of the application comprises:
and when the application is installed, acquiring the original icon prestored in the installation package of the application.
2. The method of claim 1,
the display parameters of each preset layer comprise: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
3. The method according to claim 1 or 2,
when the preset image layers include a first preset image layer and a second preset image layer, the generating a target icon corresponding to the application according to the original icon and the icon setting parameter includes:
generating the first preset layer according to the display parameters of the first preset layer;
generating a second preset layer according to the display parameters of the second preset layer;
when the position relation between the original icon and the first preset image layer and the position relation between the original icon and the second preset image layer are that the original icon and the second preset image layer cover the first preset image layer and the original icon is located above the second preset image layer, covering the second preset image layer and the original icon on the first preset image layer, and meanwhile, placing the original icon above the second preset image layer to obtain the target icon.
4. The method of claim 3,
when the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring color parameters of various colors in the original icon;
and acquiring the color parameters of the first preset layer according to the color parameters of the various colors.
5. An icon generating apparatus, comprising:
the first acquisition module is used for acquiring an original icon of an application;
the second acquisition module is used for acquiring the icon setting parameters corresponding to the application;
the generating module is used for generating a target icon corresponding to the application according to the original icon and the icon setting parameter;
the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
the display parameters of each preset layer in the target icon are displayed, wherein the preset layers comprise a plurality of preset layers, and the difference of the icon setting parameters corresponding to each application in the same type of application is smaller than a threshold value;
the second acquisition module includes:
the second obtaining sub-module is used for obtaining the identifier of the installation package of the application when each preset layer comprises a first preset layer and the icon setting parameter is a color parameter in the display parameters of the first preset layer;
a third obtaining submodule, configured to obtain a color parameter of the first preset layer according to the identifier of the installation package and a preset algorithm;
the application is a third-party application,
the second acquisition module includes:
the sixth obtaining sub-module is used for obtaining icon setting parameters corresponding to the third-party application according to icon parameters of official applications;
the generation module comprises:
the third generation submodule is used for generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter;
the first obtaining module comprises:
and the first obtaining sub-module is used for obtaining the original icon prestored in the installation package of the application when the application is installed.
6. The apparatus of claim 5,
the display parameters of each preset layer comprise: at least one parameter of the preset shape of each preset layer, the preset size of each preset layer, the preset transparency of each preset layer and the color parameter of each preset layer.
7. The apparatus of claim 5 or 6,
the generation module comprises:
the first generation submodule is used for generating a first preset layer according to the display parameters of the first preset layer when each preset layer comprises a first preset layer and a second preset layer;
the second generation submodule is used for generating the second preset layer according to the display parameters of the second preset layer;
and the processing sub-module is used for covering the second preset layer and the original icon on the first preset layer and placing the original icon above the second preset layer to obtain the target icon when the position relation between the original icon and the first preset layer and the second preset layer is that the original icon and the second preset layer are both covered on the first preset layer and the original icon is positioned above the second preset layer.
8. The apparatus of claim 7,
the second acquisition module includes:
a fourth obtaining sub-module, configured to obtain color parameters of various colors in the original icon when the icon setting parameter is a color parameter in the display parameters of the first preset layer;
and the fifth obtaining submodule is used for obtaining the color parameters of the first preset layer according to the color parameters of the various colors.
9. An icon generating apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an original icon of an application;
acquiring icon setting parameters corresponding to the application;
generating a target icon corresponding to the application according to the original icon and the icon setting parameter;
the icon setting parameters include:
pre-storing preset position relations between the original icon and each preset image layer in the target icon; and
the display parameters of each preset layer in the target icon are displayed, wherein the preset layers comprise a plurality of preset layers, and the difference of the icon setting parameters corresponding to each application in the same type of application is smaller than a threshold value;
the processor is configured to:
when each preset layer includes a first preset layer and the icon setting parameter is a color parameter in the display parameter of the first preset layer, the obtaining of the icon setting parameter corresponding to the application includes:
acquiring an identifier of an installation package of the application;
acquiring a color parameter of the first preset image layer according to the identifier of the installation package and a preset algorithm;
the application is a third-party application,
acquiring icon setting parameters corresponding to the application, including:
acquiring icon setting parameters corresponding to the third-party application according to icon parameters of official applications;
generating a target icon corresponding to the application according to the original icon and the icon setting parameter, wherein the generating comprises the following steps:
generating a target icon corresponding to the third-party application according to the original icon and the icon setting parameter;
the acquiring of the original icon of the application comprises:
and when the application is installed, acquiring the original icon prestored in the installation package of the application.
10. A non-transitory computer readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201610698587.7A 2016-08-19 2016-08-19 Icon generation method and device Active CN106296775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610698587.7A CN106296775B (en) 2016-08-19 2016-08-19 Icon generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610698587.7A CN106296775B (en) 2016-08-19 2016-08-19 Icon generation method and device

Publications (2)

Publication Number Publication Date
CN106296775A CN106296775A (en) 2017-01-04
CN106296775B true CN106296775B (en) 2020-06-19

Family

ID=57662114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610698587.7A Active CN106296775B (en) 2016-08-19 2016-08-19 Icon generation method and device

Country Status (1)

Country Link
CN (1) CN106296775B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019051681A1 (en) * 2017-09-13 2019-03-21 深圳传音通讯有限公司 Intelligent terminal-based method and system for customizing icon
CN111813283A (en) * 2020-06-12 2020-10-23 北京字节跳动网络技术有限公司 Application file identifier searching method, device, medium and electronic equipment
CN113961112A (en) * 2021-10-22 2022-01-21 维沃移动通信有限公司 Icon display method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019680A (en) * 2012-11-20 2013-04-03 东莞宇龙通信科技有限公司 Mobile terminal and application icon display method for same
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105528149A (en) * 2014-10-21 2016-04-27 ***通信集团公司 Application icon display method and device
CN105653128A (en) * 2015-12-29 2016-06-08 厦门美图移动科技有限公司 Application icon generation method and device as well as mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622163B (en) * 2011-03-14 2018-06-05 小米科技有限责任公司 A kind of icon generation method
US9665952B2 (en) * 2014-02-19 2017-05-30 Beijing Lenovo Software Ltd. Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019680A (en) * 2012-11-20 2013-04-03 东莞宇龙通信科技有限公司 Mobile terminal and application icon display method for same
CN105528149A (en) * 2014-10-21 2016-04-27 ***通信集团公司 Application icon display method and device
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105653128A (en) * 2015-12-29 2016-06-08 厦门美图移动科技有限公司 Application icon generation method and device as well as mobile terminal

Also Published As

Publication number Publication date
CN106296775A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN104407592B (en) A kind of method and device adjusting smart home device operating status
US9667774B2 (en) Methods and devices for sending virtual information card
JP6363299B2 (en) Color gamut mode switching method and apparatus
CN110231901B (en) Application interface display method and device
CN111381746B (en) Parameter adjusting method, device and storage medium
WO2017113666A1 (en) Application interface switching method and device
CN105094578B (en) Method and device for adjusting position of desktop icon
CN103945275B (en) Picture recording control method and device and mobile terminal
CN109324846B (en) Application display method and device and storage medium
CN105956486B (en) Long-range control method and device
CN106843666B (en) method and device for adjusting display interface
CN106507166B (en) Configuration method and device for smart television boot animation
WO2017008400A1 (en) Method and device for controlling intelligent device
CN108804179B (en) Method, device, terminal and storage medium for displaying notification bar message
CN107193716B (en) Resource occupation display method and device
CN106775235B (en) Screen wallpaper display method and device
CN106254939B (en) Information prompting method and device
CN106296775B (en) Icon generation method and device
CN107219989B (en) Icon processing method and device and terminal
CN105677352B (en) Method and device for setting application icon color
US20200067920A1 (en) Method for outputting networking authentication information, networking method, apparatus and storage medium
CN112331158B (en) Terminal display adjusting method, device, equipment and storage medium
CN106933111B (en) Method and device for controlling equipment
CN106506808B (en) Method and device for prompting communication message
CN106773750B (en) Equipment image display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant