-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI: Various improvements and fixes (#142)
* - My Trades UI (#132), Trading UI Dialogs (#131) * - Create offer FAB button in Offer list screen (#114) * - showSnackBar() in BasePresenter. Tested in androidNode, androidClient. Having some other resource loading issue with iOS, not able to test. * - Copy, Paste, Scan QR (Tested in android) * - Code refactor: CloseIcon * Removed QR Code Scanner for this PR * Fix: Missing Icon imports * Offer card layout - Experimenting * - file refactorings: Removed duplicate OfferListPresenter in 'offers'; moved all files from 'offers' to 'offer' and from 'trades' to 'trade' * - [fix] Create Offer nav issue * - Remove Take offer nav stack, when Take offer flow is confirmed and TradeFlow nav happens; Snackbar warnings in PaymentMethod screen, when payment method is not selected * - removed qr related code; removed dead code; Snackbar color - Dark text over white BG * Take offer UI Improvements - AmountScreen - Amount selector - Placed vertically center; - PaymentMethodScreen - Make use of PaymentMethodCard as done in Createoffer flow; - ReviewScreen - BisqUIConstants; Misc UI Improvements - CreateOfferPaymentMethodScreen - Adjust spacing; - BisqAmount select - Comment on usage * - Fixed compile time issues * [Fix] Back navigation * - added potential implementation for ios BackHAndler commented for now as explained in the TODO --------- Co-authored-by: Rodrigo Varela <[email protected]>
- Loading branch information
1 parent
865c80e
commit 22d3cc6
Showing
57 changed files
with
1,082 additions
and
368 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.../androidMain/kotlin/network/bisq/mobile/presentation/ui/components/BackHandler.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package network.bisq.mobile.presentation.ui.components | ||
|
||
import androidx.activity.compose.BackHandler as AndroidBackHandler | ||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
actual fun BackHandler(onBackPressed: () -> Unit) { | ||
AndroidBackHandler { | ||
onBackPressed() | ||
} | ||
} |
Binary file added
BIN
+858 Bytes
...presentation/src/commonMain/composeResources/drawable/icon_add_filled_green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+267 Bytes
shared/presentation/src/commonMain/composeResources/drawable/icon_flash_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+282 Bytes
shared/presentation/src/commonMain/composeResources/drawable/icon_gallery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+786 Bytes
(330%)
shared/presentation/src/commonMain/composeResources/drawable/icon_info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+960 Bytes
shared/presentation/src/commonMain/composeResources/drawable/icon_warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ation/src/commonMain/kotlin/network/bisq/mobile/presentation/ui/components/BackHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package network.bisq.mobile.presentation.ui.components | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
expect fun BackHandler(onBackPressed: () -> Unit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.../commonMain/kotlin/network/bisq/mobile/presentation/ui/components/atoms/CopyIconButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package network.bisq.mobile.presentation.ui.components.atoms | ||
|
||
import androidx.compose.material3.IconButton | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.platform.LocalClipboardManager | ||
import androidx.compose.ui.text.buildAnnotatedString | ||
import network.bisq.mobile.presentation.ui.components.atoms.icons.CopyIcon | ||
|
||
@Composable | ||
fun CopyIconButton(value: String) { | ||
val clipboardManager = LocalClipboardManager.current | ||
IconButton( | ||
onClick = { | ||
clipboardManager.setText(buildAnnotatedString { append(value) }) | ||
} | ||
) { | ||
CopyIcon() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.