Fix call notification dialog buttons
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 20 Oct 2022 12:11:10 +0000 (14:11 +0200)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 20 Oct 2022 12:11:10 +0000 (14:11 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/CallNotificationDialog.qml
src/gui/tray/CustomButton.qml

index 3d71c8451f24ed29229108da8a09272328c0752c..c942877add037d6e4186813539ebada89d77cc80 100644 (file)
@@ -222,7 +222,7 @@ Window {
                         text: modelData.label
                         bold: true
                         bgColor: Style.ncBlue
-                        bgOpacity: 0.8
+                        bgNormalOpacity: 0.8
 
                         textColor: Style.ncHeaderTextColor
 
@@ -249,7 +249,7 @@ Window {
                     text: qsTr("Decline")
                     bold: true
                     bgColor: Style.errorBoxBackgroundColor
-                    bgOpacity: 0.8
+                    bgNormalOpacity: 0.8
 
                     textColor: Style.ncHeaderTextColor
 
index e9a75c6635ccac4b849fcbede63e24f35a3b8069..97b50b7dd81dfa7ac28f6e9413303b057f74c98a 100644 (file)
@@ -18,7 +18,8 @@ Button {
 
     property bool bold: false
 
-    property real bgOpacity: 0.3
+    property alias bgNormalOpacity: bgRectangle.normalOpacity
+    property alias bgHoverOpacity: bgRectangle.hoverOpacity
 
     background: NCButtonBackground {
         id: bgRectangle