Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide progress bar when mixer is not running #70

Merged
merged 4 commits into from Sep 24, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions ui/page/privacy/account_mixer_page.go
Expand Up @@ -223,6 +223,11 @@ func (pg *AccountMixerPage) mixerHeaderContent() layout.FlexChild {
}.Layout(gtx, pg.Theme.Separator().Layout)
}),
layout.Rigid(func(gtx C) D {
if !pg.toggleMixer.IsChecked() {
Vanvians marked this conversation as resolved.
Show resolved Hide resolved
return layout.Inset{Top: values.MarginPadding16}.Layout(gtx, func(gtx C) D {
return D{}
})
}
return layout.UniformInset(values.MarginPadding22).Layout(gtx, func(gtx C) D {
return layout.Flex{Axis: layout.Horizontal, Alignment: layout.Middle}.Layout(gtx,
layout.Rigid(func(gtx C) D {
Expand Down