change size to 1920x1080 sandbox/zheng_wenlong/ces2019_horizontal
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>
Tue, 11 Dec 2018 06:48:35 +0000 (15:48 +0900)
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>
Tue, 11 Dec 2018 06:48:35 +0000 (15:48 +0900)
homescreen/qml/images/images.qrc
homescreen/qml/images/menubar_background.png
homescreen/qml/images/menubar_fullscreen_background.png [new file with mode: 0644]
homescreen/qml/images/menubar_fullscreen_mask.png [moved from homescreen/qml/images/menubar_full_background.png with 57% similarity]
homescreen/qml/images/menubar_normal_background.png [deleted file]
homescreen/qml/images/menubar_normal_mask.png [new file with mode: 0644]
homescreen/qml/main.qml
homescreen/src/homescreenhandler.cpp
homescreen/src/toucharea.cpp

index 0715215..b539f2a 100644 (file)
@@ -1,8 +1,9 @@
 <RCC>
     <qresource prefix="/images">
         <file>menubar_background.png</file>
-        <file>menubar_normal_background.png</file>
-        <file>menubar_full_background.png</file>
+        <file>menubar_fullscreen_background.png</file>
+        <file>menubar_normal_mask.png</file>
+        <file>menubar_fullscreen_mask.png</file>
         <file>fullscreen.png</file>
         <file>normal.png</file>
         <file>split_switch.png</file>
index bb95916..a03a567 100644 (file)
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_fullscreen_background.png b/homescreen/qml/images/menubar_fullscreen_background.png
new file mode 100644 (file)
index 0000000..438a871
Binary files /dev/null and b/homescreen/qml/images/menubar_fullscreen_background.png differ
similarity index 57%
rename from homescreen/qml/images/menubar_full_background.png
rename to homescreen/qml/images/menubar_fullscreen_mask.png
index 6db3a9e..c6936d2 100644 (file)
Binary files a/homescreen/qml/images/menubar_full_background.png 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 (file)
index dadafcf..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 (file)
index 0000000..e87d4e2
Binary files /dev/null and b/homescreen/qml/images/menubar_normal_mask.png differ
index f523339..909770d 100644 (file)
@@ -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 {
index 9125ecf..def2545 100644 (file)
@@ -99,12 +99,12 @@ void HomescreenHandler::changeLayout(int pattern)
     std::unordered_map<std::string, Rect> 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;
index aad4b1b..a66775f 100644 (file)
@@ -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));
 }