aboutsummaryrefslogtreecommitdiff
path: root/files/it/archive/b2g_os/ux/building_blocks/bottoni/index.html
blob: 446c9f39281b16e4ff11ccfc2a5671d901dba8e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
---
title: Bottoni
slug: Archive/B2G_OS/UX/Building_blocks/Bottoni
translation_of: Archive/B2G_OS/Firefox_OS_apps/Building_blocks/1.x/Button
---
<p>Svolgono un compito quando vengono premuti. Sono un elemento dell'interfaccia molto flessibile e possono avere una gran varietà di aspetti e stili. Vedi la <a href="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding" title="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding">Guida allo sviluppo</a> per le specifiche e le descrizioni di come dovrebbero apparire e funzionare.</p>
<h2 id="Caratteristiche">Caratteristiche</h2>
<ul>
  <li>I bottoni hanno due componenti: un <em>visual target</em> e un <em>hit target.</em> Lo <em>hit target</em> è sempre più grande, per rendere più semplice premere il bottone.</li>
  <li>I bottoni hanno due stati: normale e premuto.</li>
  <li>I bottoni possono anche essere <strong>disabilitati</strong>, il che significa che non possono essere premuti dall'utente e sono scuriti per indicare il loro stato disabilitato.</li>
</ul>
<p>Ci sono molti tipi di bottoni:</p>
<dl>
  <dt>
    Bottoni azione</dt>
  <dd>
    Usati quando le azioni sono poche e non è richiesta una lista. Il bottone principale è sempre indicato con un colore speciale.</dd>
  <dt>
    Bottoni lista</dt>
  <dd>
    Usato quando deve essere visualizzata una lista di azioni o per visualizzare un selettore.</dd>
  <dt>
    Bottoni per l'input</dt>
  <dd>
    Usati quando è richiesto un input da associare all'azione.</dd>
  <dt>
    Bottoni speciali/personalizzati</dt>
  <dd>
    Sono bottoni speciali per azioni specifiche come la registrazione, la chiamata, etc etc.</dd>
</dl>
<h2 id="Aspetto">Aspetto</h2>
<p>I bottoni normali dovrebbero apparire così. Non dimenticare che puoi usare i fogli di stile e immagini di background per personalizzare l'aspetto dei bottoni. Vedi la <a href="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding" title="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding">Guida allo sviluppo</a> per capire come fare le personalizzazioni.</p>
<h3 id="Bottoni_azione">Bottoni azione</h3>
<p>Usati quando le azioni sono poche e non è richiesta una lista. Il bottone principale è sempre indicato con un colore speciale.</p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="row"> </th>
      <th scope="col">Primary action</th>
      <th scope="col">Secondary action</th>
      <th scope="col">Delete</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Normal</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4693/btn-main-normal.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4699/btn-secondary-normal.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4687/btn-delete-normal.jpg" style="width: 140px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Pressed</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4691/btn-main-lit.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4697/btn-secondary-lit.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4685/btn-delete-lit.jpg" style="width: 140px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Disabled</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4689/btn-main-disabled.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4695/btn-secondary-disabled.jpg" style="width: 140px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4683/btn-delete-disabled.jpg" style="width: 140px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<p>Su sfondo scuro i bottoni disabilitati possono avere un aspetto diverso, simile all'immagine sotto.</p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="row"> </th>
      <th scope="col">Primary action</th>
      <th scope="col">Secondary action</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Disabled</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4701/btn-primary-disabled-dark.jpg" style="width: 140px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4703/btn-secondary-disabled-dark.jpg" style="width: 140px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<h3 id="Bottoni_lista">Bottoni lista</h3>
<p>Usato quando deve essere visualizzata una lista di azioni o per visualizzare un selettore.</p>
<h4 id="Innescare_azioni">Innescare azioni</h4>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="row"> </th>
      <th scope="col">Trigger an action in the current view</th>
      <th scope="col">Trigger an action in a new view</th>
      <th scope="col">Display a value selector</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Normal</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4725/btn-trigger-current-normal.png" style="width: 291px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4731/btn-trigger-new-normal.png" style="width: 290px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4743/btn-trigger-selector-normal.png" style="width: 291px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Pressed</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4727/btn-trigger-current-pressed.png" style="width: 291px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4733/btn-trigger-new-pressed.png" style="width: 289px; height: 39px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4745/btn-trigger-selector-pressed.png" style="width: 291px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Disabled</th>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4723/btn-trigger-current-disabled.png" style="width: 290px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4729/btn-trigger-new-disabled.png" style="width: 290px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4741/btn-trigger-selector-disabled.png" style="width: 291px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<h4 id="Selettori">Selettori</h4>
<p>Una volta aperto deve essere premuto uno dei valori proposti per chiuderlo. Un selettore ha questo aspetto:</p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Normal</th>
      <th scope="col">Pressed</th>
      <th scope="col">Disabled</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4755/btn-selector-normal.png" style="width: 269px; height: 39px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4757/btn-selector-pressed.png" style="width: 269px; height: 39px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4753/btn-selector-disabled.png" style="width: 269px; height: 39px;"></td>
    </tr>
  </tbody>
</table>
<h3 id="Bottoni_per_l'input">Bottoni per l'input</h3>
<p>Usati quando è richiesto un input da associare all'azione.</p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Normal</th>
      <th scope="col">Pressed</th>
      <th scope="col">Disabled</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4761/input-field-normal.png" style="width: 320px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4763/input-field-pressed.png" style="width: 320px; height: 40px;"></td>
      <td><img alt="" src="https://mdn.mozillademos.org/files/4759/input-field-disabled.png" style="width: 320px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<h3 id="Bottoni_speciali">Bottoni speciali</h3>
<p>I bottoni speciali sono bottoni usati per scopi speciali come usare la macchina fotografica del dispositivo, rispondere e effettuare una chiamata  e accedere al tastierino numerico. Naturalmente puoi usare questi bottoni per altri scopi.</p>
<h4 id="Bottone_fotovideo">Bottone foto/video</h4>
<p>Questo bottone non ha uno stato disabilitato, se non è possibile fare foto non dovresti semplicemente mostrarlo.</p>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="row"> </th>
      <th scope="col">Record video</th>
      <th scope="col">Stop recording video</th>
      <th scope="col">Capture photo</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <th scope="row">Normal</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4771/video-record-normal.png" style="width: 100px; height: 45px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4775/video-stop-normal.png" style="width: 100px; height: 45px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4767/camera-normal.png" style="width: 100px; height: 45px;"></td>
    </tr>
    <tr>
      <th scope="row">Pressed</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4773/video-record-pressed.png" style="width: 100px; height: 45px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4777/video-stop-pressed.png" style="width: 100px; height: 45px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4769/camera-pressed.png" style="width: 100px; height: 45px;"></td>
    </tr>
  </tbody>
</table>
<h4 id="Bottoni_telefono">Bottoni telefono</h4>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="row"> </th>
      <th scope="col">Pick up</th>
      <th scope="col">Hang up</th>
      <th scope="col">Hide keypad</th>
    </tr>
    <tr>
      <th scope="row">Normal</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4781/phone-answer-normal.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4787/phone-hangup-normal.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4793/hide-dialer-normal.png" style="width: 130px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Pressed</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4783/phone-answer-pressed.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4789/phone-hangup-pressed.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4795/hide-dialer-pressed.png" style="width: 130px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Disabled</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4779/phone-answer-disabled.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4785/phone-hangup-disabled.png" style="width: 130px; height: 40px;"></td>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4791/hide-dialer-disabled.png" style="width: 130px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<h4 id="Bottoni_personalizzati">Bottoni personalizzati</h4>
<p>Esempi di bottoni personalizzati per aggiungere un contatto alla rubrica.</p>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="row">Normal</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4799/generic-normal.png" style="width: 90px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Pressed</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4801/generic-pressed.png" style="width: 90px; height: 40px;"></td>
    </tr>
    <tr>
      <th scope="row">Disabled</th>
      <td style="background-color: black;"><img alt="" src="https://mdn.mozillademos.org/files/4797/generic-disabled.png" style="width: 90px; height: 40px;"></td>
    </tr>
  </tbody>
</table>
<h2 id="Vedi_anche">Vedi anche</h2>
<ul>
  <li><a href="/en-US/docs/Mozilla/Firefox_OS/UX" title="/en-US/docs/Mozilla/Firefox_OS/UX">Esperienza utente Firefox OS</a></li>
  <li><a href="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding" title="/en-US/docs/Mozilla/Firefox_OS/UX/Building_blocks/Button/Coding">Creare una gui con bottoni</a></li>
</ul>