-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore[UI - Wallet Stability] Rename SendModalFooter to TransactionMod…
…alFooter ... and remove particular code for send modal - derive the footer from the standard `StatusDialogFooter` to reduce code duplication (drop shadow, divider, margins, etc) - rename the default button text - expose the icon name and make it used the correct login/auth type icon - some minor fixes and cleanups Fixes #15212
- Loading branch information
Showing
11 changed files
with
82 additions
and
119 deletions.
There are no files selected for viewing
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
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
106 changes: 0 additions & 106 deletions
106
ui/imports/shared/popups/send/views/SendModalFooter.qml
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
ui/imports/shared/popups/send/views/TransactionModalFooter.qml
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,67 @@ | ||
import QtQuick 2.15 | ||
import QtQuick.Controls 2.15 | ||
import QtQuick.Layouts 1.15 | ||
import QtQml.Models 2.15 | ||
|
||
import StatusQ.Controls 0.1 | ||
import StatusQ.Core 0.1 | ||
import StatusQ.Core.Theme 0.1 | ||
import StatusQ.Popups.Dialog 0.1 | ||
|
||
import utils 1.0 | ||
|
||
StatusDialogFooter { | ||
id: root | ||
|
||
property string maxFiatFees: "..." | ||
property string totalTimeEstimate | ||
property bool pending: true | ||
property string nextButtonText: qsTr("Next") | ||
property string nextButtonIconName: "password" | ||
|
||
signal nextButtonClicked() | ||
|
||
implicitHeight: 82 | ||
spacing: Style.current.halfPadding | ||
color: Theme.palette.baseColor3 | ||
dropShadowEnabled: true | ||
|
||
leftButtons: ObjectModel { | ||
ColumnLayout { | ||
Layout.leftMargin: Style.current.padding | ||
StatusBaseText { | ||
color: Theme.palette.directColor5 | ||
text: qsTr("Estimated time:") | ||
} | ||
StatusBaseText { | ||
wrapMode: Text.WordWrap | ||
text: root.totalTimeEstimate | ||
} | ||
} | ||
} | ||
|
||
rightButtons: ObjectModel { | ||
RowLayout { | ||
spacing: Style.current.padding | ||
ColumnLayout { | ||
StatusBaseText { | ||
color: Theme.palette.directColor5 | ||
text: qsTr("Max fees:") | ||
} | ||
StatusBaseText { | ||
text: maxFiatFees | ||
wrapMode: Text.WordWrap | ||
} | ||
} | ||
StatusButton { | ||
Layout.rightMargin: Style.current.padding | ||
text: root.nextButtonText | ||
objectName: "transactionModalFooterButton" | ||
enabled: !root.pending | ||
loading: root.pending | ||
onClicked: nextButtonClicked() | ||
icon.name: root.nextButtonIconName | ||
} | ||
} | ||
} | ||
} |
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