Skip to content

Commit 9559313

Browse files
committed
gui: small changes
1 parent 4a489ee commit 9559313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gui.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)