mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 22:06:25 +00:00
7f7a6cbc97
Improve left tab menu Move settings to right panel instead of advanced Create MyProfile container Improve Contacts and Security
49 lines
1.1 KiB
QML
49 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
import "../imports"
|
|
|
|
Item {
|
|
property string text: "My Text"
|
|
property string label: "My Label"
|
|
property string fontFamily: Style.current.fontRegular.name
|
|
property string textToCopy: ""
|
|
|
|
id: infoText
|
|
height: this.childrenRect.height
|
|
width: parent.width
|
|
|
|
StyledText {
|
|
id: inputLabel
|
|
text: infoText.label
|
|
font.weight: Font.Medium
|
|
font.pixelSize: 13
|
|
color: Style.current.darkGrey
|
|
}
|
|
|
|
StyledTextEdit {
|
|
id: textItem
|
|
text: infoText.text
|
|
font.family: fontFamily
|
|
selectByMouse: true
|
|
readOnly: true
|
|
anchors.top: inputLabel.bottom
|
|
anchors.topMargin: 7
|
|
font.pixelSize: 15
|
|
}
|
|
|
|
CopyToClipBoardButton {
|
|
visible: !!infoText.textToCopy
|
|
anchors.verticalCenter: textItem.verticalCenter
|
|
anchors.left: textItem.right
|
|
anchors.leftMargin: Style.current.smallPadding
|
|
textToCopy: infoText.textToCopy
|
|
}
|
|
}
|
|
|
|
/*##^##
|
|
Designer {
|
|
D{i:0;formeditorColor:"#ffffff";formeditorZoom:1.25}
|
|
}
|
|
##^##*/
|