Skip to content

Commit 54d0ee3

Browse files
committed
new loading spin logo + settings default fix
1 parent 5b019e5 commit 54d0ee3

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

assets/images/dero_polygon.png

33.3 KB
Loading

load_state.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ type LogoSplash struct {
2424

2525
func NewLogoSplash() *LogoSplash {
2626
animtation := animation.NewAnimation(false, gween.NewSequence(
27-
gween.New(0, 1, 1, ease.Linear),
27+
gween.New(0, 1, 1, ease.InBack),
2828
))
2929
animtation.Sequence.SetLoop(-1)
3030

31-
src, _ := assets.GetImage("dero.jpg")
31+
src, _ := assets.GetImage("dero_polygon.png")
3232

3333
image := &components.Image{
3434
Src: paint.NewImageOp(src),
@@ -119,7 +119,7 @@ func (l *LoadState) Layout(gtx layout.Context, th *material.Theme) layout.Dimens
119119
return l.logoSplash.Layout(gtx)
120120
})
121121
}),
122-
layout.Rigid(layout.Spacer{Height: unit.Dp(40)}.Layout),
122+
layout.Rigid(layout.Spacer{Height: unit.Dp(20)}.Layout),
123123
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
124124
return layout.Center.Layout(gtx, func(gtx layout.Context) layout.Dimensions {
125125
lbl := material.Label(th, unit.Sp(20), l.status)

settings/settings.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ func Load() error {
7878
if err != nil {
7979
return err
8080
}
81-
82-
App = appSettings
8381
}
8482

83+
App = appSettings
8584
return nil
8685
}
8786

0 commit comments

Comments
 (0)