Interface adjusting method and electronic equipment

By applying the user-set text styles to icons in the interface adjustment method of electronic devices, the problem of visual mismatch between text and icons is solved, and the interface consistency and display effect are improved.

CN120066639APending Publication Date: 2025-05-30HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411944499.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-07-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When electronic devices adjust text styles, the text in the interface and the icons visually do not match, reducing the consistency and display effect of the interface content.

Method used

By providing an interface adjustment method, the electronic device receives the text style set by the user and applies it to the icons, ensuring that the text and icons are visually matched. The method includes setting a text style in the first interface and displaying the corresponding text and icons in the second interface.

Benefits of technology

It achieves the ability to meet users' personalized text style needs while maintaining the consistency of interface content, thereby improving the display effect of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066639A_ABST
    Figure CN120066639A_ABST
Patent Text Reader

Abstract

The invention discloses an interface adjustment method and electronic equipment, relates to the technical field of terminal display, and can solve the problem that characters and icons in an interface are not visually matched due to the fact that the electronic equipment adjusts character styles. According to the specific scheme, the electronic equipment displays a first interface of a first application; the first interface is used for setting a character style displayed by the electronic equipment, and the character style comprises at least one of a font style, a font size, a font thickness and a font style; receiving a first operation of a user on the first interface, wherein the first operation is used for setting a display style of characters and icons displayed by the electronic equipment as a first character style; receiving a second operation input by the user, wherein the second operation is used for displaying a second interface of a second application; in response to the second operation, displaying a second interface; the second interface comprises a first character corresponding to the first character style and at least one first icon corresponding to the first character style.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The application number of the original application is 202210912455.5, and the original application date is July 30, 2022. The entire content of the original application is incorporated herein by reference. Technical Field

[0002] This application relates to the technical field of terminal display, and in particular, to an interface adjustment method and an electronic device. Background Art

[0003] In order to meet the different needs of users for the text styles (such as font size, font weight, etc.) displayed on the electronic device, the electronic device provides users with the function of adjusting text styles. The electronic device can adjust the text style in response to the user's operation of triggering the adjustment of the text style. Secondly, in addition to text, the interface in the electronic device can also include icons, and the icons used by the electronic device are usually visually matched with the default text style of the electronic device. If the electronic device adjusts the default text style, the text corresponding to the adjusted text style and the icons in the electronic device may be visually mismatched. For example, the text with a thicker font after adjustment and the icons with thinner lines in the electronic device are visually mismatched, and the text with a larger font after adjustment and the smaller interface icons in the electronic device are visually mismatched, and so on.

[0004] In summary, when the electronic device adjusts the text style, there will be a problem that the text and icons in the interface are visually mismatched, resulting in poor consistency of the interface content and reducing the display effect of the electronic device. Summary of the Invention

[0005] Embodiments of this application provide an interface adjustment method and an electronic device, which are used to solve the problem that the text and icons in the interface are visually mismatched caused by the adjustment of the text style by the electronic device, and to achieve the consistency of the interface content while meeting the user's personalized needs for the text style.

[0006] To achieve the above object, the embodiments of this application adopt the following technical solutions:

[0007] In a first aspect, there is provided an interface adjustment method, which is applied to an electronic device. The method may include: The electronic device may display a first interface of a first application (APP, Application); the first interface is used to set the text style displayed on the electronic device. Then, the electronic device may receive a first operation of the user on the first interface, and the first operation is used to set the display styles of the text and icons displayed on the electronic device to a first text style. After that, the electronic device receives a second operation input by the user, and the second operation is used to display a second interface of a second application. In response to the second operation, the electronic device may display a second interface of the second APP. The second interface may include: a first text corresponding to the first text style, and at least one first icon corresponding to the first text style.

[0008] Wherein, the text style includes at least one of font style, font size, font weight, and font style. The font style is used to indicate whether the font is italic.

[0009] It can be understood that the electronic device can provide a function for the user to set the text style displayed on the electronic device on the first interface of the first application. For example, the user can set at least one of font style, font size, font weight, and font style on the first interface. In this solution, the electronic device can receive the first operation of the user to set the text style. The first text style set by the first operation not only affects the text displayed on the electronic device, but also can affect the icons displayed on the electronic device. After that, after the electronic device responds to the operation (i.e., the second operation) that triggers the display of other interfaces (such as the second interface) on the electronic device, it can display the text and icons corresponding to the above first text style. The first text in the second interface and at least one first icon in the second interface are visually matched. In this way, the electronic device can solve the problem that the text and icons in the interface are visually mismatched caused by the adjustment of the text style on the electronic device. By adopting this solution, it is possible to meet the user's personalized needs for text style while ensuring the consistency of the interface content, thereby improving the display effect of the electronic device.

[0010] In combination with the first aspect, in a possible implementation manner, the first interface may include sample text and sample icons. The above-mentioned electronic device displays the first interface of the first APP, including: the electronic device displays a first interface including sample text and sample icons corresponding to a second text style. The method may further include: The electronic device, in response to the first operation, displays sample text and sample icons corresponding to the first text style on the first interface. Wherein, the first text style is different from the second text style.

[0011] It can be understood that when the mobile phone responds to the operation of triggering the display of the first interface of the first APP, it can first generate the first interface according to the text style currently adopted by the first APP (i.e., the second text style). The first interface generated according to the text style currently adopted by the first APP may include sample text and sample icons corresponding to the second text style. Then, the electronic device can receive and respond to the operation of adjusting the text style input by the user on the first interface each time, obtain the text style selected by the user on the first interface, and update the sample text and sample icons in the first interface according to the obtained text style selected by the user on the first interface. That is to say, the sample text and sample icons in the first interface can change with the change of the text style selected by the user on the first interface each time.

[0012] Secondly, since the sample text and sample icons in the first interface change with the change of the text style selected by the user on the first interface each time, it can be known that the mobile phone can display the sample text corresponding to the text style selected by the user on the first interface at a certain time, and the sample icons corresponding to the text style selected by the user on the first interface this time on the first interface. In this way, when the sample text in the first interface meets the user's usage requirements and the sample icons in the first interface meet the user's usage requirements, the user can input the first operation to the mobile phone. In response to the first operation, the mobile phone can determine that the text style selected by the user on the first interface this time is the first text style corresponding to the first operation, and the first text style is the text style that meets the user's requirements. Furthermore, it can be known that the text and icons in any interface other than the first interface generated by the mobile phone according to the first text style meet the user's requirements.

[0013] Combined with the first aspect, in another possible implementation manner, the first APP can be the settings APP of the electronic device, and the first interface is the font settings interface of the settings APP. At this time, the second APP is any APP in the electronic device, and the second interface is any interface in the electronic device other than the font settings interface.

[0014] It can be understood that the font settings interface of the settings APP in the electronic device can be used to set the text style of any interface of any APP in the electronic device other than the font settings interface. Therefore, after the electronic device responds to the first operation input on the font settings interface of the settings APP and determines the first text style corresponding to the first operation, in response to the second operation of the user triggering the display of the second interface of any APP, it can generate the second interface of this APP according to the first text style. At this time, the second APP is any APP.

[0015] In combination with the first aspect, in another possible implementation, the first APP is a third-party APP of the electronic device, and the first interface is the font setting interface of the third-party APP. At this time, the second APP is the same APP as the first APP, and the second interface is any interface in the second APP other than the font setting interface.

[0016] It can be understood that the font setting interface of any third-party APP in the electronic device can be used to set the text style of the interface in this third-party APP. Therefore, after the electronic device determines the first text style corresponding to the first operation in response to the first operation input on the font setting interface of this third-party APP, in response to the second operation triggered by the user to display any interface in this third-party APP other than the font setting interface, this interface can be generated according to the first text style. At this time, the second APP is this third-party APP.

[0017] In combination with the first aspect, in another possible implementation, at least one of the first icons includes a linear icon and / or a combination of line and surface icon. Among them, a linear icon refers to an icon drawn by lines; a combination of line and surface icon refers to an icon drawn by lines and block patterns.

[0018] It can be understood that since the surface icon is composed of block patterns, and the block pattern has a larger area and is more prominent in the interface compared with the line. Therefore, for the surface icon composed of block patterns, the surface icon can no longer be enlarged or thickened. That is to say, the electronic device can display the surface icon according to the default icon parameters regardless of whether the text style adopted by the electronic device changes.

[0019] In addition, for the linear icon, the lines in the linear icon are similar to the strokes in the text. If the text style changes, it means that the strokes in the text change. If the lines in the linear icon also change with the text style, the lines in the linear icon and the strokes in the text can be kept consistent and visually matched. Therefore, the electronic device can adjust the linear icon as the text style adopted by the electronic device changes, so that the linear icon and the text are visually matched. Similarly, since the combination of line and surface icon also includes lines, the electronic device can also adjust the combination of line and surface icon as the text style adopted by the electronic device changes.

[0020] Furthermore, after the electronic device determines the first text style corresponding to the first operation, in response to the second operation triggered by the user to display the second interface of the second APP, it can generate at least one of the first icons (i.e., at least one of the first icons in the to-be-displayed second interface) according to the first text style only for the linear icon and / or the combination of line and surface icon in the to-be-displayed second interface.

