From c6743aa0e414ad1b1cb658d862682a07b20b302f Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Thu, 30 May 2019 14:07:30 +0900 Subject: change 1920*720 to 1920*1080 --- homescreen/qml/images/images.qrc | 5 +-- homescreen/qml/images/menubar_background.png | Bin 69012 -> 70975 bytes homescreen/qml/images/menubar_full_background.png | Bin 6535 -> 0 bytes .../qml/images/menubar_fullscreen_background.png | Bin 0 -> 67867 bytes homescreen/qml/images/menubar_fullscreen_mask.png | Bin 0 -> 8397 bytes .../qml/images/menubar_normal_background.png | Bin 68629 -> 0 bytes homescreen/qml/images/menubar_normal_mask.png | Bin 0 -> 69524 bytes homescreen/qml/main.qml | 34 +++++++++++++-------- homescreen/src/homescreenhandler.cpp | 8 ++--- homescreen/src/toucharea.cpp | 4 +-- 10 files changed, 31 insertions(+), 20 deletions(-) delete mode 100644 homescreen/qml/images/menubar_full_background.png create mode 100644 homescreen/qml/images/menubar_fullscreen_background.png create mode 100644 homescreen/qml/images/menubar_fullscreen_mask.png delete mode 100644 homescreen/qml/images/menubar_normal_background.png create mode 100644 homescreen/qml/images/menubar_normal_mask.png diff --git a/homescreen/qml/images/images.qrc b/homescreen/qml/images/images.qrc index 0715215..b539f2a 100644 --- a/homescreen/qml/images/images.qrc +++ b/homescreen/qml/images/images.qrc @@ -1,8 +1,9 @@ menubar_background.png - menubar_normal_background.png - menubar_full_background.png + menubar_fullscreen_background.png + menubar_normal_mask.png + menubar_fullscreen_mask.png fullscreen.png normal.png split_switch.png diff --git a/homescreen/qml/images/menubar_background.png b/homescreen/qml/images/menubar_background.png index bb95916..a03a567 100644 Binary files a/homescreen/qml/images/menubar_background.png and b/homescreen/qml/images/menubar_background.png differ diff --git a/homescreen/qml/images/menubar_full_background.png b/homescreen/qml/images/menubar_full_background.png deleted file mode 100644 index 31cbfdb..0000000 Binary files a/homescreen/qml/images/menubar_full_background.png and /dev/null differ diff --git a/homescreen/qml/images/menubar_fullscreen_background.png b/homescreen/qml/images/menubar_fullscreen_background.png new file mode 100644 index 0000000..438a871 Binary files /dev/null and b/homescreen/qml/images/menubar_fullscreen_background.png differ diff --git a/homescreen/qml/images/menubar_fullscreen_mask.png b/homescreen/qml/images/menubar_fullscreen_mask.png new file mode 100644 index 0000000..c6936d2 Binary files /dev/null and b/homescreen/qml/images/menubar_fullscreen_mask.png differ diff --git a/homescreen/qml/images/menubar_normal_background.png b/homescreen/qml/images/menubar_normal_background.png deleted file mode 100644 index 25c9bcf..0000000 Binary files a/homescreen/qml/images/menubar_normal_background.png and /dev/null differ diff --git a/homescreen/qml/images/menubar_normal_mask.png b/homescreen/qml/images/menubar_normal_mask.png new file mode 100644 index 0000000..e87d4e2 Binary files /dev/null and b/homescreen/qml/images/menubar_normal_mask.png differ diff --git a/homescreen/qml/main.qml b/homescreen/qml/main.qml index b22ba06..41e1df0 100644 --- a/homescreen/qml/main.qml +++ b/homescreen/qml/main.qml @@ -28,17 +28,27 @@ Window { title: 'HomeScreen' color: "#00000000" + Image { + id: fullscreen_back + anchors.centerIn: parent + width: 1920 + height: 1080 + source: './images/menubar_fullscreen_background.png' + } + Image { id: container anchors.centerIn: parent width: 1920 - height: 720 + height: 1080 scale: 1.0 source: './images/menubar_background.png' ColumnLayout { id: menuBar - anchors.fill: parent + width: 1920 + height: 720 +// y:180 spacing: 0 TopArea { id: topArea @@ -71,38 +81,38 @@ Window { name: "normal" PropertyChanges { target: container - y: 0 + y: 180 } PropertyChanges { target: topArea - y: 0 + y: 180 } PropertyChanges { target: applicationArea - y: 80 + y: 260 } PropertyChanges { target: shortcutArea - y: 590 + y: 770 } }, State { name: "fullscreen" PropertyChanges { target: container - y: -720 + y: -900 } PropertyChanges { target: topArea - y: -80 + y: -260 } PropertyChanges { target: applicationArea - y: -510 + y: -590 } PropertyChanges { target: shortcutArea - y: 720 + y: 900 } } ] @@ -135,7 +145,7 @@ Window { anchors.right: parent.right anchors.rightMargin: 17 anchors.top: parent.top - anchors.topMargin: 2 + anchors.topMargin: 182 z: 1 Image { id: image @@ -164,7 +174,7 @@ Window { height: 61 anchors.right: switchBtn.left anchors.top: parent.top - anchors.topMargin: 2 + anchors.topMargin: 182 z: 1 property bool enableSplitSwitchBtn: false Image { diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp index 7621cf6..c671a1c 100644 --- a/homescreen/src/homescreenhandler.cpp +++ b/homescreen/src/homescreenhandler.cpp @@ -110,12 +110,12 @@ void HomescreenHandler::changeLayout(int pattern) std::unordered_map map_list; switch(pattern) { case P_LEFT_METER_RIGHT_MAP: - map_list["split.main"] = Rect(0, 0, 1280, 720); - map_list["split.sub"] = Rect(1280, 0, 640, 720); + map_list["split.main"] = Rect(0, 180, 1280, 720); + map_list["split.sub"] = Rect(1280, 180, 640, 720); break; case P_LEFT_MAP_RIGHT_METER: - map_list["split.main"] = Rect(640, 0, 1280, 720); - map_list["split.sub"] = Rect(0, 0, 640, 720); + map_list["split.main"] = Rect(640, 180, 1280, 720); + map_list["split.sub"] = Rect(0, 180, 640, 720); break; default: break; diff --git a/homescreen/src/toucharea.cpp b/homescreen/src/toucharea.cpp index aad4b1b..a66775f 100644 --- a/homescreen/src/toucharea.cpp +++ b/homescreen/src/toucharea.cpp @@ -16,8 +16,8 @@ void TouchArea::setWindow(QQuickWindow *window) void TouchArea::init() { - bitmapNormal = QPixmap(":/images/menubar_normal_background.png").createHeuristicMask(); - bitmapFullscreen = QPixmap(":/images/menubar_full_background.png").createHeuristicMask(); + bitmapNormal = QPixmap(":/images/menubar_normal_mask.png").createHeuristicMask(); + bitmapFullscreen = QPixmap(":/images/menubar_fullscreen_mask.png").createHeuristicMask(); myWindow->setMask(QRegion(bitmapNormal)); } -- cgit 1.2.3-korg