Allan Day aday@gnome.org Calum Benson Adam Elman Seth Nickell Colin Robertson Christian Kirbach christian.kirbach@gmail.com 2014 Mario Blättermann mario.blaettermann@gmail.com 2016 Menüs

A menu is a list of actions and/or options which is revealed by pressing a heading or button. In the case of context menus, the menu is opened through a secondary action (such as secondary click with a mouse, or long press with a touch screen) on an item of content.

Anwendungsfälle

Menus can appear as a part of a menu bar, as context menus (see selection mode), or as part of a button menu. Refer to the relevant pages for advice on when to use these elements.

Größe und Struktur

Menus should contain between three and 12 top-level items. If a menu contains more than 12 items, evaluate whether all the items are necessary and belong in the menu. If you are unable to reduce the size, submenus can be used. However, they should be avoided if at all possible, as they are physically difficult to use.

Untermenüs sollten zwischen drei und sechs Einträgen enthalten und niemals weitere Untermenüs.

Fassen Sie ähnliche Menüeinträge mittels Trennern in einer Gruppe zusammen. Dadurch wird das Verständnis erleichtert und die Bedienung beschleunigt. Bei Erstellen von Gruppen:

Ordnen Sie Gruppen und Gruppeneinträge logisch an, entweder nach Wichtigkeit, Aufgabenfolge oder der zu erwartenden Häufigkeit der Nutzung. Der oberste und der unterste Eintrag sollten für wichtige oder interessante Funktionalität reserviert werden, das diese Einträge am schnellsten die Aufmerksamkeit des Benutzers auf sich lenken.

Platzieren Sie Gruppen mit einem einzelnen Eintrag ganz oben oder ganz unten im Menü oder fassen Sie sie in einer Gruppe mit anderen Einzeleinträgen zusammen.

Mischen Sie nicht verschiedene Menüeintragstypen innerhalb einer Gruppe - Aktionen, Ankreuzfelder und Auswahlknöpfe sollten voneinander getrennt werden.

Allgemeine Richtlinien

Provide an access key for every menu item. You may use the same access key on different menus in your application, but avoid duplicating access keys on the same menu. Note that unlike other controls, once a menu is displayed, its access keys may be used by just typing the letter; it is not necessary to press the Alt key at the same time.

Label menu items with verbs for commands and adjectives for settings, using header capitalization.

Use ellipses when a menu item requires further input from the user to complete an action.

Two linked actions can be combined into a single menu item, by changing the label when the item is selected. For example, a Play item may change to Pause. However, only use this type of item when actions are logical opposites which are obvious to users. Likewise, do not use this technique for settings - use check boxes or radio buttons instead.

API-Referenz

GtkMenu

GtkMenuBar

GtkMenuButton

GtkMenuItem

GtkRadioMenuItem

GtkCheckMenuItem

GtkSeparatorMenuItem

GtkPopoverMenu