[0021] In combination with the first aspect, in another possible implementation, pre-configured icon data is stored in the second APP. The pre-configured icon data may include multiple icon data for each of the multiple second icons. The multiple icon data correspond one-to-one with multiple icon parameters of the second icon. The icon parameters are used to indicate at least one of the icon style, icon size, thickness of the icon lines, and icon style of the corresponding icon. The multiple second icons include the at least one first icon.

[0022] Further, in response to the second operation, the electronic device displays a second interface, including: the electronic device first responds to the second operation and determines a first icon parameter corresponding to the first text style according to a preset matching relationship; the electronic device then obtains, from the pre-configured icon data, the icon data corresponding to the first icon parameter in the icon data of at least one first icon in the second interface to be displayed; then, the electronic device renders a screen of at least one first icon according to the obtained icon data; the electronic device also renders a screen of the first text in the second interface to be displayed according to the first text style; finally, the electronic device generates and displays a second interface including the first text and at least one first icon.

[0023] Among them, the preset matching relationship is used to represent the corresponding relationship between the text style and the icon parameter.

[0024] In this design method, the specific implementation process of the electronic device generating the second interface of the second APP according to the first text style is described.

[0025] In combination with the first aspect, in another possible implementation, the preset matching relationship is configured in the second APP, or the preset matching relationship is configured in the operating system of the electronic device.

[0026] It can be understood that if the preset matching relationship is configured in the operating system of the electronic device, each system APP in the electronic device can use the preset matching relationship, and not necessarily any third-party APP in the electronic device can use the preset matching relationship. For example, if the operating system before the upgrade of the electronic device does not include the preset matching relationship and the operating system after the upgrade includes the preset matching relationship, then the third-party APP downloaded when the electronic device uses the operating system before the upgrade cannot use the preset matching relationship, and the third-party APP downloaded when the electronic device uses the operating system after the upgrade can use the preset matching relationship.

[0027] If the preset matching relationship is configured in the second APP, then regardless of whether the second APP is downloaded when the electronic device uses any version of the operating system, the second APP can use the preset matching relationship in the second APP. In this way, the second APP can be unaffected by changes in the operating system of the electronic device and can use the preset matching relationship at any time to determine the first icon parameter corresponding to the first text style.

[0028] Combined with the first aspect, in another possible implementation, the text style may include font weight. Correspondingly, the icon parameter can be used to indicate the thickness of the icon lines. At this time, the preset matching relationship may include: multiple font weight values, and the thickness values of the icon lines corresponding to each font weight value; among them, the larger the font weight value in the preset matching relationship, the larger the corresponding thickness value of the icon lines.

[0029] In this implementation, an example of the preset matching relationship is described. The electronic device determines the first icon parameter corresponding to the first text style according to the preset matching relationship method. The larger the font weight value in the preset matching relationship, the larger the corresponding thickness value of the icon lines, which can ensure that the icon generated according to the first icon parameter and the text generated according to the first text style are visually matched.

[0030] In a second aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a communication interface. The memory and the communication interface are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions. Among them, when the processor executes the computer instructions, the electronic device is caused to execute the interface adjustment method described in any one of the above first aspects.

[0031] In a third aspect, an electronic device is provided. The electronic device includes: a processor, a memory, and a communication interface. The memory and the communication interface are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions. Among them, when the processor executes the computer instructions, the electronic device is caused to perform the following steps: display a first interface of a first application; wherein, the first interface is used to set the text style displayed by the electronic device, and the text style includes at least one of font style, font size, font weight, and font style, and the font style is used to indicate whether the font is italic; receive a first operation input by the user on the first interface, and the first operation is used to set the display styles of the text and the icon displayed by the electronic device to a first text style; receive a second operation input by the user, and the second operation is used to display a second interface of a second application; in response to the second operation, display the second interface; wherein, the second interface includes: a first text corresponding to the first text style, and at least one first icon corresponding to the first text style.

[0032] In combination with the third aspect, in a possible implementation, the above-mentioned first interface includes example text and example icons. The display of the first interface of the first application includes: displaying a first interface including example text and example icons corresponding to a second text style. The method further includes: in response to a first operation, displaying example text and example icons corresponding to a first text style on the first interface. Wherein, the first text style is different from the second text style.

[0033] In combination with the third aspect, in another possible implementation, the above-mentioned first application is a settings application of an electronic device, and the first interface is a font settings interface of the settings application. The second application is any application in the electronic device, and the second interface is any interface in the electronic device other than the font settings interface.

[0034] In combination with the third aspect, in another possible implementation, the above-mentioned first application is a third-party application of an electronic device, and the first interface is a font settings interface of the third-party application. The second application is the same application as the first application, and the second interface is any interface in the second application other than the font settings interface.

[0035] In combination with the third aspect, in another possible implementation, the above-mentioned at least one first icon includes a linear icon and / or a combination of line and surface icon. Wherein, a linear icon refers to an icon drawn by lines; a combination of line and surface icon refers to an icon drawn by lines and block patterns.

[0036] In combination with the third aspect, in another possible implementation, the above-mentioned second application stores pre-configured icon data, and the pre-configured icon data includes multiple icon data of each second icon in multiple second icons, and the multiple icon data correspond one-to-one to multiple icon parameters of the second icon; the icon parameters are used to indicate at least one of the icon style, icon size, thickness of icon lines, and icon style of the corresponding icon; the multiple second icons include at least one first icon. The above-mentioned display of the second interface in response to a second operation input by the user includes: in response to a second operation, determining a first icon parameter corresponding to the first text style according to a preset matching relationship; wherein, the preset matching relationship is used to represent the corresponding relationship between the text style and the icon parameter; obtaining, from the pre-configured icon data, the icon data corresponding to the first icon parameter in the icon data of at least one first icon in the to-be-displayed second interface; rendering a screen of at least one first icon according to the obtained icon data; rendering a screen of the first text in the to-be-displayed second interface according to the first text style; generating and displaying a second interface including the first text and at least one first icon.

[0037] In combination with the third aspect, in another possible implementation, the above-mentioned preset matching relationship is configured in the second application, or the preset matching relationship is configured in the operating system of the electronic device.

[0038] In combination with the third aspect, in another possible implementation, the above text style includes font weight, and the icon parameter is used to indicate the thickness of the icon lines. The preset matching relationship includes: multiple font weight values, and the thickness values of the icon lines corresponding to each font weight value; among them, the larger the font weight value in the preset matching relationship, the larger the corresponding thickness value of the icon lines.

[0039] In the fourth aspect, a computer-readable storage medium is provided, in which computer instructions are stored. When the computer instructions run on an electronic device, the electronic device is caused to execute the interface adjustment method described in any one of the above first aspects.

[0040] In the fifth aspect, a computer program product containing computer instructions is provided. When the computer instructions run on an electronic device, the electronic device is caused to execute the interface adjustment method described in any one of the above first aspects.

[0041] Among them, for the technical effects brought by any one of the design methods in the second aspect to the fifth aspect, reference can be made to the technical effects brought by different design methods in the first aspect, which will not be elaborated here. Brief Description of the Drawings

[0042] Figure 1 Schematic diagrams of the interfaces of a mobile phone before and after adjusting the text style in the related art;

[0043] Figure 2 Schematic diagram of the interface generated by the mobile phone according to the adjusted text style provided by the embodiment of the present application;

[0044] Figure 3 Software structure diagram of the mobile phone provided by the embodiment of the present application;

[0045] Figure 4 Schematic diagram of a font setting interface provided by the embodiment of the present application;

[0046] Figure 5 Flow of an interface adjustment method provided by the embodiment of the present application Figure 1 ;

[0047] Figure 6 Schematic diagram of another font setting interface provided by the embodiment of the present application;

[0048] Figure 7 Schematic diagrams of the interfaces of the mobile phone before and after adjusting the text style provided by the embodiment of the present application;

[0049] Figure 8 Schematic diagram of pre-configured icon data provided by the embodiment of the present application;

[0050] Figure 9 A flowchart of a method for a mobile phone to determine icon parameters corresponding to a first text style provided by an embodiment of the present application;

[0051] Figure 10 The flow of an interface adjustment method provided by an embodiment of the present application Figure 2 ;

[0052] Figure 11 A schematic structural diagram of a mobile phone provided by an embodiment of the present application. Detailed implementation manners

[0053] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0054] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, unless otherwise stated, the meaning of "a plurality" is two or more.

[0055] Currently, when an electronic device leaves the factory, it is set to generate an interface using a default text style and default icon parameters, and a function for adjusting the text style is provided to the user. The user can trigger the electronic device to obtain the adjusted text style through the function of adjusting the text style, and generate an interface in the electronic device according to the adjusted text style.

[0056] Among them, the text corresponding to the default text style and the icon corresponding to the default icon parameters are usually visually matched. Since the electronic device adjusts the text style in any interface according to the adjusted text style, and the icons in this interface remain unchanged, the text generated according to the adjusted text style in this interface may not be visually matched with the icons in this interface.

