1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-08 02:53:13 +02:00

misc: fix dialogs size and confirm strings

Change-Id: If8add5cd86d6893e2e55f7f5f33c228777f18579
GitLab: #780
This commit is contained in:
Sébastien Blin 2022-07-26 15:04:41 -04:00 committed by Andreas Traczyk
parent 4e8ce70e19
commit 682757fdba
8 changed files with 16 additions and 15 deletions

View file

@ -29,8 +29,8 @@ BaseModalDialog {
signal accepted signal accepted
width: JamiTheme.preferredDialogWidth width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
height: JamiTheme.preferredDialogHeight height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
property var confirmLabel: "" property var confirmLabel: ""
property var textLabel: "" property var textLabel: ""

View file

@ -35,8 +35,8 @@ BaseModalDialog {
title: JamiStrings.deleteAccount title: JamiStrings.deleteAccount
width: JamiTheme.preferredDialogWidth width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
height: JamiTheme.preferredDialogHeight height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
popupContent: ColumnLayout { popupContent: ColumnLayout {
id: deleteAccountContentColumnLayout id: deleteAccountContentColumnLayout

View file

@ -44,8 +44,8 @@ BaseModalDialog {
open() open()
} }
height: JamiTheme.preferredDialogHeight width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
width: JamiTheme.preferredDialogWidth height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
title: { title: {
switch(purpose){ switch(purpose){

View file

@ -263,8 +263,8 @@ Item {
property string clearConversation: qsTr("Clear conversation") property string clearConversation: qsTr("Clear conversation")
property string confirmAction: qsTr("Confirm action") property string confirmAction: qsTr("Confirm action")
property string removeConversation: qsTr("Remove conversation") property string removeConversation: qsTr("Remove conversation")
property string confirmRmConversation: qsTr("Do you really want to remove this conversation") property string confirmRmConversation: qsTr("Do you really want to remove this conversation?")
property string confirmBlockConversation: qsTr("Do you really want to block this conversation") property string confirmBlockConversation: qsTr("Do you really want to block this conversation?")
property string removeContact: qsTr("Remove contact") property string removeContact: qsTr("Remove contact")
property string blockContact: qsTr("Block contact") property string blockContact: qsTr("Block contact")
property string blockSwarm: qsTr("Block swarm") property string blockSwarm: qsTr("Block swarm")
@ -676,6 +676,7 @@ Item {
property string optionUpgrade: qsTr("Upgrade") property string optionUpgrade: qsTr("Upgrade")
property string optionLater: qsTr("Later") property string optionLater: qsTr("Later")
property string optionDelete: qsTr("Delete") property string optionDelete: qsTr("Delete")
property string optionRemove: qsTr("Remove")
property string optionBlock: qsTr("Block") property string optionBlock: qsTr("Block")
// Conference moderation // Conference moderation

View file

@ -35,7 +35,7 @@ ContextMenuAutoLoader {
title: JamiStrings.confirmAction title: JamiStrings.confirmAction
textLabel: JamiStrings.confirmRmConversation textLabel: JamiStrings.confirmRmConversation
confirmLabel: JamiStrings.optionDelete confirmLabel: JamiStrings.optionRemove
onAccepted: { onAccepted: {
if (isSwarm) if (isSwarm)
MessagesAdapter.removeConversation(responsibleConvUid) MessagesAdapter.removeConversation(responsibleConvUid)

View file

@ -34,8 +34,8 @@ BaseModalDialog {
title: JamiStrings.addDevice title: JamiStrings.addDevice
width: JamiTheme.preferredDialogWidth width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
height: JamiTheme.preferredDialogHeight height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
popupContent: StackLayout { popupContent: StackLayout {
id: stackedWidget id: stackedWidget

View file

@ -40,8 +40,8 @@ BaseModalDialog {
open() open()
} }
width: JamiTheme.preferredDialogWidth width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
height: JamiTheme.preferredDialogHeight height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
title: JamiStrings.setUsername title: JamiStrings.setUsername

View file

@ -38,8 +38,8 @@ BaseModalDialog {
open() open()
} }
width: JamiTheme.preferredDialogWidth width: Math.min(mainView.width - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogWidth)
height: JamiTheme.preferredDialogHeight height: Math.min(mainView.height - 2 * JamiTheme.preferredMarginSize, JamiTheme.preferredDialogHeight)
title: JamiStrings.removeDevice title: JamiStrings.removeDevice