/
pomoc.go
43 lines (37 loc) · 1.56 KB
/
pomoc.go
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
package calc
import (
"predmer-api/OLD/app/gel/container"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/widget/material"
)
func (w *WingCal) PomocStrana() func(gtx C) D {
return func(gtx C) D {
return container.DuoUIcontainer(w.UI.Tema, 1, w.UI.Tema.Colors["DarkGrayI"]).Layout(gtx, layout.N, func(gtx C) D {
return container.DuoUIcontainer(w.UI.Tema, 0, w.UI.Tema.Colors["White"]).Layout(gtx, layout.N, func(gtx C) D {
return pomocList.Layout(gtx, len(w.pomoc()), func(gtx C, i int) D {
return layout.Flex{}.Layout(gtx,
layout.Flexed(0.5, w.pomoc()[i]))
})
})
})
}
}
func (w *WingCal) pomoc() []func(gtx C) D {
return []func(gtx C) D{
func(gtx C) D {
return container.DuoUIcontainer(w.UI.Tema, 8, w.UI.Tema.Colors["White"]).Layout(gtx, layout.Center, func(gtx C) D {
t := material.H6(w.UI.Tema.T, "Nesto objasni")
t.Alignment = text.Start
return t.Layout(gtx)
})
},
func(gtx C) D {
return container.DuoUIcontainer(w.UI.Tema, 8, w.UI.Tema.Colors["White"]).Layout(gtx, layout.Center, func(gtx C) D {
t := material.Body1(w.UI.Tema.T, "Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje Nesto objasni Nesto objasni opisi duze i vise dalje ")
t.Alignment = text.Start
return t.Layout(gtx)
})
},
}
}