Interface adaptation method, device and device for adapting interface
By detecting and automatically adapting to the display mode of the terminal device, the problem of mismatch of interface styles when the display mode changes by client applications is solved, and the consistency between the application interface and the system interface display styles is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN201910866684.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-12
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2039-09-12
AI Technical Summary
When the display mode of the terminal device changes, existing client applications cannot automatically adapt to the interface style, resulting in poor interface adaptability.
By detecting the display mode changes of the terminal device, we determine whether the interface style of the target application matches the display mode. If it does not match, it will be replaced with a style that matches the display mode to realize automatic adaptation of the interface style.
It improves the consistency of the display styles of the application interface and the system interface, and enhances the unity of user experience and device interaction.
Smart Images

Figure CN112486603B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and specifically to an interface adaptation method, device, and a device for adapting an interface. Background Art
[0002] With the development of computer technology, the functions of terminal device operating systems (such as iOS operating system and Android operating system) are becoming more and more abundant. For example, some existing versions of operating systems have added a dark mode in the display settings of the operating system to reduce the stimulation of the screen to the user's eyes in low-light environments (such as at night) and save device power.
[0003] When the display mode of a terminal device changes (such as switching from dark mode to regular mode, or from regular mode to dark mode), existing client applications usually require users to manually switch the style of the display interface (such as color, background, etc.), and are unable to automatically adapt to the display mode of the device, resulting in poor interface adaptability. Summary of the invention
[0004] The embodiments of the present application provide an interface adaptation method, a device, and a device for adapting an interface to improve the consistency of display styles between a client application interface and a system interface.
[0005] In a first aspect, an embodiment of the present application provides an interface adaptation method, which includes: after receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the terminal device, detecting the current display mode of the terminal device; determining whether the interface style of the target application matches the display mode; if not, replacing the interface style with a target style that matches the display mode.
[0006] In the second aspect, an embodiment of the present application provides an interface adaptation device, which includes: a detection unit, configured to detect the current display mode of the terminal device after receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the terminal device; a matching unit, configured to determine whether the style of the interface of the target application matches the display mode; and a replacement unit, configured to replace the style of the interface with a target style that matches the display mode if there is no match.
[0007] In a third aspect, an embodiment of the present application provides a device for adapting an interface, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: after receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the terminal device, detecting the current display mode of the terminal device; determining whether the interface style of the target application matches the display mode; if not, replacing the interface style with a target style that matches the display mode.
[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.
[0009] The input method, device and device for input provided by the embodiment of the present application detect the current display mode of the operating system after receiving the interface display instruction or interface style change instruction for the target application, or after monitoring the switching event of the display mode of the operating system; and then, after determining that the interface style of the target application does not match the display mode, replace the interface style with the target style that matches the display mode. Thus, when the display mode of the operating system changes, the interface style of the target application is automatically adapted to the display mode of the operating system, thereby improving the consistency of the display style of the application interface and the system interface. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0011] Figure 1 is a flow chart of an embodiment of the interface adaptation method according to the present application;
[0012] Figure 2 is a flow chart of another embodiment of the interface adaptation method according to the present application;
[0013] Figure 3 is a schematic diagram of a skin adaptation process of an input method application according to the present application;
[0014] Figure 4 is a structural schematic diagram of an embodiment of an interface adaptation device according to the present application;
[0015] Figure 5 is a structural schematic diagram of a device for adapting an interface according to the present application;
[0016] Figure 6It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION
[0017] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0019] Please refer to Figure 1 , which shows a process 100 of an embodiment of the interface adaptation method according to the present application. The above interface adaptation method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
[0020] Various types of client applications may be installed in the electronic device, such as input method applications, search applications, etc. It should be noted that the input method application mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones, and the user can use the input method application to conveniently input the required characters or strings into the electronic device. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages (such as Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.
[0021] The interface adaptation method in this embodiment may include the following steps:
[0022] Step 101: After receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the operating system, the current display mode of the operating system is detected.
[0023] In this embodiment, the operating system (such as iOS operating system, Android operating system) of the execution subject of the interface adaptation method (such as the above-mentioned electronic device) can support the setting of multiple display modes. Different display modes can present different display effects. For example, when the display mode is normal mode, the display effect of the system interface is usually white window color and black font. When the display mode is dark mode, the display effect of the system interface is usually black window color and white font. In practice, the dark mode can reduce the stimulation of the screen to the user's eyes in a low-light environment (such as at night) while saving device power. The display mode of the operating system can be adjusted manually by the user, or it can be automatically adjusted based on the brightness of the environment in which the device is located.
[0024] In this embodiment, after receiving the interface display instruction or interface style change instruction for the target application, the above-mentioned execution subject can detect the current display mode of the above-mentioned operating system. Taking the input method application as an example, when the user pre-inputs content (such as when the user clicks on the input box in any interface), the interface display instruction for the input method application can be triggered, and the interface display instruction can be used to instruct the input method application to call out the display interface. At this time, the above-mentioned execution subject can detect the current display mode of the operating system. In practice, the target application can be an application installed in the above-mentioned execution subject and capable of interface style change, such as an input method application. In addition, when the user triggers the interface style change function (such as switching skins) in the input method application, the interface style change instruction can be triggered. At this time, the above-mentioned execution subject can detect the current display mode of the operating system.
[0025] In addition, in this embodiment, the execution subject may also continuously monitor the display mode switching event of the operating system. In practice, when the user manually switches the display mode in the system setting interface, or the operating system automatically switches the display mode based on the brightness of the environment, a display mode switching event may be generated. After monitoring the display mode switching event, the execution subject may detect the current display mode of the operating system.
[0026] In practice, the execution subject can call the target interface of the operating system and query the display mode in the system settings of the terminal device through the target interface. The target interface is an interface opened by the operating system to developers for obtaining system setting information. Developers can check the display mode by calling the interface.
[0027] Step 102: Determine whether the interface style of the target application matches the display mode.
[0028] In this embodiment, the execution subject may determine whether the interface style of the target application matches the current display mode of the operating system. The interface style may include but is not limited to at least one of the following: window color, background color, font color, and skin of the interface. Here, one or more information in the interface style of the target application may be matched with the current display mode of the operating system.
[0029] Taking window color as an example, when the current display mode of the operating system is dark mode or dark mode, if the window color of the target application's interface is bright or light (such as white), it can be determined that the style of the target application's interface does not match the display mode. When the current display mode of the operating system is dark mode or dark mode, if the window color of the target application's interface is also dark or dark (such as black), it can be determined that the style of the target application's interface matches the display mode.
[0030] It should be noted that for different display modes, corresponding styles can be pre-configured and stored, so that when the current style does not match the current display mode, the style can be replaced. In practice, the styles corresponding to different display modes can be pre-set, and the styles corresponding to each display mode are not limited here.
[0031] In some optional implementations of this embodiment, the target application may be an input method application. In this case, the interface of the target application may include but is not limited to at least one of the following: an input interface of the input method application, a setting interface of each function, an expression interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
[0032] In some optional implementations of the present embodiment, the execution subject may first obtain the background color of the interface. Then, based on the background color, determine whether the style of the interface matches the display mode. Taking the input method application as an example, when the current display mode of the operating system is dark mode or dark color mode, if the background color of the input method interface (such as including the keyboard area and the input area) is bright or light (such as white), it can be determined that the style of the interface of the input method application does not match the display mode. If the background color of the input method interface is also dark or dark (such as black), it can be determined that the style of the interface of the input method application matches the display mode.
[0033] In some optional implementations of this embodiment, for the input method application, the above-mentioned execution subject may also first obtain the skin type of the above-mentioned input method application. In practice, skin types can be divided according to color, such as dark skin type, light skin type, etc. Among them, the background tone color of the dark skin type is darker; the background tone color of the light skin type is lighter. Then, based on the above-mentioned skin type, it can be determined whether the style of the interface of the above-mentioned target application matches the above-mentioned display mode. For example, when the current display mode of the operating system is dark mode or dark mode, if the input method skin is a white pattern background, white buttons, and black fonts, it can be determined that the style of the interface of the input method application does not match the display mode. If the input method skin is a black pattern background, gray buttons, and white fonts, it can be determined that the style of the interface of the input method application matches the display mode.
[0034] Step 103: If there is no match, the interface style is replaced with a target style that matches the display mode.
[0035] In this embodiment, if the execution subject determines that the interface style of the target application does not match the display mode, it can obtain a target style that matches the display mode and replace the interface style of the target application with the target style.
[0036] In some optional implementations of this embodiment, if it is determined that the current style of the interface does not match the display mode based on the background color of the interface of the target application, the background color of the interface of the target application can be changed to match the current display mode.
[0037] As an example, the display mode of the above operating system includes a dark mode and a normal mode. In the case where it is determined that the current style of the interface does not match the display mode, there are the following two cases:
[0038] The current display mode of the operating system is dark mode (the background color at this time can be bright or light). At this time, a dark background color matching the dark mode can be obtained, and the background color of the above interface can be replaced with the above dark background color.
[0039] The current display mode of the operating system is the normal mode (the background color at this time may be a dark or dark color). At this time, the default background color (such as white) may be obtained, and the background color of the above interface may be replaced with the above default background color.
[0040] Therefore, by adapting the background color of the interface to the display mode, the overall color tone of the device can be made more unified, making it easier for users to interact with the device.
[0041] In some optional implementations of this embodiment, the target application may be an input method application. If it is determined based on the skin type of the input method application that the current interface style does not match the display mode, the skin of the input method interface may be changed so that the input method interface after the skin change matches the current display mode.
[0042] As an example, the display mode of the above operating system includes a dark mode and a normal mode. In the case where it is determined that the current style of the interface does not match the display mode, there are the following two cases:
[0043] The current display mode of the operating system is dark mode (the skin type at this time may be a light skin type). At this time, the skin of the input method application may be switched to a dark skin type.
[0044] The current display mode of the operating system is the normal mode (the skin type at this time may be a dark skin type). At this time, the skin of the input method application may be switched to a light skin type.
[0045] Therefore, by adapting the input method skin to the display mode, the overall tone of the device is made more unified, making it easier for users to interact with the device.
[0046] The method provided by the above-mentioned embodiment of the present application detects the current display mode of the operating system after receiving an interface display instruction or an interface style change instruction for the target application, or after monitoring a display mode switching event of the operating system; and then, after determining that the interface style of the target application does not match the display mode, replaces the interface style with a target style that matches the display mode. Thus, when the display mode of the operating system changes, the interface style of the target application is automatically adapted to the display mode of the operating system, thereby improving the consistency of the display styles of the application interface and the system interface.
[0047] Further references Figure 2 , which shows a process 200 of another embodiment of the interface adaptation method. The process 200 of the interface adaptation method includes the following steps:
[0048] Step 201 , after receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the operating system, detecting the current display mode of the operating system.
[0049] Step 201 in this embodiment can be found in Figure 1 Step 101 in the illustrated embodiment will not be described in detail here.
[0050] Step 202: Obtain the skin or skin type of the input method application.
[0051] In this embodiment, the execution subject of the interface adaptation method may be installed with an input method application. The input method application may support the setting and switching of skins. The skin or skin type of the input method application may characterize the style of the interface of the input method application. Different skins or different types of skins may correspond to different styles. In practice, the skin of the input method application may be characterized by a name, an identifier, a number, etc. The skin type of the input method application may be divided according to color, such as a dark skin type, a light skin type, etc. Among them, the background tone color of the dark skin type is darker; the background tone color of the light skin type is lighter. The above-mentioned execution subject may obtain the current skin or skin type of the input method application from the current setting information of the input method application.
[0052] Step 203, determining whether the skin or skin type matches the display mode.
[0053] In this embodiment, different display modes can be pre-matched with different skins (which can be represented by the name, logo, number, etc. of the skin). After obtaining the input method application skin (such as name, logo, number, etc.), the above-mentioned execution subject can confirm whether the skin matches the current display mode. In addition, since the skin type can also be used to characterize the style of the input method interface. Therefore, based on the skin type, it can be determined whether the style of the interface of the input method application matches the display mode. For example, when the current display mode of the operating system is dark mode or dark mode, if the input method skin is a white pattern background, white buttons, and black fonts, it can be determined that the style of the interface of the input method application does not match the display mode. If the input method skin is a black pattern background, gray buttons, and white fonts, it can be determined that the style of the interface of the input method application matches the display mode.
[0054] In this embodiment, the interface of the input method application may include but is not limited to at least one of the following: the input interface of the above-mentioned input method application, the setting interface of each function, the expression interface, the search interface, the voice interface, the music keyboard interface, the toolbar interface, the clipboard interface, and the pop-up interface, wherein the above-mentioned input interface includes a keyboard area, a candidate word area, and an upper screen area.
[0055] Step 204, if there is no match, when the current display mode of the operating system is dark mode, the skin of the input method application is switched to a skin matching the dark mode or a dark skin type skin; when the current display mode of the operating system is normal mode, the skin of the input method application is switched to a skin matching the normal mode or a light skin type skin.
[0056] In this embodiment, if it is determined based on the skin or skin type of the input method application that the current style of the interface does not match the display mode, the skin of the input method interface can be changed so that the input method interface after the skin change matches the current display mode.
[0057] Specifically, the display mode of the above operating system may include a dark mode and a normal mode. In the case where it is determined that the current style of the interface does not match the display mode, the following two situations are included:
[0058] In one case, the current display mode of the operating system is dark mode (the skin type at this time may be a light skin type). At this time, the skin of the input method application may be switched to a skin matching the dark mode or a dark skin type.
[0059] As an example, Figure 3 A schematic diagram of the skin adaptation process of an input method application is shown. In the original state (as shown by label 301), the display mode of the operating system of the terminal device is in normal mode. At this time, the display interface of the terminal device presents a display effect of a light background and dark fonts, and the skin of the input method application is the default light skin. When the user switches the display mode to dark mode, as shown by label 302, the display interface of the terminal device presents a display effect of a dark background and light fonts, and the skin of the input method application is switched to a dark skin, which is adapted to the current dark mode. Thus, by adapting the input method skin to the display mode, the overall color tone of the device is made more unified, which facilitates user interaction with the device.
[0060] In another case, the current display mode of the operating system is the normal mode (the skin type in this case may be a dark skin type). In this case, the skin of the input method application may be switched to a skin matching the normal mode or a light skin type.
[0061] It should be noted that the skin matching the dark mode can be set to a darker skin (such as black, dark gray, etc.), and the skin matching the normal mode can be set to a lighter skin (such as white, light gray, etc.). In addition, the skin matching the dark mode and the skin matching the normal mode can also be customized by the user, which is not limited here.
[0062] from Figure 2 It can be seen that Figure 1 Compared with the corresponding embodiment, the process 200 of the interface adaptation method in this embodiment involves the step of automatically adapting the input method skin to the system display mode, thereby realizing the automatic adaptation of the input method interface style to the display mode of the operating system and improving the consistency of the display style of the application interface and the system interface.
[0063] Further references Figure 4As an implementation of the methods shown in the above figures, the present application provides an embodiment of an interface adaptation device, and the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0064] like Figure 4 As shown, the interface adaptation device 400 described in this embodiment includes: a detection unit 401, which is configured to detect the current display mode of the above-mentioned operating system after receiving an interface display instruction or an interface style change instruction for the target application, or after monitoring a switching event of the display mode of the operating system; a matching unit 402, which is configured to determine whether the style of the interface of the above-mentioned target application matches the above-mentioned display mode; and a replacement unit 403, which is configured to replace the style of the above-mentioned interface with a target style that matches the above-mentioned display mode if it does not match.
[0065] In some optional implementations of this embodiment, the detection unit 401 is further configured to: call the target interface of the operating system; and query the display mode in the system settings of the operating system through the target interface.
[0066] In some optional implementations of this embodiment, the matching unit 402 is further configured to: obtain the background color of the interface of the target application; and determine whether the style of the interface matches the display mode based on the background color.
[0067] In some optional implementations of the present embodiment, the display mode of the above-mentioned operating system includes a dark mode and a normal mode; and the above-mentioned replacement unit 403 is further configured to: when the current display mode of the above-mentioned operating system is the dark mode, obtain a dark background color matching the above-mentioned dark mode, and replace the background color of the above-mentioned interface with the above-mentioned dark background color; when the current display mode of the above-mentioned operating system is the normal mode, obtain a default background color, and replace the background color of the above-mentioned interface with the above-mentioned default background color.
[0068] In some optional implementations of this embodiment, the target application is an input method application; and the matching unit 402 is further configured to: obtain the skin or skin type of the input method application; and determine whether the skin or the skin type matches the display mode.
[0069] In some optional implementations of the present embodiment, the display mode of the operating system includes a dark mode and a normal mode; and the replacement unit 403 is further configured to: when the current display mode of the operating system is the dark mode, switch the skin of the input method application to a skin matching the dark mode or a dark skin type skin; when the current display mode of the operating system is the normal mode, switch the skin of the input method application to a skin matching the normal mode or a light skin type skin.
[0070] In some optional implementations of this embodiment, the target application is an input method application, and the interface of the target application includes at least one of the following: an input interface of the input method application, a setting interface of each function, an expression interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
[0071] The device provided by the above-mentioned embodiment of the present application detects the current display mode of the operating system after receiving an interface display instruction or an interface style change instruction for the target application, or after monitoring a display mode switching event of the operating system; and then, after determining that the interface style of the target application does not match the display mode, replaces the interface style with a target style that matches the display mode. Thus, when the display mode of the operating system changes, the interface style of the target application is automatically adapted to the display mode of the operating system, thereby improving the consistency of the display styles of the application interface and the system interface.
[0072] Figure 5 1 is a block diagram of a device 500 for configuring an interface according to an exemplary embodiment, and the device 500 may be a smart terminal or a server. For example, the device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0073] Reference Figure 5 , the device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .
[0074] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0075] The memory 504 is configured to store various types of data to support operations on the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0076] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0077] The multimedia component 508 includes a screen that provides an output interface between the above-mentioned device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0078] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.
[0079] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0080] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 can detect the open / closed state of the device 500, the relative positioning of the components, such as the display and keypad of the device 500, the sensor assembly 514 can also detect the position change of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500 and the temperature change of the device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0081] The communication component 516 is configured to facilitate wired or wireless communication between the device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0082] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.
[0083] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by the processor 520 of the device 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0084] Figure 6 6 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 622 (for example, one or more processors) and a memory 632, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 642 or data 644. Among them, the memory 632 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 622 can be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
[0085] The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and / or one or more operating systems 641, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0086] A non-temporary computer-readable storage medium, when the instructions in the above storage medium are executed by the processor of a device (smart terminal or server), the device is able to execute an interface configuration method, the above method comprising: after receiving an interface display instruction or an interface style change instruction for a target application, or after monitoring a display mode switching event of the operating system, detecting the current display mode of the above operating system; determining whether the interface style of the above target application matches the above display mode; if not, replacing the interface style with a target style that matches the above display mode.
[0087] Optionally, the above-mentioned statistics on the user's historical behavior data are performed to determine the user's willingness to click on the association candidate items in the input method application, including: statistics on the user's historical behavior data to determine the user's theoretical click rate and actual click rate for the association candidate items in the input method application; and determining the ratio of the actual click rate to the theoretical click rate as the user's willingness to click on the association candidate items in the input method application.
[0088] Optionally, the detecting the current display mode of the operating system includes: calling a target interface of the operating system; and querying the display mode in the system settings of the operating system through the target interface.
[0089] Optionally, the above-mentioned determination of whether the style of the interface of the above-mentioned target application matches the above-mentioned display mode includes: obtaining the background color of the interface of the above-mentioned target application; and determining whether the style of the above-mentioned interface matches the above-mentioned display mode based on the above-mentioned background color.
[0090] Optionally, the display mode of the above-mentioned operating system includes a dark mode and a normal mode; and the above-mentioned replacing the style of the above-mentioned interface with a target style matching the above-mentioned display mode includes: when the current display mode of the above-mentioned operating system is the dark mode, obtaining a dark background color matching the above-mentioned dark mode, and replacing the background color of the above-mentioned interface with the above-mentioned dark background color; when the current display mode of the above-mentioned operating system is the normal mode, obtaining a default background color, and replacing the background color of the above-mentioned interface with the above-mentioned default background color.
[0091] Optionally, the target application is an input method application; and the determining whether the interface style of the target application matches the display mode includes: obtaining the skin or skin type of the input method application; determining whether the skin or skin type matches the display mode.
[0092] Optionally, the display mode of the above-mentioned operating system includes a dark mode and a normal mode; and the above-mentioned replacing the style of the above-mentioned interface with a target style matching the above-mentioned display mode includes: when the current display mode of the above-mentioned operating system is dark mode, switching the skin of the above-mentioned input method application to a skin matching the above-mentioned dark mode or a dark skin type skin; when the current display mode of the above-mentioned operating system is normal mode, switching the skin of the above-mentioned input method application to a skin matching the above-mentioned normal mode or a light skin type skin.
[0093] Optionally, the target application is an input method application, and the interface of the target application includes at least one of the following: an input interface of the input method application, a setting interface of each function, an emoticon interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
[0094] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0095] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0096] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0097] The above is a detailed introduction to an interface adaptation method, an interface adaptation device and a device for adapting an interface provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An interface adaptation method, characterized in that: The operating system of the execution subject of the method supports the setting of multiple display modes, and the method includes: The target application is an input method application; corresponding styles are pre-configured and stored in the target application for different display modes; the correspondence between different display modes and styles of the target application is pre-set; After receiving an interface display instruction or an interface style change instruction for a target application, detecting the current display mode of the operating system, wherein the interface display instruction is used to instruct the target application to call out a display interface, and the interface style change instruction is triggered when a user triggers an interface style change function in the target application; Determining whether the style of the interface of the target application matches the display mode; wherein the determining whether the style of the interface of the target application matches the display mode comprises: acquiring the background color of the interface of the target application; and determining whether the style of the interface matches the display mode based on the background color; If not, replacing the style of the interface with a target style that matches the display mode; Wherein, determining whether the style of the interface matches the display mode based on the background color includes: When the current display mode of the operating system is a dark mode or a dark color mode, if the background color of the interface of the target application is a light color or a light color, it can be determined that the style of the interface of the target application does not match the display mode; if the background color of the interface of the target application is a dark color or a dark color, it can be determined that the style of the interface of the target application matches the display mode; The determining whether the style of the interface matches the display mode further includes: Obtaining the window color of the target application interface; Based on the window color of the interface, determining whether the style of the interface matches the display mode; The display mode of the operating system includes a dark mode and a normal mode; the determining whether the style of the interface of the target application matches the display mode further includes: Obtain the skin or skin type of the input method application; determining whether the skin or the skin type matches the display mode; The replacing the style of the interface with a target style matching the display mode includes: When the current display mode of the operating system is a dark mode, switching the skin of the input method application to a skin matching the dark mode or a dark skin type skin; When the current display mode of the operating system is the normal mode, the skin of the input method application is switched to a skin matching the normal mode or a light skin type skin.
2. The method according to claim 1, characterized in that The detecting the current display mode of the operating system includes: Calling a target interface of the operating system; The display mode in the system setting of the operating system is queried through the target interface.
3. The method according to claim 1, characterized in that The display mode of the operating system includes a dark mode and a normal mode; as well as The replacing the style of the interface with a target style matching the display mode includes: When the current display mode of the operating system is a dark mode, obtaining a dark background color matching the dark mode, and replacing the background color of the interface with the dark background color; When the current display mode of the operating system is the normal mode, a default background color is obtained, and the background color of the interface is replaced with the default background color.
4. The method according to claim 1, characterized in that: The target application is an input method application, and the interface of the target application includes at least one of the following: an input interface of the input method application, a setting interface of each function, an emoticon interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
5. An interface adapter device, characterized in that: The operating system of the execution subject of the device supports the setting of multiple display modes, and the device includes: The target application is an input method application; corresponding styles are pre-configured and stored in the target application for different display modes; the correspondence between different display modes and styles of the target application is pre-set; a detection unit configured to detect a current display mode of the operating system after receiving an interface display instruction or an interface style change instruction for a target application, wherein the interface display instruction is used to instruct the target application to call out a display interface, and the interface style change instruction is triggered when a user triggers an interface style change function in the target application; A matching unit is configured to determine whether the style of the interface of the target application matches the display mode; wherein the matching unit is further configured to: obtain the background color of the interface of the target application; and determine whether the style of the interface matches the display mode based on the background color; a replacement unit, configured to replace the style of the interface with a target style that matches the display mode if there is no match; Wherein, the matching unit is further configured to: When the current display mode of the operating system is a dark mode or a dark color mode, if the background color of the interface of the target application is a light color or a light color, it can be determined that the style of the interface of the target application does not match the display mode; if the background color of the interface of the target application is a dark color or a dark color, it can be determined that the style of the interface of the target application matches the display mode; The matching unit is further configured to: Obtaining the window color of the target application interface; Based on the window color of the interface, determining whether the style of the interface matches the display mode; Wherein, the display mode of the operating system includes a dark mode and a normal mode; then the matching unit is further configured to: Obtain the skin or skin type of the input method application; determining whether the skin or the skin type matches the display mode; The replacement unit is further configured to: When the current display mode of the operating system is a dark mode, switching the skin of the input method application to a skin matching the dark mode or a dark skin type skin; When the current display mode of the operating system is the normal mode, the skin of the input method application is switched to a skin matching the normal mode or a light skin type skin.
6. The device according to claim 5, characterized in that The detection unit is further configured to: Calling a target interface of the operating system; The display mode in the system setting of the operating system is queried through the target interface.
7. The device according to claim 5, characterized in that The display mode of the operating system includes a dark mode and a normal mode; and The replacement unit is further configured to: When the current display mode of the operating system is a dark mode, obtaining a dark background color matching the dark mode, and replacing the background color of the interface with the dark background color; When the current display mode of the operating system is the normal mode, a default background color is obtained, and the background color of the interface is replaced with the default background color.
8. The device according to claim 5, characterized in that The target application is an input method application, and the interface of the target application includes at least one of the following: an input interface of the input method application, a setting interface of each function, an emoticon interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
9. A device for adapting an interface, characterized in that: The device includes a memory and one or more programs. The operating system of the execution subject of the device supports the setting of multiple display modes. The one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations: The target application is an input method application; corresponding styles are pre-configured and stored in the target application for different display modes; the correspondence between different display modes and styles of the target application is pre-set; After receiving an interface display instruction or an interface style change instruction for a target application, detecting the current display mode of the operating system, wherein the interface display instruction is used to instruct the target application to call out a display interface, and the interface style change instruction is triggered when a user triggers an interface style change function in the target application; Determining whether the style of the interface of the target application matches the display mode; wherein the determining whether the style of the interface of the target application matches the display mode comprises: acquiring the background color of the interface of the target application; and determining whether the style of the interface matches the display mode based on the background color; If not, replacing the style of the interface with a target style that matches the display mode; Wherein, determining whether the style of the interface matches the display mode based on the background color includes: When the current display mode of the operating system is a dark mode or a dark color mode, if the background color of the interface of the target application is a light color or a light color, it can be determined that the style of the interface of the target application does not match the display mode; if the background color of the interface of the target application is a dark color or a dark color, it can be determined that the style of the interface of the target application matches the display mode; The determining whether the style of the interface matches the display mode further includes: Obtaining the window color of the target application interface; Based on the window color of the interface, determining whether the style of the interface matches the display mode; Wherein, if the target application is an input method application, and the display mode of the operating system includes a dark mode and a normal mode; then determining whether the style of the interface of the target application matches the display mode includes: Obtain the skin or skin type of the input method application; determining whether the skin or the skin type matches the display mode; The replacing the style of the interface with a target style matching the display mode includes: When the current display mode of the operating system is a dark mode, switching the skin of the input method application to a skin matching the dark mode or a dark skin type skin; When the current display mode of the operating system is the normal mode, the skin of the input method application is switched to a skin matching the normal mode or a light skin type skin.
10. The device according to claim 9, characterized in that The detecting the current display mode of the operating system includes: Calling a target interface of the operating system; The display mode in the system setting of the operating system is queried through the target interface.
11. The device according to claim 9, characterized in that The display mode of the operating system includes a dark mode and a normal mode; as well as The replacing the style of the interface with a target style matching the display mode includes: When the current display mode of the operating system is a dark mode, obtaining a dark background color matching the dark mode, and replacing the background color of the interface with the dark background color; When the current display mode of the operating system is the normal mode, a default background color is obtained, and the background color of the interface is replaced with the default background color.
12. The device according to claim 9, characterized in that The target application is an input method application, and the interface of the target application includes at least one of the following: an input interface of the input method application, a setting interface of each function, an emoticon interface, a search interface, a voice interface, a music keyboard interface, a toolbar interface, a clipboard interface, and a pop-up window interface, wherein the input interface includes a keyboard area, a candidate word area, and an upper screen area.
13. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Display mode switching method and device
CN106953991A