WO2018032500A1 - Interface control method and apparatus - Google Patents

Interface control method and apparatus Download PDF

Info

Publication number
WO2018032500A1
WO2018032500A1 PCT/CN2016/096019 CN2016096019W WO2018032500A1 WO 2018032500 A1 WO2018032500 A1 WO 2018032500A1 CN 2016096019 W CN2016096019 W CN 2016096019W WO 2018032500 A1 WO2018032500 A1 WO 2018032500A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface image
light intensity
interface
current environment
terminal device
Prior art date
Application number
PCT/CN2016/096019
Other languages
French (fr)
Chinese (zh)
Inventor
张跃
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680088149.7A priority Critical patent/CN109564503A/en
Priority to PCT/CN2016/096019 priority patent/WO2018032500A1/en
Publication of WO2018032500A1 publication Critical patent/WO2018032500A1/en

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to an interface control method and apparatus.
  • terminal devices such as smart phones and tablet computers have been widely used.
  • the terminal device can meet the needs of people in office, entertainment, communication, etc.
  • the terminal device can often change the style and style of the interface, such as replacing the wallpaper, applying the icon, and inputting.
  • the variety of interface effects allows users to express their personality through the terminal device, giving users a more enjoyable user experience.
  • changing the style and style of the interface is often cumbersome and time consuming. For example, if the user wants to change the input method skin, firstly, the installation package needs to be manually downloaded from the input method skin provider. After the installation package is installed, The input method skin is found in the setting interface and selected to complete the replacement of the input method skin. The above process of replacing the input method skin requires a user to perform multiple steps, which is very cumbersome.
  • An embodiment of the present invention provides an interface control method and device, which are used to enable a terminal device to automatically select an appropriate interface image according to a light intensity to perform drawing, thereby eliminating the user's cumbersome manual operation and performing interface control steps, which is convenient and time-saving. Thereby improving the user experience.
  • the first aspect of the embodiment of the present invention discloses an interface control method, including:
  • the terminal device receives the first target operation, and if it is required to draw the interface image in response to the first target operation, determining whether the interface control function has been turned on;
  • the first interface image is determined according to the light intensity of the current environment.
  • the stronger the light intensity of the current environment, the lighter the color depth of the first interface image, and the color of the interface image thus drawn can be
  • the current light intensity echoes and reduces irritation to the user's eyes.
  • the object of the interface control includes:
  • At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device.
  • the objects listed above are all part of the user interface, and the interface control thereof can enhance the personalization degree of the terminal device.
  • the method further includes:
  • the terminal device receives the second target operation, and if the first interface image needs to be closed in response to the second target operation, shutting down the hardware device that acquires the light intensity of the current environment of the terminal device. After the first interface image is closed, the terminal device does not need to use the interface control function, thereby turning off the hardware device to help reduce the power consumption of the terminal device.
  • the determining, according to the light intensity of the current environment, the first interface image includes:
  • the terminal device selects an interface image of a light color system as the first interface image; if the light intensity of the current environment is lower than a preset low light threshold And the terminal device selects an interface image of a dark color as the first interface image; or
  • the terminal device determines a light intensity interval in which the light intensity of the current environment is located; and selects an interface image corresponding to the light intensity interval in which the light intensity of the current environment is located as the first interface image.
  • the color of the first interface image determined by the embodiment may be matched with the current light intensity to reduce the stimulation to the eyes of the user, and the user may not easily experience visual fatigue if the terminal device is used for a long time.
  • the determining, according to the light intensity of the current environment, the first interface image includes:
  • the terminal device selects an interface image with a strong contrast between the text color and the background color as the first interface image; if the current environment has low light intensity And in the preset low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the ground color as the first interface image.
  • the first interface image determined in this embodiment can prevent the user from seeing the text in the interface image when the ambient light intensity is too strong; and when the ambient light intensity is weak, the interface image with the soft contrast between the text color and the background color can be reduced. Stimulation of the user's eyes.
  • the hardware device that acquires the light intensity of the current environment of the terminal device includes at least one of an ambient light sensor, a camera, and an illuminance sensor.
  • the light intensity of the current environment of the terminal device is accurately obtained by any one of the above sensors or a combination thereof.
  • the valid period is the night time of the current location.
  • the light intensity of the natural environment changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, the problem of switching too frequently may occur. Therefore, the night time of the current location is determined as the effective period, and the problem of too frequent switching can be avoided.
  • the second aspect of the embodiment of the present invention discloses an interface control apparatus, including:
  • a first receiving unit configured to receive a first target operation
  • a first determining unit configured to determine whether the interface control function has been turned on when the interface image needs to be drawn in response to the first target operation
  • a determining unit configured to determine, when the interface control function is already enabled, whether the current time is within a valid period
  • An acquiring unit configured to acquire, by using a hardware device, a light intensity of a current environment of the terminal device, where the current time is within the valid time period;
  • a second determining unit configured to determine a first interface image according to the light intensity of the current environment; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image;
  • a drawing unit configured to draw the first interface image
  • a display unit configured to display the first interface image.
  • the first interface image is determined according to the light intensity of the current environment.
  • the stronger the light intensity of the current environment, the lighter the color depth of the first interface image, and the color of the interface image thus drawn can correspond to the current light intensity, reducing Stimulation of the user's eyes.
  • the object of the interface control includes:
  • At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device.
  • the objects listed above are all part of the user interface, and the interface control thereof can enhance the personalization degree of the terminal device.
  • the device further includes:
  • a second receiving unit configured to receive a second target operation
  • a closing unit configured to close the first interface image when responding to the second target operation, Turning off the hardware device that obtains the light intensity of the current environment of the terminal device. After the first interface image is closed, the terminal device does not need to use the interface control function, thereby turning off the hardware device to help reduce the power consumption of the terminal device.
  • the second determining unit includes:
  • a first selection sub-unit configured to: when the light intensity of the current environment exceeds a preset glare threshold, select an interface image of a light color system as the first interface image; when the light intensity of the current environment is lower than a pre-pre When the weak light threshold is set, the interface image of the dark color is selected as the first interface image; or
  • the color of the first interface image determined by the embodiment may be matched with the current light intensity to reduce the stimulation to the eyes of the user, and the user may not easily experience visual fatigue if the terminal device is used for a long time.
  • the second determining unit includes:
  • a third selection subunit configured to: when the light intensity of the current environment exceeds the preset glare threshold, select an interface image with a strong contrast between the text color and the background color as the first interface image; when the current environment When the light intensity is lower than the preset low light threshold, an interface image whose text color is softer than the ground color is selected as the first interface image.
  • the first interface image determined in this embodiment can prevent the user from seeing the text in the interface image when the ambient light intensity is too strong; and when the ambient light intensity is weak, the interface image with the soft contrast between the text color and the background color can be reduced. Stimulation of the user's eyes.
  • the hardware device that acquires the light intensity of the current environment of the terminal device includes at least one of an ambient light sensor, a camera, and an illuminance sensor.
  • the light intensity of the current environment of the terminal device is accurately obtained by any one of the above sensors or a combination thereof.
  • the valid period is the night time of the current location.
  • the light intensity of the natural environment changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, the problem of switching too frequently may occur. Therefore, the night time of the current location is determined as the effective period, and the problem of too frequent switching can be avoided.
  • the terminal device obtains the current ring of the terminal device before drawing the interface image.
  • the light intensity of the environment determines the interface image to be drawn; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image selected for drawing the interface image. It can be seen that, in the embodiment of the present invention, the user does not need to perform cumbersome operations to manually perform interface control, and the terminal device can automatically select an appropriate interface image according to the light intensity to perform drawing, which is convenient and time-saving, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of an interface control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart diagram of another interface control method according to an embodiment of the present disclosure.
  • FIG. 3 is a schematic structural diagram of an interface control apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another interface control device according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • An embodiment of the present invention provides an interface control method and device, which are used to enable a terminal device to automatically select an appropriate interface image according to a light intensity to perform drawing, thereby eliminating the user's cumbersome manual operation and performing interface control steps, which is convenient and time-saving. Thereby improving the user experience.
  • the details are described below separately.
  • FIG. 1 is a schematic flowchart diagram of an interface control method according to an embodiment of the present invention.
  • the interface control method shown in FIG. 1 may include the following steps:
  • the terminal device receives the first target operation. If the interface image needs to be drawn in response to the first target operation, it is determined whether the interface control function is enabled.
  • the terminal device may be various terminal devices having a display screen, including a mobile phone, a tablet computer, a personal digital assistant (PDA), and a sales terminal (Point The embodiment of the present invention will not be repeated in the following.
  • the terminal device has the function setting of the interface control, and the user can select whether to open the interface control function according to the needs of the user. If the interface control function is enabled, the terminal device can automatically implement the interface according to the light intensity of the current environment. The image is selected and drawn.
  • the object controlled by the interface includes: at least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device. Then, for different interface control objects, the corresponding first target operations are different.
  • the terminal device determines whether the interface control function has been turned on; if the interface control object For the wallpaper, when the terminal device receives the wake-up screen or returns the wallpaper interface instruction, the corresponding device needs to draw the wallpaper image, and the terminal device determines whether the interface control function has been turned on.
  • the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
  • the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
  • the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing.
  • the stronger the light intensity of the current environment the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
  • the terminal device is pre-configured with a light color interface image library and a dark color interface image library. If the current ambient light intensity exceeds a preset glare threshold, the terminal device selects a light color interface.
  • the image library randomly selects a light-colored interface image as the first interface image; if the current ambient light intensity is lower than the preset low-light threshold, the terminal device randomly selects a dark color from the dark-based interface image library.
  • the interface image of the system is used as the first interface image.
  • the terminal device stores a light intensity measurement table, and divides the possible light intensity range into more than one light intensity interval, and each light intensity interval corresponds to at least one interface image. After the terminal device obtains the light intensity of the current environment through the ambient light sensor or the like, the light intensity interval in the current environment is determined by comparing with the light intensity measurement table, and then the light intensity of the current environment is selected. The interface image corresponding to the intensity interval is used as the first interface image.
  • the terminal device draws the first interface image, and displays the first interface image to obtain an operation performed by the user on the interface.
  • the terminal device can automatically select an interface image corresponding to the light intensity according to the light intensity of the current environment for drawing and displaying, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is more
  • the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
  • FIG. 2 is a schematic flowchart diagram of another interface control method according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
  • the terminal device receives the first target operation, and if the interface image needs to be drawn in response to the first target operation, determining whether the interface control function is enabled.
  • the object controlled by the interface includes: at least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device.
  • the corresponding first target operations are different. For example, if the interface control object is an input method skin, when the terminal device receives the pull input method command, and the input method keyboard image needs to be drawn in response to the command, the terminal device determines whether the interface control function has been turned on; if the interface control object For wallpaper, the terminal device receives the wake-up screen or returns to the wallpaper world. In the case of a face command, in response to the command, a wallpaper image needs to be drawn, and the terminal device determines whether the interface control function has been turned on.
  • the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
  • the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
  • the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing.
  • the stronger the light intensity of the current environment the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
  • the terminal device selects an interface image with a strong contrast between the text color and the background color as the first interface image; if the light intensity of the current environment is lower than By preset the low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the background color as the first interface image.
  • the significance of taking the above measures is that in the case where the light intensity of the current environment is strong (beyond the preset glare threshold), the interface image with the overall style of light color is selected for the user, and the color of the interface image can be compared with the current light.
  • the intensity echoes and helps to reduce irritation to the user's eyes.
  • the human eye will be affected by the details. Therefore, if the text in the interface image is also a light color, and the background color is lacking, Users may not see the text in the interface image.
  • the overall style is selected as a light color, and the text color and bottom
  • the contrasting interface image as the first interface image can be used as a compromise method, which not only reduces the stimulation to the user's eyes to a certain extent, but also avoids the situation where the user cannot see the text in the interface image.
  • the contrast between the color of the text and the background color can be achieved by different interface design color matching methods, for example, selecting two colors with different RGB values as the text color and the background color, for example, selecting positive red (RGB value is 255, 0, 0) As the text color in the interface image, select ivory (RGB values of 250, 255, 240) as the background color of the interface image.
  • the text color and the background color of the interface image need not be set to a strong contrast style. If the light intensity of the current environment is lower than the preset low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the ground color as the first interface image.
  • the contrast between the text color and the background color can also be achieved through a variety of interface design color matching methods, such as selecting two colors of the same color as the text color and background color.
  • the terminal device receives the second target operation. If the first interface image needs to be closed in response to the second target operation, the hardware device that obtains the light intensity of the current environment of the terminal device is turned off.
  • the terminal device when the terminal device receives the second target operation, and the second target operation needs to close the first interface image, the terminal device may correspondingly close the hardware device that acquires the light intensity of the current environment to reduce power consumption. For example, if the terminal device receives an instruction to lock the screen, the instruction causes the terminal device to close the currently displayed interface image, and the terminal device can accordingly turn off the hardware device (such as the ambient light sensor) for acquiring the current ambient light intensity. To help save power in the terminal equipment.
  • the hardware device such as the ambient light sensor
  • the terminal device can automatically select an interface image corresponding to the light intensity for drawing and displaying according to the light intensity of the current environment, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is more
  • the text color of the interface image replaced according to this method is strongly contrasted with the background color, which can prevent the user from being able to see clearly when the ambient light is strong.
  • the text in the interface image occurs.
  • FIG. 3 is a schematic structural diagram of an interface control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus may include:
  • the first receiving unit 301 is configured to receive a first target operation.
  • the first determining unit 302 is configured to determine whether the interface control function has been turned on when the interface image needs to be drawn in response to the first target operation.
  • the corresponding first target operation is different for different interface control objects.
  • the interface control object is an input method skin
  • the first receiving unit 301 receives the pull input method command, and needs to draw the input method keyboard image in response to the command
  • the first determining unit 302 determines whether the interface control function has been If the interface control object is a wallpaper, the first receiving unit 301 needs to draw a wallpaper image in response to the instruction when receiving the wake-up screen or returning the wallpaper interface instruction, and the first determining unit 302 determines whether the interface control function has been turned on.
  • the interface control object includes at least one of a wallpaper displayed by the terminal device, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin.
  • the determining unit 303 is configured to determine whether the current time is within the valid period when the interface control function is already enabled.
  • the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
  • the obtaining unit 304 is configured to acquire the light intensity of the current environment of the terminal device by using the hardware device when the current time is within the valid period.
  • the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
  • the second determining unit 305 is configured to determine the first interface image according to the light intensity of the current environment.
  • the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing.
  • the stronger the light intensity of the current environment the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
  • the terminal device is pre-configured with a light color interface image library and a dark color interface image library. If the light intensity of the current environment exceeds the preset strong light threshold, the second determining unit 305 is shallow. A light-colored interface image is randomly selected as the first interface image in the color interface image library; if the light intensity of the current environment is lower than the preset low light threshold, the second determining unit 305 is from the dark-based interface image library. A dark interface image is randomly selected as the first interface image.
  • the drawing unit 306 is configured to draw the first interface image.
  • the display unit 307 is configured to display the first interface image.
  • the terminal device can automatically select and interface the interface image corresponding to the light intensity according to the light intensity of the current environment, thereby eliminating the cumbersome steps for the user to perform manual operation for interface control, and the user experience is more
  • the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
  • FIG. 4 is a schematic structural diagram of another interface control apparatus according to an embodiment of the present invention.
  • the device shown in FIG. 4 is optimized by the device shown in FIG. 3.
  • the device shown in FIG. 4 further includes:
  • the second receiving unit 308 is configured to receive a second target operation.
  • the closing unit 309 is configured to close the hardware device that acquires the light intensity of the current environment of the terminal device when the first interface image needs to be closed in response to the second target operation.
  • the closing unit 309 can correspondingly close the hardware device for acquiring the light intensity of the current environment, Reduce power consumption.
  • the second receiving unit 308 receives an instruction to lock the screen
  • the instruction causes the terminal device to close the currently displayed interface image, and thus the closing unit 309 can accordingly close the hardware device (such as the environment) for acquiring the current ambient light intensity. Light sensor) to help save power on the terminal.
  • the second determining unit 305 includes:
  • the third selection sub-unit 3051 is configured to: when the light intensity of the current environment exceeds the preset glare threshold, select an interface image with a strong contrast between the text color and the background color as the first interface image; when the light intensity of the current environment is lower than the preset When the low light threshold is selected, an interface image with a soft contrast between the text color and the background color is selected as the first interface image.
  • the terminal device can be automatically selected according to the light intensity of the current environment. Selecting and displaying the interface image corresponding to the light intensity, eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is better; at the same time, in the case of strong light intensity of the current environment, according to The text color of the interface image replaced by this method is strongly contrasted with the background color, which can prevent the user from seeing the text in the interface image when the ambient light is strong.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device may include:
  • the terminal device shown in FIG. 5 includes, but is not limited to, various terminal devices such as a mobile phone, a mobile computer, a tablet computer, and a personal digital assistant (PDA).
  • PDA personal digital assistant
  • the input unit 501 is configured to implement interaction between the user and the terminal device and/or information input into the terminal device.
  • the input unit 501 can be a touch panel, and the touch panel is also called a touch screen or a touch screen, and can collect an operation action touched or approached by the user.
  • the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program.
  • the touch panel may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into The contact coordinates are sent to the processor unit 502.
  • the touch controller can also receive commands from the processor unit 502 and execute them.
  • touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 501 may also be an ambient light sensor for acquiring the light intensity of the current environment of the terminal device.
  • the processor unit 502 is a control center of the terminal device, and connects various parts of the entire terminal device by using various interfaces and lines, by running or executing program codes and/or modules stored in the storage unit 505, and calling the storage in the storage unit 505. Data within to perform various functions of the terminal device and/or process data.
  • the processor unit may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be connected by multiple identical functions or different functions. It is composed of an IC package.
  • the processor unit 502 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (GPU). And a combination of control chips (eg, baseband chips) in the communication unit.
  • the CPU may be a single operation core, and may also include multiple operation cores.
  • the output unit 503 may include, but is not limited to, an image output unit, a sound output, and a tactile output unit.
  • the image output unit is used to output text, pictures, and/or video.
  • the image output unit may include a display panel, such as a display configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or a field emission display (FED). panel.
  • the image output unit may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light.
  • the image output unit may comprise a single display or multiple displays of different sizes.
  • the touch panel used by the input unit 501 can also serve as the display panel of the output unit 503 at the same time.
  • the display panel provides a visual output of a standard keyboard, and the user operates the touch panel with a finger or a stylus according to the visual information that is seen.
  • the touch panel detects a touch or proximity gesture operation thereon, the touch panel determines The location indicated by the touch or proximity gesture is passed to processor unit 502 to retrieve the character at the location on the mapped keyboard to form the input password.
  • the input unit 501 and the output unit 503 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel and the display panel may be integrated into one. Input and output functions of the terminal device.
  • the image output unit can display a standard keyboard for the user to operate by touch.
  • the communication unit 504 is configured to establish a communication link, so that the terminal device establishes a connection with the smart glasses through the communication link, and implements data interaction between the two.
  • the communication unit 504 may include a wireless local area network (Wireless Local Area Network) module, a Bluetooth module, a near field communication (NFC), a baseband module, and the like, and a wireless communication module.
  • Serial bus Universal Serial Bus, USB for short
  • lightning interface Lightning, currently Apple for iPhone6/6s and other devices
  • the storage unit 505 can be used to store program code and modules, and the processor unit 502 executes various functional applications of the terminal and implements data processing by running program code and modules stored in the storage unit 505.
  • the storage unit 505 mainly includes a program storage area and a data storage area, wherein the program stores
  • the storage area may store operating system, program code required for at least one function, such as obtaining program code for mapping characters displayed on the keyboard to form an input password; and the data storage area may store data (such as audio data) created according to the use of the terminal device. , phone book, etc.).
  • the storage unit 505 may include a volatile memory, such as a nonvolatile volatile random access memory (NVRAM) or a phase change random access memory (PRAM).
  • NVRAM nonvolatile volatile random access memory
  • PRAM phase change random access memory
  • a magnetoresistive random access memory MRAM
  • a non-volatile memory such as at least one disk storage device, electronically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), flash memory devices such as NOR flash memory or NAND flash memory.
  • the non-volatile memory stores operating system and program code executed by the processor unit.
  • the processor unit loads the running program and data from the non-volatile memory into the memory and stores the digital content in a large number of storage devices.
  • the operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software.
  • the operating system may be an Android system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
  • Power source 506 is used to power different components of the terminal device to maintain its operation.
  • the power source 506 can be a built-in battery, such as a conventional lithium ion battery, a nickel metal hydride battery, etc., and an external power source that directly supplies power to the terminal device, such as an AC adapter.
  • the power supply 506 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (eg, Light-emitting diodes), as well as any other components associated with the generation, management and distribution of electrical energy of the mobile terminal.
  • the processor unit 502 can call the program code stored in the storage unit 505 for performing the following operations:
  • the light intensity of the current environment of the terminal device is obtained through the input unit 501;
  • the first interface image is drawn, and the first interface image is displayed by the output unit 503.
  • the processor unit 502 can call the program code stored in the storage unit 505, and is also used to perform the following operations:
  • the second target operation is received by the input unit 501, and if the first interface image needs to be closed in response to the second target operation, the hardware device that acquires the light intensity of the current environment of the terminal device is turned off.
  • the foregoing determining the first interface image according to the light intensity of the current environment including:
  • the interface image of the light color system is selected as the first interface image; if the light intensity of the current environment is lower than the preset low light threshold, the interface image of the dark color is selected as the interface image First interface image; or,
  • the light intensity interval in which the light intensity of the current environment is located is determined; an interface image corresponding to the light intensity interval in which the light intensity of the current environment is located is selected as the first interface image.
  • the terminal device can automatically select an interface image corresponding to the light intensity to be drawn and displayed according to the light intensity of the current environment, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience. More preferably; at the same time, the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
  • the storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