[0057] Exemplarily, for any interface in a mobile phone, when the mobile phone uses the default text style and default icon parameters, it can generate Figure 1 the interface 110 shown in (a) of. The mobile phone can also obtain the adjusted text style, and the font in the adjusted text style is bolded. When the mobile phone uses the adjusted text style, it can generate as shown in Figure 1The interface 120 shown in (b) of []. Compared with the interface 110, the text font in the interface 120 is bold, and the icons in the interface 120 remain unchanged. It can be seen that the text and icons in the interface 110 are visually matched. The icons with thinner lines in the interface 120 do not match the bold text in the interface 120 visually.

[0058] In summary, when the electronic device adjusts the text style in the related art, there will be a problem that the text in the interface does not match the icons in the interface visually, resulting in poor consistency of the interface content and reducing the display effect of the electronic device.

[0059] In response to the above problem, the embodiment of the present application provides an interface adjustment method. After the electronic device receives the first operation for setting the text style by the user, the first text style set by the first operation not only acts on the text displayed by the electronic device, but also can act on the icons displayed by the electronic device. Then, after the electronic device responds to the second operation for triggering the display of other interfaces (such as the second interface) of the electronic device, it can display the text and icons corresponding to the above first text style. The first text in the second interface and at least one first icon in the second interface are visually matched. In this way, the electronic device can solve the problem that the text in the interface does not match the icons in the interface caused by the adjustment of the text style of the electronic device. By adopting this solution, it is possible to ensure the consistency of the interface content while meeting the user's personalized needs for the text style, thereby improving the display effect of the electronic device.

[0060] Exemplarily, for the interface 110 shown in (a) of the above Figure 1 [], when the mobile phone adopts the interface adjustment method provided by the embodiment of the present application, the interface 210 shown in [] can be generated according to the adjusted text style. The font of the text in the interface 210 is bold, and moreover, the lines of the icons in the interface 210 are also bold. It can be seen that the text in the interface 210 and the icons in the interface 210 are visually matched. Of course, Figure 2 [], only by the way of thickening the icon lines, an effect schematic diagram of the method provided by the embodiment of the present application is shown. In the method provided by the embodiment of the present application, the text style set by the user, such as at least one of the font style, font size, font weight, and font style, can be applied to the icons. For example, the electronic device can not only Figure 2 [], as shown in [], set the thickness of the icon according to the thickness of the font set by the user; it can also set the size of the icon according to the size of the font set by the user, and set whether the icon is inclined according to whether the font set by the user is italic. Figure 2 [], as shown in [], set the thickness of the icon according to the thickness of the font set by the user; it can also set the size of the icon according to the size of the font set by the user, and set whether the icon is inclined according to whether the font set by the user is italic.

[0061] The interface adjustment method provided by the embodiments of this application can be applied to electronic devices such as mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, and wearable electronic devices. The embodiments of this application do not impose any restrictions on this. Taking a mobile phone as an example, the interface adjustment method provided by the embodiments of this application will be introduced below.

[0062] Exemplarily, taking the electronic device as a mobile phone as an example, the software structure diagram of the mobile phone provided by the embodiments of this application will be introduced. As Figure 3 shown, the software system of the mobile phone can be a layered Android TM system. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android TM system is divided into four layers, from top to bottom are the application layer, the application framework layer (Android TM Framework), the system runtime library (Native), the hardware abstraction layer (HAL, Hardware Abstraction Layer), the kernel layer (Linux Kernel), and the hardware Hardware.

[0063] 1. Application layer

[0064] The application layer may include a series of APPs. This series of APPs can be divided into system APPs pre-installed on the mobile phone and third-party APPs downloaded by the user to the mobile phone. For example, as Figure 3 shown, the system APPs can include the Contacts APP, the Settings APP, etc.; the third-party APPs can include: **Chat APPs, etc.

[0065] Among them, the Settings APP can include a text adjustment module. This text adjustment module is used to set the text style displayed on the mobile phone.

[0066] For example, through the text adjustment module in the Settings APP of the mobile phone, in response to the user's operation of triggering the display of the font settings interface, the font settings interface 410 can be generated and displayed. As Figure 4As shown in the figure, the font setting interface 410 may include a slider 411 and a slider 412. The user can select a certain font size value through the slider 411 and select a certain font weight value through the slider 412. After the user selects the text style, the user can input an operation to trigger the closing of the font setting interface 410 into the mobile phone. Then, the text adjustment module in the mobile phone can receive and respond to the operation of the user triggering the closing of the font setting interface 410, and determine the adjusted text style. The adjusted text style may include the font size value and the font weight value selected by the user on the font setting interface 410. The mobile phone can adjust the interface text of the mobile phone according to the adjusted text style.

[0067] In the embodiments of the present application, each APP in the mobile phone that has a need for an adjustment icon (such as, Figure 3 the chat APP shown in the figure) may store pre-configured icon data, and the pre-configured icon data may include multiple icon data of each icon in the multiple icons in the APP. Among them, the multiple icon data of each icon correspond one-to-one to the multiple icon parameters of each icon. The icon parameters can be used to indicate at least one of the icon style, icon size, thickness of the icon lines, and icon style of the corresponding icon. The icon style may refer to the painting style of the icon. For example, cute, abstract, realistic. The icon size may be the size of the icon. The icon style can be used to indicate whether the icon is italic.

[0068] 2. Application framework layer

[0069] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the APPs in the application layer. The application framework layer includes some predefined functions.

[0070] Exemplarily, as Figure 3 shown in the figure, the application framework layer may include an input system, a text style distribution module, etc. Among them, the input system is used to monitor the input module of the mobile phone (such as the touch screen driver), and convert the parameters input by the input module into usable events and transmit them to the relevant modules in the upper layer. For example, the input system is used to monitor the touch screen of the mobile phone through the touch screen driver, and convert the touch parameters generated by the touch operation input by the touch screen into usable events and transmit them to the upper-layer APP.

[0071] The text style distribution module can be used to receive the text style sent by the text adjustment module in the setting APP, and then distribute the received text style to the APPs in the mobile phone that need to adjust the font (such as the APPs running in the foreground of the mobile phone, or all the APPs in the mobile phone).

[0072] In the embodiment of the present application, the application framework layer in the mobile phone may further include an icon adjustment module (Icon AdjustDrawable module).

[0073] It should be noted that the above icon adjustment module may be integrated in the APP of the mobile phone. For example, as Figure 3 shown, the chat APP includes an icon adjustment module. Alternatively, the icon adjustment module may also be set in the mobile phone (such as the application framework layer of the mobile phone), but is not integrated in the APP of the mobile phone (such as the chat APP); the APP in the mobile phone (such as the chat APP) may call the icon adjustment module in the application framework layer of the mobile phone. The embodiment of the present application does not limit this.

[0074] Among them, whether it is the icon adjustment module in the application framework layer of the mobile phone or the icon adjustment module in any APP, it is used to determine the icon parameters corresponding to the adjusted text style according to the preset matching relationship. The preset matching relationship is used to represent the corresponding relationship between the text style and the icon parameters.

[0075] Among them, the icon adjustment module in any APP may be designed by the developer of the APP using an AAR (Android Archive) package with the functions provided by the icon adjustment module. The AAR package may refer to a binary archive file that provides the function of determining the icon parameters corresponding to the adjusted text style according to the preset matching relationship. The AAR package may be provided for APPs running on the Android TM operating system to use.

[0076] It can be understood that if the icon adjustment module is configured in the application framework layer of the mobile phone, each system APP in the mobile phone can call it, and any third-party APP in the mobile phone may not be able to call it. For example, if the application framework layer in the operating system before the upgrade of the mobile phone does not include an icon adjustment module and the application framework layer in the operating system after the upgrade includes an icon adjustment module, then the third-party APP downloaded when the mobile phone uses the operating system before the upgrade cannot call the icon adjustment module, and the third-party APP downloaded when the mobile phone uses the operating system after the upgrade can call the icon adjustment module.

[0077] If the icon adjustment module is configured in any third-party APP, then regardless of whether the third-party APP is downloaded when the mobile phone uses any version of the operating system, the third-party APP can use the icon address module in the third-party APP. In this way, the third-party APP can be unaffected by changes in the operating system of the mobile phone and can use the functions provided by the icon adjustment module at any time.

[0078] 3. System Runtime Library (Native)

[0079] The system runtime library (Native) includes the Android runtime and system libraries. The Android runtime is responsible for the scheduling and management of the Android system. The system libraries can include multiple functional modules. For example, TM the user interface (UI) framework and the display framework as shown. Among them, the UI framework can include a UI thread and a rendering thread (such as DrawFrame). The UI thread is used to draw one or more screens in any interface. The rendering thread is used to render the one or more screens to obtain the rendered screens. The composition thread in the display framework composes the rendered screens to obtain the interface. Figure 3

[0080] 4. Kernel layer

[0081] The kernel layer is the layer between hardware and software. The kernel layer at least includes a touch screen driver, a display driver, etc.

[0082] Among them, after the composition thread in the display framework composes the APP interface, it can drive the touch screen to display the APP interface through the display driver.

[0083] 5. Hardware

[0084] The hardware at least includes a touch screen, etc.

[0085] Figure 3 Furthermore, in combination with the software structure diagram of the mobile phone provided in the embodiment of the present application as shown, the software processing process of adjusting the interface of the mobile phone provided in the embodiment of the present application is introduced.

[0086] ​In the embodiments of the present application, the software processing procedure for the mobile phone to adjust the interface may include the following steps A1 to A13. Step A1: The input system in the mobile phone may respond to an operation by the user on the touch screen to trigger the adjustment of the text style of the mobile phone (such as the first operation described in the embodiments of the present application), generate a first event corresponding to the operation of triggering the adjustment of the text style of the mobile phone, and send the first event to the Settings APP. Step A2: The Settings APP responds to the first event and obtains the adjusted text style (such as the first text style described in the embodiments of the present application) through the text adjustment module. Step A3: The text adjustment module may notify the text style distribution module of the adjusted text style. Step A4: The input system in the mobile phone may respond to an operation by the user to trigger any interface of the Chat APP (i.e., the second APP described in the embodiments of the present application) (such as the second operation described in the embodiments of the present application), generate a second event corresponding to the operation of triggering the display of any interface of the Chat APP, and send the second event to the Chat APP. Step A5: The Chat APP starts running in response to the second event. Step A6: The text style distribution module may send the adjusted text style to the Chat APP when the Chat APP starts running. Step A7: The Chat APP may determine icon parameters corresponding to the adjusted text style according to a preset matching relationship through the icon adjustment module in the Chat APP. Step A8: The Chat APP may obtain icon data corresponding to the determined icon parameters from the pre-configured icon data of the Chat APP. Step A9: The Chat APP may send the adjusted text style and the icon data corresponding to the adjusted text style to the UI framework. Step A10: The UI framework renders the text and icons in the interface to be displayed according to the adjusted text style and the icon data corresponding to the adjusted text style, and obtains a rendered screen. Step A11: The composition thread in the Display framework composes the rendered screen to obtain this interface. Step A12: The composition thread in the Display framework may send the composed this interface to the display driver. Step A13: The display driver drives the touch screen to display the composed this interface (i.e., the second interface described in the embodiments of the present application).

[0087] Among them, this interface obtained in step A11 includes: text corresponding to the adjusted text style, and an icon corresponding to the icon parameters determined in step A7. Since the icon parameters determined in step A7 are the icon parameters corresponding to the adjusted text style, it can be known that the icon corresponding to the icon parameters determined in step A7 is the icon corresponding to the adjusted text style.

[0088] Exemplarily, continue to combine Figure 3The software structure diagram of the mobile phone shown, taking the icon adjustment module integrated in the second APP (such as the **chat APP) and the preset matching relationship configured in the icon adjustment module as an example, introduces the interface adjustment method provided by the embodiments of the present application. Specifically, as Figure 5 shown, this method may include S501 - S511.

[0089] S501. The mobile phone responds to the operation of the user triggering to display the font setting interface of the settings APP, and displays the font setting interface through the touch screen.

[0090] The mobile phone can receive and respond to the operation of the user triggering to display the font setting interface (i.e., the first operation), generate a font setting interface according to the current text style, and display the font setting interface through the touch screen. This font setting interface is used to set the text style displayed on the mobile phone. Then, the text adjustment module in the mobile phone can receive and respond to the operation of the user adjusting the text style input on this font setting interface each time (such as, the user's sliding operation on the Figure 6 shown slider 611, the user's sliding operation on the Figure 6 shown slider 612), obtain the text style selected by the user in this font setting interface (such as, the font size value indicated by the slider 611, the font weight value indicated by the slider 612), and then update this font setting interface according to the text style selected by the user in this font setting interface.

[0091] Among them, the current text style may be the text style currently adopted by the settings APP in the mobile phone, or the text style currently adopted by the mobile phone. Among them, the font setting interface is the first interface. The current text style (i.e., the text style before the mobile phone responds to the first operation) is the second text style. The text style after the user's setting is the first text style.

[0092] In some embodiments, the font setting interface may include sample text. The mobile phone responds to the operation of the user triggering to display the font setting interface, and displays a font setting interface including sample text corresponding to the current text style. For example, the font setting interface may be the font setting interface 410 in the settings APP as Figure 4 shown, and the font setting interface 410 includes sample text 413 corresponding to the current text style. The current text style may include: the font size value indicated by the slider 411, the font weight value indicated by the slider 412.

[0093] In some other embodiments, the font setting interface may further include example icons in addition to example text. The mobile phone responds to the operation of the user triggering the display of the font setting interface and displays the font setting interface including the example text and example icons corresponding to the current text style. Among them, the pre-configured icon data of the setting APP may include multiple icon data corresponding to each example icon in the setting APP and corresponding to multiple icon parameters one by one.

[0094] Exemplarily, the font setting interface may be the font setting interface 610 in the setting APP as shown in Figure 6 Figure. The font setting interface 610 may include: a slider 611, a slider 612, example text 613, and example icons 614. Among them, the slider 611 is used to set the font size value, and the slider 612 is used to set the font weight value. The example text 613 is the text generated according to the current text style. The example icons 614 are the icons generated according to the icon parameters corresponding to the current text style. The icon parameters corresponding to the current text style belong to the above-mentioned multiple icon parameters. The current text style may include: the font size value indicated by the slider 611 and the font weight value indicated by the slider 612.

[0095] It can be understood that when the electronic device displays the font setting interface, it can receive and respond to the operation of the user adjusting the text style input on the font setting interface each time, obtain the text style selected by the user on the font setting interface, and update the example text and example icons in the font setting interface according to the obtained text style selected by the user on the font setting interface. That is to say, the example text and example icons in the font setting interface can both change with the change of the text style selected by the user on the first interface each time.

[0096] Exemplarily, taking the font setting interface including example text and example icons as an example, the specific process of the mobile phone generating a font setting interface including example text and example icons corresponding to the current text style is described. The input system in the mobile phone can respond to the operation of the user triggering the display of the font setting interface of the Settings APP, generate an event corresponding to the operation of triggering the display of the font setting interface, and send an event corresponding to the operation of triggering the display of the font setting interface to the Settings APP. The Settings APP responds to the event corresponding to the operation of triggering the display of the font setting interface, starts running, and sends the text style currently adopted by the mobile phone to the UI framework. The UI framework renders and draws the text screen in the font setting interface to be displayed according to the currently adopted text style; it can also render and draw the icon screen in the font setting interface to be displayed. The composition thread in the Display framework composes the rendered screens (including the text screen and the icon screen in the font setting interface) to obtain the font setting interface. The composition thread in the Display framework can send the font setting interface to the display driver. The display driver drives the touch screen to display the font setting interface.

[0097] In the embodiment of the present application, the text adjustment module in the mobile phone responds to the operation of the user adjusting the text style input on the font setting interface each time. After obtaining the text style selected by the user in the font setting interface, in addition to updating the example text and example icons in the font setting interface according to the text style selected by the user in the font setting interface, it can also directly update the text style currently adopted by the mobile phone by using the text style selected by the user in the font setting interface.

[0098] Alternatively, after the mobile phone obtains the text style selected by the user in the font setting interface, it can also receive the first operation input by the user in the font setting interface. In response to the first operation, it updates the text style currently adopted by the mobile phone by using the text style selected by the user in the font setting interface. At this time, the text style selected by the user in the font setting interface obtained by the mobile phone can be referred to as the first text style corresponding to the first operation (i.e., the adjusted text style above, such as the first text style).

[0099] It should be noted that in the embodiment of the present application, taking the mobile phone responding to the first operation and updating the text style currently adopted by the mobile phone by using the text style selected by the user in the font setting interface (i.e., the second text style) as an example, the following method provided by the embodiment of the present application is described.

[0100] In addition, generally speaking, the Settings APP in a mobile phone is used to set the text style currently adopted by the mobile phone. Therefore, as described above, in response to this first operation, the mobile phone updates the text style currently adopted by the mobile phone by using the text style selected by the user in the font settings interface. However, if the Settings APP in the mobile phone is set to be used to set the text style currently adopted by the Settings APP itself, then in response to this first operation, the mobile phone can update the text style currently adopted by the Settings APP by using the text style selected by the user in the font settings interface, rather than updating the text style currently adopted by the mobile phone. In the embodiments of this application, taking the Settings APP being used to set the text style currently adopted by the mobile phone as an example, the following methods provided by the embodiments of this application are described.

[0101] In the embodiments of this application, the text style may include at least one of font style, font size, font weight, and font type. The font style may be any kind of running script calligraphy (such as Song typeface, regular script, running script, etc.), or any kind of self-created font (such as cute fonts, fonts with national style characteristics, handwritten fonts, etc.). The font type is used to indicate whether the font is italic.

