mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-27 06:46:22 +00:00
62183fb414
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`
42 lines
924 B
QML
42 lines
924 B
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "../../../../imports"
|
|
import "../../../../shared"
|
|
import "../../../../shared/status"
|
|
|
|
Item {
|
|
id: signoutContainer
|
|
width: 200
|
|
height: 200
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: true
|
|
|
|
StyledText {
|
|
id: txtTitle
|
|
//% "Sign out controls"
|
|
text: qsTrId("sign-out-controls")
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: 24
|
|
anchors.top: parent.top
|
|
anchors.topMargin: 24
|
|
font.weight: Font.Bold
|
|
font.pixelSize: 20
|
|
}
|
|
|
|
StatusButton {
|
|
id: btnLogout
|
|
anchors.top: txtTitle.bottom
|
|
anchors.topMargin: Style.current.padding
|
|
//% "Logout"
|
|
// text: qsTrId("logout")
|
|
//% "Exit"
|
|
text: qsTrId("exit")
|
|
|
|
onClicked: {
|
|
// profileModel.logout();
|
|
Qt.quit();
|
|
}
|
|
}
|
|
}
|