linux.x86.linphone/Linphone/view/Page/Form/Security/SecurityModePage.qml
data 3b3bb966d4 Add ringtone selection dropdown and various bugfixes
- Add ComboBox for ringtone selection in Call Settings
- Convert MKV ringtones to WAV format (Linphone only supports WAV)
- Fix ComboSetting to support dialPlan type for international prefix
- Disable account devices feature to prevent API errors
- Disable automatic update check on startup
- Add ringtone fallback to default when custom file not found
- Fix ringtone dropdown to not override setting on initialization

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-08 08:31:15 +01:00

87 lines
3 KiB
QML
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls.Basic as Control
import Linphone
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
LoginLayout {
id: mainItem
signal modeSelected(int index)
titleContent: RowLayout {
EffectImage {
fillMode: Image.PreserveAspectFit
imageSource: AppIcons.profile
colorizationColor: DefaultStyle.main2_600
Layout.preferredHeight: Utils.getSizeWithScreenRatio(34)
Layout.preferredWidth: Utils.getSizeWithScreenRatio(34)
}
ColumnLayout {
Text {
//: "Choisir votre mode"
text: qsTr("manage_account_choose_mode_title")
font {
pixelSize: Typography.h1.pixelSize
weight: Typography.h1.weight
}
}
Text {
//: "Vous pourrez changer de mode plus tard."
text: qsTr("manage_account_choose_mode_message")
font.bold: true
font {
pixelSize: Typography.p1.pixelSize
weight: Typography.p1.weight
}
}
}
}
centerContent: ColumnLayout {
spacing: Utils.getSizeWithScreenRatio(80)
RowLayout {
id: radioButtonsLayout
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
spacing: Utils.getSizeWithScreenRatio(70)
Repeater {
model: [
//: "Chiffrement de bout en bout"
{checked: true, title: qsTr("manage_account_e2e_encrypted_mode_default_title"),
//: "Ce mode vous garanti la confidentialité de tous vos échanges. Notre technologie de chiffrement de bout en bout assure un niveau de sécurité maximal pour tous vos échanges."
text: qsTr("manage_account_e2e_encrypted_mode_default_summary"), imgUrl: AppIcons.chiffrement, color: DefaultStyle.info_500_main},
//: "Interoperable"
{checked: false, title: qsTr("manage_account_e2e_encrypted_mode_interoperable_title"),
//: "Ce mode vous permet de profiter de toute les fonctionnalités de Linphone, toute en restant interopérable avec nimporte quelle autre service SIP."
text: qsTr("manage_account_e2e_encrypted_mode_interoperable_summary"), imgUrl: AppIcons.interoperable, color: DefaultStyle.main1_500_main}
]
SecurityRadioButton {
title: modelData.title
contentText: modelData.text
imgUrl: modelData.imgUrl
checked: modelData.checked
color: modelData. color
onCheckedChanged: {
if (checked) continueButton.selectedIndex = index
}
}
}
}
BigButton {
id: continueButton
property int selectedIndex: 0
Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: Utils.getSizeWithScreenRatio(360)
//: "Continuer"
text: qsTr("dialog_continue")
style: ButtonStyle.main
onClicked: mainItem.modeSelected(selectedIndex)
}
Item {
Layout.fillWidth: true
Layout.fillHeight: true
}
}
}