Clean HeaderButton component from customizations.
authorCamila Ayres <hello@camilasan.com>
Thu, 29 Aug 2024 15:22:44 +0000 (17:22 +0200)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Fri, 6 Sep 2024 08:42:08 +0000 (10:42 +0200)
Signed-off-by: Camila Ayres <hello@camilasan.com>
src/gui/tray/HeaderButton.qml

index 6bdcb28768efa674ff6683b9371f1d71f55e6659..6d06e94bc8bddcb1b0c01f3c5634744ee6f14614 100644 (file)
@@ -36,4 +36,16 @@ Button {
     Layout.alignment: Qt.AlignRight
     Layout.preferredWidth:  Style.trayWindowHeaderHeight
     Layout.preferredHeight: Style.trayWindowHeaderHeight
+
+    Image {
+        id: internalImage
+        anchors.centerIn: parent
+        width: root.icon.width
+        height: root.icon.height
+        source: root.icon.source
+        sourceSize {
+            width: root.icon.width
+            height: root.icon.height
+        }
+    }
 }