Disclosed in emodiments of the present invention are an interface control method and apparatus, an embodiment of the method comprising: a terminal device receiving a first target operation, and if an interface image requires to be rendered in response to said first target operation, determining whether an interface control function has already been enabled; if yes, determining whether a current time is within a valid time interval; if yes, acquiring a light intensity of a current environment of the terminal device by means of a hardware device; determining a first interface image according to the light intensity of the current environment, wherein the stronger the light intensity of the current environment, the weaker the color depth of the first interface image will be; rendering the first interface image, and displaying the first interface image. By means of the embodiments of the present invention, a user is not required to undergo the cumbersome operations of manually controlling an interface, as a terminal device is able to automatically select an appropriate interface image to render according to a light intensity; the present invention is thus convenient and time-saving, thereby improving the user experience.

Description

一种界面控制方法及装置Interface control method and device 技术领域Technical field
本发明涉及终端技术领域,特别涉及一种界面控制方法及装置。The present invention relates to the field of terminal technologies, and in particular, to an interface control method and apparatus.
背景技术Background technique
随着终端技术的发展,智能手机、平板电脑等终端设备已得到广泛的普及。终端设备可以满足人们办公、娱乐、沟通等多方面的需求,除此以外,为了带给用户更加个性化的用户体验,终端设备往往可以改变界面的样式和风格,如更换壁纸、应用图标、输入法皮肤、锁屏界面等。多样的界面效果使得用户可以通过终端设备彰显个性,给用户带来更为愉悦的用户体验。然而改变界面的样式和风格的操作,往往比较繁琐费时,举例来说,若用户想要更换输入法皮肤,首先需要从输入法皮肤提供商处手动下载安装包,在安装包安装完成后,在设置界面中找到下载的输入法皮肤并进行选定,从而完成输入法皮肤的更换。上述更换输入法皮肤的过程,需要用户进行多个步骤的操作,十分繁琐。With the development of terminal technologies, terminal devices such as smart phones and tablet computers have been widely used. The terminal device can meet the needs of people in office, entertainment, communication, etc. In addition, in order to bring more personalized user experience to the user, the terminal device can often change the style and style of the interface, such as replacing the wallpaper, applying the icon, and inputting. Method skin, lock screen interface, etc. The variety of interface effects allows users to express their personality through the terminal device, giving users a more enjoyable user experience. However, changing the style and style of the interface is often cumbersome and time consuming. For example, if the user wants to change the input method skin, firstly, the installation package needs to be manually downloaded from the input method skin provider. After the installation package is installed, The input method skin is found in the setting interface and selected to complete the replacement of the input method skin. The above process of replacing the input method skin requires a user to perform multiple steps, which is very cumbersome.
发明内容Summary of the invention
本发明实施例提供了一种界面控制方法及装置,用于使终端设备根据光线强度自动选择合适的界面图像来进行绘制,省去用户进行繁琐的手动操作进行界面控制的步骤,方便省时,进而提高用户体验。An embodiment of the present invention provides an interface control method and device, which are used to enable a terminal device to automatically select an appropriate interface image according to a light intensity to perform drawing, thereby eliminating the user's cumbersome manual operation and performing interface control steps, which is convenient and time-saving. Thereby improving the user experience.
本发明实施例第一方面公开了一种界面控制方法,包括:The first aspect of the embodiment of the present invention discloses an interface control method, including:
终端设备接收第一目标操作,若响应所述第一目标操作需要绘制界面图像,则确定界面控制功能是否已经开启;The terminal device receives the first target operation, and if it is required to draw the interface image in response to the first target operation, determining whether the interface control function has been turned on;
若是,则判断当前时间是否在有效时段内;If yes, determine whether the current time is within the valid period;
若是,则通过硬件设备获取所述终端设备当前环境的光线强度;If yes, obtaining, by using a hardware device, a light intensity of the current environment of the terminal device;
依据所述当前环境的光线强度确定第一界面图像;所述当前环境的光线强度越强,则所述第一界面图像的颜色深度越浅;Determining, according to the light intensity of the current environment, a first interface image; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image;
绘制所述第一界面图像,并显示所述第一界面图像。Drawing the first interface image and displaying the first interface image.
根据当前环境的光线强度确定第一界面图像进行绘制,当前环境的光线强度越强,则第一界面图像的颜色深度越浅,由此绘制的界面图像的颜色可以与 当前光线强度相呼应,减少对用户眼睛的刺激。The first interface image is determined according to the light intensity of the current environment. The stronger the light intensity of the current environment, the lighter the color depth of the first interface image, and the color of the interface image thus drawn can be The current light intensity echoes and reduces irritation to the user's eyes.
作为一种可选的实施方式,所述界面控制的对象包括:As an optional implementation manner, the object of the interface control includes:
所述终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。上述列举的对象均为用户界面的组成部分,对其进行界面控制可以增强终端设备的个性化程度。At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device. The objects listed above are all part of the user interface, and the interface control thereof can enhance the personalization degree of the terminal device.
作为一种可选的实施方式,在所述显示所述第一界面图像之后,所述方法还包括:As an optional implementation manner, after the displaying the first interface image, the method further includes:
所述终端设备接收第二目标操作,若响应所述第二目标操作需要关闭所述第一界面图像,则关闭获取所述终端设备当前环境的光线强度的所述硬件设备。关闭所述第一界面图像后,终端设备不需要运用界面控制功能,因而关闭所述硬件设备,帮助降低终端设备的能耗。The terminal device receives the second target operation, and if the first interface image needs to be closed in response to the second target operation, shutting down the hardware device that acquires the light intensity of the current environment of the terminal device. After the first interface image is closed, the terminal device does not need to use the interface control function, thereby turning off the hardware device to help reduce the power consumption of the terminal device.
作为一种可选的实施方式,所述依据所述当前环境的光线强度确定第一界面图像,包括:As an optional implementation manner, the determining, according to the light intensity of the current environment, the first interface image includes:
若所述当前环境的光线强度超过预设强光阈值,则所述终端设备选择浅色系的界面图像作为所述第一界面图像;若所述当前环境的光线强度低于预设弱光阈值,则所述终端设备选择深色系的界面图像作为所述第一界面图像;或者,If the light intensity of the current environment exceeds a preset glare threshold, the terminal device selects an interface image of a light color system as the first interface image; if the light intensity of the current environment is lower than a preset low light threshold And the terminal device selects an interface image of a dark color as the first interface image; or
所述终端设备确定所述当前环境的光线强度所在的光线强度区间;选择与所述当前环境的光线强度所在的光线强度区间对应的界面图像作为所述第一界面图像。The terminal device determines a light intensity interval in which the light intensity of the current environment is located; and selects an interface image corresponding to the light intensity interval in which the light intensity of the current environment is located as the first interface image.
本实施例确定的所述第一界面图像,其颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。The color of the first interface image determined by the embodiment may be matched with the current light intensity to reduce the stimulation to the eyes of the user, and the user may not easily experience visual fatigue if the terminal device is used for a long time.
作为一种可选的实施方式,所述依据所述当前环境的光线强度确定第一界面图像,包括:As an optional implementation manner, the determining, according to the light intensity of the current environment, the first interface image includes:
若所述当前环境的光线强度超过所述预设强光阈值,则所述终端设备选择文字颜色与底色对比强烈的界面图像作为所述第一界面图像;若所述当前环境的光线强度低于所述预设弱光阈值,则所述终端设备选择文字颜色与底色对比柔和的界面图像作为所述第一界面图像。If the light intensity of the current environment exceeds the preset glare threshold, the terminal device selects an interface image with a strong contrast between the text color and the background color as the first interface image; if the current environment has low light intensity And in the preset low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the ground color as the first interface image.
本实施例确定的所述第一界面图像,可以避免环境光线强度过强时用户看不清界面图像中的文字;而环境光线强度较弱时,文字颜色与底色对比柔和的界面图像可以减少对用户眼睛的刺激。 The first interface image determined in this embodiment can prevent the user from seeing the text in the interface image when the ambient light intensity is too strong; and when the ambient light intensity is weak, the interface image with the soft contrast between the text color and the background color can be reduced. Stimulation of the user's eyes.
作为一种可选的实施方式,所述获取所述终端设备当前环境的光线强度的所述硬件设备包括:环境光传感器、摄像头以及照度传感器中的至少一项。通过上述传感器中的任意一项或者其组合,精确获取终端设备当前环境的光线强度。As an optional implementation manner, the hardware device that acquires the light intensity of the current environment of the terminal device includes at least one of an ambient light sensor, a camera, and an illuminance sensor. The light intensity of the current environment of the terminal device is accurately obtained by any one of the above sensors or a combination thereof.
作为一种可选的实施方式,所述有效时段为当前所在地的夜晚时间。白天时间自然环境的光线强度的变化十分迅速,因此在白天时间若根据光线强度对界面进行控制的话,会造成切换过于频繁的问题。因而将当前所在地的夜晚时间确定为有效时段,可以避免过于频繁切换的问题。As an optional implementation manner, the valid period is the night time of the current location. During the daytime, the light intensity of the natural environment changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, the problem of switching too frequently may occur. Therefore, the night time of the current location is determined as the effective period, and the problem of too frequent switching can be avoided.
本发明实施例第二方面公开了一种界面控制装置,包括:The second aspect of the embodiment of the present invention discloses an interface control apparatus, including:
第一接收单元,用于接收第一目标操作;a first receiving unit, configured to receive a first target operation;
第一确定单元,用于当响应所述第一目标操作需要绘制界面图像时,确定界面控制功能是否已经开启;a first determining unit, configured to determine whether the interface control function has been turned on when the interface image needs to be drawn in response to the first target operation;
判断单元,用于当所述界面控制功能已经开启时,判断当前时间是否在有效时段内;a determining unit, configured to determine, when the interface control function is already enabled, whether the current time is within a valid period;
获取单元,用于当前时间在所述有效时段内的情况下,通过硬件设备获取所述终端设备当前环境的光线强度;An acquiring unit, configured to acquire, by using a hardware device, a light intensity of a current environment of the terminal device, where the current time is within the valid time period;
第二确定单元,用于依据所述当前环境的光线强度确定第一界面图像;所述当前环境的光线强度越强,则所述第一界面图像的颜色深度越浅;a second determining unit, configured to determine a first interface image according to the light intensity of the current environment; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image;
绘制单元,用于绘制所述第一界面图像;a drawing unit, configured to draw the first interface image;
显示单元,用于显示所述第一界面图像。a display unit, configured to display the first interface image.
根据当前环境的光线强度确定第一界面图像进行绘制,当前环境的光线强度越强,则第一界面图像的颜色深度越浅,由此绘制的界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激。The first interface image is determined according to the light intensity of the current environment. The stronger the light intensity of the current environment, the lighter the color depth of the first interface image, and the color of the interface image thus drawn can correspond to the current light intensity, reducing Stimulation of the user's eyes.
作为一种可选的实施方式,所述界面控制的对象包括:As an optional implementation manner, the object of the interface control includes:
所述终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。上述列举的对象均为用户界面的组成部分,对其进行界面控制可以增强终端设备的个性化程度。At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device. The objects listed above are all part of the user interface, and the interface control thereof can enhance the personalization degree of the terminal device.
作为一种可选的实施方式,所述装置还包括:As an optional implementation manner, the device further includes:
第二接收单元,用于接收第二目标操作;a second receiving unit, configured to receive a second target operation;
关闭单元,用于当响应所述第二目标操作需要关闭所述第一界面图像时, 关闭获取所述终端设备当前环境的光线强度的所述硬件设备。关闭所述第一界面图像后,终端设备不需要运用界面控制功能,因而关闭所述硬件设备,帮助降低终端设备的能耗。a closing unit, configured to close the first interface image when responding to the second target operation, Turning off the hardware device that obtains the light intensity of the current environment of the terminal device. After the first interface image is closed, the terminal device does not need to use the interface control function, thereby turning off the hardware device to help reduce the power consumption of the terminal device.
作为一种可选的实施方式,所述第二确定单元,包括:As an optional implementation manner, the second determining unit includes:
第一选择子单元,用于当所述当前环境的光线强度超过预设强光阈值时,选择浅色系的界面图像作为所述第一界面图像;当所述当前环境的光线强度低于预设弱光阈值时,选择深色系的界面图像作为所述第一界面图像;或者,a first selection sub-unit, configured to: when the light intensity of the current environment exceeds a preset glare threshold, select an interface image of a light color system as the first interface image; when the light intensity of the current environment is lower than a pre-pre When the weak light threshold is set, the interface image of the dark color is selected as the first interface image; or
确定子单元,用于确定所述当前环境的光线强度所在的光线强度区间;第二选择子单元,用于选择与所述当前环境的光线强度所在的光线强度区间对应的界面图像作为所述第一界面图像。Determining a sub-unit for determining a light intensity interval in which the light intensity of the current environment is located; and a second selection sub-unit, configured to select an interface image corresponding to a light intensity interval in which the light intensity of the current environment is located as the An interface image.
本实施例确定的所述第一界面图像,其颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。The color of the first interface image determined by the embodiment may be matched with the current light intensity to reduce the stimulation to the eyes of the user, and the user may not easily experience visual fatigue if the terminal device is used for a long time.
作为一种可选的实施方式,所述第二确定单元,包括:As an optional implementation manner, the second determining unit includes:
第三选择子单元,用于当所述当前环境的光线强度超过所述预设强光阈值时,选择文字颜色与底色对比强烈的界面图像作为所述第一界面图像;当所述当前环境的光线强度低于所述预设弱光阈值时,选择文字颜色与底色对比柔和的界面图像作为所述第一界面图像。a third selection subunit, configured to: when the light intensity of the current environment exceeds the preset glare threshold, select an interface image with a strong contrast between the text color and the background color as the first interface image; when the current environment When the light intensity is lower than the preset low light threshold, an interface image whose text color is softer than the ground color is selected as the first interface image.
本实施例确定的所述第一界面图像,可以避免环境光线强度过强时用户看不清界面图像中的文字;而环境光线强度较弱时,文字颜色与底色对比柔和的界面图像可以减少对用户眼睛的刺激。The first interface image determined in this embodiment can prevent the user from seeing the text in the interface image when the ambient light intensity is too strong; and when the ambient light intensity is weak, the interface image with the soft contrast between the text color and the background color can be reduced. Stimulation of the user's eyes.
作为一种可选的实施方式,所述获取所述终端设备当前环境的光线强度的所述硬件设备包括:环境光传感器、摄像头以及照度传感器中的至少一项。通过上述传感器中的任意一项或者其组合,精确获取终端设备当前环境的光线强度。As an optional implementation manner, the hardware device that acquires the light intensity of the current environment of the terminal device includes at least one of an ambient light sensor, a camera, and an illuminance sensor. The light intensity of the current environment of the terminal device is accurately obtained by any one of the above sensors or a combination thereof.
作为一种可选的实施方式,所述有效时段为当前所在地的夜晚时间。白天时间自然环境的光线强度的变化十分迅速,因此在白天时间若根据光线强度对界面进行控制的话,会造成切换过于频繁的问题。因而将当前所在地的夜晚时间确定为有效时段,可以避免过于频繁切换的问题。As an optional implementation manner, the valid period is the night time of the current location. During the daytime, the light intensity of the natural environment changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, the problem of switching too frequently may occur. Therefore, the night time of the current location is determined as the effective period, and the problem of too frequent switching can be avoided.
从以上技术方案可以看出,本发明实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present invention have the following advantages:
本发明实施例中,终端设备在绘制界面图像前,通过获取终端设备当前环 境的光线强度来确定绘制的界面图像;当前环境的光线强度越强,则被选择用于绘制界面图像的第一界面图像的颜色深度越浅。由此可见,实施本发明实施例,用户不需进行繁琐的操作来手动进行界面控制,终端设备可以根据光线强度自动选择合适的界面图像来进行绘制,方便省时,进而提高用户体验。In the embodiment of the present invention, the terminal device obtains the current ring of the terminal device before drawing the interface image. The light intensity of the environment determines the interface image to be drawn; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image selected for drawing the interface image. It can be seen that, in the embodiment of the present invention, the user does not need to perform cumbersome operations to manually perform interface control, and the terminal device can automatically select an appropriate interface image according to the light intensity to perform drawing, which is convenient and time-saving, thereby improving the user experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例公开的一种界面控制方法的流程示意图;1 is a schematic flowchart of an interface control method according to an embodiment of the present invention;
图2为本发明实施例公开的另一种界面控制方法的流程示意图;FIG. 2 is a schematic flowchart diagram of another interface control method according to an embodiment of the present disclosure;
图3为本发明实施例公开的一种界面控制装置的结构示意图;3 is a schematic structural diagram of an interface control apparatus according to an embodiment of the present invention;
图4为本发明实施例公开的另一种界面控制装置的结构示意图;4 is a schematic structural diagram of another interface control device according to an embodiment of the present invention;
图5为本发明实施例公开的一种终端设备的结构示意图。FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种界面控制方法及装置,用于使终端设备根据光线强度自动选择合适的界面图像来进行绘制,省去用户进行繁琐的手动操作进行界面控制的步骤,方便省时,进而提高用户体验。以下分别进行详细说明。An embodiment of the present invention provides an interface control method and device, which are used to enable a terminal device to automatically select an appropriate interface image according to a light intensity to perform drawing, thereby eliminating the user's cumbersome manual operation and performing interface control steps, which is convenient and time-saving. Thereby improving the user experience. The details are described below separately.
请参阅图1,图1是本发明实施例公开的一种界面控制方法的流程示意图。其中,图1所示的界面控制方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart diagram of an interface control method according to an embodiment of the present invention. The interface control method shown in FIG. 1 may include the following steps:
101、终端设备接收第一目标操作,若响应第一目标操作需要绘制界面图像,则确定界面控制功能是否已经开启。101. The terminal device receives the first target operation. If the interface image needs to be drawn in response to the first target operation, it is determined whether the interface control function is enabled.
本发明实施例中,终端设备可以是各种具有显示屏的终端设备,包括手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、销售终端(Point  of Sales,POS)等,本发明实施例后续不作复述。In the embodiment of the present invention, the terminal device may be various terminal devices having a display screen, including a mobile phone, a tablet computer, a personal digital assistant (PDA), and a sales terminal (Point The embodiment of the present invention will not be repeated in the following.
本发明实施例中,终端设备中具有界面控制的功能设置,用户可以根据自身需要,选择是否开启界面控制功能,若开启该界面控制功能,则终端设备可以实现根据当前环境的光线强度自动对界面图像进行选择和绘制。In the embodiment of the present invention, the terminal device has the function setting of the interface control, and the user can select whether to open the interface control function according to the needs of the user. If the interface control function is enabled, the terminal device can automatically implement the interface according to the light intensity of the current environment. The image is selected and drawn.
本发明实施例中,上述界面控制的对象包括:终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。则针对于不同的界面控制对象,其对应的第一目标操作有所不同。举例来说,若界面控制对象为输入法皮肤,则终端设备接收到拉起输入法指令时,响应该指令需要绘制输入法键盘图像,则终端设备确定界面控制功能是否已经开启;若界面控制对象为壁纸,则终端设备接收到唤醒屏幕或返回壁纸界面指令时,相应该指令需要绘制壁纸图像,则终端设备确定界面控制功能是否已经开启。In the embodiment of the present invention, the object controlled by the interface includes: at least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device. Then, for different interface control objects, the corresponding first target operations are different. For example, if the interface control object is an input method skin, when the terminal device receives the pull input method command, and the input method keyboard image needs to be drawn in response to the command, the terminal device determines whether the interface control function has been turned on; if the interface control object For the wallpaper, when the terminal device receives the wake-up screen or returns the wallpaper interface instruction, the corresponding device needs to draw the wallpaper image, and the terminal device determines whether the interface control function has been turned on.
102、若是,则判断当前时间是否在有效时段内。102. If yes, determine whether the current time is within the valid period.
本发明实施例中,上述有效时段为当前所在地的夜晚时间。由于在白天时间,自然光线的变化较为丰富,比如阴天或者多云天气,终端设备所在的自然环境的光线强度的变化十分迅速,因此在白天时间若根据光线强度对界面进行控制的话,会造成切换过于频繁的问题,影响用户的使用体验,并增加终端设备的功耗。因此,在本发明实施例中,将有效时段设置为终端设备当前所在地的夜晚时间,在夜晚时,终端设备所在环境的光线大多由人造光源产生,如室内的灯光或室外的路灯等,其光线强度变化不频繁,因而可以依据光线强度来决定所选择的界面图像并进行界面图像的绘制。In the embodiment of the present invention, the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
103、若是,则通过硬件设备获取终端设备当前环境的光线强度。103. If yes, obtain the light intensity of the current environment of the terminal device through the hardware device.
本发明实施例中,上述获取终端设备当前环境的光线强度的硬件设备可以为:环境光传感器、摄像头以及照度传感器,具体使用何种硬件设备,本发明实施例不作限制。In the embodiment of the present invention, the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
104、依据上述当前环境的光线强度确定第一界面图像。104. Determine a first interface image according to the light intensity of the current environment.
本发明实施例中,依据当前环境的光线强度确定第一界面图像,该第一界面图像为后续用于绘制的界面图像。其中,当前环境的光线强度越强,则第一界面图像的颜色深度越浅,因而界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。 In the embodiment of the present invention, the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing. Wherein, the stronger the light intensity of the current environment, the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
作为一种可选的实施方式,终端设备中预设有浅色系界面图像库与深色系界面图像库,若当前环境的光线强度超过预设强光阈值,则终端设备从浅色系界面图像库中随机选择一款浅色系的界面图像作为第一界面图像;若当前环境的光线强度低于预设弱光阈值,则终端设备从深色系界面图像库中随机选择一款深色系的界面图像作为第一界面图像。As an optional implementation manner, the terminal device is pre-configured with a light color interface image library and a dark color interface image library. If the current ambient light intensity exceeds a preset glare threshold, the terminal device selects a light color interface. The image library randomly selects a light-colored interface image as the first interface image; if the current ambient light intensity is lower than the preset low-light threshold, the terminal device randomly selects a dark color from the dark-based interface image library. The interface image of the system is used as the first interface image.
作为另一种可选的实施方式,终端设备中存储有光线强度度量表,将可能的光线强度范围划分为多于一个光线强度区间,并且每个光线强度区间对应至少一款界面图像。当终端设备通过环境光传感器等获取了当前环境的光线强度后,通过与上述光线强度度量表进行比较,确定当前环境的光线强度所在的光线强度区间,之后选择与当前环境的光线强度所在的光线强度区间对应的界面图像作为第一界面图像。As another optional implementation manner, the terminal device stores a light intensity measurement table, and divides the possible light intensity range into more than one light intensity interval, and each light intensity interval corresponds to at least one interface image. After the terminal device obtains the light intensity of the current environment through the ambient light sensor or the like, the light intensity interval in the current environment is determined by comparing with the light intensity measurement table, and then the light intensity of the current environment is selected. The interface image corresponding to the intensity interval is used as the first interface image.
105、绘制上述第一界面图像,并显示上述第一界面图像。105. Draw the first interface image and display the first interface image.
本发明实施例中,在依据当前环境的光线强度确定了上述第一界面图像后,终端设备绘制上述第一界面图像,并显示上述第一界面图像,以获取用户在此界面上进行的操作。In the embodiment of the present invention, after determining the first interface image according to the light intensity of the current environment, the terminal device draws the first interface image, and displays the first interface image to obtain an operation performed by the user on the interface.
在图1所描述的方法中,终端设备可以根据当前环境的光线强度自动选择与光线强度相呼应的界面图像进行绘制和显示,省去了用户进行手动操作进行界面控制的繁琐步骤,用户体验更好;与此同时,根据此方法更换的界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。In the method described in FIG. 1, the terminal device can automatically select an interface image corresponding to the light intensity according to the light intensity of the current environment for drawing and displaying, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is more At the same time, the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
请参阅图2,图2是本发明实施例公开的另一种界面控制方法的流程示意图。如图2所示,该方法可以包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart diagram of another interface control method according to an embodiment of the present invention. As shown in FIG. 2, the method may include the following steps:
201、终端设备接收第一目标操作,若响应第一目标操作需要绘制界面图像,则确定界面控制功能是否已经开启。201. The terminal device receives the first target operation, and if the interface image needs to be drawn in response to the first target operation, determining whether the interface control function is enabled.
本发明实施例中,上述界面控制的对象包括:终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。则针对于不同的界面控制对象,其对应的第一目标操作有所不同。举例来说,若界面控制对象为输入法皮肤,则终端设备接收到拉起输入法指令时,响应该指令需要绘制输入法键盘图像,则终端设备确定界面控制功能是否已经开启;若界面控制对象为壁纸,则终端设备接收到唤醒屏幕或返回壁纸界 面指令时,响应该指令需要绘制壁纸图像,则终端设备确定界面控制功能是否已经开启。In the embodiment of the present invention, the object controlled by the interface includes: at least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device. Then, for different interface control objects, the corresponding first target operations are different. For example, if the interface control object is an input method skin, when the terminal device receives the pull input method command, and the input method keyboard image needs to be drawn in response to the command, the terminal device determines whether the interface control function has been turned on; if the interface control object For wallpaper, the terminal device receives the wake-up screen or returns to the wallpaper world. In the case of a face command, in response to the command, a wallpaper image needs to be drawn, and the terminal device determines whether the interface control function has been turned on.
202、若是,则判断当前时间是否在有效时段内。202. If yes, determine whether the current time is within a valid period.
本发明实施例中,上述有效时段为当前所在地的夜晚时间。由于在白天时间,自然光线的变化较为丰富,比如阴天或者多云天气,终端设备所在的自然环境的光线强度的变化十分迅速,因此在白天时间若根据光线强度对界面进行控制的话,会造成切换过于频繁的问题,影响用户的使用体验,并增加终端设备的功耗。因此,在本发明实施例中,将有效时段设置为终端设备当前所在地的夜晚时间,在夜晚时,终端设备所在环境的光线大多由人造光源产生,如室内的灯光或室外的路灯等,其光线强度变化不频繁,因而可以依据光线强度来决定所选择的界面图像并进行界面图像的绘制。In the embodiment of the present invention, the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
203、若是,则通过硬件设备获取终端设备当前环境的光线强度。203. If yes, obtain the light intensity of the current environment of the terminal device through the hardware device.
本发明实施例中,上述获取终端设备当前环境的光线强度的硬件设备可以为:环境光传感器、摄像头以及照度传感器,具体使用何种硬件设备,本发明实施例不作限制。In the embodiment of the present invention, the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
204、依据上述当前环境的光线强度确定第一界面图像。204. Determine a first interface image according to the light intensity of the current environment.
本发明实施例中,依据当前环境的光线强度确定第一界面图像,该第一界面图像为后续用于绘制的界面图像。其中,当前环境的光线强度越强,则第一界面图像的颜色深度越浅,因而界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。In the embodiment of the present invention, the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing. Wherein, the stronger the light intensity of the current environment, the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
作为一种可选的实施方式,若当前环境的光线强度超过预设强光阈值,则终端设备选择文字颜色与底色对比强烈的界面图像作为第一界面图像;若当前环境的光线强度低于预设弱光阈值,则终端设备选择文字颜色与底色对比柔和的界面图像作为第一界面图像。As an optional implementation manner, if the light intensity of the current environment exceeds the preset glare threshold, the terminal device selects an interface image with a strong contrast between the text color and the background color as the first interface image; if the light intensity of the current environment is lower than By preset the low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the background color as the first interface image.
采取上述措施的意义在于,在当前环境的光线强度较强的情况下(超过预设强光阈值),选择整体风格为浅色系的界面图像来为用户呈现,界面图像的颜色可以与当前光线强度相呼应,有助于减少对用户眼睛的刺激。然而,基于人眼的视觉特性,在接收的光线强度较强的情况下,将影响人眼对细节的感知,因而,界面图像中的文字若同样是浅色系,与底色缺乏对比的话,用户可能会看不清界面图像中的文字。因此,选取总体风格为浅色系,并且文字颜色与底 色对比强烈的界面图像作为第一界面图像,可以作为一个折衷的方法,既在一定程度上减少了对用户眼睛的刺激,又避免了用户看不清界面图像中的文字的情况的发生。The significance of taking the above measures is that in the case where the light intensity of the current environment is strong (beyond the preset glare threshold), the interface image with the overall style of light color is selected for the user, and the color of the interface image can be compared with the current light. The intensity echoes and helps to reduce irritation to the user's eyes. However, based on the visual characteristics of the human eye, in the case where the received light intensity is strong, the human eye will be affected by the details. Therefore, if the text in the interface image is also a light color, and the background color is lacking, Users may not see the text in the interface image. Therefore, the overall style is selected as a light color, and the text color and bottom The contrasting interface image as the first interface image can be used as a compromise method, which not only reduces the stimulation to the user's eyes to a certain extent, but also avoids the situation where the user cannot see the text in the interface image.
其中,使文字颜色与底色对比强烈可以通过不同的界面设计配色方法实现,例如选择RGB值相差较大的两种颜色作为文字颜色和底色,比如选择正红色(RGB值为255,0,0)作为界面图像中的文字颜色,选择象牙白(RGB值为250,255,240)作为界面图像底色。Among them, the contrast between the color of the text and the background color can be achieved by different interface design color matching methods, for example, selecting two colors with different RGB values as the text color and the background color, for example, selecting positive red (RGB value is 255, 0, 0) As the text color in the interface image, select ivory (RGB values of 250, 255, 240) as the background color of the interface image.
而与之相对应,在当前环境的光线强度较弱的情况下,人眼对于细节有较好的感知时,则不需要将界面图像的文字颜色和底色设置成对比强烈的风格,因此,若当前环境的光线强度低于预设弱光阈值,终端设备选择文字颜色与底色对比柔和的界面图像作为第一界面图像。使文字颜色与底色对比柔和同样可以通过多种界面设计配色方法实现,例如选择同色系的两种颜色作为文字颜色和底色。Correspondingly, when the light intensity of the current environment is weak, when the human eye has a good perception of the details, the text color and the background color of the interface image need not be set to a strong contrast style. If the light intensity of the current environment is lower than the preset low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the ground color as the first interface image. The contrast between the text color and the background color can also be achieved through a variety of interface design color matching methods, such as selecting two colors of the same color as the text color and background color.
205、绘制上述第一界面图像,并显示上述第一界面图像。205. Draw the first interface image, and display the first interface image.
206、终端设备接收第二目标操作,若响应第二目标操作需要关闭上述第一界面图像,则关闭获取终端设备当前环境的光线强度的硬件设备。206. The terminal device receives the second target operation. If the first interface image needs to be closed in response to the second target operation, the hardware device that obtains the light intensity of the current environment of the terminal device is turned off.
本发明实施例中,当终端设备接收到第二目标操作,而第二目标操作需要关闭上述第一界面图像时,终端设备可以相应关闭获取当前环境的光线强度的硬件设备,以降低功耗。举例来说,若终端设备接收到锁定屏幕的指令,该指令使得终端设备需要关闭当前显示的界面图像,因而终端设备可以相应关闭用于获取当前环境光线强度的硬件设备(如环境光传感器),以助于节省终端设备的电量。In the embodiment of the present invention, when the terminal device receives the second target operation, and the second target operation needs to close the first interface image, the terminal device may correspondingly close the hardware device that acquires the light intensity of the current environment to reduce power consumption. For example, if the terminal device receives an instruction to lock the screen, the instruction causes the terminal device to close the currently displayed interface image, and the terminal device can accordingly turn off the hardware device (such as the ambient light sensor) for acquiring the current ambient light intensity. To help save power in the terminal equipment.
在图2所描述的方法中,终端设备可以根据当前环境的光线强度自动选择与光线强度相呼应的界面图像进行绘制和显示,省去了用户进行手动操作进行界面控制的繁琐步骤,用户体验更好;与此同时,在终端设备当前环境的光线强度较强的情况下,根据此方法更换的界面图像的文字颜色与底色对比强烈,可以避免用户在环境光线较强的情况下无法看清界面图像中文字的情况发生。In the method described in FIG. 2, the terminal device can automatically select an interface image corresponding to the light intensity for drawing and displaying according to the light intensity of the current environment, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is more At the same time, in the case where the light intensity of the current environment of the terminal device is strong, the text color of the interface image replaced according to this method is strongly contrasted with the background color, which can prevent the user from being able to see clearly when the ambient light is strong. The text in the interface image occurs.
请参阅图3,图3是本发明实施例公开的一种界面控制装置的结构示意图。如图3所示,该装置可以包括:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of an interface control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus may include:
第一接收单元301,用于接收第一目标操作。 The first receiving unit 301 is configured to receive a first target operation.
第一确定单元302,用于当响应上述第一目标操作需要绘制界面图像时,确定界面控制功能是否已经开启。The first determining unit 302 is configured to determine whether the interface control function has been turned on when the interface image needs to be drawn in response to the first target operation.
本发明实施例中,针对于不同的界面控制对象,其对应的第一目标操作有所不同。举例来说,若界面控制对象为输入法皮肤,则第一接收单元301接收到拉起输入法指令时,响应该指令需要绘制输入法键盘图像,则第一确定单元302确定界面控制功能是否已经开启;若界面控制对象为壁纸,则第一接收单元301接收到唤醒屏幕或返回壁纸界面指令时,响应该指令需要绘制壁纸图像,则第一确定单元302确定界面控制功能是否已经开启。In the embodiment of the present invention, the corresponding first target operation is different for different interface control objects. For example, if the interface control object is an input method skin, when the first receiving unit 301 receives the pull input method command, and needs to draw the input method keyboard image in response to the command, the first determining unit 302 determines whether the interface control function has been If the interface control object is a wallpaper, the first receiving unit 301 needs to draw a wallpaper image in response to the instruction when receiving the wake-up screen or returning the wallpaper interface instruction, and the first determining unit 302 determines whether the interface control function has been turned on.
上述界面控制对象包括:终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。The interface control object includes at least one of a wallpaper displayed by the terminal device, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin.
判断单元303,用于当上述界面控制功能已经开启时,判断当前时间是否在有效时段内。The determining unit 303 is configured to determine whether the current time is within the valid period when the interface control function is already enabled.
本发明实施例中,上述有效时段为当前所在地的夜晚时间。由于在白天时间,自然光线的变化较为丰富,比如阴天或者多云天气,终端设备所在的自然环境的光线强度的变化十分迅速,因此在白天时间若根据光线强度对界面进行控制的话,会造成切换过于频繁的问题,影响用户的使用体验,并增加终端设备的功耗。因此,在本发明实施例中,将有效时段设置为终端设备当前所在地的夜晚时间,在夜晚时,终端设备所在环境的光线大多由人造光源产生,如室内的灯光或室外的路灯等,其光线强度变化不频繁,因而可以依据光线强度来决定所选择的界面图像并进行界面图像的绘制。In the embodiment of the present invention, the valid period is the night time of the current location. Since the natural light changes during the daytime, such as cloudy or cloudy weather, the light intensity of the natural environment where the terminal equipment is located changes very rapidly. Therefore, if the interface is controlled according to the light intensity during the daytime, it will cause switching. Too frequent problems affect the user experience and increase the power consumption of the terminal device. Therefore, in the embodiment of the present invention, the effective period is set to the night time of the current location of the terminal device, and at night, the light of the environment where the terminal device is located is mostly generated by an artificial light source, such as indoor lighting or outdoor street lights, etc. The intensity changes are infrequent, so the selected interface image can be determined according to the light intensity and the interface image can be drawn.
获取单元304,用于当前时间在上述有效时段内的情况下,通过硬件设备获取终端设备当前环境的光线强度。The obtaining unit 304 is configured to acquire the light intensity of the current environment of the terminal device by using the hardware device when the current time is within the valid period.
本发明实施例中,上述获取终端设备当前环境的光线强度的硬件设备可以为:环境光传感器、摄像头以及照度传感器,具体使用何种硬件设备,本发明实施例不作限制。In the embodiment of the present invention, the foregoing hardware device for obtaining the light intensity of the current environment of the terminal device may be: an ambient light sensor, a camera, and an illuminance sensor, and the specific hardware device is used in the embodiment of the present invention.
第二确定单元305,用于依据上述当前环境的光线强度确定第一界面图像。The second determining unit 305 is configured to determine the first interface image according to the light intensity of the current environment.
本发明实施例中,依据当前环境的光线强度确定第一界面图像,该第一界面图像为后续用于绘制的界面图像。其中,当前环境的光线强度越强,则第一界面图像的颜色深度越浅,因而界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。 In the embodiment of the present invention, the first interface image is determined according to the light intensity of the current environment, and the first interface image is an interface image for subsequent drawing. Wherein, the stronger the light intensity of the current environment, the lighter the color depth of the first interface image, so the color of the interface image can correspond to the current light intensity, reducing the stimulation to the user's eyes, and if the user uses the terminal device for a long time. It is not easy to produce visual fatigue.
作为一种可选的实施方式,终端设备中预设有浅色系界面图像库与深色系界面图像库,若当前环境的光线强度超过预设强光阈值,则第二确定单元305从浅色系界面图像库中随机选择一款浅色系的界面图像作为第一界面图像;若当前环境的光线强度低于预设弱光阈值,则第二确定单元305从深色系界面图像库中随机选择一款深色系的界面图像作为第一界面图像。As an optional implementation manner, the terminal device is pre-configured with a light color interface image library and a dark color interface image library. If the light intensity of the current environment exceeds the preset strong light threshold, the second determining unit 305 is shallow. A light-colored interface image is randomly selected as the first interface image in the color interface image library; if the light intensity of the current environment is lower than the preset low light threshold, the second determining unit 305 is from the dark-based interface image library. A dark interface image is randomly selected as the first interface image.
绘制单元306,用于绘制上述第一界面图像。The drawing unit 306 is configured to draw the first interface image.
显示单元307,用于显示上述第一界面图像。The display unit 307 is configured to display the first interface image.
利用图3所描述的装置,可以使终端设备根据当前环境的光线强度自动选择与光线强度相呼应的界面图像进行绘制和显示,省去了用户进行手动操作进行界面控制的繁琐步骤,用户体验更好;与此同时,根据此方法更换的界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。By using the device described in FIG. 3, the terminal device can automatically select and interface the interface image corresponding to the light intensity according to the light intensity of the current environment, thereby eliminating the cumbersome steps for the user to perform manual operation for interface control, and the user experience is more At the same time, the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
请一并参阅图4,图4是本发明实施例公开的另一种界面控制装置的结构示意图。其中,图4所示的装置是由图3所示的装置进行优化得到的,与图3所示的装置相比,图4所示的装置还包括:Referring to FIG. 4, FIG. 4 is a schematic structural diagram of another interface control apparatus according to an embodiment of the present invention. The device shown in FIG. 4 is optimized by the device shown in FIG. 3. Compared with the device shown in FIG. 3, the device shown in FIG. 4 further includes:
第二接收单元308,用于接收第二目标操作。The second receiving unit 308 is configured to receive a second target operation.
关闭单元309,用于当响应上述第二目标操作需要关闭第一界面图像时,关闭获取终端设备当前环境的光线强度的硬件设备。The closing unit 309 is configured to close the hardware device that acquires the light intensity of the current environment of the terminal device when the first interface image needs to be closed in response to the second target operation.
本发明实施例中,当第二接收单元308接收到第二目标操作,而第二目标操作需要关闭上述第一界面图像时,关闭单元309可以相应关闭获取当前环境的光线强度的硬件设备,以降低功耗。举例来说,若第二接收单元308接收到锁定屏幕的指令,该指令使得终端设备需要关闭当前显示的界面图像,因而关闭单元309可以相应关闭用于获取当前环境光线强度的硬件设备(如环境光传感器),以助于节省终端设备的电量。In the embodiment of the present invention, when the second receiving unit 308 receives the second target operation, and the second target operation needs to close the first interface image, the closing unit 309 can correspondingly close the hardware device for acquiring the light intensity of the current environment, Reduce power consumption. For example, if the second receiving unit 308 receives an instruction to lock the screen, the instruction causes the terminal device to close the currently displayed interface image, and thus the closing unit 309 can accordingly close the hardware device (such as the environment) for acquiring the current ambient light intensity. Light sensor) to help save power on the terminal.
作为一种可选的实施方式,第二确定单元305,包括:As an optional implementation manner, the second determining unit 305 includes:
第三选择子单元3051,用于当当前环境的光线强度超过预设强光阈值时,选择文字颜色与底色对比强烈的界面图像作为第一界面图像;当当前环境的光线强度低于预设弱光阈值时,选择文字颜色与底色对比柔和的界面图像作为第一界面图像。The third selection sub-unit 3051 is configured to: when the light intensity of the current environment exceeds the preset glare threshold, select an interface image with a strong contrast between the text color and the background color as the first interface image; when the light intensity of the current environment is lower than the preset When the low light threshold is selected, an interface image with a soft contrast between the text color and the background color is selected as the first interface image.
利用图4所描述的装置,可以使终端设备根据当前环境的光线强度自动选 择与光线强度相呼应的界面图像进行绘制和显示,省去了用户进行手动操作进行界面控制的繁琐步骤,用户体验更好;与此同时,在当前环境的光线强度较强的情况下,根据此方法更换的界面图像的文字颜色与底色对比强烈,可以避免用户在环境光线较强的情况下无法看清界面图像中文字的情况发生。Using the device described in FIG. 4, the terminal device can be automatically selected according to the light intensity of the current environment. Selecting and displaying the interface image corresponding to the light intensity, eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience is better; at the same time, in the case of strong light intensity of the current environment, according to The text color of the interface image replaced by this method is strongly contrasted with the background color, which can prevent the user from seeing the text in the interface image when the ambient light is strong.
请参阅图5,图5是本发明实施例公开的一种终端设备的结构示意图。如图5所示,该终端设备可以包括:Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 5, the terminal device may include:
输入单元501、处理器单元502、输出单元503、通信单元504、存储单元505和电源506等组件。这些组件通过一条或多条总线进行通信。本领域技术人员可以理解,图5所示的装置的结构并不构成对本发明的限定,它既可以是总线形结构,也可以是星型结构,还可以包括比图5所示的结构更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施方式中,图5所示的终端设备包括但不限于移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)等各种终端设备。Components such as an input unit 501, a processor unit 502, an output unit 503, a communication unit 504, a storage unit 505, and a power source 506. These components communicate over one or more buses. It will be understood by those skilled in the art that the structure of the apparatus shown in FIG. 5 does not constitute a limitation of the present invention, and it may be a bus-shaped structure or a star-shaped structure, and may further include more structures than those shown in FIG. Or fewer parts, or combine some parts, or different parts. In the embodiment of the present invention, the terminal device shown in FIG. 5 includes, but is not limited to, various terminal devices such as a mobile phone, a mobile computer, a tablet computer, and a personal digital assistant (PDA).
输入单元501用于实现用户与终端设备的交互和/或信息输入到终端设备中。在本发明具体实施方式中,输入单元501可以是触控面板,触控面板也称为触摸屏或触控屏,可收集用户在其上触摸或接近的操作动作。比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或接近触控面板的位置的操作动作,并根据预先设定的程式驱动相应的连接装置。可选的,触控面板可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸操作,并将检测到的触摸操作转换为电信号,以及将电信号传送给触摸控制器;触摸控制器从触摸检测装置上接收电信号,并将它转换成触点坐标,再送给处理器单元502。触摸控制器还可以接收处理器单元502发来的命令并执行。此外,可以采用电阻式、电容式、红外线(Infrared)以及表面声波等多种类型实现触控面板。除此之外,在本发明具体实施方式中,输入单元501还可以是环境光传感器,用以获取终端设备当前环境的光线强度。The input unit 501 is configured to implement interaction between the user and the terminal device and/or information input into the terminal device. In the embodiment of the present invention, the input unit 501 can be a touch panel, and the touch panel is also called a touch screen or a touch screen, and can collect an operation action touched or approached by the user. For example, the user uses an action of any suitable object or accessory such as a finger or a stylus on or near the touch panel, and drives the corresponding connecting device according to a preset program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Wherein the touch detection device detects a touch operation of the user, converts the detected touch operation into an electrical signal, and transmits the electrical signal to the touch controller; the touch controller receives the electrical signal from the touch detection device and converts it into The contact coordinates are sent to the processor unit 502. The touch controller can also receive commands from the processor unit 502 and execute them. In addition, touch panels can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition, in the embodiment of the present invention, the input unit 501 may also be an ambient light sensor for acquiring the light intensity of the current environment of the terminal device.
处理器单元502为终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储单元505内的程序代码和/或模块,以及调用存储在存储单元505内的数据,以执行终端设备的各种功能和/或处理数据。处理器单元可以由集成电路(Integrated Circuit,简称IC)组成,例如可以由单颗封装的IC所组成,也可以由连接多颗相同功能或不同功能的 封装IC而组成。举例来说,处理器单元502可以仅包括中央处理器(Central ProcessingUnit,简称CPU),也可以是CPU、数字信号处理器(digital signal processor,简称DSP)、图形处理器(Graphic Processing Unit,简称GPU)及通信单元中的控制芯片(例如基带芯片)的组合。在本发明实施方式中,CPU可以是单运算核心,也可以包括多运算核心。The processor unit 502 is a control center of the terminal device, and connects various parts of the entire terminal device by using various interfaces and lines, by running or executing program codes and/or modules stored in the storage unit 505, and calling the storage in the storage unit 505. Data within to perform various functions of the terminal device and/or process data. The processor unit may be composed of an integrated circuit (IC), for example, may be composed of a single packaged IC, or may be connected by multiple identical functions or different functions. It is composed of an IC package. For example, the processor unit 502 may include only a central processing unit (CPU), or may be a CPU, a digital signal processor (DSP), or a graphics processing unit (GPU). And a combination of control chips (eg, baseband chips) in the communication unit. In the embodiment of the present invention, the CPU may be a single operation core, and may also include multiple operation cores.
输出单元503可以包括但不限于影像输出单元、声音输出和触感输出单元。影像输出单元用于输出文字、图片和/或视频。影像输出单元可包括显示面板,例如采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)、场发射显示器(field emission display,简称FED)等形式来配置的显示面板。或者影像输出单元可以包括反射式显示器,例如电泳式(electrophoretic)显示器,或利用光干涉调变技术(Interferometric Modulation of Light)的显示器。影像输出单元可以包括单个显示器或不同尺寸的多个显示器。在本发明的具体实施方式中,上述输入单元501所采用的触控面板亦可同时作为输出单元503的显示面板。例如,显示面板提供标准键盘的视觉输出,用户根据所看到的视觉信息利用手指或触控笔等操作触控面板,当触控面板检测到在其上的触摸或接近的手势操作后,确定触摸或接近手势所指示的位置,传送给处理器单元502获取映射键盘上该位置的字符以形成输入密码。虽然在图5中,输入单元501与输出单元503是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板与显示面板集成一体而实现终端设备的输入和输出功能。例如,影像输出单元可以显示标准键盘,以供用户通过触控方式进行操作。The output unit 503 may include, but is not limited to, an image output unit, a sound output, and a tactile output unit. The image output unit is used to output text, pictures, and/or video. The image output unit may include a display panel, such as a display configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or a field emission display (FED). panel. Alternatively, the image output unit may comprise a reflective display, such as an electrophoretic display, or a display utilizing an Interferometric Modulation of Light. The image output unit may comprise a single display or multiple displays of different sizes. In the embodiment of the present invention, the touch panel used by the input unit 501 can also serve as the display panel of the output unit 503 at the same time. For example, the display panel provides a visual output of a standard keyboard, and the user operates the touch panel with a finger or a stylus according to the visual information that is seen. When the touch panel detects a touch or proximity gesture operation thereon, the touch panel determines The location indicated by the touch or proximity gesture is passed to processor unit 502 to retrieve the character at the location on the mapped keyboard to form the input password. Although in FIG. 5, the input unit 501 and the output unit 503 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel and the display panel may be integrated into one. Input and output functions of the terminal device. For example, the image output unit can display a standard keyboard for the user to operate by touch.
通信单元504用于建立通信链接,使终端设备通过通信链接与智能眼镜建立连接,实现两者间的数据交互。通信单元504可以包括无线局域网(Wireless Local Area Network,简称wireless LAN)模块、蓝牙模块、近距离无线通信(Near Field Communication,简称NFC)、基带(Base Band)模块等无线通信模块和以太网、通用串行总线(Universal Serial Bus,简称USB)、闪电接口(Lightning,目前Apple用于iPhone6/6s等设备)等有线通信模块。The communication unit 504 is configured to establish a communication link, so that the terminal device establishes a connection with the smart glasses through the communication link, and implements data interaction between the two. The communication unit 504 may include a wireless local area network (Wireless Local Area Network) module, a Bluetooth module, a near field communication (NFC), a baseband module, and the like, and a wireless communication module. Serial bus (Universal Serial Bus, USB for short), lightning interface (Lightning, currently Apple for iPhone6/6s and other devices) and other wired communication modules.
存储单元505可用于存储程序代码以及模块,处理器单元502通过运行存储在存储单元505的程序代码以及模块,从而执行终端的各种功能应用以及实现数据处理。存储单元505主要包括程序存储区和数据存储区,其中,程序存 储区可存储操作系统、至少一个功能所需的程序代码,比如获取映射键盘上显示的字符以形成输入密码的程序代码;数据存储区可存储根据终端设备的使用所创建的数据(比如音频数据、电话本等)等。在本发明具体实施方式中,存储单元505可以包括易失性存储器,例如非挥发性动态随机存取内存(Nonvolatile RandomAccess Memory,简称NVRAM)、相变化随机存取内存(Phase Change RAM,简称PRAM)、磁阻式随机存取内存(Magetoresistive RAM,简称MRAM)等,还可以包括非易失性存储器,例如至少一个磁盘存储器件、电子可抹除可规划只读存储器(Electrically Erasable ProgrammableRead-OnlyMemory,简称EEPROM)、闪存器件,例如反或闪存(NOR flash memory)或是反及闪存(NAND flash memory)。非易失存储器储存处理器单元所执行的操作系统及程序代码。处理器单元从非易失存储器加载运行程序与数据到内存并将数字内容储存于大量储存装置中。操作系统包括用于控制和管理常规系统任务,例如内存管理、存储设备控制、电源管理等,以及有助于各种软硬件之间通信的各种组件和/或驱动器。在本发明实施方式中,操作系统可以是Google公司的Android系统、Apple公司开发的iOS系统或Microsoft公司开发的Windows操作系统等,或者是Vxworks这类的嵌入式操作系统。The storage unit 505 can be used to store program code and modules, and the processor unit 502 executes various functional applications of the terminal and implements data processing by running program code and modules stored in the storage unit 505. The storage unit 505 mainly includes a program storage area and a data storage area, wherein the program stores The storage area may store operating system, program code required for at least one function, such as obtaining program code for mapping characters displayed on the keyboard to form an input password; and the data storage area may store data (such as audio data) created according to the use of the terminal device. , phone book, etc.). In a specific embodiment of the present invention, the storage unit 505 may include a volatile memory, such as a nonvolatile volatile random access memory (NVRAM) or a phase change random access memory (PRAM). , a magnetoresistive random access memory (MRAM), or a non-volatile memory, such as at least one disk storage device, electronically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), flash memory devices such as NOR flash memory or NAND flash memory. The non-volatile memory stores operating system and program code executed by the processor unit. The processor unit loads the running program and data from the non-volatile memory into the memory and stores the digital content in a large number of storage devices. The operating system includes controls and management of general system tasks such as memory management, storage device control, power management, etc., as well as various components and/or drivers that facilitate communication between various hardware and software. In the embodiment of the present invention, the operating system may be an Android system of Google Inc., an iOS system developed by Apple Inc., or a Windows operating system developed by Microsoft Corporation, or an embedded operating system such as Vxworks.
电源506用于给终端设备的不同部件进行供电以维持其运行。作为一般性理解,电源506可以是内置的电池,例如常见的锂离子电池、镍氢电池等,也包括直接向终端设备供电的外接电源,例如AC适配器等。在本发明的一些实施方式中,电源506还可以作更为广泛的定义,例如还可以包括电源管理系统、充电系统、电源故障检测电路、电源转换器或逆变器、电源状态指示器(如发光二极管),以及与移动终端的电能生成、管理及分布相关联的其他任何组件。 Power source 506 is used to power different components of the terminal device to maintain its operation. As a general understanding, the power source 506 can be a built-in battery, such as a conventional lithium ion battery, a nickel metal hydride battery, etc., and an external power source that directly supplies power to the terminal device, such as an AC adapter. In some embodiments of the present invention, the power supply 506 can also be more widely defined, for example, can also include a power management system, a charging system, a power failure detection circuit, a power converter or an inverter, and a power status indicator (eg, Light-emitting diodes), as well as any other components associated with the generation, management and distribution of electrical energy of the mobile terminal.
在图5所示的终端设备中,处理器单元502可以调用存储单元505中存储的程序代码,用于执行以下操作:In the terminal device shown in FIG. 5, the processor unit 502 can call the program code stored in the storage unit 505 for performing the following operations:
利用输入单元501接收第一目标操作,若响应第一目标操作需要绘制界面图像,则确定界面控制功能是否已经开启;Receiving the first target operation by using the input unit 501, and if the interface image needs to be drawn in response to the first target operation, determining whether the interface control function has been turned on;
若是,则判断当前时间是否在有效时段内;If yes, determine whether the current time is within the valid period;
若是,则通过输入单元501获取终端设备当前环境的光线强度;If yes, the light intensity of the current environment of the terminal device is obtained through the input unit 501;
依据当前环境的光线强度确定第一界面图像;当前环境的光线强度越强, 则第一界面图像的颜色深度越浅;Determining the first interface image according to the light intensity of the current environment; the stronger the light intensity of the current environment, The lighter the color depth of the first interface image;
绘制上述第一界面图像,并通过输出单元503显示上述第一界面图像。The first interface image is drawn, and the first interface image is displayed by the output unit 503.
作为一种可选的实施方式,处理器单元502可以调用存储单元505中存储的程序代码,还用于执行以下操作:As an optional implementation manner, the processor unit 502 can call the program code stored in the storage unit 505, and is also used to perform the following operations:
利用输入单元501接收第二目标操作,若响应第二目标操作需要关闭第一界面图像,则关闭获取终端设备当前环境的光线强度的硬件设备。The second target operation is received by the input unit 501, and if the first interface image needs to be closed in response to the second target operation, the hardware device that acquires the light intensity of the current environment of the terminal device is turned off.
作为又一种可选的实施方式,上述依据当前环境的光线强度确定第一界面图像,包括:As still another optional implementation manner, the foregoing determining the first interface image according to the light intensity of the current environment, including:
若当前环境的光线强度超过预设强光阈值,则选择浅色系的界面图像作为第一界面图像;若当前环境的光线强度低于预设弱光阈值,则选择深色系的界面图像作为第一界面图像;或者,If the light intensity of the current environment exceeds the preset glare threshold, the interface image of the light color system is selected as the first interface image; if the light intensity of the current environment is lower than the preset low light threshold, the interface image of the dark color is selected as the interface image First interface image; or,
确定当前环境的光线强度所在的光线强度区间;选择与当前环境的光线强度所在的光线强度区间对应的界面图像作为第一界面图像。The light intensity interval in which the light intensity of the current environment is located is determined; an interface image corresponding to the light intensity interval in which the light intensity of the current environment is located is selected as the first interface image.
在图5所描述的终端设备中,终端设备可以根据当前环境的光线强度自动选择与光线强度相呼应的界面图像进行绘制和显示,省去了用户进行手动操作进行界面控制的繁琐步骤,用户体验更好;与此同时,根据此方法更换的界面图像的颜色可以与当前光线强度相呼应,减少对用户眼睛的刺激,用户若较长时间使用终端设备时不容易产生视觉疲劳。In the terminal device described in FIG. 5, the terminal device can automatically select an interface image corresponding to the light intensity to be drawn and displayed according to the light intensity of the current environment, thereby eliminating the cumbersome steps of the user performing manual operation for interface control, and the user experience. More preferably; at the same time, the color of the interface image replaced according to this method can correspond to the current light intensity, reducing the stimulation to the user's eyes, and the user is not prone to visual fatigue if the terminal device is used for a long time.
值得注意的是,上述装置只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It should be noted that the above devices are only divided according to functional logic, but are not limited to the above divisions, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are only for the purpose of distinguishing from each other, and are not used. To limit the scope of protection of the present invention.
另外,本领域普通技术人员可以理解实现上述各方法实施例中的全部或部分步骤是可以通过程序来指令相关的硬件完成,相应的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。In addition, those skilled in the art can understand that all or part of the steps in implementing the foregoing method embodiments may be performed by a program to instruct related hardware, and the corresponding program may be stored in a computer readable storage medium. The storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
以上仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明实施例揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。 The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the embodiments of the present invention. All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (14)

  1. 一种界面控制方法,其特征在于,包括:An interface control method, comprising:
    终端设备接收第一目标操作,若响应所述第一目标操作需要绘制界面图像,则确定界面控制功能是否已经开启;The terminal device receives the first target operation, and if it is required to draw the interface image in response to the first target operation, determining whether the interface control function has been turned on;
    若是,则判断当前时间是否在有效时段内;If yes, determine whether the current time is within the valid period;
    若是,则通过硬件设备获取所述终端设备当前环境的光线强度;If yes, obtaining, by using a hardware device, a light intensity of the current environment of the terminal device;
    依据所述当前环境的光线强度确定第一界面图像;所述当前环境的光线强度越强,则所述第一界面图像的颜色深度越浅;Determining, according to the light intensity of the current environment, a first interface image; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image;
    绘制所述第一界面图像,并显示所述第一界面图像。Drawing the first interface image and displaying the first interface image.
  2. 根据权利要求1所述方法,其特征在于,所述界面控制的对象包括:The method of claim 1, wherein the object of the interface control comprises:
    所述终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device.
  3. 根据权利要求2所述方法,其特征在于,在所述显示所述第一界面图像之后,所述方法还包括:The method of claim 2, wherein after the displaying the first interface image, the method further comprises:
    所述终端设备接收第二目标操作,若响应所述第二目标操作需要关闭所述第一界面图像,则关闭获取所述终端设备当前环境的光线强度的所述硬件设备。The terminal device receives the second target operation, and if the first interface image needs to be closed in response to the second target operation, shutting down the hardware device that acquires the light intensity of the current environment of the terminal device.
  4. 根据权利要求3所述方法,其特征在于,所述依据所述当前环境的光线强度确定第一界面图像,包括:The method according to claim 3, wherein the determining the first interface image according to the light intensity of the current environment comprises:
    若所述当前环境的光线强度超过预设强光阈值,则所述终端设备选择浅色系的界面图像作为所述第一界面图像;若所述当前环境的光线强度低于预设弱光阈值,则所述终端设备选择深色系的界面图像作为所述第一界面图像;或者,If the light intensity of the current environment exceeds a preset glare threshold, the terminal device selects an interface image of a light color system as the first interface image; if the light intensity of the current environment is lower than a preset low light threshold And the terminal device selects an interface image of a dark color as the first interface image; or
    所述终端设备确定所述当前环境的光线强度所在的光线强度区间;选择与所述当前环境的光线强度所在的光线强度区间对应的界面图像作为所述第一界面图像。The terminal device determines a light intensity interval in which the light intensity of the current environment is located; and selects an interface image corresponding to the light intensity interval in which the light intensity of the current environment is located as the first interface image.
  5. 根据权利要求4所述方法,其特征在于,所述依据所述当前环境的光线强度确定第一界面图像,包括:The method according to claim 4, wherein the determining the first interface image according to the light intensity of the current environment comprises:
    若所述当前环境的光线强度超过所述预设强光阈值,则所述终端设备选择文字颜色与底色对比强烈的界面图像作为所述第一界面图像;若所述当前环境的光线强度低于所述预设弱光阈值,则所述终端设备选择文字颜色与底色对比柔和的界面图像作为所述第一界面图像。 If the light intensity of the current environment exceeds the preset glare threshold, the terminal device selects an interface image with a strong contrast between the text color and the background color as the first interface image; if the current environment has low light intensity And in the preset low light threshold, the terminal device selects an interface image with a soft contrast between the text color and the ground color as the first interface image.
  6. 根据权利要求4所述方法,其特征在于,所述获取所述终端设备当前环境的光线强度的所述硬件设备包括:环境光传感器、摄像头以及照度传感器中的至少一项。The method according to claim 4, wherein the hardware device that acquires the light intensity of the current environment of the terminal device comprises at least one of an ambient light sensor, a camera, and an illuminance sensor.
  7. 根据权利要求4所述方法,其特征在于,所述有效时段为当前所在地的夜晚时间。The method of claim 4 wherein said valid period of time is the night time of the current location.
  8. 一种界面控制装置,其特征在于,包括:An interface control device, comprising:
    第一接收单元,用于接收第一目标操作;a first receiving unit, configured to receive a first target operation;
    第一确定单元,用于当响应所述第一目标操作需要绘制界面图像时,确定界面控制功能是否已经开启;a first determining unit, configured to determine whether the interface control function has been turned on when the interface image needs to be drawn in response to the first target operation;
    判断单元,用于当所述界面控制功能已经开启时,判断当前时间是否在有效时段内;a determining unit, configured to determine, when the interface control function is already enabled, whether the current time is within a valid period;
    获取单元,用于当前时间在所述有效时段内的情况下,通过硬件设备获取所述终端设备当前环境的光线强度;An acquiring unit, configured to acquire, by using a hardware device, a light intensity of a current environment of the terminal device, where the current time is within the valid time period;
    第二确定单元,用于依据所述当前环境的光线强度确定第一界面图像;所述当前环境的光线强度越强,则所述第一界面图像的颜色深度越浅;a second determining unit, configured to determine a first interface image according to the light intensity of the current environment; the stronger the light intensity of the current environment, the lighter the color depth of the first interface image;
    绘制单元,用于绘制所述第一界面图像;a drawing unit, configured to draw the first interface image;
    显示单元,用于显示所述第一界面图像。a display unit, configured to display the first interface image.
  9. 根据权利要求8所述的装置,其特征在于,所述界面控制的对象包括:The device according to claim 8, wherein the object controlled by the interface comprises:
    所述终端设备显示的壁纸、应用图标、锁屏界面、菜单栏背景、导航栏背景、对话框皮肤以及输入法皮肤中的至少一项。At least one of a wallpaper, an application icon, a lock screen interface, a menu bar background, a navigation bar background, a dialog skin, and an input method skin displayed by the terminal device.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    第二接收单元,用于接收第二目标操作;a second receiving unit, configured to receive a second target operation;
    关闭单元,用于当响应所述第二目标操作需要关闭所述第一界面图像时,关闭获取所述终端设备当前环境的光线强度的所述硬件设备。And a closing unit, configured to: when the first interface image needs to be closed in response to the second target operation, turn off the hardware device that acquires a light intensity of a current environment of the terminal device.
  11. 根据权利要求10所述的装置,其特征在于,所述第二确定单元,包括:The device according to claim 10, wherein the second determining unit comprises:
    第一选择子单元,用于当所述当前环境的光线强度超过预设强光阈值时,选择浅色系的界面图像作为所述第一界面图像;当所述当前环境的光线强度低于预设弱光阈值时,选择深色系的界面图像作为所述第一界面图像;或者,a first selection sub-unit, configured to: when the light intensity of the current environment exceeds a preset glare threshold, select an interface image of a light color system as the first interface image; when the light intensity of the current environment is lower than a pre-pre When the weak light threshold is set, the interface image of the dark color is selected as the first interface image; or
    确定子单元,用于确定所述当前环境的光线强度所在的光线强度区间;第 二选择子单元,用于选择与所述当前环境的光线强度所在的光线强度区间对应的界面图像作为所述第一界面图像。Determining a subunit for determining a light intensity interval in which the light intensity of the current environment is located; And a second selection subunit, configured to select an interface image corresponding to a light intensity interval in which the light intensity of the current environment is located as the first interface image.
  12. 根据权利要求11所述的装置,其特征在于,所述第二确定单元,包括:The apparatus according to claim 11, wherein the second determining unit comprises:
    第三选择子单元,用于当所述当前环境的光线强度超过所述预设强光阈值时,选择文字颜色与底色对比强烈的界面图像作为所述第一界面图像;当所述当前环境的光线强度低于所述预设弱光阈值时,选择文字颜色与底色对比柔和的界面图像作为所述第一界面图像。a third selection subunit, configured to: when the light intensity of the current environment exceeds the preset glare threshold, select an interface image with a strong contrast between the text color and the background color as the first interface image; when the current environment When the light intensity is lower than the preset low light threshold, an interface image whose text color is softer than the ground color is selected as the first interface image.
  13. 根据权利要求11所述的装置,其特征在于,所述获取所述终端设备当前环境的光线强度的所述硬件设备包括:环境光传感器、摄像头以及照度传感器中的至少一项。The device according to claim 11, wherein the hardware device that acquires the light intensity of the current environment of the terminal device comprises at least one of an ambient light sensor, a camera, and an illuminance sensor.
  14. 根据权利要求11所述的装置,其特征在于,所述有效时段为当前所在地的夜晚时间。 The apparatus of claim 11 wherein said valid time period is a night time of a current location.
