CN114625292A - Icon setting method and electronic equipment - Google Patents

Icon setting method and electronic equipment Download PDF

Info

Publication number
CN114625292A
CN114625292A CN202011361705.8A CN202011361705A CN114625292A CN 114625292 A CN114625292 A CN 114625292A CN 202011361705 A CN202011361705 A CN 202011361705A CN 114625292 A CN114625292 A CN 114625292A
Authority
CN
China
Prior art keywords
color
icon
application
theme
target folder
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.)
Pending
Application number
CN202011361705.8A
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011361705.8A priority Critical patent/CN114625292A/en
Publication of CN114625292A publication Critical patent/CN114625292A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application provides an icon setting method and electronic equipment, wherein in the method, a first icon of at least one application in a target folder is obtained, a theme color of the first icon is extracted, the weight of the theme color is calculated, a first color is determined according to the weight of the theme color and the theme color, and a second icon of the application in the target folder is determined according to the first color; and the background color of the second icon is matched with the first color, and the second icon of the application is displayed in the target folder. According to the embodiment of the application, the icon colors of the applications included in the folder can be harmonious, and the visual effect and the user experience are improved.

Description

Icon setting method and electronic equipment
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an icon setting method and electronic equipment.
Background
When a user uses an electronic device such as a mobile phone or a PAD (PAD), the user can download various applications (apps) on the electronic device to obtain corresponding services. In order to facilitate searching, icons of apps are sometimes placed in different folders according to certain rules, for example, an App of a video playing class is placed in one folder, and an App of a news information class is placed in one folder.
However, icons of apps placed in the same folder are different in color, and the visual effect is poor.
Disclosure of Invention
The application provides an icon setting method and electronic equipment, so that the colors of icons of applications in the same folder are harmonious, and the visual effect is improved.
In a first aspect, the present application provides an icon setting method applied to an electronic device, including: acquiring a first icon of at least one application in a target folder; extracting the theme color of the first icon, and calculating the weight of the theme color; determining a first color according to the theme color and the weight of the theme color; determining a second icon applied in the target folder according to the first color; the background color of the second icon matches the first color; displaying a second icon of the application in the target folder.
According to the method, the first color is calculated according to the theme color and the weight of the theme color of the first icon applied in the target folder, the second icon of each application in the target file is determined according to the first color, and the background color of the second icon of each application is matched with the first color, so that the colors of the second icon of each application in the target folder are the same or similar, the colors of the icons of the applications displayed in the target folder are harmonious, and the visual effect is improved.
In one possible implementation, determining the first color according to the weight of the theme color and the theme color includes: mapping the theme color to a first numerical value; the first numerical value is a coordinate value of a preset color space; and calculating a second numerical value according to the first numerical value corresponding to the theme color and the weight of the theme color, wherein the first color is the color corresponding to the second numerical value in the preset color space.
In one possible implementation, determining the second icon applied in the target folder according to the first color includes: determining M third values according to the second values; the difference value between each third numerical value and each second numerical value is smaller than a preset threshold value; m is the number of applications in the target folder; assigning the M third values to the applications in the target folder; and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
In one possible implementation, determining the second icon applied in the target folder according to the first color includes: determining M third numerical values including the second numerical value according to a preset step length; m is the number of applications in the target folder; assigning the M third values to the applications in the target folder; and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
In one possible implementation, assigning the M third values to the applications in the target folder includes: sequencing the M third numerical values, and acquiring a display sequence of the application in the target folder; and correspondingly distributing the third numerical values to the applications in the target folder according to the arrangement sequence of the third numerical values and the display sequence of the applications in the target folder.
In one possible implementation manner, generating a second icon of the application according to a second color corresponding to the application includes: acquiring icon content of a first icon of an application; generating a first picture; the color of each pixel in the first picture is a second color corresponding to the application; and synthesizing the first picture and the icon content to obtain a second icon.
In one possible implementation manner, generating a second icon of the application according to a second color corresponding to the application includes: acquiring icon content of a first icon of an application, and generating an icon content layer; generating a back plate layer according to the second color corresponding to the application; generating a mask layer; and synthesizing the icon content layer, the back plate layer and the masking layer to obtain a second icon.
In one possible implementation manner, acquiring icon content of a first icon of an application includes: matting the first icon to obtain the icon content of the first icon; or acquiring the icon content of the first icon from the icon content layer of the first icon.
In one possible implementation, determining the second icon applied in the target folder according to the first color includes: determining a first numerical value interval to which a second numerical value belongs from preset numerical value intervals; acquiring M icons from an icon set preset for the first numerical value interval; m is the number of applications in the target folder; and respectively allocating the M icons to the applications in the target folder.
In one possible implementation manner, calculating a second numerical value according to the first numerical value corresponding to the theme color and the weight of the theme color includes:
the second value a is calculated using the following formula:
Figure BDA0002804172670000021
where m is the number of first icons acquired, AiA first numerical value, S, corresponding to the theme color of the ith first iconiAnd representing the weight corresponding to the theme color of the ith first icon.
In one possible implementation, the theme color and the first color are represented by RGB values, and the determining the first color according to weights of the theme color and the theme color includes: the RGB values of the first color are calculated using the following formula:
Figure BDA0002804172670000022
c is R, G or B;
where m is the number of first icons acquired, CiIndicates the value of C in the subject color of the ith first icon, SiAnd representing the weight corresponding to the theme color of the ith first icon.
In one possible implementation manner, the method further includes: acquiring an adjusted color and the weight of the adjusted color; determining a first color according to the theme color and the weight of the theme color, including: a second value is calculated based on the theme color, the weight of the theme color, the adjustment color, and the weight of the adjustment color.
In one possible implementation, obtaining an adjusted color includes: receiving color adjustment setting operation of a user, and obtaining a color indicated by the operation as an adjustment color; or, judging that the starting time of the preset time period is reached, and acquiring the color set for the preset time period as the adjusting color.
In one possible implementation manner, the weight is a ratio of the theme color in the corresponding first icon, and the calculating of the weight of the theme color includes: acquiring a first number of pixels with theme colors in the first icon, and calculating a ratio of the first number to the total number of the pixels in the first icon to obtain the weight of the theme colors; or acquiring a first number of pixels with the theme color in the first icon, and taking the first number as the weight of the theme color.
In one possible implementation, the predetermined color space is a hue circle, or hexadecimal notation of color values.
In a second aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of the first aspects.
In a third aspect, embodiments of the present application provide a computer-readable storage medium, in which a computer program is stored, which, when run on a computer, causes the computer to perform the method of any one of the first aspect.
In a fourth aspect, the present application provides a computer program for performing the method of the first aspect when the computer program is executed by a computer.
In a possible design, the program in the fourth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 3 is a diagram illustrating an example of a UI of a method for setting an icon according to an embodiment of the present application;
FIG. 4 is a flow chart of one embodiment of a method for setting icons according to the present application;
FIG. 5 is an exemplary diagram of an icon selection interface of the present application;
FIG. 6 is a flow chart of another embodiment of a method for setting icons according to the present application;
FIG. 7 is a diagram illustrating an example display sequence applied in a target folder of the present application;
FIG. 8 is an exemplary diagram of a hierarchy of icons according to the present application;
FIG. 9 is a flow chart of yet another embodiment of a method for setting icons according to the present application;
FIG. 10 is a schematic view of the color wheel of the present application 12;
FIG. 11 is a schematic diagram of another embodiment of an icon setting method according to the present application;
FIG. 12 is a flow chart of another embodiment of a method for setting icons according to the present application;
fig. 13 is a block diagram of an embodiment of an icon setting apparatus according to the present application.
Detailed Description
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments of the present application only and is not intended to be limiting of the present application.
The method provided by the embodiment of the application can be applied to electronic equipment, for example: mobile phones, PADs, Personal Computers (PCs), wearable devices such as smart glasses, smart watches, smart screens, etc.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to implement a function of answering a call through a bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display screen 194, the camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. Processor 110 and display screen 194 communicate via a DSI interface to implement display functions of electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be implemented by the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into a sound signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The headphone interface 170D is used to connect a wired headphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. Pressure sensor 180A
Such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic apparatus 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M can acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone mass vibrated by the sound part acquired by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so that the heart rate detection function is realized.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a hierarchical architecture as an example to exemplarily explain a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software configuration of the electronic apparatus 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electronic device 100. Such as management of call status (including connection, hangup, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
For convenience of understanding, the following embodiments of the present application will specifically describe a method provided by the embodiments of the present application by taking an electronic device having a structure shown in fig. 1 and fig. 2 as an example, with reference to the accompanying drawings and application scenarios.
The implementation manner of the icon setting method in the electronic device in the embodiment of the present application may include, but is not limited to: the function exists as an icon in one setting folder provided in an operating system of the electronic device, or exists as a function of an icon in one setting folder in a certain App installed in the electronic device. Referring to fig. 3, a User Interface (UI) Interface diagram of the icon setting method in the embodiment of the present application is shown, taking an electronic device as a mobile phone as an example, wherein,
in section 31 of fig. 3, two ways for a user to enter the icon setup interface shown in section 32 of fig. 3 are shown. One is that: the user selects the system setting function and the icon setting function of the mobile phone in sequence, and enters an icon setting interface 320 shown in the 32 part in fig. 3; the other is as follows: the user opens the target App, selects an icon setting function in an interface provided by the App, and enters an icon setting interface 320 shown in part 32 in fig. 3, where the target App is App 2 in fig. 3 as an example.
In fig. 3, 32, an icon setting interface 320 shows a folder tree for icon management in a mobile phone, and folders have a hierarchical relationship. Taking the display interface 310 of the mobile phone shown in fig. 3 as an example, it is assumed that the display interface after the mobile phone is turned on is shown as the interface 310, and includes: setting, application 1, application 2, folder 11, folder 12, folder 11 includes: application 3, application 4 (not shown in the figure), folder 12 includes: application 5, application 6 (not shown in the figure), then, the folder tree that can be shown by the icon setting interface is shown as the icon setting interface 320 in fig. 3, and includes: folder 1, folder 11, and folder 12, folder 1 being a folder including settings, application 1, application 2, and folder 11, being a folder of level 1, and folder 11 and folder 12 being a folder of level 2. When a user wants to select to set an icon in a certain folder, the user clicks a corresponding control, for example, clicking a "folder 11" control in fig. 3, and may trigger execution of the icon setting method in the embodiment of the present application to reset the icon of the application included in the folder 11, so that the application icon displayed in the folder 11 is more harmonious in color, and visual experience is improved.
Fig. 4 is a flowchart of an embodiment of an icon setting method of the present application, and as shown in fig. 4, the method may include:
step 401: the electronic device obtains a first icon of at least one application in the target folder.
The first icon may be an icon that the application is self-contained at the time of installation.
The electronic device may perform step 401 after the trigger condition is satisfied. The electronic device determining that the trigger condition is satisfied may include: the electronic device receives an icon setting operation for a target folder, for example, as shown in fig. 3, a user clicks a "folder 11" control in an icon setting interface, and accordingly, the electronic device receives the icon setting operation for the folder 11; or after the icon setting is performed on the target folder, the electronic device detects that the number or the display sequence of the applications in the target folder changes. Under the operation of a user, if the application in the target folder is removed or a new application is added, the electronic device can detect that the number of the applications in the target folder changes; under the operation of a user, the relative position between the applications in the target folder changes, and the electronic device detects that the display sequence of the applications in the target folder changes.
In a possible implementation manner, the electronic device may obtain the first icon of each application in the target folder, that is, if the target folder includes n applications, the electronic device may obtain the n first icons.
In another possible implementation manner, the electronic device acquires a first icon of a part of applications in the target folder. Optionally, the first icon of which applications in the target folder the electronic device wants to acquire may be selected autonomously by the electronic device or may be designated by the user. For example:
the electronic equipment can randomly select first icons of a plurality of applications in the target folder; alternatively, the first and second electrodes may be,
the electronic device can select first icons of a plurality of applications at pre-designated positions, for example, first icons of a plurality of applications in the target folder, which are displayed in the first order, or first icons of applications in which the display order meets preset conditions, for example, first icons of applications in the 1/3/5 and the like; alternatively, the first and second electrodes may be,
the electronic device may provide a selection interface for a user, for example, as shown in fig. 5, first icons of respective applications in the target folder are displayed to the user in the interface, and the user selects a plurality of first icons by clicking and other operations, for example, the user selects icons of the 1 st application and the 2 nd application in fig. 5, and after the selection is completed, a "confirmation" control is clicked, and accordingly, the electronic device detects the confirmation operation of the user, and obtains the plurality of first icons selected by the user.
Step 402: the electronic equipment extracts the theme color of the first icon and calculates the weight of the theme color.
The subject color of the icon refers to the most important color in the icon, and generally, the color with the highest percentage of all colors included in the icon may be used as the subject color of the icon.
The theme color extraction from the first icon may be implemented by a related picture theme color extraction method, for example: median segmentation algorithm, octree algorithm, minimum difference method, etc.
Wherein, the color space is a kind of organization mode for colors. With the aid of the color space and tests on physical equipment, a fixed model and a digital representation of the color can be obtained. In colorimetry, people establish a plurality of color models, and a certain color is represented by a one-dimensional, two-dimensional, three-dimensional or even four-dimensional space coordinate, and a color range defined by the coordinate system is a color space. A color space often used in the electronic device for processing pictures is mainly Red Green Blue (RGB). RGB can be considered a three-dimensional color space.
In electronic devices, colors are generally represented by RGB values, and thus, the calculated theme color may be represented by RGB values.
Optionally, the weight of the theme color is a proportion of the theme color. The ratio of theme colors is: the proportion of pixels having a theme color in the icon. For example, for an icon 1, the total number of pixels is K1, wherein the number of pixels having the theme color is K2, and the ratio of the theme color is K2/K1.
Optionally, the weight of the theme color is the number of pixels of the theme color, and the number of pixels of the theme color refers to: the number of pixels of which the color is the theme color in the first icon to which the theme color belongs, for example, the number of pixels K2 in the above example.
Step 403: the electronic device determines a first color according to the weight of the theme color and the theme color.
The first color in this step may be represented by an RGB value; alternatively, the first color may be represented by coordinate values in other color spaces, for example, the color space is exemplified by a hue circle, the first color may be represented by an angle on the hue circle, and the first color may be a numerical value if the color space identifies the color by a one-dimensional coordinate.
Step 404: the electronic equipment determines a second icon applied in the target folder according to the first color; the background color of the second icon matches the first color.
The background color of the second icon matching the first color means that the background color of the second icon is the same as or similar to the first color. Here, the degree of similarity is not limited in the embodiment of the present application, and optionally, the background color of the second icon may be ensured to be the same as or similar to the first color in a manner that a color value difference between the background color and the first color is smaller than a preset threshold.
The background colors of the second icons of different applications in the target folder may be the same or different, and the embodiments of the present application are not limited. For example, the background color of the second icons of all applications in the target folder may be the same color, such as the first color described above, or a color similar to the first color; or the background colors of the partially applied second icons in the target folder are the same, and the background colors of the partially applied second icons are different; or the background colors of the second icons of all the applications in the target folder are different from each other.
Step 405: the electronic device displays a second icon of the application in the target folder.
Generally, when a target folder in the electronic device is opened, the electronic device displays a second icon applied in the target folder. At this time, the electronic device may no longer display the first icon of the application.
Based on the method, when the icons applied to the target folder are displayed in the electronic equipment, the icons are the same or similar in color, so that the visual effect is more harmonious when the user watches the icons applied to the target folder.
In distinction from fig. 4, the embodiment shown in fig. 6 shows one possible implementation of calculating the first color, and if the subject color and the first color described in fig. 4 are both represented by RGB values, step 403 in fig. 4 can be implemented by the following step 601:
step 601: the electronic device calculates the RGB values of the first color based on the weights of the theme color and the theme color.
The specific calculation formula for calculating the first color may be:
Figure BDA0002804172670000131
wherein C is R value, G value or B value; m is the number of the acquired first icons; siRepresenting the weight corresponding to the theme color of the ith first icon; ciIndicates the value of C in the theme color of the ith first icon, that is, if C is R, C isiIndicating the value of R in the subject color of the ith first icon, if C is G, CiA value of G in the subject color of the ith first icon, and if C is B, CiIndicating the value of B in the theme color of the ith first icon.
Fig. 6 also shows an implementation of step 404, and if the first color is represented by RGB values, step 404 can be implemented by the following steps 602 to 603:
step 602: and the electronic equipment selects M second colors matched with the first colors and respectively allocates the M second colors to the applications in the target folder.
The M second colors selected may be the same color or different from each other.
In a possible implementation manner, the electronic device may select M R values including the R value of the first color according to a preset step size, the M R values are incremented or decremented according to the step size, and the G value and the B value of the first color are respectively combined with the M R values to obtain M similar colors, where the M colors include the first color; the electronic device assigns M colors to M applications included in the target folder. For example, assuming that M is 5, the RGB values of the first color are (100,105,168), and the step size is 1, the selected 5R values may be: 100. 101, 102, 103 and 104, respectively, are combined with the GB value of the first color to obtain 5 similar colors (100,105,168) (101,105,168) (102,105,168) (103,105,168) (104,105,168). It should be noted that the 5R values in the above example are not the only selection modes of the 5R values including 100, and for example, the following may be also used: 99. 100, 101, 102, 103, etc., which are not listed here; and respectively distributing the obtained 5 similar colors to 5 applications in the target folder, so that in the subsequent step, the 5 similar colors are respectively used as background colors of the second icon, the generated second icon has similar colors, and the visual effect is harmonious. The similar color is selected by adjusting the R value, and the G value or the B value can be adjusted, or two or three values in the RGB values are adjusted at the same time to select the similar color; in addition, in the above manner, M colors different from each other are taken as an example, and the M selected colors may be partially or completely the same, which is not illustrated here.
In order to make the icons of the applications displayed in the target folder by the electronic device more harmonious visually, the M second colors may be arranged in ascending order or descending order according to the RGB values, and the M second colors may be correspondingly allocated to the applications at the same positions in the arrangement order according to the arrangement order of the M second colors and the display order of the M applications in the target folder. Continuing with the foregoing example, the GB values of the second color are the same, the R values are different, and the 5 colors are arranged in ascending order of the R values as: (100,105,168) (101,105,168) (102,105,168) (103,105,168) (104,105,168), if the applications 1-5 in the folder 1 are displayed in the display order as shown in fig. 7, (100,105,168) is correspondingly allocated to the application 1, (101,105,168) is correspondingly allocated to the application 2, and so on, so that the colors of the 5 icons gradually change in sequence, and the user is more harmonious visually.
Step 603: and the electronic equipment takes the second color corresponding to the application as the background color of the second icon of the application to generate the second icon of the application.
Optionally, if the second icon is not a hierarchical structure, this step may include:
acquiring icon content from a first icon of an application; the icon content is a pattern displayed on the first icon;
generating a first picture; the color of each pixel in the first picture is a second color corresponding to the application;
and synthesizing the first picture and the icon content to obtain a second icon.
If the first icon is not in a layered structure, the icon content can be acquired from the first icon in a matting way.
If the first icon is a hierarchical structure, such as shown in FIG. 8, the first icon may include: backplate layer, icon content layer and cover version layer, wherein: the back plate layer displays the background color of the first icon; the icon content layer displays the icon content on the first icon, that is, the pattern on the first icon, for example, fig. 8 illustrates that the pattern on the first icon is heart-shaped; the mask layer is used for cutting the shape of the pattern displayed by the icon content layer, such as a circular icon or a rounded rectangle icon; the icon content of the first icon may be retrieved from the icon content layer of the first icon.
Alternatively, if the second icon is a hierarchical structure such as that shown in fig. 8, this step may include:
acquiring icon content of a first icon of an application, and generating an icon content layer;
generating a back plate layer according to the second color corresponding to the application;
generating a mask layer;
and synthesizing the icon content layer, the back plate layer and the masking layer to obtain a second icon.
The method for obtaining the icon content of the first icon of the application refers to the foregoing description, and is not described herein again.
Optionally, the mask layer may be generated according to a preset shape, or, if the first icon is a layered structure, the mask layer of the second icon may be generated according to the mask layer of the first icon.
Based on the method, when the icons applied to the target folder are displayed in the electronic equipment, the icons are consistent in color or similar, so that the visual effect is more harmonious when the user watches the icons applied to the target folder.
In contrast to fig. 4, the embodiment shown in fig. 9 provides another possible implementation manner of calculating the first color, and step 403 in fig. 4 can be implemented by the following steps 901 to 902:
step 901: the electronic equipment converts the theme color of each first icon into a first numerical value, and the first numerical value is a coordinate value of a preset color space.
The theme colors in this step may be represented by RGB values.
In order to obtain a plurality of similar colors more easily, the three-dimensional coordinate value of the RGB value of the theme color may be converted into a one-dimensional coordinate value of a predetermined one-dimensional color space in this step.
A one-dimensional color space represents a color by a one-dimensional numerical value, e.g., a one-dimensional color space may be a hue circle and the first numerical value may be an angle value, or a one-dimensional color space may be a hexadecimal notation of a color value and the first numerical value may be a hexadecimal numerical value, etc.
Color circle refers to a circular arrangement of color spectra (spectra), the colors being arranged in the order in which the spectra appear in nature. The WARM COLOR (WARM COLOR) is contained within the semicircle containing the COLORs red and yellow, and the cool COLOR is contained within the semicircle containing the COLORs green and violet. COMPLEMENTARY COLORs (COMPLEMENTARY COLORs) appear at positions opposite to each other. The color wheel types are classified into 6 color wheels, 12 color wheels, 24 four color wheels, 36 color wheels, etc., and the large color wheel including more color wheels further includes 48 color wheels, 72 color wheels, etc. Referring to fig. 10, an example of a 12-color phase cycle is shown, wherein red corresponds to 0 degrees, yellow corresponds to 60 degrees, green corresponds to 120 degrees, and so on. Fig. 10 illustrates only the correspondence between the color and the degree, and a specific color example is not shown. The RGB values of the color and the 12 hue circle have a mapping relationship, and the color value may be mapped as an angle value on the hue circle, or the angle value is reversely mapped as the RGB values of the color, and the specific mapping relationship is not described in detail in this embodiment of the application.
In the embodiment of the present application, the one-dimensional color space and the mapping algorithm between the RGB and the coordinate values in the one-dimensional color space are not limited as long as the subject color can be mapped into a one-dimensional numerical value according to the RGB value of the subject color.
Step 902: the electronic equipment calculates a second numerical value according to the first numerical value corresponding to the theme color and the weight.
The calculated second value is a coordinate value of the preset color space, and the corresponding color in the preset color space is also the first color in step 403.
Referring to table 1 below, examples of the theme colors, the first numerical values corresponding to the theme colors, and the weights of the theme colors calculated in steps 901 and 902 are shown, assuming that the first numerical values are angle values on the hue circle, and the weights are the ratios of the theme colors in the corresponding first icons. Assuming that the number of selected first icons is m, the subject colors of the m first icons are N, respectively1~NmThe angle values are respectively A1~AmThe ratio is S1~Sm
Colour(s) Degree of the meter Subject color ratio in icon
N1 A1 S1
N2 A2 S2
N3 A3 S3
Nm Am Sm
TABLE 1
By way of example in table 1, the second value a may be calculated by the following formula:
Figure BDA0002804172670000161
after calculating the second value, the electronic device may determine, according to the second value, a second icon applied in the target folder, where a background color of the applied second icon matches a color corresponding to the second value, where the background color of the second icon is required to match the color corresponding to the second value, so as to make the background color of the second icon the same as or similar to the color corresponding to the second value, so that the colors of the second icons are the same as or similar to each other, and the icons displayed in the target folder are more harmonious in visual effect. The matching here may include, but is not limited to: the background color of the second icon is the same as the color corresponding to the second numerical value, or the difference between the coordinate value in the one-dimensional color space corresponding to the applied background color and the second numerical value is smaller than a preset threshold, or the coordinate value in the one-dimensional color space corresponding to the applied background color and the second numerical value satisfy a preset relationship, and so on. The following steps 405-406 provide a possible implementation method for generating corresponding second icons for each application in the target folder according to the second numerical value.
Fig. 9 also shows an implementation of step 404, and if the first color is an RGB value, step 404 can be implemented by the following steps 903 to 904:
step 903: and the electronic equipment selects M third numerical values according to the second numerical value, and allocates the M third numerical values to M applications included in the target folder.
Preferably, the second value is included in the M third values.
The selection of the M third values from the second values may be achieved in the following possible ways:
in one possible implementation manner, according to a preset step, M third values including the second value are selected, the M third values are incremented or decremented according to the step, the number of the third values smaller than the second value may be M1, M1 is an integer greater than or equal to 0 and less than or equal to M-1, the number of the third values greater than the second value may be M2, M2 is an integer greater than or equal to 0 and less than or equal to M-1, and M1+ M2 is equal to M-1. For example, assuming that M is 5, the second value is 40 degrees, the step size is 1 degree, M1 is 1, and M2 is 3, then the 5 third values selected are: 39 degrees, 40 degrees, 41 degrees, 42 degrees, and 43 degrees.
In another possible implementation manner, M third values whose difference from the second value is smaller than the preset threshold may be selected.
Wherein, whether the same value exists in the M third values is not limited in the embodiments of the present application. Preferably, the M third values are all different. If the embodiment of the application is executed, the electronic device obtains the first icons of all applications included in the target folder to perform theme color extraction, and the M third numerical values selected in the step are different, once the number or the display sequence of the applications in the target folder is changed, the colors of the applications are generally changed, so that the user has more fun in use experience.
In order to make the icons of the applications displayed in the target folder by the electronic device more harmonious visually, the M third values may be arranged in an ascending order or a descending order, and the M third values are correspondingly allocated to the applications at the same positions in the arrangement order according to the arrangement order of the M third values and the display order of the M applications in the target folder. For example, taking the third value as the angle value on the hue circle as an example, assuming that M is 5, and the selected 5 third values are 39 degrees, 40 degrees, 41 degrees, 42 degrees and 43 degrees as an example, assuming that the applications 1 to 5 in the folder 1 are displayed in the display order shown in fig. 6, 39 degrees are correspondingly allocated to the application 1, 40 degrees are correspondingly allocated to the application 2, and so on, so that the colors of the 5 icons gradually change in sequence, and the user is more harmonious visually.
Step 904: and the electronic equipment converts the third numerical value of each application into a second color, and generates a second icon of the application according to the second color corresponding to the application.
The second color may be represented by RGB values. The purpose of converting the third numerical value to a second color represented by an RGB value is to facilitate processing and display by the electronic device.
The third value is the coordinate value of the preset one-dimensional color space. Converting the third value into the second color is an inverse process of converting the theme color into the first value in step 403, and a specific mapping algorithm is not described herein.
In this step, the description in step 603 may be referred to for implementation of generating the second icon of the application according to the second color corresponding to the application, and details are not described here again.
Based on the method, when the icons applied to the target folder are displayed in the electronic equipment, the icons are consistent in color or similar, so that the visual effect is more harmonious when the user watches the icons applied to the target folder.
Alternatively, referring to fig. 11, in order to add more user color decision weights to the generated second icon, when the electronic device calculates the first color in step 403, in addition to the theme color and the weight of the theme color of the first icon, the electronic device may also calculate the first color according to the adjustment color and the weight of the adjustment color. At this time, the process of the present invention,
unlike the method shown in fig. 4, before step 403, the method may further include: acquiring an adjusted color and the weight of the adjusted color;
accordingly, step 403 may be replaced with: the first color is calculated based on the theme color, the weight of the theme color, the adjustment color, and the weight of the adjustment color.
In this case, the first color may be calculated by referring to the description in step 601 or 901, using the adjusted color as one subject color, and using the method described in step 601 or 901. It should be noted that, if the calculation is performed in the manner described in step 901, the adjusted color needs to be mapped to the coordinate value in the preset color space. For example, the adjustment color may be mapped to a fourth value, after which the second value a is calculated using the following formula:
Figure BDA0002804172670000171
wherein A is11A fourth value, S, representing the correspondence of the adjustment color11Representing the weight of the adjusted color.
For example, the electronic device may provide a setting interface of the adjustment color for the user, and the user selects a favorite color as the adjustment color, and accordingly, the electronic device obtains the adjustment color based on the obtained user operation. Preferably, the electronic device sets the weight of the adjusted color, and sets a higher weight for the adjusted color relative to the theme color, so that the color corresponding to the calculated second value is closer to the adjusted color.
Through the processing, the color of the icon applied in the target folder can be closer to the color selected by the user, and the visual experience of the user is improved.
In another possible implementation manner, the adjustment color may not be set by the user, but the electronic device acquires a corresponding color value as the adjustment color according to an external environment, for example, day, night, morning, evening, and the like, at this time, a day in the electronic device may be divided into a plurality of time periods, and a corresponding color value is preset for each time period, and then the electronic device may acquire the color value corresponding to the time period as the adjustment color at the starting time of each time period, so as to adjust the color of the icon applied in the target folder, at this time, the determining, by the electronic device, that the trigger condition is satisfied in step 401 may include: the electronic equipment judges that the starting time of the preset time period is reached.
Through the processing, the icon color applied in the target folder in the electronic equipment can be changed along with the time, so that the user can obtain more fun in icon color change when watching the icon in the target folder.
While the second icon is generated in real time by the electronic device for the application in the target folder in the embodiments shown in fig. 4 to 11, in the icon setting method of the present application shown in fig. 12, another implementation method for determining the second icon applied in the target folder according to the second data is provided, and the electronic device is not required to generate the second icon in real time, at this time,
the value range of coordinate values in a one-dimensional color space is divided into a plurality of value intervals in the electronic equipment, each value interval is provided with a plurality of icons, the background colors of the icons can be color values corresponding to the values in the value intervals, and the background colors of different icons can be the same or different. For example, the angle range of the hue circle is divided into a plurality of angle intervals from 0 to 360 degrees, an icon set is set for each angle interval, the icon set comprises a plurality of icons, and the background color of the icons corresponding to each angle interval is the color value corresponding to each angle in the angle interval. In this case, steps 404 to 405 may be replaced with the following step 1201.
Step 1201: the electronic equipment determines a preset value interval corresponding to the second value, selects M icons from an icon set corresponding to the preset value interval, and correspondingly allocates the M icons to each application included in the target folder to serve as the second icon of each application.
Preferably, the icons in the icon set corresponding to each numerical value interval may be sorted according to a gradual change of color, and then, after the M icons are obtained, a second icon may be allocated to each application according to the sorting of the icons and the display order of the applications. Therefore, the icons applied in the target folder gradually change according to the display sequence, and the visual effect is more harmonious.
In the method shown in fig. 12, the electronic device does not need to generate the second icon in real time, and the data processing amount of the electronic device is reduced.
In the android system, the resource files acquire pictures suitable for the current resolution through different xxdpi. In order to enable the android system to obtain the second icons generated by each application in the target folder by the method of the embodiment of the present application and display the second icons, the system Framework layer of the android may be modified, the second icons generated for the applications in the target folder may be placed in a drawable-themex or mipmap-themex folder of the android system, the drawable-themex or mipmap-themex folder may be specifically located in a subfolder-folder of the main folder, and when the system Framework layer (Framework) displays the second icon, the files in the drawable-themex or mipmap-themex folder are analyzed, and the required icons are loaded and displayed. For example, folders such as a drawable-the-same 1 and a drawable-the-same 2 may be set in a subfolder res folder of the main folder to store a second icon generated for the application in the target folder, and accordingly, when the system framework layer displays the second icon, the system framework layer acquires a required icon file from the drawable-the-same 1 or the drawable-the-same 2 folder and displays the icon.
It is to be understood that some or all of the steps or operations in the above-described embodiments are merely examples, and other operations or variations of various operations may be performed by the embodiments of the present application. Further, the various steps may be performed in a different order presented in the above-described embodiments, and it is possible that not all of the operations in the above-described embodiments are performed.
Fig. 13 is a schematic structural diagram of an embodiment of an icon setting apparatus according to the present application, and as shown in fig. 13, the apparatus 1300 may include:
an obtaining unit 1310 configured to obtain a first icon of at least one application in a target folder;
a calculating unit 1320, configured to extract a theme color of the first icon, and calculate a weight of the theme color;
a determining unit 1330 for determining a first color according to the weight of the theme color and the theme color; determining a second icon applied in the target folder according to the first color; the background color of the second icon matches the first color;
the display unit 1340 is configured to display a second icon of the application in the target folder.
In a possible implementation manner, the determining unit 1330 may be specifically configured to: mapping the theme color to a first numerical value; the first numerical value is a coordinate value of a preset color space; and calculating a second numerical value according to the first numerical value corresponding to the theme color and the weight of the theme color, wherein the first color is a color corresponding to the second numerical value in a preset color space.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: determining M third values according to the second values; the difference value between each third numerical value and each second numerical value is smaller than a preset threshold value; m is the number of applications in the target folder; assigning the M third values to the applications in the target folder; and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: determining M third numerical values including the second numerical value according to a preset step length; m is the number of applications in the target folder; assigning the M third values to the applications in the target folder; and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: sequencing the M third numerical values, and acquiring a display sequence of the application in the target folder; and correspondingly distributing the third numerical values to the applications in the target folder according to the arrangement sequence of the third numerical values and the display sequence of the applications in the target folder.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: acquiring icon content of a first icon of an application; generating a first picture; the color of each pixel in the first picture is a second color corresponding to the application; and synthesizing the first picture and the icon content to obtain a second icon.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: acquiring icon content of a first icon of an application, and generating an icon content layer; generating a back plate layer according to the second color corresponding to the application; generating a mask layer; and synthesizing the icon content layer, the back plate layer and the masking layer to obtain a second icon.
In a possible implementation manner, the determining unit 1330 may be specifically configured to: matting the first icon to obtain the icon content of the first icon; or acquiring the icon content of the first icon from the icon content layer of the first icon.
In a possible implementation manner, the determining unit 1330 may specifically be configured to: determining a first numerical value interval to which a second numerical value belongs from preset numerical value intervals; acquiring M icons from an icon set preset for the first numerical value interval; m is the number of applications in the target folder; and respectively allocating the M icons to the applications in the target folder.
In a possible implementation manner, the determining unit 1330 may be specifically configured to: the second value a is calculated using the following formula:
Figure BDA0002804172670000201
where m is the number of first icons acquired, AiA first numerical value, S, corresponding to the theme color of the ith first iconiTo representAnd the weight corresponding to the theme color of the ith first icon.
In a possible implementation manner, the determining unit 1330 may be specifically configured to: the RGB values of the first color are calculated using the following formula:
Figure BDA0002804172670000202
c is R, G or B;
where m is the number of first icons acquired, CiIndicates the value of C in the subject color of the ith first icon, SiAnd representing the weight corresponding to the theme color of the ith first icon.
In one possible implementation, the computing unit 1320 may be further configured to: acquiring an adjusted color and the weight of the adjusted color;
the determining unit 1330 may specifically be configured to: a second value is calculated based on the theme color, the weight of the theme color, the adjustment color, and the weight of the adjustment color.
In one possible implementation, the computing unit 1320 may specifically be configured to: receiving color adjustment setting operation of a user, and obtaining a color indicated by the operation as an adjustment color; or, judging that the starting time of the preset time period is reached, and acquiring the color set for the preset time period as the adjusting color.
In a possible implementation manner, the weight is a ratio of the theme color in the corresponding first icon, and the calculating unit 1320 may specifically be configured to: acquiring a first number of pixels with theme colors in the first icon, and calculating a ratio of the first number to the total number of the pixels in the first icon to obtain the weight of the theme colors; or acquiring a first number of pixels with the theme color in the first icon, and taking the first number as the weight of the theme color.
In one possible implementation, the predetermined color space is a hue circle, or hexadecimal notation of color values.
The apparatus provided in the embodiment shown in fig. 13 may be used to implement the technical solutions of the method embodiments shown in fig. 3 to fig. 12 of the present application, and the implementation principles and technical effects thereof may be further referred to in the description related to the method embodiments.
It should be understood that the above division of the units of the apparatus shown in fig. 13 is only a division of logical functions, and the actual implementation may be wholly or partially integrated into one physical entity, or may be physically separated. And these units can be implemented entirely in software, invoked by a processing element; or may be implemented entirely in hardware; part of the units can also be realized in the form of software called by a processing element, and part of the units can be realized in the form of hardware. For example, the obtaining unit may be a processing element separately set up, or may be implemented by being integrated in a certain chip of the electronic device. The other units are implemented similarly. In addition, all or part of the units can be integrated together or can be independently realized. In implementation, each step of the above method or each unit above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
An embodiment of the present application further provides an electronic device, including: a display screen; one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the methods illustrated in fig. 3-12.
Embodiments of the present application further provide a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is enabled to execute the method provided by the embodiments shown in fig. 3 to 12 of the present application.
Embodiments of the present application further provide a computer program product, which includes a computer program, when the computer program runs on a computer, causing the computer to execute the method provided by the embodiments shown in fig. 3 to 12 of the present application.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, and means that there may be three relationships, for example, a and/or B, and may mean that a exists alone, a and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c may represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be single or multiple.
Those of ordinary skill in the art will appreciate that the various elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of electronic hardware and computer software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, any function, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered by the protection scope of the present application. The protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. An icon setting method is applied to electronic equipment and is characterized by comprising the following steps:
acquiring a first icon of at least one application in a target folder;
extracting the theme color of the first icon, and calculating the weight of the theme color;
determining a first color according to the theme color and the weight of the theme color;
determining a second icon applied in the target folder according to the first color; the background color of the second icon matches the first color;
displaying a second icon of the application in the target folder.
2. The method of claim 1, wherein determining the first color according to the theme color and the weight of the theme color comprises:
mapping the theme color to a first numerical value; the first numerical value is a coordinate value of a preset color space;
and calculating a second numerical value according to a first numerical value corresponding to the theme color and the weight of the theme color, wherein the first color is a color corresponding to the second numerical value in the preset color space.
3. The method of claim 2, wherein the determining a second icon applied in the target folder according to the first color comprises:
determining M third values according to the second values; the difference value between each third numerical value and the second numerical value is smaller than a preset threshold value; m is the number of applications in the target folder;
assigning the M third values to applications in the target folder;
and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
4. The method of claim 2, wherein said determining a second icon applied in the target folder according to the first color comprises:
determining M third numerical values including the second numerical value according to a preset step length; m is the number of applications in the target folder;
assigning the M third values to applications in the target folder;
and mapping the third numerical value of the application to a second color, and generating a second icon of the application according to the second color corresponding to the application.
5. The method according to claim 3 or 4, wherein said assigning the M third numerical values to the applications in the target folder comprises:
sequencing the M third numerical values, and acquiring a display sequence applied in the target folder;
and correspondingly distributing the third numerical values to the applications in the target folder according to the arrangement sequence of the third numerical values and the display sequence of the applications in the target folder.
6. The method according to any one of claims 2 to 5, wherein the generating the second icon of the application according to the second color corresponding to the application comprises:
acquiring icon content of a first icon of the application;
generating a first picture; the color of each pixel in the first picture is a second color corresponding to the application;
and synthesizing the first picture and the icon content to obtain the second icon.
7. The method according to any one of claims 2 to 5, wherein the generating a second icon for the application according to a second color corresponding to the application comprises:
acquiring the icon content of the first icon of the application to generate an icon content layer;
generating a back plate layer according to the second color corresponding to the application;
generating a mask layer;
and synthesizing the icon content layer, the back plate layer and the masking layer to obtain the second icon.
8. The method according to claim 6 or 7, wherein the obtaining of the icon content of the first icon of the application comprises:
matting the first icon to obtain the icon content of the first icon; alternatively, the first and second electrodes may be,
and acquiring the icon content of the first icon from the icon content layer of the first icon.
9. The method of claim 2, wherein said determining a second icon applied in the target folder according to the first color comprises:
determining a first numerical value interval to which the second numerical value belongs from a preset numerical value interval;
acquiring M icons from an icon set preset for the first numerical value interval; m is the number of applications in the target folder;
and respectively allocating the M icons to the applications in the target folder.
10. The method according to any one of claims 2 to 10, wherein said calculating a second numerical value according to the first numerical value corresponding to the theme color and the weight of the theme color comprises:
the second value a is calculated using the following formula:
Figure FDA0002804172660000021
wherein m is the number of the acquired first icons, AiA first numerical value, S, corresponding to the theme color of the ith first iconiAnd representing the weight corresponding to the theme color of the ith first icon.
11. The method of claim 1, wherein the theme color and the first color are represented by RGB values, and wherein determining the first color according to the weight of the theme color and the theme color comprises:
calculating the RGB values of the first color using the following formula:
Figure FDA0002804172660000022
c is R, G or B;
wherein m is the number of the acquired first icons, CiIndicates the value of C in the subject color of the ith first icon, SiAnd representing the weight corresponding to the theme color of the ith first icon.
12. The method of any one of claims 1 to 11, further comprising:
acquiring an adjusted color and the weight of the adjusted color;
the determining a first color according to the theme color and the weight of the theme color includes:
calculating the second numerical value according to the theme color, the weight of the theme color, the adjustment color, and the weight of the adjustment color.
13. The method of claim 12, wherein obtaining the adjusted color comprises:
receiving color adjusting setting operation of a user, and obtaining the color indicated by the operation as the adjusting color; alternatively, the first and second liquid crystal display panels may be,
and judging the starting time of reaching a preset time period, and acquiring the color set for the preset time period as the adjusting color.
14. The method according to any one of claims 1 to 13, wherein the weight is a ratio of the theme colors in the corresponding first icon, and the calculating the weight of the theme colors comprises:
acquiring a first number of pixels with the theme color in the first icon, and calculating a ratio of the first number to the total number of the pixels in the first icon to obtain the weight of the theme color; alternatively, the first and second electrodes may be,
and acquiring a first number of pixels with the theme color in the first icon, and taking the first number as the weight of the theme color.
15. The method according to any of claims 2 to 10, wherein the predetermined color space is a hue circle, or a hexadecimal notation of color values.
16. An electronic device, comprising:
one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions which, when executed by the apparatus, cause the apparatus to perform the method of any of claims 1 to 15.
17. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 15.
CN202011361705.8A 2020-11-27 2020-11-27 Icon setting method and electronic equipment Pending CN114625292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011361705.8A CN114625292A (en) 2020-11-27 2020-11-27 Icon setting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011361705.8A CN114625292A (en) 2020-11-27 2020-11-27 Icon setting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN114625292A true CN114625292A (en) 2022-06-14

Family

ID=81894719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011361705.8A Pending CN114625292A (en) 2020-11-27 2020-11-27 Icon setting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114625292A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468158A (en) * 2015-12-22 2016-04-06 努比亚技术有限公司 Color adjustment method and mobile terminal
CN107479781A (en) * 2017-07-20 2017-12-15 努比亚技术有限公司 A kind of update method and terminal of application icon color
CN111327814A (en) * 2018-12-17 2020-06-23 华为技术有限公司 Image processing method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468158A (en) * 2015-12-22 2016-04-06 努比亚技术有限公司 Color adjustment method and mobile terminal
CN107479781A (en) * 2017-07-20 2017-12-15 努比亚技术有限公司 A kind of update method and terminal of application icon color
CN111327814A (en) * 2018-12-17 2020-06-23 华为技术有限公司 Image processing method and electronic equipment
WO2020125410A1 (en) * 2018-12-17 2020-06-25 华为技术有限公司 Image processing method and electronic device

Similar Documents

Publication Publication Date Title
CN109814766B (en) Application display method and electronic equipment
CN112130742B (en) Full screen display method and device of mobile terminal
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
WO2020029306A1 (en) Image capture method and electronic device
CN113722058B (en) Resource calling method and electronic equipment
CN113542580B (en) Method and device for removing light spots of glasses and electronic equipment
CN113821767A (en) Application program authority management method and device and electronic equipment
CN114650363A (en) Image display method and electronic equipment
CN114095599B (en) Message display method and electronic equipment
CN113170037A (en) Method for shooting long exposure image and electronic equipment
CN111431968B (en) Cross-device distribution method of service elements, terminal device and storage medium
CN113810603A (en) Point light source image detection method and electronic equipment
CN110138999B (en) Certificate scanning method and device for mobile terminal
WO2022007707A1 (en) Home device control method, terminal device, and computer-readable storage medium
CN114222020B (en) Position relation identification method and device and readable storage medium
CN114444000A (en) Page layout file generation method and device, electronic equipment and readable storage medium
CN110286975B (en) Display method of foreground elements and electronic equipment
CN114995715B (en) Control method of floating ball and related device
CN113284585A (en) Data display method, terminal device and storage medium
CN114338642B (en) File transmission method and electronic equipment
CN113950045B (en) Subscription data downloading method and electronic equipment
CN115964231A (en) Load model-based assessment method and device
CN113407300A (en) Application false killing evaluation method and related equipment
CN111339513A (en) Data sharing method and device
CN114445522A (en) Brush effect graph generation method, image editing method, device and storage medium

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