From 131bf218139467a7761fee118fa345bea73117cc Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Wed, 13 Jun 2018 09:38:04 +0900 Subject: change shortcut icon for als2018 --- homescreen/qml/ShortcutArea.qml | 8 +- homescreen/qml/images/Shortcut/dashboard.svg | 176 +++++++++++++++++++ .../qml/images/Shortcut/dashboard_active.svg | 186 +++++++++++++++++++++ homescreen/qml/images/Shortcut/shortcut.qrc | 4 + homescreen/qml/images/Shortcut/video.svg | 109 ++++++++++++ homescreen/qml/images/Shortcut/video_active.svg | 126 ++++++++++++++ homescreen/src/applicationmodel.cpp | 3 +- 7 files changed, 607 insertions(+), 5 deletions(-) create mode 100644 homescreen/qml/images/Shortcut/dashboard.svg create mode 100644 homescreen/qml/images/Shortcut/dashboard_active.svg create mode 100644 homescreen/qml/images/Shortcut/video.svg create mode 100644 homescreen/qml/images/Shortcut/video_active.svg diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml index 1698a88..a9df954 100644 --- a/homescreen/qml/ShortcutArea.qml +++ b/homescreen/qml/ShortcutArea.qml @@ -32,12 +32,12 @@ Item { application: '' } ListElement { - name: 'Music' - application: 'mediaplayer@0.1' + name: 'Dashboard' + application: 'dashboard@0.1' } ListElement { - name: 'HVAC' - application: 'hvac@0.1' + name: 'Video' + application: 'videoplayer@0.1' } ListElement { name: 'Navigation' diff --git a/homescreen/qml/images/Shortcut/dashboard.svg b/homescreen/qml/images/Shortcut/dashboard.svg new file mode 100644 index 0000000..925aa7f --- /dev/null +++ b/homescreen/qml/images/Shortcut/dashboard.svg @@ -0,0 +1,176 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/homescreen/qml/images/Shortcut/dashboard_active.svg b/homescreen/qml/images/Shortcut/dashboard_active.svg new file mode 100644 index 0000000..1312551 --- /dev/null +++ b/homescreen/qml/images/Shortcut/dashboard_active.svg @@ -0,0 +1,186 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/homescreen/qml/images/Shortcut/shortcut.qrc b/homescreen/qml/images/Shortcut/shortcut.qrc index 99d282e..21ac535 100644 --- a/homescreen/qml/images/Shortcut/shortcut.qrc +++ b/homescreen/qml/images/Shortcut/shortcut.qrc @@ -8,5 +8,9 @@ music_active.svg navigation.svg navigation_active.svg + dashboard.svg + dashboard_active.svg + video.svg + video_active.svg diff --git a/homescreen/qml/images/Shortcut/video.svg b/homescreen/qml/images/Shortcut/video.svg new file mode 100644 index 0000000..e368922 --- /dev/null +++ b/homescreen/qml/images/Shortcut/video.svg @@ -0,0 +1,109 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/homescreen/qml/images/Shortcut/video_active.svg b/homescreen/qml/images/Shortcut/video_active.svg new file mode 100644 index 0000000..344385f --- /dev/null +++ b/homescreen/qml/images/Shortcut/video_active.svg @@ -0,0 +1,126 @@ + + + + + + image/svg+xml + + + + + + + diff --git a/homescreen/src/applicationmodel.cpp b/homescreen/src/applicationmodel.cpp index 5b4bb01..45fe7b8 100644 --- a/homescreen/src/applicationmodel.cpp +++ b/homescreen/src/applicationmodel.cpp @@ -61,7 +61,8 @@ ApplicationModel::Private::Private() auto const icon = get_icon_name(jso); // Hide HomeScreen icon itself - if (name != "homescreen-2017" && name != "OnScreenApp") { + if (name != "homescreen-2017" && name != "OnScreenApp" + && name != "restriction") { this->data.append(AppInfo(icon, name, id)); } -- cgit 1.2.3-korg