aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortiansen <tian_sen@dl.cn.nexty-ele.com>2018-11-02 10:27:50 +0800
committertiansen <tian_sen@dl.cn.nexty-ele.com>2018-11-02 10:27:50 +0800
commitb60fdd7fe43fb81e6be2674d442085d9d327af29 (patch)
treef1d21b5ca967055785a19e19c505dfeafd45a00e
parent471a8288f833334e38f3d999c8921c8585280dc9 (diff)
vertical
-rw-r--r--launcher/qml/Launcher.qml9
-rw-r--r--launcher/qml/images/AGL_HMI_Blue_Background_Car-01.pngbin785945 -> 824254 bytes
-rw-r--r--launcher/qml/images/browser_active.svg (renamed from launcher/qml/images/webbrowser_active.svg)0
-rw-r--r--launcher/qml/images/browser_inactive.svg (renamed from launcher/qml/images/webbrowser_inactive.svg)0
-rw-r--r--launcher/qml/images/images.qrc8
-rw-r--r--launcher/qml/images/videoplayer_active.svg (renamed from launcher/qml/images/video_active.svg)0
-rw-r--r--launcher/qml/images/videoplayer_inactive.svg (renamed from launcher/qml/images/video_inactive.svg)0
-rw-r--r--launcher/src/applicationmodel.cpp9
8 files changed, 14 insertions, 12 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml
index 6d55271..53447e5 100644
--- a/launcher/qml/Launcher.qml
+++ b/launcher/qml/Launcher.qml
@@ -67,15 +67,15 @@ ApplicationWindow {
property int index: grid.indexAt(loc.mouseX, loc.mouseY)
x: 62
y: 264
+ anchors.rightMargin: 0
+ anchors.bottomMargin: 0
+ anchors.leftMargin: 0
+ anchors.topMargin: 0
onPressAndHold: currentId = applicationModel.id(newIndex = index)
onReleased: {
- if(loc.index < 0) {
- return
- }
if (currentId === '') {
pid = launcher.launch(applicationModel.id(loc.index))
if (1 < pid) {
- homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
else {
console.warn("app cannot be launched!")
@@ -83,6 +83,7 @@ ApplicationWindow {
} else {
currentId = ''
}
+ homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
onPositionChanged: {
if (loc.currentId === '') return
diff --git a/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png b/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png
index 8c01263..5ea3a53 100644
--- a/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png
+++ b/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png
Binary files differ
diff --git a/launcher/qml/images/webbrowser_active.svg b/launcher/qml/images/browser_active.svg
index 70b4617..70b4617 100644
--- a/launcher/qml/images/webbrowser_active.svg
+++ b/launcher/qml/images/browser_active.svg
diff --git a/launcher/qml/images/webbrowser_inactive.svg b/launcher/qml/images/browser_inactive.svg
index 09f34c9..09f34c9 100644
--- a/launcher/qml/images/webbrowser_inactive.svg
+++ b/launcher/qml/images/browser_inactive.svg
diff --git a/launcher/qml/images/images.qrc b/launcher/qml/images/images.qrc
index cef5f21..501e81d 100644
--- a/launcher/qml/images/images.qrc
+++ b/launcher/qml/images/images.qrc
@@ -23,10 +23,10 @@
<file>radio_inactive.svg</file>
<file>settings_active.svg</file>
<file>settings_inactive.svg</file>
- <file>video_active.svg</file>
- <file>video_inactive.svg</file>
- <file>webbrowser_active.svg</file>
- <file>webbrowser_inactive.svg</file>
+ <file>videoplayer_active.svg</file>
+ <file>videoplayer_inactive.svg</file>
+ <file>browser_active.svg</file>
+ <file>browser_inactive.svg</file>
<file>blank_active.svg</file>
<file>blank_inactive.svg</file>
<file>plus_active.svg</file>
diff --git a/launcher/qml/images/video_active.svg b/launcher/qml/images/videoplayer_active.svg
index 794a441..794a441 100644
--- a/launcher/qml/images/video_active.svg
+++ b/launcher/qml/images/videoplayer_active.svg
diff --git a/launcher/qml/images/video_inactive.svg b/launcher/qml/images/videoplayer_inactive.svg
index 905d46f..905d46f 100644
--- a/launcher/qml/images/video_inactive.svg
+++ b/launcher/qml/images/videoplayer_inactive.svg
diff --git a/launcher/src/applicationmodel.cpp b/launcher/src/applicationmodel.cpp
index 17e38fb..090a300 100644
--- a/launcher/src/applicationmodel.cpp
+++ b/launcher/src/applicationmodel.cpp
@@ -60,10 +60,11 @@ ApplicationModel::Private::Private()
auto const id = jso["id"].toString();
auto const icon = get_icon_name(jso);
- if ( name != "launcher" &&
- name != "homescreen-2017" &&
- name != "homescreen" &&
- name != "OnScreenApp") {
+ // Hide HomeScreen icon itself
+ if (name != "launcher" &&
+ name != "homescreen-2017" &&
+ name != "homescreen" &&
+ !name.contains("OnScreen", Qt::CaseInsensitive)) {
this->data.append(AppInfo(icon, name, id));
}