[0102] Exemplarily, taking the text style including a font weight value as an example, the range of the font weight value in the first interface may include from 0.6 to 1.6, and the minimum adjustment unit of the font weight value is 0.1. Among them, the value "1" is the default font weight value of the mobile phone, used to represent the default font thickness of the mobile phone. The font thickness represented by the value "0.6" is 0.6 times bolder than the default font thickness of the mobile phone. The font thickness represented by the value "1.6" is 1.6 times bolder than the default font thickness of the mobile phone.

[0103] It should be noted that the details of the current text style can refer to the above introduction to the details of the text style, which will not be elaborated in the embodiments of this application.

[0104] S502. The text adjustment module in the mobile phone responds to the first operation of the user in the font settings interface and determines the first text style corresponding to the first operation.

[0105] After the mobile phone obtains the text style selected by the user in the font settings interface, receives and responds to this first operation, it can determine that the text style selected by the user in the font settings interface is the first text style corresponding to the first operation and save this first text style. Then, the text adjustment module in the mobile phone can use this first text style to update the text style currently adopted by the mobile phone, that is, execute S503. Among them, this first operation can be used to trigger the mobile phone to update the text style currently adopted by the mobile phone (i.e., the second text style) by using the text style selected by the user in the font settings interface (i.e., the first text style).

[0106] Exemplarily, the first operation may be an operation to trigger closing the font setting interface. For example, the first operation may be an operation where the user triggers closing Figure 4 the font setting interface 410 shown.

[0107] Alternatively, the font setting interface may include a first option (such as Figure 6 the first option 615 in the font setting interface 610 shown), and this first option is used to trigger the mobile phone to update the text style currently adopted by the mobile phone with the text style selected by the user in the font setting interface. Then, the first operation may refer to the click operation of the user on this first option.

[0108] S503. The text adjustment module in the mobile phone sends text style change information to the text style distribution module; the text style change information includes text style one.

[0109] The text style distribution module in the mobile phone may send interface information to the text adjustment module in advance, and this interface information is used to indicate the interface provided by the text style distribution module. Furthermore, after determining text style one, the text adjustment module may send the text style change information to the interface indicated by this interface information. Then, the text style distribution module may receive the text style change information from this interface.

[0110] It should be noted that in addition to the notification method where the text adjustment module described in S503 transfers text style one to the text style distribution module, other notification methods may also be used to transfer text style one to the text style distribution module. For example, after determining text style one, the text adjustment module may update the target database, and this target database is used to store text styles. The text style distribution module may monitor this target database. When the text adjustment module updates the text style in the target database to text style one, the text style distribution module may obtain text style one.

[0111] Exemplarily, in a mobile phone using the Android TM operating system, the text style distribution module may be implemented through the Activity Manager Service (AMS) in the mobile phone. Among them, AMS is used to control each process of the APPs in the mobile phone, ensuring that the mobile phone operating system can reasonably schedule and run different APPs.

[0112] S504. The mobile phone runs the second APP in response to the second operation input by the user.

[0113] The mobile phone receives and responds to the second operation, starts running the second APP, and triggers the second APP to generate a second interface. Among them, the second operation is used to trigger the mobile phone to display the second interface in the second APP (such as, a chat APP). The second APP can be any application in the mobile phone (such as, the settings APP, or any third-party APP), and the second interface can be any interface in the mobile phone other than the font settings interface.

[0114] In the embodiment of the present application, when the first operation is an operation to trigger the closing of the font settings interface, the second operation can be the same operation as the first operation, or the second operation can be an operation different from the first operation. When the first operation is a click operation of the user on the first option in the font settings interface, the second operation can be an operation different from the first operation.

[0115] S505. When the mobile phone starts running the second APP, the text style distribution module in the mobile phone sends text style one to the second APP.

[0116] The text style distribution module can send the text style one to the second APP running on the mobile phone when the mobile phone starts running the second APP, that is, when the second APP becomes the foreground running state.

[0117] Exemplarily, the AMS in the mobile phone can send a first instruction to the Activity Record in the mobile phone when the mobile phone starts running the second APP in the foreground. The first instruction is used to trigger the regeneration of the second interface of the second APP. The first instruction can include text style one. Then, ActivityRecord can send an instruction to trigger the restart of the second APP to the main thread Activity Thread of the second APP through cross-process. The main thread Activity Thread of the second APP responds to the instruction to trigger the restart of the second APP and executes S506 - S508.

[0118] It should be noted that in addition to the mobile phone described in S505 responding to the second operation to trigger the running of the second APP and sending the text style one to the second APP, the mobile phone can also directly send the text style one to all APPs (including the second APP) in the mobile phone that have a need for an adjustment icon after determining the text style one. The APPs in the mobile phone that have a need for an adjustment icon can refer to the APPs in the mobile phone that store pre-configured icon data. The embodiment of the present application does not limit the timing of the mobile phone sending the text style one to the second APP.

[0119] Further, if the mobile phone directly sends the first text style to all the APPs (including the second APP) in the mobile phone that have a requirement for the adjustment icon after determining the first text style, and then the mobile phone receives and responds to the second operation that triggers the running of the second APP, the second APP in the mobile phone can directly generate the second interface in the second APP according to the first text style.

[0120] In the embodiment of the present application, for the text (which can be referred to as the first text) in the second interface to be displayed, the second APP in the mobile phone can directly generate the first text in the second interface to be displayed according to the first text style. For at least one first icon in the second interface to be displayed, the mobile phone needs to first determine the first icon parameter corresponding to the first text style corresponding to the first operation according to the preset matching relationship; and then generate at least one first icon in the second interface to be displayed according to the first icon parameter.

[0121] Among them, the preset matching relationship is used to represent the corresponding relationship between the text style and the icon parameter.

[0122] In some embodiments, the text style may include the font weight, and the icon parameter can be used to indicate the thickness of the icon line. Further, the preset matching relationship may include: multiple font weight values, and the thickness value of the icon line corresponding to each font weight value. Among them, the larger the font weight value in the preset matching relationship, the larger the corresponding thickness value of the icon line.

[0123] Exemplarily, the preset matching relationship includes: the first icon thickness value corresponding to the range of the first font weight value (such as, [0.6, 0.8)), the second icon thickness value corresponding to the range of the second font weight value (such as, [0.8, 1.2)), and the third icon thickness value corresponding to the range of the third font weight value (such as, [1.2, 1.6)). Among them, [0.6, 0.8) represents the range of the font weight value from 0.6 to 0.8 and does not include 0.8. [0.8, 1.2) represents the range of the font weight value from 0.8 to 1.2 and does not include 1.2. [1.2, 1.6) represents the range of the font weight value from 1.2 to 1.6 and does not include 1.6.

[0124] In the embodiment of the present application, the preset matching relationship can be configured in each APP in the mobile phone that stores the pre-configured icon data. For example, the preset matching relationship can be configured in the icon adjustment module in the second APP (such as Figure 3 the shown **Chat APP). Or, it can be configured in the operating system of the mobile phone. For example, the preset matching relationship can be configured in the icon adjustment module in the application framework layer of the mobile phone (not shown in the drawings).

[0125] In this embodiment, take the icon adjustment module configured in the second APP according to the preset matching relationship as an example. After the second APP in the mobile phone obtains the first text style corresponding to the first operation, it can determine the first icon parameter corresponding to the first text style according to the first text style and the preset matching relationship through the icon adjustment module in the second APP. As Figure 5 shown, after S505, the mobile phone can execute S506.

[0126] S506: Determine, through the icon adjustment module in the second APP, the first icon parameter corresponding to the first text style according to the first text style and the preset matching relationship.

[0127] Exemplarily, take the first text style including the font weight value X, the preset matching relationship including the first icon weight value corresponding to the range of the first font weight value (i.e., [0.6, 0.8)), the second icon weight value corresponding to the range of the second font weight value (i.e., [0.8, 1.2)), and the third icon weight value corresponding to the range of the third font weight value (i.e., [1.2, 1.6)) as an example to introduce the process of the icon adjustment module determining the first icon data corresponding to the first text style. As Figure 9 shown, the icon adjustment module first obtains the first text style. Then, the icon adjustment module determines whether X is less than 0.8. If X is less than 0.8, the icon adjustment module determines that the first icon parameter includes the first icon weight value. If X is greater than or equal to 0.8, the icon adjustment module determines whether X is less than 1.2. If X is less than 1.2, the icon adjustment module determines that the first icon parameter includes the second icon weight value. If X is greater than or equal to 1.2, the icon adjustment module determines that the first icon parameter includes the third icon weight value.

[0128] In some other embodiments, the preset matching relationship may be configured in the icon adjustment module in the application framework layer of the mobile phone. In this embodiment, after the second APP in the mobile phone obtains the first text style corresponding to the first operation, it may send the first text style to the icon adjustment module in the mobile phone; the icon adjustment module in the mobile phone may determine the first icon parameter corresponding to the first text style according to the first text style and the preset matching relationship. Specifically, the mobile phone may execute S506a-S506c. S506a: The second APP sends the first text style to the icon adjustment module in the mobile phone. Among them, during the process of generating the second interface, the second APP may first send the first text style to the icon adjustment module in the mobile phone to obtain the first icon parameter corresponding to the first text style. S506b: The icon adjustment module in the mobile phone determines the first icon parameter corresponding to the first text style according to the first text style and the preset matching relationship. S506c: The icon adjustment module in the mobile phone sends the first icon parameter to the second APP. Among them, the method for determining the first icon parameter in S506b is similar to the method for determining the first icon parameter in S506, and will not be elaborated here in the embodiments of the present application.

