linux.x86.linphone/Linphone/view/Control/Container/Main/MainRightPanel.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

56 lines
1.4 KiB
QML
Executable file

import QtQuick
import QtQuick.Effects
import QtQuick.Layouts
import QtQuick.Controls.Basic as Control
import Linphone
import UtilsCpp
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
ColumnLayout {
id: mainItem
property color panelColor: DefaultStyle.grey_100
property alias headerContentItem: rightPanelHeader.contentItem
property alias content: rightPanelContent.children
property alias header: rightPanelHeader
spacing: 0
Control.Control {
id: rightPanelHeader
Layout.fillWidth: true
z: rightPanelContent.z + 1
topPadding: Utils.getSizeWithScreenRatio(30)
bottomPadding: Utils.getSizeWithScreenRatio(24)
leftPadding: Utils.getSizeWithScreenRatio(32)
rightPadding: Utils.getSizeWithScreenRatio(32)
background: Item {
anchors.fill: parent
Rectangle {
id: bg
anchors.fill: parent
color: DefaultStyle.grey_0
}
MultiEffect {
anchors.fill: bg
source: bg
shadowEnabled: true
shadowColor: DefaultStyle.grey_1000
shadowBlur: 1
shadowOpacity: 0.05
shadowVerticalOffset: Utils.getSizeWithScreenRatio(10)
}
}
}
Rectangle {
id: rightPanelContent
color: mainItem.panelColor
Layout.fillWidth: true
Layout.fillHeight: true
MouseArea {
anchors.fill: parent
onClicked: {
rightPanelContent.forceActiveFocus()
}
}
}
}