Skip to content

Commit c2987df

Browse files
committed
add bg for list item
1 parent 4a6d9b1 commit c2987df

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GOST-PLUS
22

3-
A cross-platform GUI client for GOST.PLUS built with [gioui](https://gioui.org).
3+
A cross-platform GUI client for [GOST.PLUS](https://gost.plus) built with [gioui](https://gioui.org).
44

55
## Features
66

ui/page/entrypoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (p *entryPointPage) Layout(gtx C, th *material.Theme) D {
122122
}
123123
op.InvalidateOp{}.Add(gtx.Ops)
124124
}
125-
return state.editor.Layout(gtx, func(gtx C) D {
125+
return material.Clickable(gtx, &state.editor, func(gtx C) D {
126126
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
127127
return p.layout(gtx, th, s)
128128
})

ui/page/menu.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
9090
layout.Rigid(func(gtx C) D {
9191
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
9292
return component.Surface(th).Layout(gtx, func(gtx C) D {
93-
return p.wgFile.Layout(gtx, func(gtx C) D {
93+
return material.Clickable(gtx, &p.wgFile, func(gtx C) D {
9494
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
9595
return p.layoutCard(gtx, th, "File", "Expose local files to public network")
9696
})
@@ -101,7 +101,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
101101
layout.Rigid(func(gtx C) D {
102102
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
103103
return component.Surface(th).Layout(gtx, func(gtx C) D {
104-
return p.wgHTTP.Layout(gtx, func(gtx C) D {
104+
return material.Clickable(gtx, &p.wgHTTP, func(gtx C) D {
105105
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
106106
return p.layoutCard(gtx, th, "HTTP", "Expose local HTTP service to public network")
107107
})
@@ -112,7 +112,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
112112
layout.Rigid(func(gtx C) D {
113113
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
114114
return component.Surface(th).Layout(gtx, func(gtx C) D {
115-
return p.wgTCP.Layout(gtx, func(gtx C) D {
115+
return material.Clickable(gtx, &p.wgTCP, func(gtx C) D {
116116
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
117117
return p.layoutCard(gtx, th, "TCP", "Expose local TCP service to public network")
118118
})
@@ -123,7 +123,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
123123
layout.Rigid(func(gtx C) D {
124124
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
125125
return component.Surface(th).Layout(gtx, func(gtx C) D {
126-
return p.wgUDP.Layout(gtx, func(gtx C) D {
126+
return material.Clickable(gtx, &p.wgUDP, func(gtx C) D {
127127
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
128128
return p.layoutCard(gtx, th, "UDP", "Expose local UDP service to public network")
129129
})
@@ -140,7 +140,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
140140
layout.Rigid(func(gtx C) D {
141141
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
142142
return component.Surface(th).Layout(gtx, func(gtx C) D {
143-
return p.wgEntryPointTCP.Layout(gtx, func(gtx C) D {
143+
return material.Clickable(gtx, &p.wgEntryPointTCP, func(gtx C) D {
144144
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
145145
return p.layoutCard(gtx, th, "TCP", "Create an entrypoint to the specified TCP tunnel")
146146
})
@@ -151,7 +151,7 @@ func (p *menuPage) Layout(gtx C, th *material.Theme) D {
151151
layout.Rigid(func(gtx C) D {
152152
return layout.Inset{Top: 5, Bottom: 5}.Layout(gtx, func(gtx C) D {
153153
return component.Surface(th).Layout(gtx, func(gtx C) D {
154-
return p.wgEntryPointUDP.Layout(gtx, func(gtx C) D {
154+
return material.Clickable(gtx, &p.wgEntryPointUDP, func(gtx C) D {
155155
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
156156
return p.layoutCard(gtx, th, "UDP", "Create an entrypoint to the specified UDP tunnel")
157157
})

ui/page/tunnel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (p *tunnelPage) Layout(gtx C, th *material.Theme) D {
127127
}
128128
op.InvalidateOp{}.Add(gtx.Ops)
129129
}
130-
return state.editor.Layout(gtx, func(gtx C) D {
130+
return material.Clickable(gtx, &state.editor, func(gtx C) D {
131131
return layout.UniformInset(10).Layout(gtx, func(gtx C) D {
132132
return p.layout(gtx, th, s)
133133
})

0 commit comments

Comments
 (0)