1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-19 06:55:24 +02:00

Plugin: change remote plugin margin

Change-Id: Id2289e5f22f23f0a1295dc63d00b6e36133e27b7
This commit is contained in:
Xavier Jouslin de Noray 2023-08-25 13:57:41 -04:00 committed by Andreas Traczyk
parent c8b371e77a
commit a028696e57
2 changed files with 8 additions and 5 deletions

View file

@ -273,7 +273,7 @@ Item {
property real messageOptionTextFontSize: calcSize(15)
property int emojiPickerWidth: 400
property int emojiPickerHeight: 425
property int defaulMaxWidthReaction : 350
property int defaulMaxWidthReaction: 350
// Files To Send Container
property color removeFileButtonColor: Qt.rgba(96, 95, 97, 0.5)
@ -389,9 +389,10 @@ Item {
property real pluginHandlersPopupViewDelegateHeight: 50
property color pluginDefaultBackgroundColor: "#666666"
property real remotePluginMinimumDelegateWidth: 430
property real remotePluginMinimumDelegateHeight: 260
property real remotePluginMinimumDelegateHeight: 275
property real remotePluginMaximumDelegateWidth: 645
property real remotePluginMaximumDelegateHeight: 390
property real remotePluginMaximumDelegateHeight: 413
property real iconMargin: 30 * baseZoom
property real remotePluginDelegateWidth: remotePluginMinimumDelegateWidth * baseZoom
property real remotePluginDelegateHeight: remotePluginMinimumDelegateHeight * baseZoom
property color pluginViewBackgroundColor: darkTheme ? "#000000" : "#F0EFEF"

View file

@ -80,9 +80,9 @@ ItemDelegate {
background: CachedImage {
id: background
defaultImage: JamiResources.default_plugin_background_jpg
downloadUrl: PluginAdapter.getBackgroundImageUrl(pluginName)
downloadUrl: PluginAdapter.getBackgroundImageUrl(pluginId)
anchors.fill: parent
localPath: root.localPath === undefined ? '' : root.localPath
localPath: root.backgroundLocalPath === undefined ? '' : root.backgroundLocalPath
imageFillMode: Image.PreserveAspectCrop
LinearGradient {
id: gradient
@ -165,6 +165,8 @@ ItemDelegate {
}
RowLayout {
Layout.alignment: Qt.AlignCenter
Layout.topMargin: JamiTheme.iconMargin
Layout.bottomMargin: JamiTheme.iconMargin
CachedImage {
id: icon
defaultImage: JamiResources.plugins_default_icon_svg