[0129] S507. The second APP obtains, according to the first icon parameter, the icon data corresponding to the first icon parameter of at least one first icon in the second APP from the pre-configured icon data of the second APP.

[0130] Exemplarily, when the font weight value X in the first text style is greater than 1.2, the first icon parameter includes the third icon weight value. At this time, the second APP may obtain, from the pre-configured icon data of the second APP, the icon data corresponding to the third icon weight value of each first icon among at least one first icon.

[0131] In the embodiments of the present application, the icons in any interface may be divided into linear icons, surface icons, and line-surface combination icons. Among them, the linear icon may refer to an icon drawn by lines. For example, Figure 2 the icons 211 - 216 shown, Figure 7 the icons 723 and 724 shown in (b) of Figure 7 The surface icon refers to an icon drawn by a block pattern (such as a block pattern filled with color). For example, Figure 7 the icons 722 and 725 shown in (b) of

[0132] It can be understood that since the surface icons are composed of block patterns, and the block patterns have a larger area compared to lines and are more prominent in the interface. Therefore, for the surface icons composed of block patterns, the surface icons may not need to be enlarged or thickened. That is to say, the mobile phone can display the surface icons according to the default icon parameters regardless of whether the text style adopted by the mobile phone changes.

[0133] In addition, for the linear icons, the lines in the linear icons are similar to the strokes in the text. If the text style changes, it means that the strokes in the text change. If the lines in the linear icons also change with the text style, then the lines in the linear icons and the strokes in the text can be kept consistent and visually matched. Therefore, the mobile phone can adjust the linear icons as the text style adopted by the mobile phone changes, so that the linear icons and the text are visually matched. Similarly, since the line-surface combination icons also include lines, the mobile phone can also adjust the line-surface combination icons as the text style adopted by the mobile phone changes.

[0134] In some embodiments, after the mobile phone determines a first text style corresponding to a first operation in response to the first operation, in response to the second operation, it can generate the text in the second interface (which can be referred to as the first text corresponding to the first text style) and at least one first icon in the second interface (which can be referred to as at least one first icon corresponding to the first text style) according to the first text style; it can also generate other icons in the second interface except for at least one first icon according to the default text style of the mobile phone (which can be referred to as other icons corresponding to the default text style of the mobile phone). The mobile phone then generates a second interface composed of the first text corresponding to the first text style, at least one first icon corresponding to the first text style, and other icons corresponding to the default text style of the mobile phone.

[0135] Among them, at least one first icon in the second interface may include a linear icon and / or a line-surface combination icon. The other icons in the second interface except for at least one first icon may be surface icons.

[0136] In some other embodiments, in response to the second operation, when all the icons in the second interface to be displayed only include at least one first icon, the mobile phone can generate a second interface including the first text corresponding to the first text style and at least one first icon corresponding to the first text style.

[0137] Alternatively, in response to the second operation, when all the icons in the second interface to be displayed include at least one first icon and other icons except for at least one first icon, the mobile phone can generate a second interface including the first text corresponding to the first text style, at least one first icon corresponding to the default text style of the mobile phone, and other icons corresponding to the default text style of the mobile phone.

[0138] In the embodiments of the present application, pre-configured icon data may be stored in the second APP. The pre-configured icon data in the second APP may include multiple icon data of each of the multiple second icons. The multiple icon data of each second icon correspond one-to-one to the multiple icon parameters of this second icon. Each icon parameter is used to indicate at least one of the icon style, icon size, thickness of the icon lines, and icon style of the corresponding icon. Among them, at least one first icon belongs to the multiple second icons.

[0139] Optionally, the pre-configured icon data in the second APP may further include icon data corresponding to the icon parameters default to the mobile phone of each of the multiple third icons. The icon data corresponding to the icon parameters default to the mobile phone of each third icon is also icon data corresponding to the text style default to the mobile phone. Among them, the other icons in the second interface except for at least one first icon belong to the multiple third icons.

[0140] Exemplarily, if the second APP is an APP running in the Android TM operating system, the pre-configured icon data of the second APP may be stored in the drawable abstract class that can be drawn.

[0141] Among them, the multiple icon parameters of different icons may be the same. For example, taking the thickness of the icon lines included in the icon parameters as an example, the multiple icon parameters of each icon may include the thickness value of the first icon, the thickness value of the second icon, and the thickness value of the third icon. Among them, the thickness value of the first icon is less than the thickness value of the second icon, and the thickness value of the second icon is less than the thickness value of the third icon. The icon thickness value is used to indicate the thickness of the icon lines. Continuing with an example of a phone icon in the second APP, as Figure 8 shown, the pre-configured icon data of the second APP may include: the phone icon corresponding to the thickness value of the first icon, the phone icon corresponding to the thickness value of the second icon, and the phone icon corresponding to the thickness value of the third icon.

[0142] S508. The second APP sends the first text style and the obtained icon data to the UI framework.

[0143] The second APP may send the first text style to the UI thread corresponding to the text in the second interface in the UI framework, and send the obtained icon data to the UI thread corresponding to the icon in the second interface.

[0144] S509. The UI framework renders and draws the screen of the first text in the second interface to be displayed according to the first text style; and also renders and draws the screen of at least one first icon in the second interface to be displayed according to the obtained icon data.

[0145] The UI thread corresponding to the text in the UI framework can draw the initial screen of the first text according to the first text style; the rendering thread corresponding to the text in the UI framework then renders the initial screen of the first text to obtain the screen of the first text. At the same time, the UI thread corresponding to the icon in the UI framework can draw the initial screens of at least one first icon according to the obtained icon data; the rendering thread corresponding to the icon in the UI framework then renders the initial screens of the at least one first icon after drawing to obtain the screens of the at least one first icon.

[0146] S510. The UI framework sends the rendered screen to the Display framework.

[0147] Among them, the rendered screen can include the screen of the first text and the screens of at least one first icon.

[0148] S511. The composition thread in the Display framework composes the rendered screen to obtain the second interface.

[0149] After the composition thread in the Display framework obtains the second interface, it can send the second interface to the display driver. The display driver drives the touch screen to display the second interface. Among them, the second interface includes: the first text corresponding to the first text style and at least one first icon corresponding to the first text style.

[0150] It should be noted that the second interface to be displayed may include other interface contents in addition to the first text and at least one first icon. For example, a status bar, a message prompt box, and at least one third icon. In this case, the UI framework in the mobile phone may include not only the UI thread and the rendering thread corresponding to the text, and the UI thread and the rendering thread corresponding to the icon, but also the UI thread and the rendering thread corresponding to other interface contents. When the UI framework in the mobile phone includes the UI thread and the rendering thread corresponding to other interface contents, the above-mentioned rendered screen may also include the screens of other interface contents. At this time, the second interface obtained by the composition thread composing the rendered screen may also include other interface contents. Figure 5 Taking the UI framework only drawing and rendering to obtain the screen of the first text and the screens of at least one first icon as an example, the specific process of the interface adjustment method is described.

[0151] Exemplarily, taking Figure 6 the font setting interface 610 of the APP shown as an example, after the mobile phone determines that the text style selected by the user in the font setting interface 610 is the first text style corresponding to the first operation, and receives and responds to the operation of the user triggering to display the new contact interface in the contact APP of the mobile phone, it can generate according to the first text style Figure 2The interface 210 shown. Among them, the first text style may include: the font size value indicated by the slider 611 and the font weight value indicated by the slider 612. The font size value indicated by the slider 611 is equal to the default font size value of the mobile phone. The font weight value indicated by the slider 612 is greater than the default font weight value of the mobile phone. At this time, the text in the interface 210 generated by the mobile phone according to this first text style is bold, and the lines of the icons in the interface 210 are also bold.

[0152] Exemplarily, after the mobile phone determines that the text style selected by the user in the font setting interface 610 is the first text style corresponding to the first operation (including the font size value indicated by the slider 611 and the font weight value indicated by the slider 612), in response to the operation of the user triggering to display the main setting interface of the setting APP, the main setting interface 720 can be generated according to this first text style. Compared with Figure 7 the main setting interface 710 generated according to the default text style of the mobile phone shown in (a) of Figure 7 the text in the main setting interface 720 shown in (b) of

[0153] is bold, and the lines of the icons 721, 723, 724, 726, and 727 in the main setting interface 720 are all bold.

[0154] Please refer to Figure 10 The interface adjustment method provided by the embodiments of the present application can be S1001 - S1004.

[0155] S1001. The mobile phone displays the first interface of the first APP; the first interface is used to set the text style displayed by the mobile phone.

