IP Library Granted Patent US 9,881,393
Granted Patent B2
US 9,881,393 · App. 14/981,542 · Granted Jan 30, 2018

Method, apparatus, and terminal device for determining color of interface control

Inventors: Kai Qian (Beijing, CN); Jianhua Li (Shenzhen, CN)
Assignee: Huawei Device (Dongguan) Co., Ltd.
G06T11/001G06F3/0481G06F9/4443G06F9/44594
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,881,393
App. No.
14/981,542
Granted
Jan 30, 2018
Kind
B2
Abstract

Embodiments of the disclosure provide a method and an apparatus for determining a color of an interface control, which can enhance visual attraction of a user interface and improve user experience. The method includes: acquiring at least one pixel from a desktop wallpaper; acquiring a color value of the at least one pixel; and determining a color value of each pixel in the interface control according to the color value of the at least one pixel. At least one pixel is determined from a desktop wallpaper, and a color of an interface control is determined according to a color value of the at least one pixel, so that color and style matching between the desktop wallpaper and the interface control can be implemented, thereby enhancing visual attraction of a user interface and improving user experience.

Claims (80)

1. A method for determining a color of pixels for an interface control displayed on a desktop wallpaper on a screen, wherein the method comprises:

acquiring, by a processor, a target image block within the desktop wallpaper on the screen according to at least one display characteristic of the interface control, wherein the target image block comprises at least one pixel, and wherein the display characteristic is taken from the group consisting of:

a position of the interface control on the screen, and

a size of the interface control;

acquiring, by the processor, a color value for each pixel of the target image block; and

determining, by the processor, a color value for each pixel in the interface control,

wherein the color value for each pixel in the interface control is determined using a color value from the color value for each pixel of the target image block.

2. The method according to claim 1 , wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the position of the interface control on the screen,

wherein a position of the target image block within the desktop wallpaper corresponds to the position of the interface control on the screen.

3. The method according to claim 1 , wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the size of the interface control,

wherein a size of the target image block is larger than or equal to the size of the interface control.

4. The method according to claim 1 , wherein:

if a quantity of the at least one pixel is one, determining the color value for each pixel in the interface control includes using the color value of the one pixel to determine the color value for each pixel in the interface control; and

if the quantity of the at least one pixel is at least two, determining the color value for each pixel in the interface control includes using color values of the at least two pixels to determine the color value for each pixel in the interface control.

5. The method according to claim 1 , wherein:

if a quantity of the at least one pixel is at least two, determining the color value for each pixel in the interface control includes:

performing, by the processor, a calculation on the color values of the at least two pixels according to a preset algorithm, and using a result of the calculation as a target color value; and

determining the color value for each pixel in the interface control according to the target value color;

wherein, the preset algorithm comprises at least one of the group consisting of:

using a color value that appears most from the color values of the at least two pixels as the target color value; and

calculating an average of the color values of the at least two pixels, and using the average as the target color value.

6. A non-transitory computer readable medium having stored thereon computer executable instructions for determining a color of pixels for an interface control displayed on a desktop wallpaper on a screen according to a method comprising:

acquiring a target image block within the desktop wallpaper on the screen according to at least one display characteristic of the interface control, wherein the target image block comprises at least one pixel, and wherein the display characteristic is taken from the group consisting of:

a position of the interface control on the screen, and

a size of the interface control;

acquiring a color value for each pixel of the target image block; and

determining a color value for each pixel in the interface control,

wherein the color value for each pixel in the interface control is determined using a color value from the color value for each pixel of the target image block.

7. The non-transitory computer readable medium of claim 6 , wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the position of the interface control on the screen,

wherein a position of the target image block within the desktop wallpaper corresponds to the position of the interface control on the screen.

8. The non-transitory computer readable medium of claim 6 ,

wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the size of the interface control,

wherein a size of the target image block is larger than or equal to the size of the interface control.

9. The non-transitory computer readable medium of claim 6 , wherein:

if a quantity of the at least one pixel is one, determining the color value for each pixel in the interface control includes using the color value of the one pixel to determine the color value for each pixel in the interface control; and

if the quantity of the at least one pixel is at least two, determining the color value for each pixel in the interface control includes using color values of the at least two pixels to determine the color value for each pixel in the interface control.

