Skip to content

Commit

Permalink
new loading spin logo + settings default fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g45t345rt committed Jul 30, 2023
1 parent 5b019e5 commit 54d0ee3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Binary file added assets/images/dero_polygon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions load_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ type LogoSplash struct {

func NewLogoSplash() *LogoSplash {
animtation := animation.NewAnimation(false, gween.NewSequence(
gween.New(0, 1, 1, ease.Linear),
gween.New(0, 1, 1, ease.InBack),
))
animtation.Sequence.SetLoop(-1)

src, _ := assets.GetImage("dero.jpg")
src, _ := assets.GetImage("dero_polygon.png")

image := &components.Image{
Src: paint.NewImageOp(src),
Expand Down Expand Up @@ -119,7 +119,7 @@ func (l *LoadState) Layout(gtx layout.Context, th *material.Theme) layout.Dimens
return l.logoSplash.Layout(gtx)
})
}),
layout.Rigid(layout.Spacer{Height: unit.Dp(40)}.Layout),
layout.Rigid(layout.Spacer{Height: unit.Dp(20)}.Layout),
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
return layout.Center.Layout(gtx, func(gtx layout.Context) layout.Dimensions {
lbl := material.Label(th, unit.Sp(20), l.status)
Expand Down
3 changes: 1 addition & 2 deletions settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ func Load() error {
if err != nil {
return err
}

App = appSettings
}

App = appSettings
return nil
}

Expand Down

0 comments on commit 54d0ee3

Please sign in to comment.