Procházet zdrojové kódy

Use custombutton with filedetails button to make it not look horrible

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra před 2 roky
rodič
revize
7ab21d91fa
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/gui/tray/ActivityItemContent.qml

+ 3 - 3
src/gui/tray/ActivityItemContent.qml

@@ -232,7 +232,7 @@ RowLayout {
                 Layout.fillWidth: true
                 Layout.fillWidth: true
             }
             }
 
 
-            Button {
+            CustomButton {
                 id: fileDetailsButton
                 id: fileDetailsButton
 
 
                 Layout.preferredWidth: Style.headerButtonIconSize
                 Layout.preferredWidth: Style.headerButtonIconSize
@@ -246,10 +246,10 @@ RowLayout {
                     visible: parent.hovered
                     visible: parent.hovered
                 }
                 }
 
 
-                flat: true
                 display: Button.IconOnly
                 display: Button.IconOnly
-                hoverEnabled: true
                 padding: 0
                 padding: 0
+                bgColor: Style.lightHover
+                bgNormalOpacity:  0
 
 
                 visible: model.showFileDetails
                 visible: model.showFileDetails