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.
72 lines
1.7 KiB
QML
72 lines
1.7 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
Rectangle {
|
|
id: root
|
|
|
|
property string title
|
|
property string details
|
|
readonly property string detailsVisible: d.detailsVisible
|
|
|
|
implicitWidth: layout.implicitWidthj
|
|
+ layout.anchors.leftMargin
|
|
+ layout.anchors.rigthMargin
|
|
|
|
implicitHeight: layout.implicitHeight
|
|
+ layout.anchors.topMargin
|
|
+ layout.anchors.bottomMargin
|
|
|
|
radius: 8
|
|
color: Theme.palette.baseColor4
|
|
|
|
QtObject {
|
|
id: d
|
|
property bool detailsVisible: false
|
|
}
|
|
|
|
ColumnLayout {
|
|
id: layout
|
|
|
|
anchors.fill: parent
|
|
anchors.margins: 10
|
|
spacing: 4
|
|
|
|
StatusBaseText {
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
text: root.title
|
|
font.pixelSize: 13
|
|
font.weight: Font.Medium
|
|
}
|
|
|
|
StatusBaseText {
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
visible: !d.detailsVisible
|
|
text: qsTr("Show error details")
|
|
color: Theme.palette.primaryColor1
|
|
font.pixelSize: 12
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
d.detailsVisible = true
|
|
}
|
|
}
|
|
}
|
|
|
|
StatusBaseText {
|
|
Layout.fillWidth: true
|
|
horizontalAlignment: Qt.AlignHCenter
|
|
visible: d.detailsVisible
|
|
text: root.details
|
|
color: Theme.palette.baseColor1
|
|
font.pixelSize: 12
|
|
wrapMode: Text.WordWrap
|
|
}
|
|
}
|
|
}
|