FIELD

The present application relates to the field of display, particularly to a method for displaying a GUI for providing menu items and a display device.

BACKGROUND

In order to meet personalized needs of users, display devices may not only provide users with various traditional program contents received via data broadcasting, but also provide users with various applications and service contents provided by content manufacturers.

While displaying the various contents, display devices also provide menu items for operations on the various contents. However, display locations of these menu items provided by the display devices are usually fixed. After the language of display devices is switched based on a user's instruction, these menu items are usually displayed in disorder, affecting the visual experience of the users.

For example, when expressing a term with the same meaning, texts in English and Portuguese may have different lengths, which may result in an incomplete display of the text in a reserved space, or even text overlay or overlap on a user interface. Thus, to some extent, the layout and/or visual effects of an original user interface may be affected.

SUMMARY

The embodiments of the present application provide a method for displaying a Graphical User Interface (GUI) for menu items and a display device, which are used to automatically adjust display locations of the menu items according to a setting language of the display device, thereby improving the visual experience of users.

According to a first aspect, the embodiments of the present application provide a method for presenting a GUI. The method includes: in response to a first control instruction for displaying first image content input from a user, displaying the first image content in a content display area of a display; according to a setting language of the display device, calculating a first layout location of at least one menu item in the menu display area of the display, where the at least one menu item is configured for the first image content and used to perform functions associated with the first image content; and displaying the at least one menu item based on the first layout location.

In some embodiments, the at least one menu item is configured by default or by settings of the user.

In some embodiments, the at least one menu item is arranged from one edge to an other edge of the menu display area, so as to keep any two menu items spaced overlapping with each other.

In some embodiments, the calculating the first layout location of the at least one menu item in the menu display area includes: calculating a width occupied by the at least one menu item in the menu display area based on the setting language of the display device; and determining the first layout location of the at least one menu item in the menu display area based on the calculated width and an arrangement direction from one edge to the other edge of the menu display area.

In some embodiments, a menu item of the at least one menu item comprises a name of the menu item and an icon of the menu item.

In some embodiments, the calculating the width occupied by the at least one menu item in the menu display area includes: calculating a text width corresponding to the name of the menu item in the setting language of the display device; obtaining a width corresponding to the icon of the menu item; and determining a sum of the text width corresponding to the name and the width corresponding to the icon as the width occupied by the menu item.

In some embodiments, the method further includes: in response to a second control instruction for modifying the setting language of the display device input from the user, updating the setting language of the display device; in response to a third control instruction for displaying second image content input from the user, displaying the second image content in the content display area of the display, wherein the second image content corresponds to the first image content in updated setting language of the display device; calculating a second layout location of the at least one menu item in the menu display area of the display according to the updated setting language of the display device, wherein the at least one menu item is configured for the second image content and used to perform functions associated with the second image content; and updating display of the at least one menu item in the content display area according to the second layout location.

In some embodiments, function information of a menu item of the at least one menu item corresponds to a color key on a control device for providing user input to the display device.

In the second aspect, the embodiments of the present application provide a display device. The display device includes: a display configured to display images; and a controller configured to: in response to a first control instruction for display of first image content input from a user, display the first image content in a content display area of the display; according to a setting language of the display device, calculate a first layout location of at least one menu item in a menu display area of the display, wherein the at least one menu item is configured for the first image content and used to perform functions associated with the first image content; and display the at least one menu item according to the first layout location.

In some embodiments, the at least one menu item is configured by default or by settings of the user.

In some embodiments, the at least one menu item is arranged from one edge to an other edge of the menu display area, so as to keep any two menu items spaced without overlapping with each other.

In some embodiments, the controller is configured to calculate the first layout location of the at least one menu item in the menu display area by: calculating a width occupied by the at least one menu item in the menu display area based on the setting language of the display device; and determining the first layout location of the at least one menu item in the menu display area based on the calculated width and an arrangement direction from one edge to an other edge of the menu display area.

In some embodiments, a menu item of the at least one menu item comprises a name of the menu item and an icon of the menu item.

In some embodiments, the controller is configured to calculate the width occupied by the at least one menu item in the menu display area by: calculating a text width corresponding to the name of the menu item in the setting language of the display device; obtaining a width corresponding to the icon of the menu item; and determining a sum of the text width corresponding to the name and the width corresponding to the icon as the width occupied by the menu item.

In some embodiments, the controller is further configured to: in response to a second control instruction for modification of the setting language of the display device input from the user, update the setting language of the display device; in response to a third control instruction for display of second image content input from the user, display the second image content in the content display area of the display, wherein the second image content corresponds to the first image content in updated setting language of the display device; calculate a second layout location of the at least one menu item in the menu display area of the display according to the updated setting language of the display device, wherein the at least one menu item is configured for the second image content and used to perform functions associated with the second image content; and update display of the at least one menu item in the content display area according to the second layout location.

In some embodiments, function information of a menu item of the at least one menu item corresponds to a color key on a control device for providing user input to the display device.

In the third aspect, the embodiment of the present application provides a television, including: a remote controller including a plurality of color keys; and a display device including a display and a controller, where the display is configured to display images; and the controller is configured to: receive a first control instruction to display first image content through the remote controller; display the first image content in a content display area of the display in response to the first control instruction; calculate a first layout location of at least one menu item in the menu display area of the display based on the setting language of the display device, where the at least one menu item is configured for the first image content and used to perform functions associated with the first image content; and display at least one menu item based on the first layout location.

In some embodiments, one of the at least one menu item is configured to be controlled by one of the plurality of color keys of the remote controller.

In the above-mentioned embodiments, the display device may provide the image content and can calculate the actual layout location of at least one menu item for performing the functions required for the image content according to the currently setting system language, so as to realize the self-adaptation of menu item layout in different system languages and avoid the incomplete display, overlap or coverage of the menu items in different system languages due to the fixed display location, thus to improve the users' visual experience.

