Skip to content

Commit 130a1d7

Browse files
authored
Update README.md
readme: smaller indents
1 parent bd78862 commit 130a1d7

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

README.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -16,44 +16,44 @@ import ui
1616
1717
struct App {
1818
mut:
19-
window &ui.Window = unsafe { nil }
20-
first_name string
21-
last_name string
19+
window &ui.Window = unsafe { nil }
20+
first_name string
21+
last_name string
2222
}
2323
2424
fn main() {
25-
mut app := &App{}
26-
app.window = ui.window(
27-
width: 600
28-
height: 400
29-
title: 'V UI Demo'
30-
children: [
31-
ui.row(
32-
margin: ui.Margin{10, 10, 10, 10}
33-
children: [
34-
ui.column(
35-
width: 200
36-
spacing: 13
37-
children: [
38-
ui.textbox(
39-
max_len: 20
40-
width: 200
41-
placeholder: 'First name'
42-
text: &app.first_name
43-
),
44-
ui.textbox(
45-
max_len: 50
46-
width: 200
47-
placeholder: 'Last name'
48-
text: &app.last_name
49-
),
50-
]
51-
),
52-
]
53-
),
54-
]
55-
)
56-
ui.run(app.window)
25+
mut app := &App{}
26+
app.window = ui.window(
27+
width: 600
28+
height: 400
29+
title: 'V UI Demo'
30+
children: [
31+
ui.row(
32+
margin: ui.Margin{10, 10, 10, 10}
33+
children: [
34+
ui.column(
35+
width: 200
36+
spacing: 13
37+
children: [
38+
ui.textbox(
39+
max_len: 20
40+
width: 200
41+
placeholder: 'First name'
42+
text: &app.first_name
43+
),
44+
ui.textbox(
45+
max_len: 50
46+
width: 200
47+
placeholder: 'Last name'
48+
text: &app.last_name
49+
),
50+
]
51+
),
52+
]
53+
),
54+
]
55+
)
56+
ui.run(app.window)
5757
}
5858
````
5959

0 commit comments

Comments
 (0)