[0156] The mobile phone can receive and respond to the operation of the user triggering to display this first interface (such as the font setting interface in the setting APP), and display this first interface according to the current text style. Among them, the current text style may be the text style currently adopted by the first APP in the mobile phone, or the text style currently adopted by the mobile phone. The mobile phone can receive and respond to the operation of the user adjusting the text style input on the first interface each time, and update this first interface according to the text style selected by the user in the first interface.

[0157] Then, after the mobile phone obtains the text style selected by the user in the first interface, it can directly use the obtained text style selected by the user in the first interface to update the text style currently adopted by the first APP or the text style currently adopted by the mobile phone.

[0158] Alternatively, after the mobile phone obtains the text style selected by the user in the first interface, it can also receive a first operation input by the user in the first interface; then, in response to the first operation, the mobile phone determines that the text style selected by the user in the first interface is a first text style corresponding to the first operation, and uses the first text style to update the text style currently adopted by the first APP or the text style currently adopted by the mobile phone.

[0159] Among them, the text style currently adopted by the first APP and the text style currently adopted by the mobile phone can be the same or different. For example, if the first APP is a system APP in the mobile phone, the text style adopted by the first APP can be the same as the text style currently adopted by the mobile phone. If the first APP is a third-party APP in the mobile phone, the text style currently adopted by the first APP and the text style currently adopted by the mobile phone can be the same or different.

[0160] It should be noted that after the mobile phone displays the first interface and before receiving the operation of adjusting the text style input by the user on the first interface, the current text style is the same as the text style indicated by the first interface. Then, after the mobile phone receives the operation of adjusting the text style input by the user on the first interface, the text style selected by the user in the first interface and the current text style can be the same or different.

[0161] In addition, in the embodiments of the present application, taking the mobile phone responding to the first operation and using the text style selected by the user in the first interface to update the text style currently adopted by the first APP or the text style currently adopted by the mobile phone as an example, the following method provided by the embodiments of the present application is described.

[0162] Among them, the text style currently adopted by the system APP in the mobile phone can be the same as the text style currently adopted by the mobile phone. The text style currently adopted by any third-party APP in the mobile phone can be the same as or different from the text style currently adopted by the mobile phone.

[0163] In the embodiments of the present application, the first APP can be the settings APP in the mobile phone, and the first interface is the font settings interface of the settings APP. Alternatively, the first APP can be a third-party APP in the mobile phone, and the first interface is the font settings interface of the third-party APP.

[0164] Among them, if the first interface is the font setting interface of the Settings APP in the mobile phone, this first interface can be used to set the text style of any interface other than the font setting interface of any APP in the mobile phone. At this time, in response to the first operation, the mobile phone can use this text style one to update the text style currently adopted by the mobile phone.

[0165] If the first interface is the font setting interface of a third-party APP in the mobile phone, this first interface can be used to set the text style of any interface other than the font setting interface in this third-party APP. At this time, in response to the first operation, the mobile phone can use this text style one to update the text style currently adopted by the first APP.

[0166] In the embodiments of the present application, the first interface may include sample text. For example, Figure 4 the font setting interface 410 in the Settings APP as shown. Or, in addition to including sample text, the first interface may further include sample icons. For example, Figure 6 the font setting interface 610 as shown.

[0167] It can be understood that when the electronic device displays the first interface, it can receive and respond to the operation of adjusting the text style input by the user each time on the first interface, obtain the text style selected by the user on the first interface, and update the sample text and sample icons in the first interface according to the obtained text style selected by the user on the first interface. That is to say, the sample text and sample icons in this first interface can both change with the change of the text style selected by the user each time on the first interface.

[0168] It should be noted that the specific process of the first APP in the mobile phone updating the sample text and sample icons in the first interface according to the text style selected by the user each time on the first interface can refer to the above Figure 5 detailed introduction about the second APP in the mobile phone generating the first text and at least one first icon in the second interface according to the text style one corresponding to the first operation. Among them, the pre-configured icon data of the first APP may include multiple icon data of each sample icon in the first interface, and the details of the multiple icon data of each sample icon can refer to the above detailed introduction of the multiple icon data of each second icon in the second interface. These are not elaborated in the embodiments of the present application here.

[0169] S1002. The mobile phone receives a first operation input by the user on the first interface, and this first operation is used to set the display styles of the text and icons displayed on the mobile phone to text style one.

[0170] When the mobile phone displays the first interface, it can receive the first operation. Then, in response to the first operation, the mobile phone can determine that the text style selected by the user on the first interface is the first text style corresponding to the first operation (i.e., the first text style), and save the first text style.

[0171] Among them, the details of the first operation can refer to the detailed introduction of the first operation in S502 above.

[0172] In some embodiments, since the example text and example icons in the first interface change with the change of the text style selected by the user each time on the first interface, it can be known that before the mobile phone determines the first text style corresponding to the first operation in response to the first operation, it first displays the example text corresponding to the text style selected by the user any time on the first interface, and the example icon corresponding to the text style selected by the user this time on the first interface.

[0173] Among them, the example icon corresponding to the text style selected by the user this time on the first interface is an icon generated by the mobile phone according to the icon parameters corresponding to the text style selected by the user this time on the first interface.

[0174] It can be understood that since the example text and example icons in the first interface change with the change of the text style selected by the user each time on the first interface, it can be known that the mobile phone can display the example text corresponding to the text style selected by the user a certain time on the first interface, and the example icon corresponding to the text style selected by the user this time on the first interface. In this way, the user can input the first operation to the mobile phone when the example text in the first interface meets their usage requirements and the example icon in the first interface meets their usage requirements. In response to the first operation, the mobile phone can determine that the text style selected by the user this time on the first interface is the first text style corresponding to the first operation, and moreover, the first text style is a text style that meets the user's requirements. Furthermore, it can be known that the text and icons in any interface other than the first interface generated by the mobile phone according to the first text style meet the user's requirements.

[0175] S1003. The mobile phone receives a second operation input by the user, and the second operation is used to display the second interface of the second APP.

[0176] S1004. The mobile phone responds to the above second operation and displays the second interface. The second interface includes: the first text corresponding to the first text style, and at least one first icon corresponding to the first text style.

[0177] After the mobile phone determines the first text style corresponding to the first operation in response to the first operation, it can, in response to the second operation, generate a second interface of the second APP according to the first text style and display the second interface. Wherein, the second operation can trigger the mobile phone to display the second interface of the second APP.

[0178] Wherein, for the details of the second operation, reference can be made to the detailed description of the second operation in S504 above.

[0179] In the embodiments of the present application, if the first interface is the font setting interface of the Settings APP in the mobile phone, the second APP can be any application in the mobile phone (for example, the Settings APP, or any third-party APP), and the second interface can be any interface in the mobile phone other than the font setting interface. If the first interface is the font setting interface of a third-party APP in the mobile phone, the second APP and the first APP can be the same APP, both the second APP and the first APP are the third-party APP, and the second interface can be any interface in the second APP other than the font setting interface.

[0180] It can be understood that the font setting interface of the Settings APP in the mobile phone can be used to set the text style of any interface in any APP in the mobile phone other than the font setting interface. Therefore, after the mobile phone determines the first text style corresponding to the first operation in response to the first operation input on the font setting interface of the Settings APP, in response to the second operation triggered by the user to display the second interface of any APP, it can generate the second interface of this APP according to the first text style.

[0181] Secondly, the font setting interface of any third-party APP in the mobile phone can be used to set the text style of the interface in this third-party APP. Therefore, after the mobile phone determines the first text style corresponding to the first operation in response to the first operation input on the font setting interface of this third-party APP, in response to the operation triggered by the user to display any interface other than the font setting interface in this third-party APP, it can generate this interface according to the first text style.

[0182] In the embodiments of the present application, the APPs in the mobile phone that store pre-configured icon data all belong to the APPs with the need to adjust icons. For each APP with the need to adjust icons, after the mobile phone determines the first text style corresponding to the first operation, it can send the first text style to each APP with the need to adjust icons, so that when the mobile phone triggers the operation of any APP with the need to adjust icons, this APP with the need to adjust icons can generate an interface including icons corresponding to the first text style.

[0183] In some embodiments, after the mobile phone determines the first text style corresponding to the first operation, it may not send the first text style to the APPs in the mobile phone first. Then, the mobile phone can receive and respond to the operation of triggering the running of any one of the APPs in the mobile phone, and send the first text style to this one APP. That is to say, when the mobile phone starts to run any one of the APPs in the foreground, it sends the first text style to this APP. For example, when the mobile phone responds to the second operation of triggering the running of the second APP, it can send the first text style to the second APP; the second APP in the mobile phone can then generate a second interface in the second APP according to the first text style.

[0184] In other embodiments, after the mobile phone determines the first text style, it can directly send the first text style to all the APPs in the mobile phone that have a need for adjusted icons (i.e., the APPs in the mobile phone that store pre-configured icon data). Among them, the APPs in the mobile phone that store pre-configured icon data may include the second APP. Then, when the mobile phone responds to the second operation of triggering the running of the second APP, the second APP in the mobile phone can directly generate a second interface in the second APP according to the first text style.

[0185] It should be noted that when the mobile phone determines the text style selected by the user each time in the first interface, it does not need to send it to other APPs except the first APP.

