mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
33d38a4081
- Added local pairing signals - Remove slash ending from keystorePath - Implemented localPairingState. Fixed sync new device workflow. - Error message view design update - Moved local pairing status to devices service - ConnectionString automatic validation - Async inputConnectionString - Added all installation properties to model. Minor renaming. - Removed emoji and color customization - Show display name, colorhash and color in device being synced - Add timeout to pairing server - Add device type Fix `DeviceSyncingView` sizing. Fix `inputConnectionString` async task slot.
69 lines
1.6 KiB
QML
69 lines
1.6 KiB
QML
import QtQuick 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Controls 0.1
|
|
import StatusQ.Popups.Dialog 0.1
|
|
|
|
import shared.controls 1.0
|
|
|
|
StatusDialog {
|
|
id: root
|
|
|
|
enum Source {
|
|
Mobile,
|
|
Desktop
|
|
}
|
|
|
|
title: qsTr("How to get a sync code on...")
|
|
padding: 40
|
|
footer: null
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 0
|
|
|
|
StatusSwitchTabBar {
|
|
id: switchTabBar
|
|
Layout.fillWidth: true
|
|
Layout.minimumWidth: 400
|
|
currentIndex: 0
|
|
|
|
StatusSwitchTabButton {
|
|
text: qsTr("Mobile")
|
|
}
|
|
|
|
StatusSwitchTabButton {
|
|
text: qsTr("Desktop")
|
|
}
|
|
}
|
|
|
|
Item {
|
|
Layout.fillWidth: true
|
|
implicitHeight: 41
|
|
}
|
|
|
|
StackLayout {
|
|
Layout.fillWidth: false
|
|
Layout.alignment: Qt.AlignHCenter
|
|
implicitWidth: Math.max(mobileSync.implicitWidth, desktopSync.implicitWidth)
|
|
implicitHeight: Math.max(mobileSync.implicitHeight, desktopSync.implicitHeight)
|
|
currentIndex: switchTabBar.currentIndex
|
|
|
|
GetSyncCodeMobileInstructions {
|
|
id: mobileSync
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: false
|
|
Layout.alignment: Qt.AlignHCenter
|
|
}
|
|
|
|
GetSyncCodeDesktopInstructions {
|
|
id: desktopSync
|
|
Layout.fillHeight: true
|
|
Layout.fillWidth: false
|
|
Layout.alignment: Qt.AlignHCenter
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|