PCT/CN2016/096019 2016-08-19 2016-08-19 Interface control method and apparatus WO2018032500A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680088149.7A CN109564503A (en) 2016-08-19 2016-08-19 A kind of interface control method and device
PCT/CN2016/096019 WO2018032500A1 (en) 2016-08-19 2016-08-19 Interface control method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/096019 WO2018032500A1 (en) 2016-08-19 2016-08-19 Interface control method and apparatus

Publications (1)

Publication Number Publication Date
WO2018032500A1 true WO2018032500A1 (en) 2018-02-22

Family

ID=61196270

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096019 WO2018032500A1 (en) 2016-08-19 2016-08-19 Interface control method and apparatus

Country Status (2)

Country Link
CN (1) CN109564503A (en)
WO (1) WO2018032500A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378688A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Mode switching method and device
CN105278907A (en) * 2015-06-27 2016-01-27 维沃移动通信有限公司 Display method and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112013000202B4 (en) * 2012-09-26 2017-02-02 Beijing Lenovo Software Ltd. Display method and electronic device
CN103309578A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 Web page display method and terminal
CN104699388A (en) * 2015-03-25 2015-06-10 广东欧珀移动通信有限公司 Terminal theme adjusting method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378688A (en) * 2014-10-27 2015-02-25 小米科技有限责任公司 Mode switching method and device
CN105278907A (en) * 2015-06-27 2016-01-27 维沃移动通信有限公司 Display method and mobile terminal