[0186] In some embodiments, when the mobile phone responds to the second operation, it can directly draw and render the picture of the first text in the second interface to be displayed according to the first text style. At the same time, the mobile phone can first determine the first icon parameter corresponding to the first text style according to the preset matching relationship; then the mobile phone can obtain the icon data corresponding to the first icon parameter from the icon data of at least one first icon in the second interface to be displayed from the pre-configured icon data; then, the mobile phone can draw and render the picture of at least one first icon according to the obtained icon data. Finally, the mobile phone can generate and display a second interface including the first text and at least one first icon based on the picture of the first text and the pictures of at least one first icon.

[0187] It can be understood that in order to implement the above functions, the above electronic device (such as a mobile phone) includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments disclosed in this article, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0188] Exemplarily, Figure 11 FIG. is a schematic diagram of the hardware structure of a mobile phone provided by an embodiment of the present application. As Figure 11 shown, the mobile phone may include a processor 1110, an external memory interface 1120, an internal memory 1121, a sensor module 1130, a display screen 1140, etc. Among them, the sensor module 1130 may include a touch sensor 1130A, etc.

[0189] The processor 1110 may be used to execute each function or step performed by the mobile phone in the above method embodiments.

[0190] A memory may also be provided in the processor 1110 for storing instructions and data. For example, the text style 1 corresponding to the first operation is stored. In some embodiments, the memory in the processor 1110 is a cache memory. This memory may save the instructions or data that the processor 1110 has just used or recycled. If the processor 1110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 1110, and thus improves the efficiency of the system.

[0191] The external memory interface 1120 may be used to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 1120 through the external memory interface 1120 to implement the data storage function. The internal memory 1120 may be used to store computer-executable program codes, and the executable program codes include instructions. The processor 1120 executes each function or step performed by the mobile phone in the above method embodiments by running the instructions stored in the internal memory 1120. The internal memory 1121 may include a storage program area and a storage data area. Among them, the storage program area may store an operating system, APPs required for at least one function (such as a font adjustment function), etc. The storage data area may store data created during the use of the mobile phone (such as the default text style, the above-mentioned first text style, the above-mentioned preset matching relationship, etc.). In addition, the internal memory 1121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0192] The display screen 1140 is used to display interfaces and the like. The display screen 1140 includes a display panel. The display panel can adopt a liquid crystal display (LCD), a light-emitting diode (LED), an organic light-emitting diode (OLED), etc.

[0193] Among them, if the display screen 1140 in the embodiment of the present application integrates the touch sensor 1130A, the display screen 1140 can be called a touch screen. The touch sensor 1130A can also be called a "touch control panel". That is to say, the display screen 1140 can include a display panel and a touch panel. The touch sensor 1130A is used to detect touch operations acting on or near it. After the touch sensor 1130B detects a touch operation (such as the above-mentioned first operation, the above-mentioned second operation), it can trigger the driver of the kernel layer of the mobile phone to periodically scan the touch parameters generated by the touch operation. Then, the driver of the kernel layer passes the touch parameters to the relevant modules in the upper layer, so that the relevant modules can determine the touch event corresponding to the touch parameters. In the embodiment of the present application, taking the display screen 1140 as a display screen integrated with a touch sensor (i.e., a touch screen) as an example, the specific process of the above interface adjustment method is described.

[0194] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.

[0195] The embodiment of the present application also provides an electronic device, which includes: a processor, a memory, and a communication interface; the memory and the communication interface are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions. Among them, when the processor executes the computer instructions, the electronic device is enabled to execute each function or step executed by the mobile phone in the above method embodiment.

[0196] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions run on the electronic device, the electronic device is enabled to execute each function or step executed by the mobile phone in the above method embodiment.

[0197] For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, an optical data storage device, or the like.

[0198] An embodiment of the present application also provides a computer program product including computer instructions. When the computer instructions run on an electronic device, the electronic device is caused to execute each function or step performed by the mobile phone in the above method embodiment; or when the computer instructions run on a Bluetooth headset, the Bluetooth headset is caused to execute each function or step performed by the Bluetooth headset in the above method embodiment.

[0199] Among them, the electronic device, the computer-readable storage medium, or the computer program product provided by the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.

[0200] Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device (such as an electronic device) is divided into different functional modules to complete all or part of the functions described above. The specific working processes of the systems, devices (such as electronic devices), and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated here.

[0201] In several embodiments provided by the present application, it should be understood that the disclosed systems, devices (such as electronic devices), and methods can be implemented in other ways. For example, the device (such as an electronic device) embodiment described above is merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.

[0202] The unit described as a separation component may or may not be physically separated. The component displayed as a unit may or may not be a physical unit, that is, it may be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0203] In addition, each functional unit in various embodiments of the present application may be integrated into a processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0204] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, magnetic disk, or optical disc and other various media that can store program codes.

[0205] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An interface adjustment method, characterized in that, applied to an electronic device, the method comprising: displaying a first interface of a first application, the first interface including example text and example icons corresponding to a second text style, the first interface being used to set the text style displayed by the electronic device, the text style including at least one of font style, font size, font weight, and font style, and the font style being used to indicate whether the font is italic; receiving a first operation input by a user on the first interface, the first operation being used to set the display styles of the text and icons displayed by the electronic device to a first text style; after receiving the first operation, receiving a second operation input by the user; in response to the second operation, displaying a second interface of a second application, the second interface including: first text corresponding to the first text style, and at least one first icon corresponding to the first text style.

2. The method according to claim 1, characterized in that, the first interface includes example text and example icons; the method further comprising: in response to the first operation, displaying the example text and the example icons corresponding to the first text style on the first interface; wherein, the first text style is different from the second text style.

3. The method according to claim 1 or 2, characterized in that, the first application is a settings application of the electronic device, and the first interface is a font settings interface of the settings application; the second application is any application in the electronic device, and the second interface is any interface in the electronic device other than the font settings interface.

4. The method according to claim 1 or 2, characterized in that, the first application is a third-party application of the electronic device, and the first interface is a font settings interface of the third-party application; the second application is the same application as the first application, and the second interface is any interface in the second application other than the font settings interface.

5. The method according to any one of claims 1-4, characterized in that, the at least one first icon includes a linear icon and / or a line-plane combination icon; wherein, the linear icon refers to an icon drawn by lines; the line-plane combination icon refers to an icon drawn by lines and block patterns.

6. The method according to any one of claims 1-5, characterized in that, pre-configured icon data is stored in the second application, the pre-configured icon data including a plurality of icon data of each of a plurality of second icons, and the plurality of icon data corresponding one-to-one to a plurality of icon parameters of the second icons; the icon parameters are used to indicate at least one of the icon style, icon size, thickness of the icon lines, and icon style of the corresponding icon; the plurality of second icons includes the at least one first icon; the displaying the second interface in response to the second operation input by the user includes: In response to the second operation, determine a first icon parameter corresponding to the first text style according to a preset matching relationship; wherein, the preset matching relationship is used to represent the corresponding relationship between the text style and the icon parameter; From the pre-configured icon data, obtain the icon data corresponding to the first icon parameter in the icon data of the at least one first icon in the second interface to be displayed; According to the obtained icon data, draw and render the picture of the at least one first icon; According to the first text style, draw and render the picture of the first text in the second interface to be displayed; Generate and display the second interface including the first text and the at least one first icon.

7. The method according to claim 6, wherein, the preset matching relationship is configured in the second application, or the preset matching relationship is configured in the operating system of the electronic device.

8. The method according to claim 6 or 7, wherein, the text style includes the font weight, and the icon parameter is used to indicate the thickness of the icon line; the preset matching relationship includes: a plurality of font weight values, and the thickness value of the icon line corresponding to each font weight value; wherein, the larger the font weight value in the preset matching relationship, the larger the corresponding thickness value of the icon line.

9. The method according to claim 1, wherein, after receiving the second operation and before displaying the second interface of the second application, the method further includes: after receiving the second operation, the second application receives the first text style; the icon adjustment module in the second application determines a first icon parameter corresponding to the first text style; the second application determines the icon data corresponding to the first icon parameter according to the pre-configured icon data; the second application sends the first text style and the first icon data to the UI framework in the electronic device; the UI framework draws and renders the picture of the first text to be displayed according to the first text style, and draws and renders the picture of at least one of the first icons to be displayed according to the first icon data; the UI framework sends the picture of the first text and the picture of at least one of the first icons to the display framework in the electronic device; the display framework synthesizes the picture of the first text and the picture of at least one of the first icons to obtain the second interface.

10. The method according to claim 9, wherein, the method further includes: after receiving the first operation, the first application sends text style change information including the first text style to the text style distribution module on the electronic device; after receiving the second operation, the text style distribution module sends the first text style to the second application.

11. An electronic device, wherein, The electronic device includes: a processor, a memory, and a communication interface; the memory and the communication interface are coupled to the processor, and the memory is used to store computer program code, and the computer program code includes computer instructions; wherein, when the processor executes the computer instructions, the electronic device is caused to execute the method according to any one of claims 1-10.

12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions; when the computer instructions are run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-10.