Просмотр исходного кода

Don't constrain size of hover background

Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
Felix Weilbach 4 лет назад
Родитель
Сommit
7bb0c588c1
2 измененных файлов с 1 добавлено и 4 удалено
  1. 1 3
      src/gui/tray/ActivityItem.qml
  2. 0 1
      theme/Style/Style.qml

+ 1 - 3
src/gui/tray/ActivityItem.qml

@@ -11,10 +11,8 @@ MouseArea {
     hoverEnabled: true
     
     Rectangle {
-        anchors.left: activityMouseArea.left
+        anchors.fill: parent
         anchors.margins: 2
-        width: Style.trayWindowMouseAreaWidth
-        height: Style.trayWindowHeaderHeight
         color: (parent.containsMouse ? Style.lightHover : "transparent")
     }
         

+ 0 - 1
theme/Style/Style.qml

@@ -19,7 +19,6 @@ QtObject {
 
     // Dimensions and sizes
     property int trayWindowWidth: 400
-    property int trayWindowMouseAreaWidth: 396
     property int trayWindowHeight: 510
     property int trayWindowRadius: 10
     property int trayWindowBorderWidth: 1