Share pages refactoring
This commit is contained in:
parent
396af917b5
commit
836075de10
15 changed files with 222 additions and 622 deletions
20
client/ui/qml/Controls/ShareConnectionButtonCopyType.qml
Normal file
20
client/ui/qml/Controls/ShareConnectionButtonCopyType.qml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import QtQuick 2.12
|
||||
import QtQuick.Controls 2.12
|
||||
|
||||
ShareConnectionButtonType {
|
||||
readonly property string start_text: qsTr("Copy")
|
||||
readonly property string end_text: qsTr("Copied")
|
||||
|
||||
Timer {
|
||||
id: timer
|
||||
interval: 1000; running: false; repeat: false
|
||||
onTriggered: text = start_text
|
||||
}
|
||||
|
||||
text: start_text
|
||||
|
||||
onClicked: {
|
||||
text = end_text
|
||||
timer.running = true
|
||||
}
|
||||
}
|
||||
|
|
@ -8,7 +8,9 @@ BasicButtonType {
|
|||
background: Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: 4
|
||||
color: root.containsMouse ? "#282932" : "#181922"
|
||||
color: root.enabled
|
||||
? (root.containsMouse ? "#282932" : "#181922")
|
||||
: "#484952"
|
||||
}
|
||||
font.pixelSize: 16
|
||||
contentItem: Text {
|
||||
|
|
|
|||
|
|
@ -14,12 +14,10 @@ Flickable
|
|||
id: root
|
||||
property bool error: false
|
||||
|
||||
width: parent.width - 80
|
||||
height: 40
|
||||
anchors.topMargin: 5
|
||||
selectByMouse: false
|
||||
|
||||
|
||||
selectionColor: "darkgray"
|
||||
font.pixelSize: 16
|
||||
color: "#333333"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue