Skip to content

Commit

Permalink
fix title overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeBoy committed May 4, 2024
1 parent a247b2f commit 7c99122
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/page/components/components.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"gioui.org/font"
"gioui.org/io/clipboard"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/unit"
"gioui.org/widget"

Expand Down Expand Up @@ -875,6 +876,7 @@ func DisablePageWithOverlay(l *load.Load, currentPage app.Page, gtx C, title, su
lbl := l.Theme.Label(values.TextSize20, title)
lbl.Font.Weight = font.SemiBold
lbl.Color = l.Theme.Color.PageNavText
lbl.Alignment = text.Middle
return layout.Inset{Bottom: values.MarginPadding20}.Layout(gtx.Disabled(), lbl.Layout)
}

Expand Down
2 changes: 2 additions & 0 deletions ui/page/receive/receive_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"gioui.org/io/semantic"
"gioui.org/layout"
"gioui.org/op"
"gioui.org/text"
"gioui.org/widget"

"github.com/crypto-power/cryptopower/app"
Expand Down Expand Up @@ -290,6 +291,7 @@ func (pg *Page) contentLayout(gtx C) D {
func(gtx C) D {
warning := pg.Theme.Label(textSize16, values.String(values.StrFunctionUnavailable))
warning.Color = pg.Theme.Color.Danger
warning.Alignment = text.Middle
return warning.Layout(gtx)

},
Expand Down
2 changes: 2 additions & 0 deletions ui/page/send/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"gioui.org/font"
"gioui.org/layout"
"gioui.org/op"
"gioui.org/text"
"gioui.org/widget"

sharedW "github.com/crypto-power/cryptopower/libwallet/assets/wallet"
Expand Down Expand Up @@ -189,6 +190,7 @@ func (pg *Page) notSyncedLayout(gtx C) D {
func(gtx C) D {
warning := pg.Theme.Label(textSize16, values.String(values.StrFunctionUnavailable))
warning.Color = pg.Theme.Color.Danger
warning.Alignment = text.Middle
return warning.Layout(gtx)

},
Expand Down
6 changes: 6 additions & 0 deletions ui/page/transaction/transactions_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

"gioui.org/font"
"gioui.org/layout"
"gioui.org/text"
"gioui.org/widget"
"gioui.org/widget/material"

Expand Down Expand Up @@ -382,6 +383,7 @@ func (pg *TransactionsPage) dropdownLayout(gtx C) D {
}

func (pg *TransactionsPage) leftDropdown(gtx C) D {
showOverlay := pg.walletNotReady() && pg.multiWalletLayout
return layout.Flex{Spacing: layout.SpaceBetween}.Layout(gtx,
layout.Rigid(func(gtx C) D {
if pg.isShowTitle && pg.IsMobileView() {
Expand All @@ -396,6 +398,9 @@ func (pg *TransactionsPage) leftDropdown(gtx C) D {

}),
layout.Rigid(func(gtx C) D {
if showOverlay {
return D{}
}
icon := pg.Theme.Icons.FilterOffImgIcon
if pg.isFilterOpen {
icon = pg.Theme.Icons.FilterImgIcon
Expand Down Expand Up @@ -550,6 +555,7 @@ func (pg *TransactionsPage) txListLayout(gtx C) D {
lbl := pg.Theme.Label(pg.ConvertTextSize(values.TextSize20), values.String(values.StrFunctionUnavailable))
lbl.Font.Weight = font.SemiBold
lbl.Color = pg.Theme.Color.PageNavText
lbl.Alignment = text.Middle
return cryptomaterial.CentralizeWidget(gtx, lbl.Layout)
}),
)
Expand Down

0 comments on commit 7c99122

Please sign in to comment.