Also Published As

Publication number Publication date
CN109564503A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
US11262709B2 (en) Method of configuring watch screen and wearable electronic device implementing same
CN106020990B (en) Control method of central processing unit and terminal equipment
TWI643121B (en) Method and terminal device for displaying objects
US10402625B2 (en) Intelligent electronic device and method of operating the same
US10509551B2 (en) Icon management method, apparatus, and terminal
US10204593B2 (en) Display apparatus and method for controlling the same
US11968482B2 (en) Method for displaying dynamic image and terminal
EP3009816B1 (en) Method and apparatus for adjusting color
KR102606422B1 (en) Display control method, storage medium and electronic device for controlling the display
EP3182314A1 (en) Fingerprint identification method and apparatus, and mobile terminal
KR20150118721A (en) Apparatus and method for controlling display
US20190018555A1 (en) Method for displaying menu on user interface and handheld terminal
AU2015202698B2 (en) Method and apparatus for processing input using display
EP3654166B1 (en) Method and apparatus for providing application information
WO2018032500A1 (en) Interface control method and apparatus
EP3223087B1 (en) Display control method and terminal device
CN108351683B (en) Message processing method and mobile terminal
CN107422957B (en) Terminal rear cover pattern display method and device
WO2019132409A1 (en) Electronic device and control method thereof
KR20150028374A (en) Image transformation method and apparatus
KR20230101258A (en) User termainal and control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16913257

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16913257

Country of ref document: EP

Kind code of ref document: A1