ui: one door to the saved-wallet catalogue
All checks were successful
android-ci / android (pull_request) Successful in 15s
All checks were successful
android-ci / android (pull_request) Successful in 15s
The wallet tab was carrying "Saved wallets" twice: once as a top-bar action (the alpha screen's "Wallets" text link, which I kept when I moved the screen onto OwTopBar) and once in the hero card's header, where the plan puts it. Two controls that do the same thing on one page is how a screen starts to look unfinished. The hero header keeps it; the top bar is a title and nothing else.
This commit is contained in:
parent
0d0b0b975d
commit
ef149ac496
1 changed files with 4 additions and 13 deletions
|
|
@ -214,19 +214,10 @@ fun WalletScreen(
|
||||||
contentWindowInsets = WindowInsets(0, 0, 0, 0),
|
contentWindowInsets = WindowInsets(0, 0, 0, 0),
|
||||||
containerColor = OwColors.Canvas,
|
containerColor = OwColors.Canvas,
|
||||||
topBar = {
|
topBar = {
|
||||||
OwTopBar(
|
// No actions: the catalogue's entry point is in the hero card's
|
||||||
title = "Wallet",
|
// header, where the plan puts it. A second "Saved wallets" button
|
||||||
// The saved-wallet catalogue is its own screen: this one is the
|
// here would be two doors to one screen on the same page.
|
||||||
// open wallet, and switching wallets restarts the wallet
|
OwTopBar(title = "Wallet")
|
||||||
// process, so the picker does not belong in this page's scroll.
|
|
||||||
actions = {
|
|
||||||
OwButton(
|
|
||||||
text = "Saved wallets",
|
|
||||||
variant = OwButtonVariant.Outline,
|
|
||||||
onClick = onOpenWallets,
|
|
||||||
)
|
|
||||||
},
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
) { pad ->
|
) { pad ->
|
||||||
Column(
|
Column(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue