Skip to content

Commit f1c3cf0

Browse files
committed
PIX-17 Translate comments from Italian to English in ColorSelector.vue, defaultPalette.ts, and PlayView.vue.
1 parent 3406862 commit f1c3cf0

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

client/src/components/editor/ColorSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useEditorStore } from '@/stores/editor.store';
33
import { storeToRefs } from 'pinia';
44
55
const store = useEditorStore();
6-
// storeToRefs mantiene la reattività di palette e selectedColorIndex
6+
77
const { palette, selectedColorIndex } = storeToRefs(store);
88
99
const selectColor = (index: number) => {
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
export const defaultPalette: string[] = [
2-
'#FFFFFF', // 0: Bianco
3-
'#000000', // 1: Nero
4-
'#1D2B53', // 2: Blu Notte
5-
'#7E2553', // 3: Vinaccia
6-
'#008751', // 4: Verde Muschio
7-
'#AB5236', // 5: Marrone
8-
'#5F574F', // 6: Grigio Scuro
9-
'#C2C3C7', // 7: Grigio Chiaro
10-
'#FFF1E8', // 8: Bianco Panna
11-
'#FF004D', // 9: Rosso
12-
'#FFA300', // 10: Arancione
13-
'#FFEC27', // 11: Giallo
14-
'#00E436', // 12: Verde Lime
15-
'#29ADFF', // 13: Blu Cielo
16-
'#83769C', // 14: Indaco
17-
'#FF77A8', // 15: Rosa
2+
'#FFFFFF', // 0: White
3+
'#000000', // 1: Black
4+
'#1D2B53', // 2: Midnight Blue
5+
'#7E2553', // 3: Burgundy
6+
'#008751', // 4: Moss Green
7+
'#AB5236', // 5: Brown
8+
'#5F574F', // 6: Dark Gray
9+
'#C2C3C7', // 7: Light Gray
10+
'#FFF1E8', // 8: Cream
11+
'#FF004D', // 9: Red
12+
'#FFA300', // 10: Orange
13+
'#FFEC27', // 11: Yellow
14+
'#00E436', // 12: Lime Green
15+
'#29ADFF', // 13: Sky Blue
16+
'#83769C', // 14: Indigo
17+
'#FF77A8', // 15: Pink
1818
];

client/src/views/PlayView.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import ColorSelector from '@/components/editor/ColorSelector.vue';
99
const store = useEditorStore();
1010
const { width, height, pixels, palette, selectedColorIndex } = storeToRefs(store);
1111
12-
// Ref per chiamare updatePixel
12+
// Ref to call updatePixel
1313
const canvasRef = ref<InstanceType<typeof PixelCanvas> | null>(null);
1414
15-
// Logica di aggiornamento (Click -> Store -> Ridisegna 1 pixel)
15+
// Update logic (Click -> Store -> Redraw 1 pixel)
1616
const onPixelClick = ({ x, y }: { x: number, y: number }) => {
1717
store.setPixel(x, y);
1818
canvasRef.value?.updatePixel(x, y, selectedColorIndex.value);
@@ -41,7 +41,7 @@ const onPixelClick = ({ x, y }: { x: number, y: number }) => {
4141

4242
<style scoped>
4343
main {
44-
/* Layout a colonna semplicissimo */
44+
/* Simple column layout */
4545
display: flex;
4646
flex-direction: column;
4747
align-items: center;

0 commit comments

Comments
 (0)