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 UtilsCpp 1.0
|
||||||
import ConstantsCpp 1.0
|
import ConstantsCpp 1.0
|
||||||
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
||||||
|
import SettingsCpp
|
||||||
|
|
||||||
AbstractMainPage {
|
AbstractMainPage {
|
||||||
|
|
||||||
|
|
@ -44,10 +45,26 @@ AbstractMainPage {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
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 {
|
Text {
|
||||||
Layout.leftMargin: leftPanel.sideMargin
|
Layout.leftMargin: leftPanel.sideMargin
|
||||||
Layout.rightMargin: leftPanel.sideMargin
|
Layout.rightMargin: leftPanel.sideMargin
|
||||||
Layout.topMargin: Math.round(41 * DefaultStyle.dp)
|
Layout.topMargin: Math.round((aboutImage.visible ? 41 : 24) * DefaultStyle.dp)
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
//: "À propos de %1"
|
//: "À propos de %1"
|
||||||
text: qsTr("help_about_title").arg(applicationName)
|
text: qsTr("help_about_title").arg(applicationName)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue