Skip to content
Snippets Groups Projects
Commit a028696e authored by Xavier Jouslin de Noray's avatar Xavier Jouslin de Noray Committed by Andreas Traczyk
Browse files

Plugin: change remote plugin margin

Change-Id: Id2289e5f22f23f0a1295dc63d00b6e36133e27b7
parent c8b371e7
Branches
Tags
No related merge requests found
...@@ -389,9 +389,10 @@ Item { ...@@ -389,9 +389,10 @@ Item {
property real pluginHandlersPopupViewDelegateHeight: 50 property real pluginHandlersPopupViewDelegateHeight: 50
property color pluginDefaultBackgroundColor: "#666666" property color pluginDefaultBackgroundColor: "#666666"
property real remotePluginMinimumDelegateWidth: 430 property real remotePluginMinimumDelegateWidth: 430
property real remotePluginMinimumDelegateHeight: 260 property real remotePluginMinimumDelegateHeight: 275
property real remotePluginMaximumDelegateWidth: 645 property real remotePluginMaximumDelegateWidth: 645
property real remotePluginMaximumDelegateHeight: 390 property real remotePluginMaximumDelegateHeight: 413
property real iconMargin: 30 * baseZoom
property real remotePluginDelegateWidth: remotePluginMinimumDelegateWidth * baseZoom property real remotePluginDelegateWidth: remotePluginMinimumDelegateWidth * baseZoom
property real remotePluginDelegateHeight: remotePluginMinimumDelegateHeight * baseZoom property real remotePluginDelegateHeight: remotePluginMinimumDelegateHeight * baseZoom
property color pluginViewBackgroundColor: darkTheme ? "#000000" : "#F0EFEF" property color pluginViewBackgroundColor: darkTheme ? "#000000" : "#F0EFEF"
......
...@@ -80,9 +80,9 @@ ItemDelegate { ...@@ -80,9 +80,9 @@ ItemDelegate {
background: CachedImage { background: CachedImage {
id: background id: background
defaultImage: JamiResources.default_plugin_background_jpg defaultImage: JamiResources.default_plugin_background_jpg
downloadUrl: PluginAdapter.getBackgroundImageUrl(pluginName) downloadUrl: PluginAdapter.getBackgroundImageUrl(pluginId)
anchors.fill: parent anchors.fill: parent
localPath: root.localPath === undefined ? '' : root.localPath localPath: root.backgroundLocalPath === undefined ? '' : root.backgroundLocalPath
imageFillMode: Image.PreserveAspectCrop imageFillMode: Image.PreserveAspectCrop
LinearGradient { LinearGradient {
id: gradient id: gradient
...@@ -165,6 +165,8 @@ ItemDelegate { ...@@ -165,6 +165,8 @@ ItemDelegate {
} }
RowLayout { RowLayout {
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
Layout.topMargin: JamiTheme.iconMargin
Layout.bottomMargin: JamiTheme.iconMargin
CachedImage { CachedImage {
id: icon id: icon
defaultImage: JamiResources.plugins_default_icon_svg defaultImage: JamiResources.plugins_default_icon_svg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment