From b60fdd7fe43fb81e6be2674d442085d9d327af29 Mon Sep 17 00:00:00 2001 From: tiansen Date: Fri, 2 Nov 2018 10:27:50 +0800 Subject: vertical --- launcher/qml/Launcher.qml | 9 +- .../qml/images/AGL_HMI_Blue_Background_Car-01.png | Bin 785945 -> 824254 bytes launcher/qml/images/browser_active.svg | 231 +++++++++++++++++++++ launcher/qml/images/browser_inactive.svg | 165 +++++++++++++++ launcher/qml/images/images.qrc | 8 +- launcher/qml/images/video_active.svg | 177 ---------------- launcher/qml/images/video_inactive.svg | 111 ---------- launcher/qml/images/videoplayer_active.svg | 177 ++++++++++++++++ launcher/qml/images/videoplayer_inactive.svg | 111 ++++++++++ launcher/qml/images/webbrowser_active.svg | 231 --------------------- launcher/qml/images/webbrowser_inactive.svg | 165 --------------- launcher/src/applicationmodel.cpp | 9 +- 12 files changed, 698 insertions(+), 696 deletions(-) create mode 100644 launcher/qml/images/browser_active.svg create mode 100644 launcher/qml/images/browser_inactive.svg delete mode 100644 launcher/qml/images/video_active.svg delete mode 100644 launcher/qml/images/video_inactive.svg create mode 100644 launcher/qml/images/videoplayer_active.svg create mode 100644 launcher/qml/images/videoplayer_inactive.svg delete mode 100644 launcher/qml/images/webbrowser_active.svg delete mode 100644 launcher/qml/images/webbrowser_inactive.svg 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 Binary files a/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png and b/launcher/qml/images/AGL_HMI_Blue_Background_Car-01.png differ diff --git a/launcher/qml/images/browser_active.svg b/launcher/qml/images/browser_active.svg new file mode 100644 index 0000000..70b4617 --- /dev/null +++ b/launcher/qml/images/browser_active.svg @@ -0,0 +1,231 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/browser_inactive.svg b/launcher/qml/images/browser_inactive.svg new file mode 100644 index 0000000..09f34c9 --- /dev/null +++ b/launcher/qml/images/browser_inactive.svg @@ -0,0 +1,165 @@ + + + +image/svg+xml \ No newline at end of file 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 @@ radio_inactive.svg settings_active.svg settings_inactive.svg - video_active.svg - video_inactive.svg - webbrowser_active.svg - webbrowser_inactive.svg + videoplayer_active.svg + videoplayer_inactive.svg + browser_active.svg + browser_inactive.svg blank_active.svg blank_inactive.svg plus_active.svg diff --git a/launcher/qml/images/video_active.svg b/launcher/qml/images/video_active.svg deleted file mode 100644 index 794a441..0000000 --- a/launcher/qml/images/video_active.svg +++ /dev/null @@ -1,177 +0,0 @@ - - - -image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/video_inactive.svg b/launcher/qml/images/video_inactive.svg deleted file mode 100644 index 905d46f..0000000 --- a/launcher/qml/images/video_inactive.svg +++ /dev/null @@ -1,111 +0,0 @@ - - - -image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/videoplayer_active.svg b/launcher/qml/images/videoplayer_active.svg new file mode 100644 index 0000000..794a441 --- /dev/null +++ b/launcher/qml/images/videoplayer_active.svg @@ -0,0 +1,177 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/videoplayer_inactive.svg b/launcher/qml/images/videoplayer_inactive.svg new file mode 100644 index 0000000..905d46f --- /dev/null +++ b/launcher/qml/images/videoplayer_inactive.svg @@ -0,0 +1,111 @@ + + + +image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/webbrowser_active.svg b/launcher/qml/images/webbrowser_active.svg deleted file mode 100644 index 70b4617..0000000 --- a/launcher/qml/images/webbrowser_active.svg +++ /dev/null @@ -1,231 +0,0 @@ - - - -image/svg+xml \ No newline at end of file diff --git a/launcher/qml/images/webbrowser_inactive.svg b/launcher/qml/images/webbrowser_inactive.svg deleted file mode 100644 index 09f34c9..0000000 --- a/launcher/qml/images/webbrowser_inactive.svg +++ /dev/null @@ -1,165 +0,0 @@ - - - -image/svg+xml \ No newline at end of file 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)); } -- cgit 1.2.3-korg