mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-12 06:37:09 +00:00
There are some inconcistencies in the application when it comes to button UI elements because we're using `StatusButton` in some places, in other we use `StyledButton`. The latter is the original component we've created when we started out building Status Desktop, but is planned to be removed entirely in favour of `StatusButton`. This commit replaces the usages of `StyledButton` with `StatusButton`
46 lines
857 B
QML
46 lines
857 B
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
//import QtQuick.Layouts 1.13
|
|
//import Qt.labs.platform 1.1
|
|
import "../../../imports"
|
|
import "../../../shared"
|
|
import "../../../shared/status"
|
|
import "./components"
|
|
|
|
ModalPopup {
|
|
id: popup
|
|
width: 480
|
|
height: 510
|
|
|
|
function open() {
|
|
popup.open()
|
|
setCurrencyModalContent.currency = walletModel.defaultCurrency
|
|
}
|
|
|
|
function close() {
|
|
popup.close()
|
|
}
|
|
|
|
title: qsTr("Set Currency")
|
|
|
|
SetCurrencyModalContent {
|
|
id: setCurrencyModalContent
|
|
}
|
|
|
|
footer: StatusButton {
|
|
anchors.right: parent.right
|
|
//% "Save"
|
|
text: qsTrId("save")
|
|
onClicked: {
|
|
console.log("TODO: apply all accounts")
|
|
popup.close()
|
|
}
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
}
|
|
##^##*/
|