Blame hig/ru/info-bars.page

Packit 1470ea
Packit 1470ea
<page xmlns="http://projectmallard.org/1.0/" xmlns:uix="http://projectmallard.org/experimental/ui/" type="topic" id="info-bars" xml:lang="ru">
Packit 1470ea
Packit 1470ea
  <info>
Packit 1470ea
    <link type="guide" xref="patterns#secondary"/>
Packit 1470ea
    <desc>Application event notifications</desc>
Packit 1470ea
    <credit type="author">
Packit 1470ea
      <name>Алан Дэй (Allan Day)</name>
Packit 1470ea
      <email>aday@gnome.org</email>
Packit 1470ea
    </credit>
Packit 1470ea
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
Packit 1470ea
  </info>
Packit 1470ea
Packit 1470ea
<title>Info bars</title>
Packit 1470ea
Packit 1470ea
<media type="image" mime="image/svg" src="figures/patterns/info-bar.svg"/>
Packit 1470ea
Packit 1470ea

An info bar is a strip that is placed above a content view, directly below the header bar or tool bar. It contains text, and can also include controls. Info bars persist: they can be permanent, or they can be dismissed by the user.

Packit 1470ea
Packit 1470ea
<section id="when-to-use">
Packit 1470ea
<title>Когда использовать</title>
Packit 1470ea
Packit 1470ea

Info bars can be used to communicate a particular state about a particular content item or location. For example, an info bar could indicate that a document is out of date or being edited by other, or that a service relating to a location is not operating. In some situations, they can also be used to present supplementary information, such as user guidance.

Packit 1470ea
Packit 1470ea

Since info bars are persistent, they are generally more appropriate for communicating ongoing states rather than events (<link xref="notifications">notifications</link> or <link xref="in-app-notifications">in-app notifications</link> are more appropriate here).

Packit 1470ea
Packit 1470ea

Info bars primarily communicate by using text, and have the advantage that they can include both a heading and a longer explanation. However, they also take up space and attract attention. If the state you want to communicate is not critical, or can be communicated through a simple string or icon, you might want to consider alternative approaches: text or icons can be added elsewhere in your interface, or the appearance of navigation controls (such as <link xref="view-switchers">view switchers</link>, <link xref="tabs">tabs</link> or <link xref="sidebar-lists">sidebar</link> lists) can be changed.

Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
<section id="guidelies">
Packit 1470ea
<title>Рекомендации</title>
Packit 1470ea
Packit 1470ea
<list>
Packit 1470ea
<item>

Beware of info bar overuse: they should be an exceptional presence in your interface.

</item>
Packit 1470ea
<item>

Only one info bar should be visable at any one time.

</item>
Packit 1470ea
<item>

Only include a longer explanation if it is really needed: a simple heading can often be sufficient.

</item>
Packit 1470ea
<item>

Generally speaking, info bars do not require an icon.

</item>
Packit 1470ea
</list>
Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
<section id="api-reference">
Packit 1470ea
<title>API reference</title>
Packit 1470ea
Packit 1470ea
<list>
Packit 1470ea
<item>

<link xref="https://developer.gnome.org/gtk3/stable/GtkInfoBar.html">GtkInfoBar</link>

</item>
Packit 1470ea
</list>
Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
</page>