Skip to content

Commit

Permalink
fix toast size based on label size
Browse files Browse the repository at this point in the history
  • Loading branch information
Xavier BESSON committed Mar 5, 2024
1 parent 195670b commit 6995627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vncviewer/qml/Toast.qml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Qt.TigerVNC 1.0

Rectangle {
id: toast
width: 300
height: 40
width: toastLabel.width + 20 * 2
height: toastLabel.height + 20 * 2
color: "#96101010"
radius: 5
opacity: 0
Expand Down Expand Up @@ -66,7 +66,7 @@ Rectangle {

Label {
id: toastLabel
anchors.fill: parent
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
color: "#e0ffffff"
Expand Down

0 comments on commit 6995627

Please sign in to comment.