summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/ContactsView.qml3
-rw-r--r--app/Dialer.qml14
-rw-r--r--app/Phone.qml6
-rw-r--r--app/Recents.qml8
-rw-r--r--app/TabImageButton.qml11
5 files changed, 21 insertions, 21 deletions
diff --git a/app/ContactsView.qml b/app/ContactsView.qml
index 66f2199..e9def44 100644
--- a/app/ContactsView.qml
+++ b/app/ContactsView.qml
@@ -18,7 +18,6 @@
import QtQuick 2.6
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.0
-import QtQuick.Controls.Styles 1.4
import AGL.Demo.Controls 1.0
import PhoneNumber 1.0
@@ -77,7 +76,7 @@ Item {
anchors.leftMargin: 200
spacing: 100
Image {
- source: model.modelData.photo ? model.modelData.photo : './images/HMI_ContactScreen_ImageHolder-01.svg'
+ source: model.modelData.photo ? model.modelData.photo : 'qrc:/images/HMI_ContactScreen_ImageHolder-01.svg'
Layout.preferredWidth: 160
Layout.preferredHeight: 160
}
diff --git a/app/Dialer.qml b/app/Dialer.qml
index 743c742..31fb8c8 100644
--- a/app/Dialer.qml
+++ b/app/Dialer.qml
@@ -100,7 +100,7 @@ Item {
ImageButton {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
- offImage: './images/HMI_Phone_Back_Icon.svg'
+ offImage: 'qrc:/images/HMI_Phone_Back_Icon.svg'
onClicked: {
if (number.text.length > 0)
number.text = number.text.substring(0, number.text.length - 1)
@@ -130,8 +130,8 @@ Item {
ListElement { value: '#'; image: 'NumberSign' }
}
ImageButton {
- onImage: './images/HMI_Phone_Button_%1_Active-01.svg'.arg(model.image)
- offImage: './images/HMI_Phone_Button_%1_Inactive-01.svg'.arg(model.image)
+ onImage: 'qrc:/images/HMI_Phone_Button_%1_Active-01.svg'.arg(model.image)
+ offImage: 'qrc:/images/HMI_Phone_Button_%1_Inactive-01.svg'.arg(model.image)
onClicked: {
number.text += model.value
}
@@ -148,8 +148,8 @@ Item {
ToggleButton {
id: callButton
Layout.alignment: Qt.AlignHCenter
- onImage: './images/HMI_Phone_Hangup.svg'
- offImage: './images/HMI_Phone_Call.svg'
+ onImage: 'qrc:/images/HMI_Phone_Hangup.svg'
+ offImage: 'qrc:/images/HMI_Phone_Call.svg'
property var active: (number.text.length > 0) || (telephony.callState === "incoming") || (telephony.callState === "active")
opacity: active ? 1 : 0.25
@@ -182,7 +182,7 @@ Item {
Layout.alignment: Qt.AlignHCenter
active: false
sourceComponent: ImageButton {
- offImage: './images/HMI_Phone_Hangup.svg'
+ offImage: 'qrc:/images/HMI_Phone_Hangup.svg'
onClicked: {
telephony.hangup()
}
@@ -203,7 +203,7 @@ Item {
anchors.fill: parent
spacing: 20
Image {
- source: './images/HMI_Phone_Contact_BlankPhoto.svg'
+ source: 'qrc:/images/HMI_Phone_Contact_BlankPhoto.svg'
}
ColumnLayout {
Label {
diff --git a/app/Phone.qml b/app/Phone.qml
index 6b38f77..6de54f2 100644
--- a/app/Phone.qml
+++ b/app/Phone.qml
@@ -41,19 +41,19 @@ ApplicationWindow {
contentHeight: 160
TabImageButton {
- icon: "./images/ic_contacts_48px.svg"
+ iconSource: "qrc:/images/ic_contacts_48px.svg"
text: "Contacts"
font.pixelSize: 50
}
TabImageButton {
- icon: "./images/ic_schedule_48px.svg"
+ iconSource: "qrc:/images/ic_schedule_48px.svg"
text: "Recents"
font.pixelSize: 50
}
TabImageButton {
- icon: "./images/ic_dialpad_48px.svg"
+ iconSource: "qrc:/images/ic_dialpad_48px.svg"
text: "Dialpad"
font.pixelSize: 50
}
diff --git a/app/Recents.qml b/app/Recents.qml
index 5a516a1..f4d771b 100644
--- a/app/Recents.qml
+++ b/app/Recents.qml
@@ -25,11 +25,11 @@ Item {
function log_icon(type) {
if (type === RecentCall.MISSED) {
- return './images/ic_call_missed_48px.svg'
+ return 'qrc:/images/ic_call_missed_48px.svg'
} else if (type === RecentCall.RECEIVED) {
- return './images/ic_call_received_48px.svg'
+ return 'qrc:/images/ic_call_received_48px.svg'
} else if (type === RecentCall.DIALED) {
- return './images/ic_call_made_48px.svg'
+ return 'qrc:/images/ic_call_made_48px.svg'
}
}
@@ -53,7 +53,7 @@ Item {
Layout.preferredHeight: 150
}
Image {
- source: './images/HMI_Phone_Contact_BlankPhoto.svg'
+ source: 'qrc:/images/HMI_Phone_Contact_BlankPhoto.svg'
Layout.preferredWidth: 150
Layout.preferredHeight: 150
}
diff --git a/app/TabImageButton.qml b/app/TabImageButton.qml
index 2176595..c707574 100644
--- a/app/TabImageButton.qml
+++ b/app/TabImageButton.qml
@@ -41,6 +41,7 @@ import QtQuick.Layouts 1.1
import QtQuick.Controls 2.2
import QtQuick.Controls.impl 2.2
import QtQuick.Templates 2.2 as T
+import QtQuick.Controls.Basic 2.2
T.TabButton {
id: control
@@ -53,13 +54,13 @@ T.TabButton {
padding: 6
- property url icon
+ property url iconSource
contentItem: ColumnLayout {
spacing: 20
Image {
Layout.alignment: Qt.AlignCenter
- source: control.icon
+ source: control.iconSource
width: 96
height: 96
@@ -70,7 +71,7 @@ T.TabButton {
font: control.font
elide: Text.ElideRight
opacity: enabled ? 1 : 0.3
- color: !control.checked ? Default.textLightColor : control.down ? Default.textDarkColor : Default.textColor
+ color: !control.checked ? Basic.textLightColor : control.down ? Basic.textDarkColor : Basic.textColor
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
@@ -78,7 +79,7 @@ T.TabButton {
background: Rectangle {
implicitHeight: 160
color: control.down
- ? (control.checked ? Default.tabButtonCheckedPressedColor : Default.tabButtonPressedColor)
- : (control.checked ? "transparent" : Default.tabButtonColor)
+ ? (control.checked ? Basic.tabButtonCheckedPressedColor : Basic.tabButtonPressedColor)
+ : (control.checked ? "transparent" : Basic.tabButtonColor)
}
}