10. The non-transitory computer readable medium of claim 6 , wherein:

if a quantity of the at least one pixel is at least two, determining the color value for each pixel in the interface control includes:

performing a calculation on the color values of the at least two pixels according to a preset algorithm, and using a result of the calculation as a target color value; and

determining the color value for each pixel in the interface control according to the target value color;

wherein, the preset algorithm comprises at least one of the group consisting of:

using a color value that appears most from the color values of the at least two pixels as the target color value; and

calculating an average of the color values of the at least two pixels, and using the average as the target color value.

11. A terminal device for determining a color of pixels for an interface control displayed on a desktop wallpaper on a screen wherein the terminal device comprises:

a display configured to present an operation interface corresponding to a function provided by the terminal device; and

a processor configured with a non-transitory computer-readable medium including computer-executable instructions for carrying out a method comprising:

acquiring, by a processor, a target image block within the desktop wallpaper on the screen according to at least one display characteristic of the interface control wherein the target image block comprises at least one pixel, and wherein the display characteristic is taken from the group consisting of:

a position of the interface control on the screen, and

a size of the interface control;

acquiring, by the processor, a color value for each pixel of the target image block; and

determining, by the processor, a color value for each pixel in the interface control,

wherein the color value for each pixel in the interface control is determined using a color value from the color value for each pixel of the target image block.

12. The device according to claim 11 , wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the position of the interface control on the screen,

wherein a position of the target image block within the desktop wallpaper is corresponding to the position of the interface control on the screen.

13. The device according to claim 11 , wherein acquiring the target image block within the desktop wallpaper comprises:

acquiring the target image block from the desktop wallpaper according to the size of the interface control,

where a size of the target image block is larger than or equal to the size of the interface control.

14. The device according to claim 11 , wherein:

if a quantity of the at least one pixel is one, determining the color value for each pixel in the interface control includes using the color value of the pixel as the color value for each pixel in the interface control; and

if the quantity of the at least one pixel is at least two, the processor is configured to use color values of the at least two pixels to determine the color value for each pixel in the interface control.

15. The device according to claim 14 , wherein the processor is further configured to carry out the method including:

performing first processing on the color value for each pixel in the interface control, and

acquiring a color value for each pixel after the first processing, wherein the first processing comprises at least one of the group consisting:

blurring processing, transparent processing, blackening processing, or color-changing processing.

16. The device according to claim 11 , wherein:

if a quantity of the at least one pixel is at least two, the processor is configured to:

perform calculation on the color values of the at least two pixels according to a preset algorithm, and use a result of the calculation as the target color value; and

determine a color of the interface control according to the target color value;

wherein the algorithm comprises at least one of the group consisting of:

using a color value that appears most from the color values of the at least two pixels as the target color value; and

calculating an average of the color values of the at least two pixels, and using the average as the target color value.

17. The device according to claim 16 , wherein the processor is further configured to perform the method further comprising:

performing second processing on the target color value to render a second target color value, and

using the second target color value to determine the color value for each pixel in the interface control, wherein the second processing comprises at least one of the group consisting of:

blurring processing, transparent processing, blackening processing, and color-changing processing.

Assignments (5)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 4, 2024
From: GODO KAISHA IP BRIDGE 1
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 066340/0051 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 15, 2023
From: HUAWEI TECHNOLOGIES CO., LTD; HUAWEI DEVICE CO., LTD; HUAWEI DEVICE (SHENZHEN) CO., LTD.
To: GODO KAISHA IP BRIDGE 1
Reel/Frame 064594/0195 →
CHANGE OF NAME Recorded Mar 11, 2019
From: HUAWEI DEVICE (DONGGUAN) CO.,LTD.
To: HUAWEI DEVICE CO.,LTD.
Reel/Frame 048555/0951 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 5, 2017
From: HUAWEI DEVICE CO., LTD.
To: HUAWEI DEVICE (DONGGUAN) CO., LTD.
Reel/Frame 043750/0393 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 12, 2016
From: QIAN, KAI; LI, JIANHUA
To: HUAWEI DEVICE CO., LTD.
Reel/Frame 038576/0017 →
Continuity (2)
Continuation PCTCN2014074297 · Mar 28, 2014
Related Publication 20160117849A1 · Apr 28, 2016