mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
Theme - picture in help/about view ui|theme_about_picture_url
This commit is contained in:
parent
295dbcb4c3
commit
89122ff92d
1 changed files with 18 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ import Linphone
|
|||
import UtilsCpp 1.0
|
||||
import ConstantsCpp 1.0
|
||||
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
||||
import SettingsCpp
|
||||
|
||||
AbstractMainPage {
|
||||
|
||||
|
|
@ -44,10 +45,26 @@ AbstractMainPage {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
Text {
|
||||
Image {
|
||||
id: aboutImage
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: Math.round(100 * DefaultStyle.dp)
|
||||
Layout.leftMargin: leftPanel.sideMargin
|
||||
Layout.rightMargin: leftPanel.sideMargin
|
||||
Layout.topMargin: Math.round(41 * DefaultStyle.dp)
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: SettingsCpp.themeAboutPictureUrl
|
||||
visible: source !== "" && status === Image.Ready
|
||||
onStatusChanged: {
|
||||
if (status === Image.Error) {
|
||||
visible = false
|
||||
}
|
||||
}
|
||||
}
|
||||
Text {
|
||||
Layout.leftMargin: leftPanel.sideMargin
|
||||
Layout.rightMargin: leftPanel.sideMargin
|
||||
Layout.topMargin: Math.round((aboutImage.visible ? 41 : 24) * DefaultStyle.dp)
|
||||
Layout.fillWidth: true
|
||||
//: "À propos de %1"
|
||||
text: qsTr("help_about_title").arg(applicationName)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue