Input method interface display method, device and electronic device
By displaying the night mode controls in the input method interface and adjusting the color value according to the user's touch operation, the problem of the small scope of application of the existing night mode is solved, achieving wider applicability and better user experience.
Patent Information
- Application Number
- CN202010753664.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-30
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2040-07-30
AI Technical Summary
The existing night mode is mainly suitable for night environments, with a small scope of application and is difficult to meet the diverse needs of users.
The night mode control is displayed in the input method interface, the night mode is turned on according to the user's touch operation, and the color value of the input method interface in the night mode is adjusted according to the touch operation.
Through user-defined night mode color value adjustment, the scope of application is wider, meeting the diverse needs of users and improving user experience.
Smart Images

Figure CN114077463B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an input method interface display method, device and electronic equipment. Background Art
[0002] With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more and more popular, bringing great convenience to people's life, study and work. These electronic devices are usually installed with input method applications (input methods for short), so that users can use the input methods to input information.
[0003] Input method operators provide a night mode, also known as dark mode or dark mode, which can adjust the color value of the input method interface to a color close to the night environment. Compared with the traditional black text on a white background, the night mode can relieve eye fatigue and is easier to read, so this mode is becoming more and more popular. However, the current night mode focuses on adjusting the input method interface to a color value close to the night environment, so it is mainly suitable for night environments, has a small scope of application, and is difficult to meet the diverse needs of users. Summary of the invention
[0004] The embodiment of the present invention provides an input method interface display method to recommend topic-related information to users and improve user experience. Correspondingly, the embodiment of the present invention also provides an input method interface display device and an electronic device to ensure the implementation and application of the above method.
[0005] In order to solve the above problems, an embodiment of the present invention discloses an input method interface display method, which specifically includes: displaying a night mode control in the input method interface; turning on the night mode when receiving a touch operation implemented on the night mode control; and adjusting the color value of the input method interface in the night mode according to the touch operation.
[0006] Optionally, adjusting the color value of the input method interface in the night mode according to the touch operation includes: determining target color matrix parameters of the night mode according to the touch operation; and adjusting the color value of the input method interface according to the target color matrix parameters.
[0007] Optionally, determining the target color matrix parameters of the night mode according to the touch operation includes: when the touch operation is a click operation, acquiring preset color matrix parameters as the target color matrix parameters of the night mode.
[0008] Optionally, determining the target color matrix parameters of the night mode according to the touch operation includes: when the touch operation is a long press operation, displaying an adjuster in the input method interface; when receiving a touch operation implemented on the adjuster, determining the target color matrix parameters according to the touch operation.
[0009] Optionally, the regulator includes multiple hierarchical menu options, each of which has a corresponding color matrix parameter. When a touch operation implemented on the regulator is received, the target color matrix parameters are determined according to the touch operation, including: when a click operation implemented on a target hierarchical menu option is received, obtaining a first color matrix parameter corresponding to the target hierarchical menu option; and determining the target color matrix parameters according to the first color matrix parameters.
[0010] Optionally, the regulator also includes an eye protection menu option, and the eye protection menu option has corresponding color matrix parameters. Determining the target color matrix parameters based on the first color matrix parameters includes: when receiving a click operation implemented on the eye protection menu option, obtaining the second color matrix parameters corresponding to the eye protection menu option; superimposing the first color matrix parameters with the second color matrix parameters to obtain the target color matrix parameters.
[0011] Optionally, when a click operation is received on a target hierarchical menu option, after obtaining a first color matrix parameter corresponding to the target hierarchical menu option, the method further includes: when a click operation is received on the target hierarchical menu option again, turning off the night mode and hiding the hierarchical menu option.
[0012] Optionally, when a click operation is received on the eye protection menu option, after obtaining the second color matrix parameter corresponding to the eye protection menu option, the method also includes: when a click operation is received again on the target hierarchical menu option and the eye protection menu option, turning off the night mode and hiding the hierarchical menu option and the eye protection menu option.
[0013] Optionally, the regulator includes a floating layer having a sliding rod and a slider, the floating layer having a set of continuous color matrix parameters, and when a touch operation implemented on the regulator is received, the target color matrix parameters are determined according to the touch operation, including: when a drag operation of the slider on the sliding rod is received, the position of the slider on the sliding rod is determined; and the color matrix parameters corresponding to the position are obtained as the target color matrix parameters.
[0014] Optionally, the slider on the slider bar of the floating layer supports horizontal dragging and vertical dragging.
[0015] Optionally, after displaying the adjuster in the input method interface, the method further includes: hiding the adjuster when receiving a touch operation that is not in the area where the adjuster is located.
[0016] Optionally, determining the target color matrix parameters of the night mode according to the touch operation includes: when the touch operation is not the first operation on the night mode control, obtaining the color matrix parameters when the night mode was last turned on as the target color matrix parameters.
[0017] Optionally, adjusting the color value of the input method interface according to the target color matrix parameters includes: multiplying the target color matrix parameters with the color value of a pixel in the input method interface to obtain a target color value; and displaying the input method interface adjusted to the target color value.
[0018] An embodiment of the present invention also discloses an input method interface display device, which specifically includes: a night mode control display module, used to display a night mode control in the input method interface; a night mode activation module, used to activate the night mode when receiving a touch operation implemented on the night mode control; and an input method interface adjustment module, used to adjust the color value of the input method interface in the night mode according to the touch operation.
[0019] Optionally, the input method interface adjustment module is used to determine target color matrix parameters of the night mode according to the touch operation; and adjust the color values of the input method interface according to the target color matrix parameters.
[0020] Optionally, the input method interface adjustment module is used to obtain preset color matrix parameters as target color matrix parameters of the night mode when the touch operation is a click operation.
[0021] Optionally, the input method interface adjustment module is used to display an adjuster in the input method interface when the touch operation is a long press operation; when receiving a touch operation applied to the adjuster, determine target color matrix parameters according to the touch operation.
[0022] Optionally, the regulator includes multiple hierarchical menu options, each of which has a corresponding color matrix parameter. The input method interface adjustment module is used to obtain a first color matrix parameter corresponding to the target hierarchical menu option when receiving a click operation implemented on the target hierarchical menu option; and determine the target color matrix parameter based on the first color matrix parameter.
[0023] Optionally, the regulator also includes an eye protection menu option, and the eye protection menu option has corresponding color matrix parameters. The input method interface adjustment module is used to obtain the second color matrix parameters corresponding to the eye protection menu option when receiving a click operation implemented on the eye protection menu option; superimpose the first color matrix parameters with the second color matrix parameters to obtain the target color matrix parameters.
[0024] Optionally, the input method interface adjustment module is used to turn off the night mode and hide the hierarchical menu option when receiving a click operation performed again on the target hierarchical menu option.
[0025] Optionally, the input method interface adjustment module is used to turn off the night mode and hide the hierarchical menu options and the eye protection menu option when receiving a click operation that is again implemented on the target hierarchical menu option and the eye protection menu option.
[0026] Optionally, the regulator includes a floating layer having a sliding rod and a slider, the floating layer having a set of continuous color matrix parameters, and the input method interface adjustment module is used to determine the position of the slider on the sliding rod when receiving a drag operation of the slider on the sliding rod; and obtain the color matrix parameters corresponding to the position as the target color matrix parameters.
[0027] Optionally, the slider on the slider bar of the floating layer supports horizontal dragging and vertical dragging.
[0028] Optionally, the input method interface adjustment module is used to hide the adjuster when receiving a touch operation performed in a region that is not where the adjuster is located.
[0029] Optionally, the input method interface adjustment module is used to obtain color matrix parameters when the night mode was last enabled as target color matrix parameters when the touch operation is not the first operation on the night mode control.
[0030] Optionally, the input method interface adjustment module is used to multiply the target color matrix parameter with the color value of the pixel in the input method interface to obtain a target color value; and display the input method interface adjusted to the target color value.
[0031] An embodiment of the present invention further discloses a readable storage medium. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the input method interface display method as described in any one of the embodiments of the present invention.
[0032] An embodiment of the present invention also discloses an electronic device, 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, wherein the one or more programs include instructions for performing the following operations: displaying a night mode control in an input method interface; turning on the night mode when receiving a touch operation applied to the night mode control; and adjusting the color value of the input method interface in the night mode according to the touch operation.
[0033] The embodiments of the present invention include the following advantages:
[0034] In an embodiment of the present invention, a night mode control is displayed in the input method interface, the night mode is turned on when a touch operation implemented on the night mode control is received, and the color value of the input method interface in the night mode is adjusted according to the touch operation. In an embodiment of the present invention, the color value of the input method interface in the night mode is adjusted according to the user's touch operation, and is not limited to adjusting the input method interface to a color value close to the night environment. It has a wider range of applications and meets the diversified needs of users. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of steps of an embodiment of an input method interface display method of the present invention;
[0036] Figure 2a-2c This is a schematic diagram of a color effect selection of a night mode of the present invention;
[0037] Figure 3a-3c is another schematic diagram of color effect selection of night mode of the present invention;
[0038] Figure 4a-4b It is another schematic diagram of color effect selection of night mode of the present invention;
[0039] Figure 5a-5b This is another schematic diagram of color effect selection in night mode of the present invention
[0040] Figure 6a-6e is a schematic diagram of a color matrix parameter of the present invention;
[0041] Figures 7a-7d This is a schematic diagram of adjusting color effects based on color matrix parameters of the present invention.
[0042] Figure 8 It is a structural block diagram of an embodiment of an input method interface display device of the present invention;
[0043] Fig. 9 A structural block diagram of an electronic device for input method interface display according to an exemplary embodiment;
[0044] Fig.10 It is a structural schematic diagram of an electronic device for input method interface display according to another exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0046] In the specific implementation, although the night mode is also called the dark mode, there are actually some differences between the night mode and the dark mode. Since the functions of the online night mode and the newly launched dark mode overlap, and given that the dark mode and the night mode are similar in user cognition, the online demand merges the dark mode and the night mode, that is, turning on the dark mode is turning on the night mode, and vice versa.
[0047] As a popular aesthetic preference or stylized theme, night mode is no longer exclusive to night environments. In other words, users can choose to turn on night mode in daytime environments. Currently, through observation of user data, it can be seen that a large number of users have often turned on night mode in daytime environments. Then, after merging these two modes at the product level, the night mode that was originally exclusive to night use can also be turned on in daytime environments. However, there is a difference in ambient brightness between night and day environments. If the adjustment method of the input method interface in night mode is directly applied to dark mode, there may be problems with poor results.
[0048] In addition, considering that the input method interface has different brightness, for example, assuming that the input method interface has three brightness levels of white, gray, and black, when the input method interface is adapted to the night mode, the white input method interface requires a more intense effect conversion than the black input method interface. Currently known products all use a unified night mode to adjust the input method interface, which will inevitably fail to meet the different adjustment requirements of different input method interfaces.
[0049] In summary, when adjusting the input method interface to realize the night mode, at least two variables need to be considered: a. Multiple environmental variables such as daytime environment and nighttime environment; b. Brightness variables of different input method interfaces. If the above variables use a unified adjustment method corresponding to the night mode, the adjustment effect of the input method interface will inevitably be unbalanced. Therefore, in order to meet the diversified needs of users, it is necessary to provide a more refined solution to solve the derogatory effect caused by the intersection of uncertain factors, and the operability of the solution needs to be simple and should not increase the user's additional cognitive burden. In response to the above problems, an embodiment of the present invention provides an input method interface display scheme, which can adjust the color value of the input method interface in the night mode according to the user's touch operation. Therefore, it is not limited to adjusting the input method interface to a color value close to the night environment, and has a wider scope of application, which meets the diversified needs of users. The following is a detailed introduction to the embodiments of the present invention.
[0050] Reference Figure 1 , shows a flow chart of steps of an input method interface display method embodiment of the present invention, which may specifically include the following steps:
[0051] Step 102: Display night mode controls in the input method interface.
[0052] Step 104: When a touch operation performed on the night mode control is received, the night mode is turned on.
[0053] Step 106: Adjust the color value of the input method interface in the night mode according to the touch operation.
[0054] The input method interface may include a keyboard panel, a tool panel, a voice input panel, an expression panel, etc. When a user uses the input method, the tool panel may be opened, and a plurality of controls (icons) are displayed on the tool panel, including a night mode control.
[0055] The touch operation may be a click operation, a double-click operation, a long press operation, a drag operation, or other types of operations. When a touch operation performed by a user on a night mode control is received, the night mode is turned on, and the color value of the input method interface in the night mode is adjusted according to the touch operation, thereby achieving a color effect of the night mode, such as a darkening effect in which the overall brightness of the input method interface is darkened.
[0056] Through the input method interface display method of the above example, the night mode control is displayed in the input method interface, the night mode is turned on when a touch operation implemented on the night mode control is received, and the display color value of the input method interface in the night mode is adjusted according to the touch operation. The embodiment of the present invention adjusts the color value of the input method interface in the night mode according to the user's touch operation, and is not limited to adjusting the input method interface to a color value close to the night environment. It has a wider range of applications and meets the diversified needs of users.
[0057] In an exemplary embodiment, the step 106 of adjusting the color value of the input method interface in the night mode according to the touch operation includes:
[0058] Determining target color matrix parameters of the night mode according to the touch operation;
[0059] The color value of the input method interface is adjusted according to the target color matrix parameter.
[0060] In the embodiment of the present invention, filters can be used to achieve various special effects of images. Specifically, multiple sets of color matrix parameters ColorMatrix are provided and encapsulated as filters, and then the color values of the input method interface are adjusted based on the filters. Optionally, ColorMatrixFilter is a filter tool implemented based on color matrix parameters. The color values of the input method interface can be adjusted through ColorMatrixFilter, for example, the color values of the input method interface of the embodiment of the present invention can be adjusted.
[0061] Among them, the color matrix parameters pre-set multiple sets of color matrix parameters for the night mode according to multiple variables, such as environmental variables and brightness variables. It should be noted that when formulating the color matrix parameters of the night mode, the embodiment of the present invention will effectively arrange the color matrix parameters to maintain the original color (saturation) of the original input method interface as much as possible, and enhance the contrast to highlight the foreground letter information, etc., so as to avoid the darkening effect of the color matrix parameters in the night mode causing a reduction in the recognition and aesthetics of the input method interface.
[0062] In an exemplary embodiment, determining the target color matrix parameters of the night mode according to the touch operation includes: when the touch operation is a click operation, acquiring preset color matrix parameters as the target color matrix parameters of the night mode.
[0063] The touch operation may be a click operation. When the user clicks the night mode control on the tool panel for the first time, the night mode is directly turned on, and a set of preset color matrix parameters set for the night mode is obtained as the target color matrix parameters, so that the input method interface is displayed as a default dimming effect.
[0064] like Figure 2a As shown in the figure, when the input method is turned on, the default keyboard panel is first entered, and then the user can switch to the tool panel from the keyboard template, such as Figure 2b As shown, multiple controls are displayed in the tool panel, including a night mode control. At this time, the night mode is not turned on. When the user clicks the panel night mode control for the first time, the night mode is turned on, and a set of default preset color matrix parameters are obtained as a reference for the target color matrix in the night mode, so that the input method interface adjusts the color value of the night mode based on the target color matrix parameters, such as Figure 2c As shown, the input method interface achieves the effect of dimming the overall brightness. Through the above example, when the user performs a touch operation on the night mode control as a click operation, the night mode is quickly turned on, the operation is simple, and the user experience is improved.
[0065] In an exemplary embodiment, determining the target color matrix parameters of the night mode according to the touch operation includes:
[0066] When the touch operation is a long press operation, displaying an adjuster in the input method interface;
[0067] When a touch operation implemented on the regulator is received, target color matrix parameters are determined according to the touch operation.
[0068] The regulator is used to fine-tune the target color matrix parameters of the night mode, that is, the user can select the desired target color matrix parameters through the regulator, so that the input method interface can be adjusted to a dimming effect that meets the user's current needs.
[0069] The touch operation may be a click operation or a long press operation. When the user long presses the night mode control on the tool panel for the first time, the display adjuster will be triggered on the input method interface. When the user touches the adjuster, the target color matrix parameters are further determined according to the touch operation, so that the input method interface displays the dimming effect specified by the user.
[0070] Through the above example, when the user performs a long press operation on the night mode control, the regulator is triggered, so that the user can further determine the required target color matrix parameters based on the regulator, so that the input method interface displays the dimming effect specified by the user.
[0071] In an exemplary embodiment, when receiving a touch operation implemented on the regulator, determining the target color matrix parameters according to the touch operation includes:
[0072] When receiving a click operation implemented on a target hierarchical menu option, obtaining a first color matrix parameter corresponding to the target hierarchical menu option;
[0073] The target color matrix parameters are determined according to the first color matrix parameters.
[0074] Among them, the regulator can be multiple hierarchical menu options, and each hierarchical menu option has a corresponding color matrix parameter. When the user clicks on the target hierarchical menu option, the night mode is turned on, and the first color matrix parameter corresponding to the target hierarchical menu option is obtained as the target color matrix parameter, so that the input method interface displays the darkening effect corresponding to the target hierarchical menu option.
[0075] like Figure 3a As shown, when the user long-presses the night mode control for the first time, the night mode is turned on and a menu is triggered. The menu displays three graded menu options: "Standard", "Deep Black", and "Warm Black". The three graded menu options have corresponding darkening effects. When the menu is triggered, the "Standard" darkening effect is selected by default. "Deep Black" has an increasing darkening effect compared to "Standard", and "Warm Black" has a darkening effect that is slightly warmer and yellower. When the user clicks on the graded menu options, you can switch to any option, and the darkening effect of the input method interface will take effect accordingly. The currently selected darkening effect is the darkening effect of the night mode, as shown in the figure. Figure 3b As shown, click "Deep Black" to switch to the darkening effect of "Deep Black". Figure 3c As shown, click “Warm Black” to switch to the darkening effect of “Warm Black”.
[0076] Through the above example, the user can determine the target hierarchical menu option from multiple hierarchical menu options and perform a click operation, so that the dimming effect of the input method interface meets their own needs.
[0077] In an exemplary embodiment, the regulator further includes an eye protection menu option, the eye protection menu option has a corresponding color matrix parameter, and the determining the target color matrix parameter according to the first color matrix parameter includes:
[0078] When receiving a click operation implemented on the eye protection menu option, obtaining a second color matrix parameter corresponding to the eye protection menu option;
[0079] The first color matrix parameters are superimposed on the second color matrix parameters to obtain target color matrix parameters.
[0080] Among them, the regulator may include an eye protection menu option in addition to multiple hierarchical menu options. The color matrix parameters corresponding to the eye protection menu option can adjust the input method interface to a color effect that relieves eye fatigue. When the user clicks on the target hierarchical menu option, the night mode is turned on, and the first color matrix parameter corresponding to the target hierarchical menu option is obtained. If the user also clicks on the eye protection menu option, the second color matrix parameter corresponding to the eye protection menu option is obtained, and the two color matrix parameters are superimposed to obtain the target color matrix parameter, so that the input method interface is displayed as the darkening effect corresponding to the target hierarchical menu option and the eye protection menu option.
[0081] like Figure 4a As shown, when the user long-presses the night mode control for the first time, the night mode is turned on and a menu is triggered. The menu displays three graded menu options: "Standard", "Deep Black", and "Eye Protection". The three graded menu options have corresponding color effects. When the menu is triggered, the "Standard" darkening effect is selected by default. "Deep Black" has an increasing darkening effect compared to "Standard", and "Eye Protection" has an eye protection effect that protects the eyes. Among them, the "Eye Protection" on the right can be superimposed on the darkening effect corresponding to any of the "Standard" and "Deep Black" options on the left. When the "Standard" darkening effect is selected, if you click "Eye Protection", as shown Figure 4b As shown, the "standard" darkening effect is converted into a warm-toned eye protection effect.
[0082] Through the above example, the user can determine the target hierarchical menu option from multiple hierarchical menu options and click it, and can further click on the eye protection menu option so that the darkening effect of the input method interface is superimposed with the eye protection effect on the darkening effect, which can reduce the user's eye fatigue in night mode.
[0083] In an exemplary embodiment, upon receiving a click operation applied to a target hierarchical menu option, after obtaining a first color matrix parameter corresponding to the target hierarchical menu option, the method further includes: upon receiving a click operation applied to the target hierarchical menu option again, turning off the night mode and hiding the hierarchical menu option.
[0084] The hierarchical menu options of the menu are two-way controls, which can be clicked to select or clicked again to cancel. When the user clicks on the target hierarchical menu option again, the night mode will be turned off and all hierarchical menu options will be hidden. Figure 4aAs shown, when the user has selected "Standard", clicking "Standard" again turns off the night mode, and the menu disappears, and the night mode control on the tool panel is presented as unselected. Through the above example, for the night mode that includes a dimming effect, when turning off the night mode, the user only needs to click the selected target hierarchical menu again to turn off the night mode, without having to return to the night mode control on the tool panel and click Cancel again, which reduces the user's operation steps when turning off the night mode.
[0085] In an exemplary embodiment, upon receiving a click operation implemented on the eye protection menu option, after obtaining the second color matrix parameter corresponding to the eye protection menu option, the method further includes: upon receiving a click operation implemented again on the target hierarchical menu option and the eye protection menu option, turning off the night mode and hiding the hierarchical menu option and the eye protection menu option.
[0086] Among them, the hierarchical menu options and eye protection menu options of the menu are both two-way controls, which can be clicked to select or clicked again to cancel. When the user clicks on the target hierarchical menu options and eye protection menu options again, the night mode will be turned off and all hierarchical menu options and eye protection menu modes will be hidden. It should be noted that since the eye protection effect of the eye protection menu option in the embodiment of the present invention can be superimposed with the selected darkening effect, it can also be used alone. Therefore, if the user clicks on the eye protection menu option again, it is deemed that only the eye protection effect is canceled, and the darkening effect will continue to be retained, but the eye protection effect will no longer be superimposed.
[0087] like Figure 4b As shown, when the user has selected "Standard" and "Eye Protection", clicking "Standard" and "Eye Protection" again will turn off the night mode, and all menus will disappear. The night mode control on the tool panel will be unselected. If the user only clicks "Eye Protection" again, only the eye protection effect superimposed on the darkening effect will be canceled. Through the above example, for the night mode that includes the darkening effect and the eye protection effect, when turning off the night mode, the user only needs to click the selected target hierarchical menu option and the eye protection menu option again to turn off the night mode. There is no need to return to the night mode control on the tool panel and click Cancel again, which reduces the user's operation steps when turning off the night mode.
[0088] In an exemplary embodiment, when a touch operation implemented on the regulator is received, the target color matrix parameters are determined according to the touch operation, including: when a drag operation of a slider on the slider bar is received, the position of the slider on the slider bar is determined; and the color matrix parameters corresponding to the position are obtained as the target color matrix parameters.
[0089] The regulator includes a floating layer with a slider and a slider, and the floating layer has a set of continuous color matrix parameters, so that a continuous and smooth darkening effect or an equidistant multi-node darkening effect can be achieved. When the user drags the slider on the slider, a set of color matrix parameters is obtained according to the position of the slider on the slider, and the color matrix parameters are used as target color matrix parameters, so that the input method interface displays a darkening effect corresponding to the slider position.
[0090] like Figure 5a As shown, when the user long presses the night mode control for the first time, the night mode is turned on and a floating layer with a slider is triggered. The length of the gray part on the slider indicates the intensity of the darkening effect of the currently selected night mode. Dragging the slider to the right increases the darkening effect, and dragging the slider to the left reduces the darkening effect. When the slider on the slider is dragged, the corresponding darkening effect takes effect accordingly. Through the above example, the user drags the slider on the slider on the floating layer to determine the corresponding darkening effect according to the position of the slider. In this way, the user can fine-tune the darkening effect of the night mode manually.
[0091] In an exemplary embodiment, the slider on the slider bar of the floating layer supports horizontal dragging and vertical dragging. Specifically, the slider bar on the floating layer of the embodiment of the present invention can be placed according to needs, for example, the slider bar can be placed horizontally so that the slider can be dragged horizontally, or the slider bar can be placed vertically so that the slider can be dragged vertically, wherein: Figure 5a The figure shows the floating layer diagram adjusted by horizontal dragging. Figure 5b Shown is a schematic diagram of the floating layer adjusted by vertical dragging.
[0092] In an exemplary embodiment, after displaying the adjuster in the input method interface, the method further includes: hiding the adjuster when receiving a touch operation performed in a region not where the adjuster is located.
[0093] If a touch operation is received from the user in an area not where the adjuster is located, such as an area not belonging to a menu or a floating layer, the menu or floating layer is hidden to prevent the adjuster from affecting other operations of the user on the input method interface.
[0094] In an exemplary embodiment, determining the target color matrix parameters of the night mode based on the touch operation includes: when the touch operation is not the first operation on the night mode control, obtaining the color matrix parameters when the night mode was last turned on as the target color matrix parameters.
[0095] Among them, assuming that the user has used the night mode before and determined the color matrix parameters, that is, it is not the first time to use the night mode, the color matrix parameters when the night mode was last turned on are obtained as the target color matrix parameters. In this way, the user does not need to adjust the dimming effect of the night mode again to meet his own needs, reducing the user's operation steps.
[0096] In an exemplary embodiment, adjusting the color value of the input method interface according to the target color matrix parameters includes: multiplying the target color matrix parameters with the color value of the pixel in the input method interface to obtain the target color value; and displaying the input method interface adjusted to the target color value.
[0097] In an embodiment of the present invention, multiple groups of color matrix parameters are respectively encapsulated as filters that can achieve different color effects, so that the color value of the input method interface can be adjusted based on the filter to achieve color effects such as darkening effect or eye protection effect.
[0098] Among them, Figure 6a As shown in the figure, the color matrix is a 4x5 matrix. The first row represents the red channel R, the second row represents the green channel G, the third row represents the blue channel B, and the fourth row represents the transparency channel Alpha. The last bit of each row is the offset of the channel. In the specific implementation, the parameters of the color matrix are stored in the form of a one-dimensional array: [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t].
[0099] The image itself has a default RGBA channel, and the color values of the RGBA channel of the image are stored in a 5*1 color component matrix, such as Figure 6b As shown in the figure, the color effect of an image can be controlled by the color component matrix. If you need to change the color effect of an image, you only need to change the parameters of the color component matrix of the image. The color matrix can be used to easily modify the color component matrix of an image. For example, multiply the parameters of the color matrix by the parameters of the color component matrix of the image, as shown in the figure. Figure 6c As shown, after multiplication, Figure 6d The color component matrix calculation formula is shown.
[0100] It can be seen that the RGBA value of the original image is modified through the color matrix, thereby achieving the purpose of changing the color effect of the image. Among them, the first row parameter abcde of the color matrix determines the red component of the image, the second row parameter fghij determines the green component of the image, the third row parameter klmno determines the blue component of the image, the fourth row parameter pqrst determines the transparency of the image, and the fifth column parameter ejot is the color offset. If a=1, b, c, d, e are all equal to 0, then R'=R. Similarly, operations are performed on the second, third, and fourth rows to construct a matrix, such as Figure 6e As shown, due to Figure 6e The color matrix does not make any changes to the original colors of the image, so this color matrix is usually used as the initial color matrix.
[0101] In the embodiment of the present invention, the color matrix parameters packaged as filters can be determined by adjusting the initial color matrix. It can be understood that each parameter of the color matrix is Figure 6e The coefficients of the linear expression in the last column are in the range of [0, 255], which represents the color offset. The first three columns are equivalent to multiples.
[0102] The ColorMatrixFilter of the embodiment of the present invention is based on Figure 6e The linear expression of , adjust different color matrix parameters as needed and encapsulate them into filters with different color effects, so that the color value of the image can be modified, so that a variety of color effects can be presented, such as darkening effect or eye protection effect. The 4x5 color matrix parameter conversion can be applied to the RGBA color and Alpha value of each pixel on the input image to generate a result with a new set of RGBA colors and Alpha values, allowing the image's saturation to be changed, hue to be rotated, and brightness to be Alpha, etc. Figures 7a-7d As shown, by comparing the image on the left and the color matrix on the right in the figure, we can see the intuitive changes in brightness, saturation, contrast, etc. between the original image and the adjusted image.
[0103] In an embodiment of the present invention, after determining the target color matrix parameters, the target color matrix parameters are multiplied by the color value of the input method interface to obtain the target color value, and the input method interface is displayed based on the target color value, thereby achieving color effects such as darkening effect or eye protection effect.
[0104] By applying the embodiments of the present invention, the night mode can be directly activated to obtain preset color matrix parameters, or the user can independently select the color matrix parameters of the night mode by manipulating the regulator, thereby meeting the diversified needs of users.
[0105] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0106] Reference Figure 8 , shows a structural block diagram of an input method interface display device embodiment of the present invention, which may specifically include the following modules:
[0107] A night mode control display module 802, used to display night mode controls in the input method interface;
[0108] A night mode activation module 804, configured to activate the night mode upon receiving a touch operation performed on the night mode control;
[0109] The input method interface adjustment module 806 is used as the input method interface adjustment module, and is used to adjust the color value of the input method interface in the night mode according to the touch operation.
[0110] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to determine the target color matrix parameters of the night mode according to the touch operation; and adjust the color values of the input method interface according to the target color matrix parameters.
[0111] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to obtain preset color matrix parameters as target color matrix parameters of the night mode when the touch operation is a click operation.
[0112] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to display an adjuster in the input method interface when the touch operation is a long press operation; when receiving a touch operation applied to the adjuster, determine the target color matrix parameters according to the touch operation.
[0113] In an optional embodiment of the present invention, the regulator includes multiple hierarchical menu options, each of which has a corresponding color matrix parameter. The input method interface adjustment module 806 is used to obtain the first color matrix parameter corresponding to the target hierarchical menu option when receiving a click operation implemented on the target hierarchical menu option; and determine the target color matrix parameter based on the first color matrix parameter.
[0114] In an optional embodiment of the present invention, the regulator also includes an eye protection menu option, and the eye protection menu option has corresponding color matrix parameters. The input method interface adjustment module 806 is used to obtain the second color matrix parameters corresponding to the eye protection menu option when receiving a click operation implemented on the eye protection menu option; superimpose the first color matrix parameters with the second color matrix parameters to obtain the target color matrix parameters.
[0115] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to turn off the night mode and hide the hierarchical menu option when receiving a click operation performed again on the target hierarchical menu option.
[0116] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to turn off the night mode and hide the hierarchical menu options and the eye protection menu options when receiving a click operation that is again implemented on the target hierarchical menu options and the eye protection menu options.
[0117] In an optional embodiment of the present invention, the regulator includes a floating layer having a sliding rod and a slider, the floating layer has a set of continuous color matrix parameters, and the input method interface adjustment module 806 is used to determine the position of the slider on the sliding rod when receiving a drag operation of the slider on the sliding rod; obtain the color matrix parameters corresponding to the position as the target color matrix parameters.
[0118] In an optional embodiment of the present invention, the slider on the slider of the floating layer supports horizontal dragging and vertical dragging.
[0119] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to hide the adjuster when receiving a touch operation that is not in the area where the adjuster is located.
[0120] In an optional embodiment of the present invention, the input method interface adjustment module is used to obtain the color matrix parameters when the night mode was last turned on as the target color matrix parameters when the touch operation is not the first operation on the night mode control.
[0121] In an optional embodiment of the present invention, the input method interface adjustment module 806 is used to multiply the target color matrix parameter with the color value of the pixel in the input method interface to obtain the target color value; and display the input method interface adjusted to the target color value.
[0122] In summary, the embodiment of the present invention adjusts the color value of the input method interface in night mode according to the user's touch operation. It is not limited to adjusting the input method interface to a color value close to the night environment. It has a wider scope of application and meets the diverse needs of users.
[0123] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0124] Fig. 9 1 is a block diagram of an electronic device 900 for input method interface display according to an exemplary embodiment. For example, the electronic device 900 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.
[0125] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0126] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0127] The memory 904 is configured to store various types of data to support operations on the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, images, videos, etc. The memory 904 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.
[0128] The power component 906 provides power to the various components of the electronic device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.
[0129] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 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 touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0130] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0131] I / O interface 912 provides an interface between processing component 902 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, an on button, and a lock button.
[0132] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 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 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0133] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 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 914 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 914 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.
[0134] In an exemplary embodiment, the electronic device 900 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.
[0135] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of an electronic device 900 to perform 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.
[0136] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform an input method interface display method, the method comprising: displaying a night mode control in the input method interface; turning on the night mode when receiving a touch operation applied to the night mode control; and adjusting the color value of the input method interface in the night mode according to the touch operation.
[0137] Fig.10 1 is a schematic diagram of the structure of an electronic device 1000 for input method interface display according to another exemplary embodiment of the present invention. The electronic device 1000 may be a server, which may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1022 (for example, one or more processors) and memory 1032, and one or more storage media 1030 (for example, one or more mass storage devices) storing application programs 1042 or data 1044. Among them, the memory 1032 and the storage medium 1030 may be temporary storage or permanent storage. The program stored in the storage medium 1030 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1022 may be configured to communicate with the storage medium 1030 and execute a series of instruction operations in the storage medium 1030 on the server.
[0138] The server may also include one or more power supplies 1026, one or more wired or wireless network interfaces 1050, one or more input and output interfaces 1058, one or more keyboards 1056, and / or, one or more operating systems 1041, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0139] An electronic device includes 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: displaying a night mode control in an input method interface; turning on the night mode when receiving a touch operation applied to the night mode control; and adjusting the color value of the input method interface in the night mode according to the touch operation.
[0140] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0141] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0145] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0146] The above is a detailed introduction to an input method interface display method, an input method interface display device and an electronic device provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, 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 invention.
Claims
1. A method for displaying an input method interface, characterized in that: include: Show night mode controls in the input method interface; Upon receiving a touch operation implemented on the night mode control, turning on the night mode; Adjusting the color value of the input method interface in the night mode according to the touch operation includes: Determining target color matrix parameters of the night mode according to the touch operation; Adjust the color value of the input method interface according to the target color matrix parameter; The color matrix parameters are obtained by presetting the environment variables and brightness variables; The adjusting the color value of the input method interface includes: The color matrix parameters are encapsulated as a filter, and the color value of the input method interface is adjusted based on the filter.
2. The method according to claim 1, characterized in that The determining, according to the touch operation, target color matrix parameters of the night mode includes: When the touch operation is a click operation, preset color matrix parameters are obtained as target color matrix parameters of the night mode.
3. The method according to claim 1, characterized in that The determining, according to the touch operation, target color matrix parameters of the night mode includes: When the touch operation is a long press operation, displaying an adjuster in the input method interface; When a touch operation implemented on the regulator is received, target color matrix parameters are determined according to the touch operation.
4. The method according to claim 3, characterized in that The regulator includes a plurality of hierarchical menu options, each of which has a corresponding color matrix parameter. When a touch operation implemented on the regulator is received, determining the target color matrix parameter according to the touch operation includes: When receiving a click operation implemented on a target hierarchical menu option, obtaining a first color matrix parameter corresponding to the target hierarchical menu option; The target color matrix parameters are determined according to the first color matrix parameters.
5. The method according to claim 4, characterized in that The regulator further includes an eye protection menu option, the eye protection menu option has a corresponding color matrix parameter, and determining the target color matrix parameter according to the first color matrix parameter includes: When receiving a click operation implemented on the eye protection menu option, obtaining a second color matrix parameter corresponding to the eye protection menu option; The first color matrix parameters are superimposed on the second color matrix parameters to obtain target color matrix parameters.
6. The method according to claim 4, characterized in that When a click operation is received on a target hierarchical menu option, after obtaining a first color matrix parameter corresponding to the target hierarchical menu option, the method further includes: When a click operation is received again on the target hierarchical menu option, the night mode is turned off and the hierarchical menu option is hidden.
7. An input method interface display device, characterized in that: include: A night mode control display module, used to display night mode controls in the input method interface; A night mode activation module, configured to activate the night mode upon receiving a touch operation performed on the night mode control; An input method interface adjustment module, used for adjusting the color value of the input method interface in the night mode according to the touch operation, comprises: Used to determine the target color matrix parameters of the night mode according to the touch operation; Used to adjust the color value of the input method interface according to the target color matrix parameter; The target color matrix parameters are obtained by presetting according to the environment variables and the brightness variables; The adjusting the color value of the input method interface includes: The color matrix parameters are encapsulated as a filter, and the color value of the input method interface is adjusted based on the filter.
8. An electronic device, characterized in that: The system comprises 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, wherein the one or more programs include instructions for performing the following operations: Show night mode controls in the input method interface; Upon receiving a touch operation implemented on the night mode control, turning on the night mode; Adjust the color value of the input method interface in the night mode according to the touch operation.
9. A readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the input method interface display method as described in any one of method claims 1-6.
Citation Information
Patent Citations
Display model switching method and device
CN107038037A
Interface display method, terminal and computer storage medium
CN109032739A