File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -217,15 +217,15 @@ func (g *Gui) draw(win *app.Window, e system.FrameEvent) {
217217
218218 // Disable the preview mode and warn the user in case the image is resized both horizontally and vertically.
219219 if resizeBothSide {
220- msg := "Preview is not available when the image is resized horizontally and vertically at the same time!"
221-
222220 var th = material .NewTheme (gofont .Collection ())
223- th .Palette .Fg = color.NRGBA {R : 0xFF , A : 0xFF }
221+ th .Palette .Fg = color.NRGBA {R : 0x00 , A : 0xFF }
222+
224223 layout.Flex {
225224 Axis : layout .Horizontal ,
226225 Alignment : layout .Middle ,
227226 }.Layout (g .ctx ,
228227 layout .Flexed (1 , func (gtx C ) D {
228+ msg := "Preview is not available when the image is resized horizontally and vertically at the same time!"
229229 return layout .UniformInset (unit .Dp (4 )).Layout (g .ctx , func (gtx C ) D {
230230 return layout .Center .Layout (g .ctx , func (gtx C ) D {
231231 return material .Label (th , unit .Sp (40 ), msg ).Layout (gtx )
You can’t perform that action at this time.
0 commit comments