Skip to content

Commit

Permalink
splash: remove progress bar code, pr upstreamed
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Mar 8, 2024
1 parent 33fd290 commit 7b002dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 68 deletions.
66 changes: 0 additions & 66 deletions splash/progressbar.go

This file was deleted.

8 changes: 6 additions & 2 deletions splash/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ func (ui *Splash) drawCompact(gtx C) D {
}),
layout.Rigid(layout.Spacer{Height: unit.Dp(20)}.Layout),
layout.Rigid(func(gtx C) D {
pb := ProgressBar(ui.Theme, ui.progress)
pb := material.ProgressBar(ui.Theme, ui.progress)
pb.Height = unit.Dp(6)
pb.Radius = unit.Dp(4)
pb.TrackColor = rgb(ui.Config.TrackColor)
return pb.Layout(gtx)
}),
Expand Down Expand Up @@ -92,7 +94,9 @@ func (ui *Splash) drawFamiliar(gtx C) D {
Left: unit.Dp(32),
Right: unit.Dp(32),
}.Layout(gtx, func(gtx C) D {
pb := ProgressBar(ui.Theme, ui.progress)
pb := material.ProgressBar(ui.Theme, ui.progress)
pb.Height = unit.Dp(6)
pb.Radius = unit.Dp(4)
pb.TrackColor = rgb(ui.Config.TrackColor)
return pb.Layout(gtx)
})
Expand Down

0 comments on commit 7b002dd

Please sign in to comment.