Colour coloured elements in share view with user accent colour
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 15 Aug 2023 07:10:41 +0000 (15:10 +0800)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 22 Aug 2023 16:08:58 +0000 (18:08 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/FileDetailsPage.qml
src/gui/filedetails/ShareDelegate.qml
src/gui/filedetails/ShareView.qml

index 45f87141459144307dc977eb9a4f255e4ee3c916..5008017a8efe42577b226b3d87fad8eb241a259c 100644 (file)
@@ -285,6 +285,7 @@ Page {
                 iconSize: root.iconSize
                 rootStackView: root.rootStackView
                 backgroundsVisible: root.backgroundsVisible
+                accentColor: root.accentColor
             }
         }
     }
index 0974c92d5c10cf978860698551394e76157e5fe8..97821f4dd1e972303b5780378bfdf04b98ba83a3 100644 (file)
@@ -50,6 +50,7 @@ GridLayout {
     property FileDetails fileDetails: FileDetails {}
     property StackView rootStackView: StackView {}
     property bool backgroundsVisible: true
+    property color accentColor: Style.ncBlue
 
     property bool canCreateLinkShares: true
     property bool serverAllowsResharing: true
@@ -89,7 +90,7 @@ GridLayout {
             id: backgroundOrMask
             anchors.fill: parent
             radius: width / 2
-            color: Style.ncBlue
+            color: root.accentColor
             visible: !imageItem.isAvatar
         }
 
index d07cbcd9267304248e782607b4de287b674c15da..b130b680229599bf10ccc9d4a016b53a4cb650f5 100644 (file)
@@ -31,6 +31,7 @@ ColumnLayout {
     property int horizontalPadding: 0
     property int iconSize: 32
     property bool backgroundsVisible: true
+    property color accentColor: Style.ncBlue
 
     readonly property bool sharingPossible: shareModel && shareModel.canShare && shareModel.sharingEnabled
     readonly property bool userGroupSharingPossible: sharingPossible && shareModel.userGroupSharingEnabled
@@ -216,6 +217,7 @@ ColumnLayout {
                     fileDetails: root.fileDetails
                     rootStackView: root.rootStackView
                     backgroundsVisible: root.backgroundsVisible
+                    accentColor: root.accentColor
                     canCreateLinkShares: root.publicLinkSharingPossible
                     serverAllowsResharing: root.serverAllowsResharing