Explorar o código

Fix call notification dialog buttons

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra %!s(int64=3) %!d(string=hai) anos
pai
achega
9edc7357f7
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 2 2
      src/gui/tray/CallNotificationDialog.qml
  2. 2 1
      src/gui/tray/CustomButton.qml

+ 2 - 2
src/gui/tray/CallNotificationDialog.qml

@@ -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
 

+ 2 - 1
src/gui/tray/CustomButton.qml

@@ -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