aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-25 14:22:16 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-06-25 14:22:16 +0200
commit7b05860f5439eedb9d9176db6cfa127c1adc9418 (patch)
tree823bcebbee9c7ebdfa7c7bd763425cfb73cf3691
parent0f8a822069dcf161e274eb516a51a5838469450f (diff)
downloadRWA.Support.DesktopApp-7b05860f5439eedb9d9176db6cfa127c1adc9418.tar.gz
RWA.Support.DesktopApp-7b05860f5439eedb9d9176db6cfa127c1adc9418.tar.bz2
RWA.Support.DesktopApp-7b05860f5439eedb9d9176db6cfa127c1adc9418.zip
Use a different background color for important text
-rw-r--r--main.qml60
1 files changed, 39 insertions, 21 deletions
diff --git a/main.qml b/main.qml
index bdb4159..d76021a 100644
--- a/main.qml
+++ b/main.qml
@@ -203,6 +203,8 @@ ApplicationWindow {
id: your_url_text
height: parent.height/2
text: qsTr("Remote Support Address")
+ font.weight: Font.Bold
+ font.bold: true
verticalAlignment: Text.AlignBottom
horizontalAlignment: Text.AlignLeft
font.pointSize: 14
@@ -220,19 +222,23 @@ ApplicationWindow {
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignLeft
font.pointSize: 15
- /*fontSizeMode: Text.Fit
- background: Rectangle {
- color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
- radius: 5
- }*/
readOnly: true
color: Material.foreground
- //wrapMode: Text.WordWrap
selectByMouse: true
- font.bold: true
anchors.left: parent.left
+ leftPadding: 5
+ Rectangle {
+ radius: 5
+ color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
+ height: url_text.height
+ // whole line + copy-into-clipboard button + some margin
+ width: url_text.width + copy_url_to_clipboard_button.width + 5 + 5
+ x: 0; y: 0
+ z: -1
+ }
+
Button {
id: copy_url_to_clipboard_button
width: copy_url_to_clipboard_image.width + 6
@@ -279,6 +285,8 @@ ApplicationWindow {
id: your_pin_text
height: parent.height/2
text: qsTr("Access-PIN")
+ font.weight: Font.Bold
+ font.bold: true
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
@@ -293,22 +301,26 @@ ApplicationWindow {
id: pin_text
height: parent.height/2
text: mainqmladaptor.pin
- font.weight: Font.Bold
- font.bold: true
anchors.rightMargin: 10 + copy_pin_to_clipboard_button.width
anchors.right: parent.right
- font.pointSize: 20
+ font.pointSize: 15
anchors.left: parent.left
anchors.leftMargin: 10
font.letterSpacing: 10
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
- /*fontSizeMode: Text.Fit
- background: Rectangle {
- color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
+ leftPadding: 5
+ Rectangle {
radius: 5
- }*/
+ color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
+ height: url_text.height
+ // whole line + copy-into-clipboard button + some margin
+ width: url_text.width + copy_url_to_clipboard_button.width + 5 + 5
+ x: 0; y: 0
+ z: -1
+ }
+
readOnly: true
color: Material.foreground
wrapMode: Text.WordWrap
@@ -358,6 +370,8 @@ ApplicationWindow {
id: your_session_id_text
height: parent.height/2
text: qsTr("Session-ID")
+ font.weight: Font.Bold
+ font.bold: true
anchors.right: parent.right
anchors.rightMargin: 0
anchors.left: parent.left
@@ -373,22 +387,26 @@ ApplicationWindow {
id: session_id_text
height: parent.height/2
text: mainqmladaptor.session_id
- font.weight: Font.Bold
- font.bold: true
font.letterSpacing: 10
anchors.rightMargin: 10 + copy_session_id_to_clipboard_button.width
anchors.right: parent.right
- font.pointSize: 20
+ font.pointSize: 15
anchors.left: parent.left
anchors.leftMargin: 10
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
- /*fontSizeMode: Text.Fit
- background: Rectangle {
- color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
+ leftPadding: 5
+ Rectangle {
radius: 5
- }*/
+ color: Material.theme == Material.Light ? "#F0F0F0" : "#383838"
+ height: url_text.height
+ // whole line + copy-into-clipboard button + some margin
+ width: url_text.width + copy_url_to_clipboard_button.width + 5 + 5
+ x: 0; y: 0
+ z: -1
+ }
+
readOnly: true
color: Material.foreground
wrapMode: Text.WordWrap