Skip to content

Commit 5562a01

Browse files
committed
Tentative improvements for the color picker (vue-swatches)
1 parent 1499d23 commit 5562a01

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

src/components/ActivityEditor.vue

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,11 @@
2626
<v-layout row wrap>
2727
<!-- Column A -->
2828
<v-flex xs12 md6 offset-md3>
29-
<p style="text-align: left">
30-
<v-alert
31-
:value="true"
32-
type="info"
33-
style="font-size:16px">
34-
Qui puoi creare o modificare una attività, definendo come dovrà apparire allo studente che dovrà utilizzarla per scrivere programmi. Ricorda che l'attività andrà poi <b> avviata </b> (Menù Attività -> Apri) per poterne fare effettivamente uso.
35-
</v-alert>
36-
37-
</p>
29+
<p style="text-align: left">
30+
<v-alert :value="true" type="info" style="font-size:16px">
31+
Qui puoi creare o modificare una attività, definendo come dovrà apparire allo studente che dovrà utilizzarla per scrivere programmi. Ricorda che l'attività andrà poi <b> avviata </b> (Menù Attività -> Apri) per poterne fare effettivamente uso.
32+
</v-alert>
33+
</p>
3834
<h3 class="text-xs-left">Dati Attività </h3>
3935
<v-card>
4036
<v-form class="cardContent">
@@ -181,16 +177,25 @@
181177
<div v-for="button, i in activity.buttons">
182178
<h3>Pulsante {{i + 1}}
183179
<v-btn @click="removeButton(i)" flat icon v-if="!button.notErasable">
184-
<v-icon>clear</v-icon>
185-
</v-btn></h3>
180+
<v-icon>clear</v-icon>
181+
</v-btn>
182+
</h3>
186183
<v-card>
187184
<div class="cardContent">
188185
<span class="grey--text text--darken-2" v-if="button.notErasable"> "Esegui" non può essere eliminato </span>
189186
<v-text-field v-model="button.label" label="Etichetta"></v-text-field>
190187
<v-select v-model="button.action" :items="actions" label="Azione" :disabled="button.notErasable">
191188
</v-select>
192-
<v-select :items="textColors" v-model="button.colorText" label="Colore testo"></v-select>
193-
Colore Pulsante <swatches v-model="button.colorBtn"></swatches>
189+
<v-layout row wrap>
190+
<v-flex xs6>
191+
<v-select :items="textColors" v-model="button.colorText" label="Colore testo"></v-select>
192+
</v-flex>
193+
<v-flex xs6>
194+
Colore Pulsante <div style="display:inline-block">
195+
<swatches popover-to="left" v-model="button.colorBtn"></swatches>
196+
</div>
197+
</v-flex>
198+
</v-layout>
194199
<v-text-field v-model="button.icon" label="Icona"></v-text-field>
195200
<v-divider></v-divider>
196201
<v-btn :color="button.colorBtn" :class="button.colorText">
@@ -226,6 +231,8 @@
226231
</v-layout>
227232
</v-container>
228233
</v-tab-item>
234+
<v-tab-item>
235+
<wsFactory />
229236
</v-tab-item>
230237
</v-tabs-items>
231238
</v-content>

0 commit comments

Comments
 (0)